/* 全局样式 */
* {
   margin: 0;
   padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
   background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 区块隐藏/显示控制 */
.section-hidden {
    display: none !important;
}

.content-section {
    padding: 60px 20px;
    min-height: calc(100vh - 80px);
}

/* 锁屏界面 */
.lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a3a1a 0%, #2d5a27 50%, #4a8c42 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

.lock-content {
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease;
}

.lock-title {
    font-size: 72px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 10px;
}

.lock-subtitle {
    font-size: 24px;
    margin-bottom: 60px;
    opacity: 0.9;
    letter-spacing: 2px;
}

.lock-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hint-text {
    font-size: 18px;
    opacity: 0.8;
    animation: pulse 2s infinite;
}

.click-indicator {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
    animation: ripple 2s infinite;
}

.click-indicator:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

/* 欢迎页面 */
.welcome-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.85) 0%, rgba(74, 140, 66, 0.75) 100%), 
                url('../images/tea-garden-bg.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    overflow: hidden;
}

/* 如果图片加载失败，使用渐变背景备用 */
.welcome-page[style*="background-image"] {
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.85) 0%, rgba(74, 140, 66, 0.75) 100%);
}

.welcome-container {
    text-align: center;
    max-width: 1200px;
    padding: 40px;
    animation: fadeIn 0.8s ease;
}

.welcome-header {
    margin-bottom: 60px;
}

.welcome-title {
    font-size: 56px;
    color: #2d5a27;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.welcome-subtitle {
    font-size: 24px;
    color: #666;
    letter-spacing: 3px;
}

.welcome-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.welcome-btn {
    background: linear-gradient(135deg, #2d5a27 0%, #4a8c42 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(45, 90, 39, 0.3);
    position: relative;
    overflow: hidden;
}

.welcome-btn:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.welcome-btn:hover:before {
    left: 100%;
}

.welcome-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(45, 90, 39, 0.5);
}

.welcome-icon {
    font-size: 64px;
}

