/* ========================================
   淳田春月茶叶公司 - 样式文件
   ======================================== */

/* CSS 变量 */
:root {
    --primary-color: #2d5016;
    --primary-dark: #1a3009;
    --primary-light: #4a7a2a;
    --secondary-color: #8b4513;
    --accent-color: #d4a574;
    --gold: #c9a227;
    --cream: #faf8f5;
    --dark: #1a1a1a;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --border-color: #e5e5e5;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
}

/* 重置样式 */
* {
    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(--gray-dark);
    background-color: var(--cream);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-dark);
    transition: var(--transition);
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-full {
    width: 100%;
}

/* ========================================
   英雄区域
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 50%, #0d1805 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    letter-spacing: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.7;
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 12px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    margin: 0 auto;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   区块标题
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: white;
}

.section-tag {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gray-light);
    display: block;
    margin-bottom: 12px;
}

.section-header.light .section-tag {
    color: rgba(255, 255, 255, 0.7);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.section-header.light .section-title {
    color: white;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 0 auto;
}

.section-header.light .section-divider {
    background: var(--accent-color);
}

/* ========================================
   关于我们
   ======================================== */
.about {
    padding: 120px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 20px;
    background: var(--cream);
    border: 1px solid var(--border-color);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary-color);
    z-index: -1;
}

/* 图片画廊样式 */
.image-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
}

.gallery-thumbs .thumb {
    flex: 1;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 3px solid transparent;
}

.gallery-thumbs .thumb:hover {
    opacity: 0.9;
}

.gallery-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.placeholder-img {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.about-placeholder {
    height: 400px;
}

.placeholder-img span {
    font-size: 80px;
    margin-bottom: 15px;
}

.placeholder-img p {
    font-size: 16px;
    opacity: 0.7;
}

/* ========================================
   荣誉资质
   ======================================== */
.honors {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8faf5 0%, white 100%);
}

/* 荣誉时间线 */
.honor-timeline {
    margin-bottom: 60px;
    position: relative;
    padding-left: 30px;
}

.honor-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.timeline-content {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--gray);
    line-height: 1.7;
}

.timeline-content li:last-child {
    margin-bottom: 0;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-content li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.honor-gallery-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.honor-gallery-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* 年份选项卡 */
.honor-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.honor-tab {
    padding: 12px 28px;
    font-size: 15px;
    font-family: var(--font-sans);
    font-weight: 500;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.honor-tab span {
    display: inline-block;
    background: var(--border-color);
    color: var(--gray);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    transition: var(--transition);
}

.honor-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.honor-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.honor-tab.active span {
    background: rgba(255,255,255,0.3);
    color: white;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.honor-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
}

.honor-card.hidden {
    display: none;
}

.honor-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.honor-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.honor-image img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #fafafa;
    display: block;
    transition: var(--transition);
    padding: 15px;
}

.honor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 80, 22, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.honor-card:hover .honor-overlay {
    opacity: 1;
}

.honor-card:hover .honor-image img {
    transform: scale(1.1);
}

.honor-year-badge {
    background: white;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
}

.honor-zoom {
    color: white;
    font-size: 14px;
}

/* 灯箱样式 */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--gray-dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--gray);
    margin-top: 8px;
}

/* ========================================
   产品展示
   ======================================== */
.products {
    padding: 120px 0;
    background: var(--cream);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

.product-placeholder span {
    font-size: 60px;
}

.product-placeholder.green {
    background: linear-gradient(135deg, #2d5016 0%, #4a7a2a 100%);
}

.product-placeholder.gold {
    background: linear-gradient(135deg, #c9a227 0%, #daa520 100%);
}

.product-placeholder.dark {
    background: linear-gradient(135deg, #3d2914 0%, #5c3d1e 100%);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 3px;
}

.product-badge.new {
    background: var(--primary-color);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.product-origin {
    font-size: 13px;
    color: var(--gray-light);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    display: flex;
    align-items: baseline;
}

.price {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.unit {
    font-size: 13px;
    color: var(--gray-light);
    margin-left: 5px;
}

.products-cta {
    text-align: center;
    margin-top: 50px;
}

/* ========================================
   茶文化
   ======================================== */
.culture {
    padding: 120px 0;
    background: linear-gradient(135deg, #2d5016 0%, #1a3009 100%);
}

.culture-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.culture-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    color: white;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.culture-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.culture-icon {
    font-size: 50px;
    margin-bottom: 25px;
}

.culture-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 15px;
}

.culture-card p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.85;
}

/* ========================================
   品牌优势
   ======================================== */
.features {
    padding: 80px 0;
    background: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 18px;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--gray);
}

/* ========================================
   联系我们
   ======================================== */
.contact {
    padding: 120px 0;
    background: var(--cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-icon {
    font-size: 28px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.contact-text p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 25px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .products-grid,
    .culture-content,
    .features-grid,
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 40px;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-stats {
        flex-direction: column;
        gap: 25px;
    }

    .products-grid,
    .culture-content,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .honor-tabs {
        gap: 10px;
    }

    .honor-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact-form {
        padding: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .btn {
        padding: 12px 28px;
    }

    .stat-number {
        font-size: 32px;
    }
}
