/* =========================================
   TalkYour - 自定义样式
   中医药自然风主题：深绿色 + 暖棕色 + 米白背景
   ========================================= */

/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Google Fonts - Noto Sans SC */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

/* CSS 自定义变量 */
:root {
    --primary-dark: #1B5E20;
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-lighter: #81C784;
    --accent: #5D4037;
    --accent-light: #8D6E63;
    --warm: #FF8F00;
    --bg-cream: #FAFAF5;
    --bg-card: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-medium: #555555;
    --text-light: #FFFFFF;
    --border-color: #E0E0D8;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 3px rgba(27, 94, 32, 0.08);
    --shadow-md: 0 4px 12px rgba(27, 94, 32, 0.12);
    --shadow-lg: 0 8px 30px rgba(27, 94, 32, 0.18);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 工具类 */
.hidden { display: none !important; }

/* ---- 导航栏 ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(27, 94, 32, 0.08);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-link {
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition);
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

/* ---- Hero 区域 ---- */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1B5E20 0%, #2E7D32 30%, #388E3C 50%, #2E7D32 70%, #1B5E20 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(255, 193, 7, 0.06) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(1deg); }
    66% { transform: translate(-15px, 15px) rotate(-1deg); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-top: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* 装饰叶子图案 */
.leaf-decoration {
    position: absolute;
    opacity: 0.08;
    font-size: 10rem;
    color: white;
    pointer-events: none;
}

.leaf-1 { top: 10%; left: 5%; transform: rotate(-25deg); }
.leaf-2 { bottom: 10%; right: 8%; transform: rotate(15deg); }
.leaf-3 { top: 50%; right: 15%; transform: rotate(-10deg); font-size: 7rem; }

/* ---- 分类卡片 ---- */
.category-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(76, 175, 80, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: scale(1.1);
}

.category-card:hover .category-icon svg {
    color: white;
    fill: white;
}

/* ---- 内容卡片 ---- */
.content-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.content-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.content-card-body {
    padding: 1.25rem;
}

.content-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ---- 详情页 ---- */
.detail-main-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* ---- 语音播放器 ---- */
.audio-player-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition);
    min-width: 180px;
    user-select: none;
}

.audio-player:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.audio-player.playing {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(76, 175, 80, 0.08));
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.audio-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.audio-player.playing .audio-btn {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(46, 125, 50, 0); }
}

.audio-btn svg {
    width: 16px;
    height: 16px;
    color: white;
    fill: white;
}

.audio-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.audio-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.audio-progress {
    width: 100%;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
}

/* ---- 图片轮播 ---- */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: #f5f5f0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 10;
    color: var(--text-dark);
}

.carousel-btn:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.carousel-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ---- 页脚 ---- */
.site-footer {
    background: linear-gradient(135deg, var(--primary-dark), #0D3B13);
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer-divider {
    width: 60px;
    height: 3px;
    background: var(--primary-lighter);
    border-radius: 2px;
    margin: 0.75rem auto;
}

/* ---- 面包屑 ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

/* ---- 移动端汉堡菜单 ---- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- 分页 ---- */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--border-color);
    color: var(--text-medium);
    background: var(--bg-card);
}

.pagination a:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ---- 加载状态 ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0ec 25%, #e8e8e2 50%, #f0f0ec 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

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

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

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        min-height: 380px;
    }

    .audio-player {
        min-width: 150px;
        padding: 0.6rem 1rem;
    }

    .carousel-slide img {
        height: 240px;
    }

    .content-card-img {
        height: 160px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .leaf-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .audio-player-group {
        flex-direction: column;
        align-items: stretch;
    }

    .audio-player {
        min-width: auto;
    }
}

/* ---- 中药材详细信息卡片 ---- */
.detail-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.detail-info-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.detail-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    color: white;
}

.detail-info-content h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-info-content p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
}

.detail-section-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.detail-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-lighter);
}

.detail-section-text {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.9;
}

/* ============================================
   专业中药材详情页样式
   ============================================ */

/* Hero 区域 */
.detail-page {
    background: var(--bg-main);
}

.detail-hero {
    position: relative;
    padding: 2rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1a5c1a 0%, #2d7a2d 50%, #1a5c1a 100%);
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.04) 0%, transparent 30%);
}

.detail-hero-overlay {
    position: absolute;
    inset: 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");
}

.detail-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.detail-hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.detail-breadcrumb {
    margin-bottom: 2rem;
}

