/*
Theme Name: 阳湖有礼
Theme URI: https://www.yanghuyouli.cn
Description: 阳湖有礼/阳湖吾味品牌官网WordPress主题，基于VI规范（深绿#006B5A + 金色#F5A623）
Version: 2.0.0
Author: 常州丰和野农业科技有限公司
Author URI: https://www.yanghuyouli.cn
License: GNU General Public License v2 or later
Text Domain: yanghu-gift
*/

/* =====================================================
   CSS Variables - Brand VI Colors
   ===================================================== */
:root {
    --primary-color: #006B5A;
    --primary-light: #009B7D;
    --primary-dark: #004F40;
    --primary-rgb: 0, 107, 90;
    --accent-color: #F5A623;
    --accent-gold: #E8941F;
    --bg-warm: #F7F9F5;
    --bg-white: #FFFFFF;
    --bg-cream: #F2F7F3;
    --bg-green-light: #E8F3EE;
    --text-dark: #004F40;
    --text-body: #2D4038;
    --text-gray: #5A6B60;
    --text-light: #8A9A90;
    --border-color: #D4E8DC;
    --shadow-xs: 0 1px 3px rgba(0,107,90,0.05);
    --shadow-sm: 0 2px 8px rgba(0,107,90,0.06);
    --shadow-md: 0 4px 20px rgba(0,107,90,0.10);
    --shadow-lg: 0 8px 40px rgba(0,107,90,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-serif: 'Swei Spring', 'PingFang SC', 'Microsoft YaHei', serif;
    --font-sans: 'HarmonyOS Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text-body); background-color: var(--bg-white); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); font-weight: 700; color: var(--text-dark); line-height: 1.3; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--primary-color); transition: var(--transition); }
.site-header.scrolled { background: rgba(0, 107, 90, 0.98); box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img.logo-img { height: 50px; width: auto; object-fit: contain; }
.site-logo .site-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo .logo-main { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: white; letter-spacing: 2px; }
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; gap: 8px; }
.nav-list li a { display: block; padding: 8px 16px; color: white; font-size: 15px; font-weight: 500; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-list li a:hover, .nav-list li a.active { background: rgba(255,255,255,0.15); color: white; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 10px; background: none; border: none; cursor: pointer; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: white; transition: var(--transition); }
.mobile-nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-white); z-index: 1001; transition: right 0.3s ease; overflow-y: auto; }
.mobile-nav.open { right: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--primary-color); color: white; font-weight: 600; }
.mobile-close { background: none; border: none; color: white; font-size: 28px; cursor: pointer; line-height: 1; }
.mobile-nav-list { list-style: none; padding: 20px; }
.mobile-nav-list li a { display: block; padding: 15px 0; color: var(--text-dark); font-size: 16px; border-bottom: 1px solid var(--border-color); }
.mobile-nav-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); }
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }

/* Hero */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 70px; }
.hero-carousel { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 0.8s ease; }
.carousel-slide.active { opacity: 1; }
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; }
.carousel-overlay{ display: none; }
.hero-bg-default { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); }
.carousel-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: 2px solid white; cursor: pointer; transition: var(--transition); }
.carousel-dot.active { background: var(--accent-color); border-color: var(--accent-color); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,0.2); border: none; border-radius: 50%; color: white; font-size: 20px; cursor: pointer; z-index: 10; transition: var(--transition); }
.carousel-btn:hover { background: rgba(255,255,255,0.3); }
.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 20px; max-width: 800px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; background: rgba(255,255,255,0.15); border-radius: 50px; color: white; font-size: 14px; margin-bottom: 20px; }
.hero-badge-dot { width: 8px; height: 8px; background: var(--accent-color); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero-title { font-size: 56px; font-weight: 900; color: white; margin-bottom: 20px; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,0.2); }
.hero-title span { font-size: 32px; font-weight: 400; color: var(--accent-color); display: block; margin-top: 10px; }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.9); margin-bottom: 30px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-block; padding: 14px 32px; font-size: 16px; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--accent-color); color: white; }
.btn-primary:hover { background: var(--accent-gold); color: white; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: white; color: white; }
.btn-outline:hover { background: white; color: var(--primary-color); }
.btn-block { width: 100%; }

