/* =============================================================================
 * 🍃 茶文化网站样式表 - 首页 + Claude风格聊天页面
 * ============================================================================= */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 首页样式 */
/* 顶部导航 */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2d5016;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', serif;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2d5016;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2d5016;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2d5016;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #a8e6a1 0%, #c8f7c5 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2d5016;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: 'Ma Shan Zheng', serif;
    color: #2d5016;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    color: #2d5016;
}

.hero-explore-cards {
    margin-top: 3rem;
}

.explore-entry-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.explore-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(45, 80, 22, 0.1);
}

.explore-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45, 80, 22, 0.15);
}

/* 触摸设备的点击效果 */
.explore-card:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 10px 25px rgba(45, 80, 22, 0.12);
    transition: all 0.1s ease;
}

@media (hover: none) and (pointer: coarse) {
    .explore-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(45, 80, 22, 0.1);
    }
    
    .explore-card:active {
        transform: scale(0.95);
        box-shadow: 0 4px 16px rgba(45, 80, 22, 0.15);
    }
}

.explore-card-icon {
    margin-bottom: 1rem;
}

.explore-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2d5016;
}

.explore-card-desc {
    color: #666;
    font-size: 1rem;
}

.ai-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.explore-card-green {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
}

/* 主要内容区域 */
main {
    padding-top: 0;
    position: relative;
    z-index: 1;
}

/* 通用区域样式 */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 1rem;
    font-family: 'Ma Shan Zheng', serif;
}

