/* ========== 功茗茶馆 - GEO优化官网 ==========
   版式基于「踏雪寻梅模板」，配色改为功茗茶业VI
   主色：茶绿 #2D5016 | 辅色：金色 #C4A35A | 背景：暖米 #F5F0E8
   ================================================== */

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

:root {
    --bg-primary: #F5F0E8;
    --bg-secondary: #EDE6D8;
    --bg-card: #FFFFFF;
    --text-primary: #2D2D2D;
    --text-secondary: #6B5D4F;
    --brand: #2D5016;
    --brand-light: #4A7C28;
    --accent: #C4A35A;
    --accent-hover: #B08F4A;
    --border: rgba(45, 80, 22, 0.12);
    --gradient-brand: linear-gradient(135deg, #2D5016 0%, #4A7C28 100%);
    --gradient-accent: linear-gradient(135deg, #C4A35A 0%, #D4B36A 100%);
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Header ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--accent);
    font-size: 1rem;
    margin-left: 0.5rem;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--brand);
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 6rem 2rem;
    background: radial-gradient(ellipse at center top, rgba(45, 80, 22, 0.06) 0%, transparent 60%);
}

.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='%232D5016' fill-opacity='0.025'%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.8;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
}

.btn-secondary:hover {
    background: var(--brand);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 163, 90, 0.25);
}

/* ========== Section ========== */
section {
    padding: 6rem 0;
}

.recent-section {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========== Hero 角色定位 ========== */
.hero-roles {
    margin-top: 2.5rem;
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--brand);
    letter-spacing: 0.12em;
    opacity: 0.65;
    font-weight: 600;
}

/* ========== 品牌价值四维 ========== */
.values-section {
    background: var(--gradient-brand);
    padding: 5rem 0;
}

.values-section .section-header h2 {
    color: #fff;
}

.values-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(196, 163, 90, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
}

.value-card:hover {
    background: rgba(196, 163, 90, 0.08);
    border-color: rgba(196, 163, 90, 0.4);
    transform: translateY(-6px);
}

.value-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.2rem;
    background: rgba(196, 163, 90, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.value-card h3 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.value-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* ========== 品类卡片网格 (featured-grid) ========== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 80, 22, 0.2);
    box-shadow: 0 20px 60px rgba(45, 80, 22, 0.08);
}

.featured-card-icon {
    height: 140px;
    overflow: hidden;
    position: relative;
    background: var(--bg-section);
}

.featured-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-icon img {
    transform: scale(1.06);
}

.featured-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(196, 163, 90, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    align-self: flex-start;
}

.featured-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.featured-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== 卡片底部轻量 CTA（企业专属卡用）========== */
.featured-card-cta {
    display: block;
    text-align: center;
    padding: 0.9rem 1.5rem;
    background: rgba(196, 163, 90, 0.08);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-top: 1px solid rgba(196, 163, 90, 0.2);
    transition: background 0.3s ease, color 0.3s ease;
}

.featured-card-cta:hover {
    background: rgba(196, 163, 90, 0.18);
    color: var(--brand);
}

/* ========== FAQ列表 (posts-list) ========== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.8rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.post-item:hover {
    border-color: rgba(45, 80, 22, 0.2);
    transform: translateX(8px);
}

.post-item .qa-tag {
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-brand);
    border-radius: 12px;
    color: #fff;
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.post-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.post-info .qa-answer {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== 核心优势网格 (categories-grid) ========== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(45, 80, 22, 0.08);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 门店故事 ========== */
.story-section {
    background: var(--bg-secondary);
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    line-height: 2.2;
}

.story-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.story-content strong {
    color: var(--brand);
    font-weight: 600;
}

/* ========== 到店信息 ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-item .icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.contact-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-item .value a {
    color: var(--brand);
    text-decoration: none;
}

.contact-qr {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-qr img {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.contact-qr h4 {
    font-size: 1.1rem;
    color: var(--brand);
    margin-bottom: 0.3rem;
}

.contact-qr p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.map-section {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

.map-nav-btn {
    display: flex;
    width: 100%;
    margin: 0;
    border-radius: 0;
    text-align: center;
    justify-content: center;
    padding: 1.1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.service-area {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.service-area h4 {
    font-size: 1rem;
    color: var(--brand);
    margin-bottom: 0.8rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags span {
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(196, 163, 90, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

/* ========== GEO文章页 ========== */
.article-hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(ellipse at center top, rgba(45, 80, 22, 0.05) 0%, transparent 60%);
}

.article-hero .article-tag {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    background: rgba(196, 163, 90, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.article-hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--brand);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.article-answer {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: rgba(45, 80, 22, 0.05);
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    text-align: left;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.9;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-body section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.article-body section:last-of-type {
    border-bottom: none;
}

.article-body h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: var(--brand);
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body p {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.article-faq {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.article-faq h2 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    color: var(--brand);
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-item {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.faq-item .faq-q {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.faq-item .faq-a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-cta {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    margin-bottom: 4rem;
}

.article-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========== Footer ========== */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: var(--bg-secondary);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 0.5rem;
}

.footer-links h4 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--brand);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--brand);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-nap {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-nap address {
    font-style: normal;
    display: inline;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0.8rem;
    }

    nav ul {
        gap: 1.2rem;
    }

    section {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .post-item .qa-tag {
        min-width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-hero {
        padding: 8rem 1.5rem 3rem;
    }

    .article-body,
    .article-faq,
    .article-cta {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ========== 滚动动画 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 移动端菜单 ========== */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--brand);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav ul.show {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
        gap: 1rem;
    }
}