/* Section Common */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag { display: inline-block; padding: 6px 16px; background: var(--bg-green-light); color: var(--primary-color); font-size: 12px; font-weight: 600; letter-spacing: 2px; border-radius: var(--radius-sm); margin-bottom: 15px; }
.section-title { font-size: 36px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.section-subtitle { font-size: 16px; color: var(--text-gray); }
.section-footer { text-align: center; margin-top: 40px; }

/* About */
.about-section { background: var(--bg-white); }
.about-content { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: center; }
.about-text { font-size: 16px; line-height: 2; color: var(--text-body); }
.about-text p { margin-bottom: 20px; }
.about-stats { display: grid; grid-template-columns: 1fr; gap: 30px; }
.stat-item { text-align: center; padding: 30px; background: var(--bg-green-light); border-radius: var(--radius-lg); }
.stat-number { display: block; font-size: 48px; font-weight: 900; color: var(--primary-color); font-family: var(--font-serif); }
.stat-label { display: block; font-size: 14px; color: var(--text-gray); margin-top: 5px; }

/* Products */
.products-section { background: var(--bg-cream); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-warm); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,107,90,0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.product-card:hover .product-overlay { opacity: 1; }
.btn-view { padding: 10px 24px; background: white; color: var(--primary-color); border-radius: var(--radius-sm); font-weight: 600; }
.product-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; }
.product-info { padding: 20px; }
.product-title { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 18px; font-weight: 700; color: var(--accent-color); }
.product-spec { font-size: 13px; color: var(--text-gray); }

/* Timeline */
.milestones-section { background: var(--bg-white); }
.timeline { max-width: 800px; margin: 0 auto; position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-color); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -46px; top: 5px; width: 16px; height: 16px; background: var(--primary-color); border-radius: 50%; border: 3px solid var(--bg-white); }
.timeline-year { font-size: 32px; font-weight: 900; color: var(--primary-color); font-family: var(--font-serif); margin-bottom: 10px; }
.timeline-content h3 { font-size: 20px; margin-bottom: 10px; }
.timeline-content p { color: var(--text-gray); line-height: 1.8; }

/* Contact */
.contact-section { background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); color: white; }
.contact-section .section-tag { background: rgba(255,255,255,0.2); color: white; }
.contact-section .section-title, .contact-section .section-subtitle { color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-item { display: flex; gap: 15px; }
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-text h4 { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 5px; font-weight: 400; }
.contact-text p { font-size: 16px; color: white; }
.contact-form { background: var(--bg-white); padding: 40px; border-radius: var(--radius-lg); }
.contact-form h3 { font-size: 20px; margin-bottom: 25px; color: var(--text-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 18px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font-sans); transition: var(--transition); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0,107,90,0.1); }
.contact-form textarea { margin-bottom: 20px; resize: vertical; }
.contact-form .btn-primary { background: var(--primary-color); }
.contact-form .btn-primary:hover { background: var(--primary-dark); }

/* Footer */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 50px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-desc { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.6); }
.footer-links h4, .footer-contact h4, .footer-qr h4 { color: white; font-size: 16px; margin-bottom: 20px; }
.footer-links ul, .footer-contact ul { list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: 12px; font-size: 14px; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: white; }
.qr-placeholder { width: 120px; height: 120px; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-bottom p:first-child { margin-bottom: 5px; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 42px; }
    .hero-title span { font-size: 26px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .about-content { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-title { font-size: 32px; }
    .hero-title span { font-size: 20px; }
    .hero-desc { font-size: 15px; }
    .section-title { font-size: 28px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .carousel-btn { width: 40px; height: 40px; font-size: 16px; }
    .carousel-btn.prev { left: 15px; }
    .carousel-btn.next { right: 15px; }
}
@media (max-width: 480px) {
    section { padding: 60px 0; }
    .hero-title { font-size: 26px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    .products-grid { grid-template-columns: 1fr; }
}