.title-decoration {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.title-decoration span {
    width: 40px;
    height: 3px;
    background: #2d5016;
    border-radius: 2px;
}

.title-decoration span:nth-child(2) {
    width: 60px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 茶文化简介 */
.intro-section {
    background: white;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-text blockquote {
    border-left: 4px solid #2d5016;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.intro-text cite {
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2d5016, #4caf50);
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
}

/* 六大茶类 */
.tea-types-section {
    background: #f8f9fa;
}

.tea-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tea-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tea-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tea-card:hover .tea-image img {
    transform: scale(1.05);
}

.tea-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(45, 80, 22, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tea-info {
    padding: 1.5rem;
}

.tea-info h3 {
    font-size: 1.3rem;
    color: #2d5016;
    margin-bottom: 0.5rem;
}

.tea-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #2d5016;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #4caf50;
}

.read-more span {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover span {
    transform: translateX(5px);
}

/* 茶文化历史时间线 */
.tea-history-section {
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #2d5016;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #2d5016;
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px #2d5016;
}

.timeline-date {
    font-weight: 600;
    color: #2d5016;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #2d5016;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* 传统茶馆画廊 */
.tea-ceremony-section {
    background: #f8f9fa;
}

.tea-house-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
}

.gallery-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-caption p {
    opacity: 0.9;
    line-height: 1.5;
}

/* 首页聊天区域 */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.chat-messages .message {
    margin-bottom: 1rem;
}

.chat-messages .message.assistant .message-content {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 12px;
    line-height: 1.6;
}

.chat-input-container {
    display: flex;
    gap: 1rem;
}

.chat-form {
    display: flex;
    width: 100%;
    gap: 1rem;
}

.chat-form input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-form input:focus {
    border-color: #2d5016;
}

.chat-form button {
    padding: 1rem;
    background: #2d5016;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-form button:hover {
    background: #4caf50;
}

.chat-form button svg {
    width: 20px;
    height: 20px;
}

/* 联系页面 */
.contact-section {
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    space-y: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #2d5016;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    color: #2d5016;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2d5016;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background: #2d5016;
    color: white;
}

.primary-btn:hover {
    background: #4caf50;
    transform: translateY(-2px);
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, #2d5016 0%, #1b3a0f 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: #a8e6a1;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Ma Shan Zheng', serif;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: #a8e6a1;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #a8e6a1;
    color: #2d5016;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: #a8e6a1;
    color: #2d5016;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #90d689;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #a8e6a1;
}

/* 动画效果 */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端导航栏优化 */
    .main-header {
        padding: 0.8rem 0;
        box-shadow: 0 2px 10px rgba(45, 80, 22, 0.1);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    
    .main-header nav {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    /* 移动端logo优化 */
    .logo {
        font-size: 1.3rem;
        font-weight: 700;
        padding: 0.5rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
        position: relative;
        z-index: 1001;
    }
    
    .logo:hover {
        background: rgba(45, 80, 22, 0.05);
        transform: scale(1.02);
    }
    
    .logo img {
        width: 36px;
        height: 36px;
        margin-right: 8px;
        filter: drop-shadow(0 2px 4px rgba(45, 80, 22, 0.1));
        display: block;
    }
    
    .logo span {
        display: inline-block;
        white-space: nowrap;
    }
    
    /* 为导航栏添加装饰性渐变边框 */
    .main-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #a8e6a1, #2d5016, #a8e6a1);
        opacity: 0.7;
    }

    .nav-toggle {
        display: flex;
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(45, 80, 22, 0.1);
    }
    
    .nav-toggle span {
        border-radius: 2px;
        box-shadow: 0 1px 2px rgba(45, 80, 22, 0.2);
    }
    
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        border-top: 3px solid #a8e6a1;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links a {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(45, 80, 22, 0.1);
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        margin-bottom: 0.5rem;
    }
        
    .nav-links a:hover {
        background: rgba(45, 80, 22, 0.05);
        padding-left: 1rem;
        transform: translateX(5px);
    }
    
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-desc p {
        margin-bottom: 0.8rem;
    }
    
    .explore-entry-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .explore-card {
        padding: 2rem 1.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
        min-height: 160px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(45, 80, 22, 0.1);
    }
    
    .explore-card-icon {
        margin-bottom: 1.5rem;
        flex-shrink: 0;
    }
    
    .explore-card-icon svg {
        width: 56px;
        height: 56px;
    }
    
    .explore-card-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    .explore-card-desc {
        font-size: 1rem;
        line-height: 1.5;
        opacity: 0.8;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tea-types-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tea-card {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        text-align: left;
        margin-bottom: 2rem;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 0;
        padding-left: 50px;
        text-align: left;
    }
    
    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .tea-house-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 8px;
        width: 100%;
        padding: 0.75rem;
        min-height: 48px;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .form-group input,
    .form-group textarea {
        min-height: 48px;
        padding: 0.75rem;
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .read-more {
        padding: 0.75rem 1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .btn, .primary-btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
    
    .social-links a {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .tea-image img,
    .intro-image img,
    .gallery-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    body {
        line-height: 1.6;
    }
    
    p {
        margin-bottom: 1rem;
    }
    
    html {
        scroll-behavior: smooth;
    }
}

/* 小屏手机优化 */
@media (max-width: 480px) {
    /* 小屏导航栏logo优化 */
    .logo {
        font-size: 1.2rem;
        padding: 0.4rem;
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
        margin-right: 6px;
        display: block;
    }
    
    .logo span {
        display: inline-block;
        white-space: nowrap;
    }
    
    .main-header::after {
        height: 2px;
    }
    
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-desc {
        font-size: 0.9rem;
    }
    
    .explore-entry-cards {
        gap: 1rem;
        padding: 0 0.5rem;
        margin-top: 1.5rem;
    }
    
    .explore-card {
        padding: 1.5rem 1rem;
        min-height: 140px;
        border-radius: 12px;
    }
    
    .explore-card-icon {
        margin-bottom: 1rem;
    }
    
    .explore-card-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .explore-card-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .explore-card-desc {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .intro-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .tea-info h3 {
        font-size: 1.1rem;
    }
    
    .tea-info p {
        font-size: 0.85rem;
    }
    
    .timeline-content h3 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-column h3 {
        font-size: 1rem;
    }
    
    .footer-column p {
        font-size: 0.85rem;
    }
    
    .footer-column ul li a {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
}

/* 超小屏设备优化 */
@media (max-width: 360px) {
    /* 超小屏logo优化 */
    .logo {
        font-size: 1.1rem;
        padding: 0.3rem;
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
        margin-right: 5px;
        display: block;
    }
    
    .logo span {
        display: inline-block;
        white-space: nowrap;
    }
    
    .main-header {
        padding: 0.6rem 0;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .explore-entry-cards {
        gap: 0.75rem;
        padding: 0 0.25rem;
        margin-top: 1rem;
    }
    
    .explore-card {
        padding: 1.25rem 0.75rem;
        min-height: 120px;
        border-radius: 10px;
    }
    
    .explore-card-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .explore-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .explore-card-desc {
        font-size: 0.85rem;
    }
    
    .tea-card {
        padding: 1rem;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-dot {
        left: 15px;
        width: 10px;
        height: 10px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* =============================================================================
 * 🍃 Claude界面一比一复刻 - 茶韵智能助手聊天页面
 * ============================================================================= */

/* Claude聊天页面专用样式 */
.claude-replica {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #2d2d2d;
    height: 100vh;
    overflow: hidden;
}

.claude-container {
    max-width: 768px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 欢迎标题 */
.claude-header {
    flex-shrink: 0;
    padding: 80px 24px 40px;
}

.claude-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.claude-welcome-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: #2d2d2d;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.02em;
    margin: 0;
}

.claude-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.claude-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.claude-settings-btn {
    background: none;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.claude-settings-btn:hover {
    border-color: #10a37f;
    color: #10a37f;
    background: #f0f9f5;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.status-indicator.status-local {
    background: #ffa726;
}

.status-indicator.status-connected {
    background: #10a37f;
}

.status-indicator.status-error {
    background: #f44336;
}

/* 聊天消息区域 */
.claude-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px;
    margin-bottom: 20px;
}

/* 消息样式 */
.message {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    margin: 0 12px;
}

.message.user .message-avatar {
    background-color: #ff6b6b;
    color: white;
}

.message.assistant .message-avatar {
    background-color: #10a37f;
    color: white;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.5;
    font-size: 16px;
    word-wrap: break-word;
}

.message.user .message-content {
    background-color: #f7f7f8;
    color: #2d2d2d;
}

.message.assistant .message-content {
    background-color: #f7f7f8;
    color: #2d2d2d;
}

/* 输入区域 */
.claude-input-section {
    flex-shrink: 0;
    padding: 0 24px 40px;
}

.claude-form {
    margin-bottom: 20px;
}

.claude-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f7f7f8;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.claude-input-wrapper:focus-within {
    border-color: #10a37f;
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.1);
}

.claude-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #2d2d2d;
    line-height: 1.5;
}

.claude-input::placeholder {
    color: #6b7280;
}

.claude-submit-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.claude-submit-btn:hover {
    background-color: #e5e7eb;
    color: #2d2d2d;
}

.claude-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 功能按钮 */
.claude-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.claude-action {
    background: #f7f7f8;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #2d2d2d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    min-height: 44px;
}

.claude-action:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.claude-action svg {
    color: #6b7280;
    flex-shrink: 0;
}

/* 加载动画 */
.loading-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6b7280;
    animation: loadingPulse 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes loadingPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Claude页面响应式设计 */
@media (max-width: 768px) {
    .claude-container {
        max-width: 100%;
    }
    
    .claude-header {
        padding: 60px 20px 30px;
    }
    
    .claude-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .claude-welcome-title {
        font-size: 2rem;
    }
    
    .claude-header-actions {
        order: -1;
        width: 100%;
        justify-content: center;
    }
    
    .claude-chat-area {
        padding: 0 20px;
    }
    
    .claude-input-section {
        padding: 0 20px 30px;
    }
    
    .claude-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .claude-action {
        justify-content: center;
        text-align: center;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .claude-welcome-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .claude-icon {
        font-size: 2rem;
    }
    
    .claude-input-wrapper {
        padding: 14px 16px;
    }
    
    .claude-input {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 强化美化茶叶百科目录区域样式 */
.beautiful-knowledge-menu {
  background: #fff !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 24px 0 rgba(60, 80, 60, 0.10) !important;
  padding: 40px 32px 32px 32px !important;
  margin: 40px auto 48px auto !important;
  max-width: 1100px !important;
}
.knowledge-menu-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 32px 24px !important;
  justify-content: center !important;
  margin-top: 24px !important;
}
.knowledge-menu-col {
  flex: 1 1 220px !important;
  min-width: 220px !important;
  max-width: 260px !important;
  background: #f7faf7 !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 8px 0 rgba(60, 80, 60, 0.06) !important;
  padding: 24px 18px 18px 18px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}
.knowledge-menu-col h3 {
  font-size: 1.18rem !important;
  color: #3e5c3e !important;
  margin-bottom: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1px !important;
}
.knowledge-menu-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.menu-link-btn {
  display: inline-block !important;
  background: #e8f5e9 !important;
  color: #388e3c !important;
  border-radius: 6px !important;
  padding: 7px 16px !important;
  margin: 6px 0 0 0 !important;
  font-size: 1rem !important;
  text-decoration: none !important;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s !important;
  box-shadow: 0 1px 4px 0 rgba(60, 80, 60, 0.04) !important;
}
.menu-link-btn:hover {
  background: #388e3c !important;
  color: #fff !important;
  box-shadow: 0 2px 8px 0 rgba(60, 80, 60, 0.10) !important;
}
@media (max-width: 900px) {
  .knowledge-menu-grid {
    flex-direction: column !important;
    gap: 18px !important;
  }
  .knowledge-menu-col {
    max-width: 100% !important;
    width: 100% !important;
    align-items: stretch !important;
  }
} 