.detail-breadcrumb a,
.detail-breadcrumb span {
    color: rgba(255,255,255,0.8) !important;
}

.detail-breadcrumb a:hover {
    color: #fff !important;
}

/* 主图 */
.detail-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
}

.detail-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.detail-image-wrapper:hover img {
    transform: scale(1.03);
}

.detail-image-accent {
    position: absolute;
    inset: -2px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 22px;
    pointer-events: none;
}

.detail-image-badge {
    position: absolute;
    top: 1.5rem;
    left: -0.5rem;
    background: linear-gradient(135deg, #c9a227, #f4d03f);
    color: #1a1a1a;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(201,162,39,0.4);
}

/* 标题区域 */
.detail-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.detail-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f4d03f, #c9a227);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

/* 快速信息 */
.detail-quick-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.quick-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4d03f, #c9a227);
    border-radius: 10px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.quick-info-text {
    display: flex;
    flex-direction: column;
}

.quick-info-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-info-value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

/* 语音播放区域 */
.detail-audio-section {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.detail-audio-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1rem;
}

.detail-audio-title svg {
    color: #f4d03f;
}

.detail-audio-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.detail-audio-player {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-audio-player:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.detail-audio-player.playing {
    background: linear-gradient(135deg, #f4d03f, #c9a227);
    border-color: #f4d03f;
}

.detail-audio-player.playing .audio-type-label,
.detail-audio-player.playing .audio-wave span {
    color: #1a1a1a;
    background: #1a1a1a;
}

.audio-play-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    flex-shrink: 0;
}

.detail-audio-player.playing .audio-play-btn {
    background: #1a1a1a;
    color: #f4d03f;
}

.audio-play-btn svg {
    width: 14px;
    height: 14px;
}

.audio-type-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}

.audio-wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 16px;
}

.audio-wave span {
    width: 3px;
    height: 100%;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-wave span:nth-child(1) { animation-delay: 0s; }
.audio-wave span:nth-child(2) { animation-delay: 0.1s; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { animation-delay: 0.3s; }
.audio-wave span:nth-child(5) { animation-delay: 0.4s; }

.detail-audio-player.playing .audio-wave span {
    animation-play-state: running;
}

@keyframes audioWave {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

/* 无音频时的提示 */
.detail-audio-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius);
    border: 1px dashed var(--primary-lighter);
    gap: 0.5rem;
}

.detail-audio-empty .audio-empty-icon {
    color: var(--primary-lighter);
    margin-bottom: 0.25rem;
}

.detail-audio-empty p {
    color: var(--text-medium);
    font-weight: 500;
    margin: 0;
}

.detail-audio-empty .text-sm {
    font-size: 0.875rem;
    color: #999;
}

/* 内容区块 */
.detail-section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    color: white;
    box-shadow: 0 8px 20px rgba(46,125,50,0.3);
}

.section-title-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.detail-description {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-dark);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.detail-description p {
    margin: 0;
}

/* 信息卡片网格 */
.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-info-card-large {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
}

.detail-info-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.card-large-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(46,125,50,0.05), rgba(46,125,50,0.02));
}

.card-large-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.card-large-icon.efficacy {
    background: linear-gradient(135deg, #c9a227, #f4d03f);
}

.card-large-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.card-large-body {
    padding: 0 1.5rem 1.5rem;
}

.card-large-body p {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin: 0;
}

.card-large-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.detail-info-card-large:hover .card-large-decoration {
    height: 6px;
}

/* 相关推荐 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.related-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: block;
}

.related-card-image {
    position: absolute;
    inset: 0;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.1);
}

.related-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.related-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
}

.related-card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 响应式 */
@media (max-width: 1024px) {
    .detail-hero {
        padding: 1.5rem 0 5rem;
    }
    
    .detail-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .detail-hero {
        padding: 1rem 0 4rem;
    }
    
    .detail-hero .grid {
        grid-template-columns: 1fr;
    }
    
    .detail-title {
        font-size: 1.75rem;
    }
    
    .detail-quick-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .quick-info-item {
        flex: 1;
        min-width: 140px;
    }
    
    .detail-audio-players {
        flex-direction: column;
    }
    
    .detail-audio-player {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .detail-title {
        font-size: 1.5rem;
    }
    
    .detail-description {
        padding: 1.25rem;
        font-size: 0.95rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
