/*
 * 这是针对茶介绍内页的CSS样式
 * 适用于茶叶详细介绍页面，包含茶类信息展示、特点介绍、冲泡方法等模块
 * 采用绿色主题色系，响应式设计，支持移动端和桌面端
 */

/* 绿色主题色系 - 调淡更柔和 */
:root {
    --primary-green: #2d5a2d;
    --light-green: #4a7c4a;
    --accent-green: #669966;
    --pale-green: #8fb58f;
    --cream: #f5f7f5;
    --gold: #d4a574;
    --brown: #6b4423;
    --text-dark: #2c3e2c;
    --text-light: #5a6b5a;
    --border: #d4e4d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 导航栏样式 */
.main-nav {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #27ae60;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 60px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    border: 2px solid #27ae60;
}

/* 文字Logo样式 */
.logo-text {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    border: 2px solid #27ae60;
    background: #27ae60;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.logo-brand {
    font-weight: 600;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-menu li a {
    text-decoration: none;
    color: #ecf0f1;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-menu li a.active {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 2px 4px rgba(39,174,96,0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
        height: 56px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 56px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: #2c3e50;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        padding: 16px 0;
        gap: 0;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-menu li a {
        padding: 16px 24px;
        font-size: 16px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu li a:hover {
        background: rgba(255,255,255,0.05);
    }
    
    .nav-menu li a.active {
        background: #27ae60;
        border-bottom-color: #27ae60;
    }
}

/* 调整主内容间距 */
.container {
    padding-top: 0;
}

/* 导读段落优化样式 */
.lead-text {
    font-size: 16px;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: justify;
    font-weight: 400;
}

.knowledge-benefits {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    background: linear-gradient(135deg, rgba(45, 90, 45, 0.85), rgba(74, 124, 74, 0.8));
    border-radius: 12px;
    padding: 25px 30px;
    border: 1px solid rgba(74, 124, 74, 0.35);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.knowledge-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 124, 74, 0.12);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.knowledge-benefits li:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: rgba(74, 124, 74, 0.25);
}

.knowledge-benefits li:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.benefit-content {
    flex: 1;
    min-width: 0;
}

.benefit-content strong {
    display: block;
    color: #1e3a1e;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.benefit-desc {
    display: block;
    color: #2c2c2c;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.authority-note {
    font-size: 14px;
    line-height: 1.7;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(45, 90, 45, 0.8), rgba(74, 124, 74, 0.75));
    padding: 16px 22px;
    border-radius: 10px;
    border-left: 4px solid #8fb58f;
    margin-top: 25px;
    font-style: italic;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.authority-note strong {
    color: #ffffff;
    font-weight: 700;
    position: relative;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 30px 0;
    text-align: center;
}

.header-content {
    padding: 0 15px;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

/* Key Info - 简洁标签式设计 */
.key-info {
    background: transparent;
    padding: 20px 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

.info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    justify-content: flex-start;
    align-items: center;
}

.info-card {
    background: transparent;
    padding: 0;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.info-card:hover {
    transform: scale(1.05);
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}

.info-content {
    text-align: left;
    flex: 1;
}

.info-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
    font-weight: 400;
    display: block;
    line-height: 1;
}

.info-label::after {
    content: "：";
}

.info-value {
    font-size: 15px;
    color: var(--primary-green);
    font-weight: 600;
    display: block;
    line-height: 1.2;
}

/* Main Content */
main {
    padding: 35px 15px;
}

/* Article Sections */
article {
    margin-bottom: 40px;
}

h2 {
    font-size: 22px;
    color: var(--primary-green);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--accent-green);
    font-weight: 600;
}

h3 {
    font-size: 19px;
    color: var(--light-green);
    margin: 30px 0 18px 0;
    font-weight: 600;
}

/* FAQ 分类标题样式 */
.faq-category-title {
    font-size: 18px;
    color: var(--primary-green);
    margin: 35px 0 15px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(45, 90, 45, 0.05), rgba(74, 124, 74, 0.03));
    border-left: 4px solid var(--accent-green);
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

h4 {
    font-size: 17px;
    color: var(--primary-green);
    margin: 20px 0 14px 0;
    font-weight: 600;
}

p {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.7;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
}

/* Feature Table */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.feature-table th {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.feature-table td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.feature-table tr:nth-child(even) {
    background: #fafafa;
}

.feature-table tr:hover {
    background: #f5f7f5;
}

/* Brewing Steps - 简洁无框设计 */
.brewing-guide {
    background: transparent;
    padding: 0;
    margin: 20px 0;
    border: none;
}

.brewing-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.brewing-step {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    transition: all 0.2s ease;
    position: relative;
}

.brewing-step:hover {
    transform: translateY(-2px);
}

.brewing-step h4 {
    color: var(--primary-green);
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brewing-step h4::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background: var(--accent-green);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.brewing-steps {
    counter-reset: step-counter;
}

.brewing-step p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 0;
    padding-left: 32px;
}

/* Process Steps Numbering */
.process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.process-step {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-green);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.process-step strong {
    color: var(--primary-green);
    font-weight: 600;
}
    
/* FAQ Section - 去外框小字号设计 */
.faq-section {
    background: transparent;
    padding: 0;
    border: none;
    margin: 0;
    box-shadow: none;
}

.faq-item {
    margin-bottom: 6px;
    border: 1px solid rgba(212, 228, 212, 0.3);
    border-radius: 4px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(74, 124, 74, 0.2);
}

.faq-question {
    background: rgba(143, 181, 143, 0.08);
    color: var(--text-dark);
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border: none;
}

.faq-question:hover {
    color: var(--primary-green);
    background: rgba(143, 181, 143, 0.15);
}

.faq-icon {
    width: 16px;
    height: 16px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--primary-green);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: rgba(248, 251, 248, 0.5);
}

.faq-item.active .faq-answer {
    padding: 12px 16px;
    max-height: 300px;
}

/* Related Section - 紧凑间距 */
.related-section {
    margin: 6px 0;
}

.related-section h3 {
    color: var(--text-light);
    margin-bottom: 2px;
    font-size: 16px;
    font-weight: 500;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.related-item {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
}

.related-item a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 2px 0;
    display: inline-block;
    border-bottom: 1px dotted transparent;
    transition: all 0.2s ease;
}

.related-item a:hover {
    color: var(--light-green);
    border-bottom-color: var(--light-green);
    text-decoration: none;
}

/* Specific styles for related section links */
.related-section h3 a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.related-section h3 a:hover {
    color: var(--light-green);
    text-decoration: underline;
    text-decoration-color: var(--light-green);
    text-underline-offset: 2px;
}

/* Author Info */
.author-info {
    background: linear-gradient(135deg, var(--pale-green), var(--cream));
    padding: 35px;
    border-radius: 15px;
    margin: 45px 0;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.author-avatar {
    width: 70px;
    height: 70px;
    background: var(--accent-green);
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.author-avatar:hover {
    transform: scale(1.05);
}

.author-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.author-title {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.author-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--primary-green);
    color: white;
    padding: 40px 15px;
    text-align: center;
    font-size: 14px;
}

.footer-content {
    padding: 0 15px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--pale-green);
    text-decoration: none;
    margin: 0 12px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    opacity: 0.8;
    font-size: 13px;
    line-height: 1.4;
}

/* Mobile First Design */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    main {
        padding: 25px 10px;
    }
    
    /* 移动端优化收益列表 */
    .knowledge-benefits {
        padding: 18px 20px;
    }
    
    .knowledge-benefits li {
        padding: 12px;
        gap: 12px;
    }
    
    .benefit-icon {
        font-size: 20px;
    }
    
    .benefit-content strong {
        font-size: 15px;
    }
    
    .benefit-desc {
        font-size: 13px;
    }
    
    .info-cards {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
    }
    
    .info-card {
        justify-content: flex-start;
        width: 48%;
    }
    
    .origin-card {
        order: 5;
        width: 100%;
    }
    
    .brewing-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-table td:first-child {
        white-space: nowrap;
        width: 80px;
    }
    
    .feature-table td:first-child strong {
        display: inline-block;
        min-width: 60px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
        padding: 0 25px;
    }
    
    .info-cards {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    body {
        font-size: 16px;
    }
    
    p {
        font-size: 16px;
    }
    
    li {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 800px;
        padding: 0 30px;
    }
    
    .info-cards {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 26px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 900px;
    }
}

/* ========================================
   品牌百科页面专用样式
   适用于企业信息和品牌详情展示
   ======================================== */

/* 企业信息文字样式 */
.company-summary {
    background: linear-gradient(135deg, rgba(45, 90, 45, 0.04), rgba(74, 124, 74, 0.03));
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-dark);
}

.company-summary strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* 品牌详情简洁样式 */
.brand-detail-section {
    margin-bottom: 40px;
}

.brand-detail-content h3 {
    color: var(--primary-green);
    font-size: 18px;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.brand-detail-content h4 {
    color: var(--light-green);
    font-size: 16px;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

.brand-detail-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.brand-detail-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.brand-detail-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}
