/*
Theme Name: Packaging Custom
Theme URI: http://8.130.122.188/
Author: Custom Development
Author URI: http://8.130.122.188/
Description: 独立开发的包装机械公司主题，不依赖第三方插件，轻量级高性能
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: packaging-custom
Tags: business, custom-menu, featured-images, responsive-design
*/

/* CSS Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.6; color: #333; background: #fff; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { flex: 1; padding: 0 15px; }

/* Header */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.header-top { background: #0066cc; color: #fff; padding: 10px 0; font-size: 14px; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-main { padding: 20px 0; }
.header-main .container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { font-size: 24px; font-weight: bold; color: #0066cc; text-decoration: none; }
.site-logo:hover { color: #0052a3; }
.main-navigation ul { list-style: none; display: flex; gap: 30px; }
.main-navigation a { text-decoration: none; color: #333; font-weight: 600; transition: color 0.3s; }
.main-navigation a:hover { color: #0066cc; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%); color: #fff; padding: 150px 0 100px; text-align: center; margin-top: 80px; }
.hero-title { font-size: 48px; margin-bottom: 20px; font-weight: 700; }
.hero-subtitle { font-size: 20px; margin-bottom: 40px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }
.btn { display: inline-block; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s; }
.btn-primary { background: #fff; color: #0066cc; }
.btn-primary:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-secondary:hover { background: #fff; color: #0066cc; }

/* Features */
.features-section { padding: 80px 0; background: #f8f9fa; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 50px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-item { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s; }
.feature-item:hover { transform: translateY(-5px); }
.feature-icon { font-size: 48px; margin-bottom: 20px; }
.feature-title { font-size: 20px; margin-bottom: 15px; color: #0066cc; }
.feature-description { color: #666; line-height: 1.8; }

/* Products */
.products-section { padding: 80px 0; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.product-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.15); transform: translateY(-5px); }
.product-image { width: 100%; height: 250px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; color: #999; font-size: 48px; }
.product-info { padding: 25px; }
.product-title { font-size: 22px; margin-bottom: 10px; color: #333; }
.product-excerpt { color: #666; margin-bottom: 20px; line-height: 1.6; }
.product-link { display: inline-block; color: #0066cc; text-decoration: none; font-weight: 600; }
.product-link:hover { color: #0052a3; }

/* About */
.about-section { padding: 80px 0; background: #0066cc; color: #fff; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; text-align: center; }
.stat-number { font-size: 48px; font-weight: 700; margin-bottom: 10px; }
.stat-label { font-size: 16px; opacity: 0.9; }

/* Contact */
.contact-section { padding: 80px 0; background: #f8f9fa; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.contact-info h3 { font-size: 24px; margin-bottom: 20px; color: #0066cc; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.contact-icon { font-size: 24px; color: #0066cc; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
.contact-form textarea { height: 150px; resize: vertical; }
.contact-form button { background: #0066cc; color: #fff; padding: 15px 30px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
.contact-form button:hover { background: #0052a3; }

/* Footer */
.site-footer { background: #333; color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-column h4 { font-size: 18px; margin-bottom: 20px; color: #fff; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-column a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #555; padding-top: 20px; text-align: center; color: #999; font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .header-main .container { flex-direction: column; gap: 20px; }
    .main-navigation ul { flex-direction: column; gap: 15px; text-align: center; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .products-grid, .features-grid { grid-template-columns: 1fr; }
}

/* WordPress Core */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin-right: 20px; }
.alignright { float: right; margin-left: 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 14px; color: #666; margin-top: 10px; }
.sticky { background: #fffbe6; padding: 20px; border-left: 4px solid #ffcc00; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 30px 0; }
.gallery-item { text-align: center; }
.gallery-item img { max-width: 100%; height: auto; border-radius: 8px; }