.welcome-label {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.welcome-footer {
    color: #999;
    font-size: 16px;
    animation: pulse 2s infinite;
}

.container {
   max-width: 1200px;
   margin: 0 auto;
   padding: 20px;
}

/* 导航栏 */
.navbar {
   background: linear-gradient(135deg, #2d5a27 0%, #4a8c42 100%);
    color: white;
   padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
   text-decoration: none;
    transition: all 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* 导航激活状态 */
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
}

/* 轮播图 */
.hero-section {
   margin-bottom: 40px;
}

.banner {
   height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.banner-item {
    width: 100%;
   height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
   text-align: center;
}

.banner-title {
    font-size: 72px;
    font-weight: bold;
   margin-bottom: 20px;
}

.banner-subtitle {
    font-size: 24px;
    opacity: 0.9;
}

/* 章节通用样式 */
.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #2d5a27;
   text-align: center;
   margin-bottom: 20px;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
   text-align: center;
   margin-bottom: 40px;
}

.content-section {
   margin-bottom: 60px;
}

/* 功能卡片 */
.features-section {
   margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
   background: white;
   padding: 40px 20px;
    border-radius: 16px;
   text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
   text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 60px;
    display: block;
   margin-bottom: 16px;
}

.feature-title {
    font-size: 24px;
    color: #2d5a27;
   margin-bottom: 10px;
}

.feature-desc {
    font-size: 16px;
    color: #999;
}

/* 信息卡片 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
   background: white;
   padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.info-header {
    display: flex;
    align-items: center;
   margin-bottom: 20px;
}

.info-icon {
    font-size: 40px;
   margin-right: 16px;
}

.info-header h3 {
    font-size: 24px;
    color: #2d5a27;
}

.info-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
   text-indent: 2em;
}

/* 数据统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
   margin-top: 40px;
}

.stat-item {
   background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
   padding: 40px;
    border-radius: 16px;
   text-align: center;
}

.stat-value {
    font-size: 48px;
    font-weight: bold;
    color: #2d5a27;
   margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: #666;
}

/* 时间轴 */
.timeline {
    position: relative;
   padding-left: 40px;
}

.timeline-item {
    display: flex;
   margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
   margin-right: 20px;
}

.marker-icon {
    width: 60px;
   height: 60px;
   background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
   background: white;
   padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 16px;
   margin-bottom: 12px;
}

.timeline-header h3 {
    font-size: 24px;
    color: #2d5a27;
}

.timeline-year {
   padding: 4px 12px;
   background: #f5f5f5;
    border-radius: 4px;
    font-size: 14px;
    color: #999;
}

.timeline-content h4 {
    font-size: 20px;
    color: #333;
   margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* 口感切换 */
.taste-tabs {
    display: flex;
    gap: 10px;
   margin-bottom: 30px;
    flex-wrap: wrap;
}

.taste-tab {
   padding: 12px 24px;
   background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 16px;
   cursor: pointer;
    transition: all 0.3s;
}

.taste-tab:hover {
   background: #e0e0e0;
}

.taste-tab.active {
   background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
    color: white;
}

.taste-content {
   background: white;
   padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.taste-panel {
    display: none;
}

.taste-panel.active {
    display: block;
}

.taste-panel h3 {
    font-size: 28px;
    color: #2d5a27;
   margin-bottom: 10px;
}

.taste-time {
    color: #999;
   margin-bottom: 20px;
}

.taste-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
   margin-bottom: 20px;
}

.taste-features {
    list-style: none;
}

.taste-features li {
    font-size: 16px;
    color: #333;
   margin-bottom: 10px;
   padding-left: 20px;
    position: relative;
}

.taste-features li:before {
    content: "•";
    color: #2d5a27;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 商品列表 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
   background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.product-image {
   height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.product-name {
    font-size: 20px;
    color: #333;
   padding: 20px 20px 10px;
}

.product-spec {
    font-size: 14px;
    color: #999;
   padding: 0 20px 10px;
}

.product-price {
    font-size: 28px;
    color: #e74c3c;
    font-weight: bold;
   padding: 0 20px 20px;
}

.btn-buy {
    width: 100%;
   padding: 12px;
   background: linear-gradient(135deg, #2d5a27 0%, #3d7a37 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
   cursor: pointer;
    transition: opacity 0.3s;
}

.btn-buy:hover {
    opacity: 0.9;
}

/* 二维码弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.modal-content {
   background: white;
   margin: 10% auto;
   padding: 40px;
    border-radius: 20px;
   max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

.modal-large {
   max-width: 700px;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 36px;
    color: #999;
   cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

#modalTitle {
   text-align: center;
    color: #2d5a27;
    font-size: 28px;
   margin-bottom: 30px;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.qr-placeholder {
    width: 240px;
   height: 240px;
   background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid #2d5a27;
    position: relative;
}

.qr-icon {
    font-size: 80px;
   margin-bottom: 10px;
}

.qr-placeholder p {
    font-size: 18px;
    color: #333;
   margin: 5px 0;
}

.qr-text {
    font-size: 14px !important;
    color: #666 !important;
}

.contact-info {
   text-align: center;
   background: #f8f9fa;
   padding: 20px;
    border-radius: 12px;
    width: 100%;
}

.contact-info h4 {
    color: #2d5a27;
    font-size: 20px;
   margin-bottom: 15px;
}

.contact-info p {
    font-size: 18px;
    color: #333;
   margin: 10px 0;
}

.qr-tip {
    font-size: 14px !important;
    color: #999 !important;
   margin-top: 15px !important;
}

.modal-footer {
   margin-top: 30px;
   text-align: center;
}

.footer-note {
    font-size: 14px;
    color: #666;
   margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
       margin: 20% auto;
       padding: 30px 20px;
       max-width: 90%;
    }
    
    .qr-placeholder {
        width: 200px;
       height: 200px;
    }
    
    .qr-icon {
        font-size: 60px;
    }
}

/* 页脚 */
.footer {
   background: linear-gradient(135deg, #2d5a27 0%, #4a8c42 100%);
    color: white;
   text-align: center;
   padding: 40px 20px;
   margin-top: 60px;
}

.footer p {
   margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .banner {
       height: 300px;
    }
    
    .banner-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .features-grid,
    .info-cards,
    .stats-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .taste-tabs {
        justify-content: center;
    }
}

/* 溯源详情弹窗样式 */
.step-modal-title {
    font-size: 28px;
    color: #2d5a27;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.step-modal-body {
    margin-top: 20px;
}

.step-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.step-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    border-radius: 12px;
    border-left: 4px solid #2d5a27;
}

.step-detail-item .detail-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.step-detail-item strong {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.step-detail-item p {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.step-detail-section {
    margin: 25px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.step-detail-section h4 {
    font-size: 18px;
    color: #2d5a27;
    margin-bottom: 15px;
    font-weight: bold;
}

.step-detail-text {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.step-trace-code {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    border: 2px dashed #2d5a27;
}

.step-trace-code p {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.step-trace-code code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #2d5a27;
    background: white;
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: 10px;
    font-weight: bold;
}

/* 流程步骤可点击样式 */
.process-step {
    cursor: not-allowed;
    transition: all 0.3s ease;
    opacity: 0.6;
    pointer-events: none;
}

.process-step.active {
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.2);
}

/* 溯源系统介绍卡片样式 */
.trace-feature-item {
    cursor: not-allowed;
    transition: all 0.3s ease;
    opacity: 0.6;
    pointer-events: none;
}

.trace-feature-item.active {
    cursor: pointer;
    opacity: 1;
    pointer-events: auto;
}

.trace-feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(45, 90, 39, 0.2);
}

.process-step:before {
    content: '👆 点击查看';
    position: absolute;
    top: -10px;
    right: 10px;
    background: #2d5a27;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.process-step:hover:before {
    opacity: 1;
}

.step-hint {
    text-align: center;
    color: #2d5a27;
    font-size: 14px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .step-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-large {
        max-width: 90%;
    }
}
