/*
Theme Name: 中医师承
Theme URI: https://example.com/tcm-inheritance
Author: TCM Development Team
Author URI: https://example.com
Description: 中医师承教育主题网站，传承千年中医智慧，弘扬国医文化。适用于中医学院、师承教育、养生会所等机构。深色木纹古风设计，典雅大气。
Version: 1.0.0
Tested up to: 6.4
Requires at least: 5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcm-inheritance
Tags: one-column, two-columns, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks

Traditional Chinese Medicine Inheritance Theme.
*/

/* ========================================
   中医师承主题 - 全局样式与变量
   ======================================== */

:root {
    /* 主色调 - 木纹深色系 */
    --tcm-primary: #8B4513;
    --tcm-primary-dark: #5D2E0C;
    --tcm-primary-light: #A0522D;
    
    /* 中医绿 - 草药色 */
    --tcm-accent: #2D5A27;
    --tcm-accent-light: #4A7C43;
    
    /* 金色点缀 - 古建筑色 */
    --tcm-gold: #C9A227;
    --tcm-gold-light: #E6C45C;
    
    /* 背景色 - 宣纸色 */
    --tcm-bg: #F5F0E6;
    --tcm-bg-dark: #E8E0D0;
    --tcm-bg-paper: #FDF8F0;
    
    /* 文字颜色 */
    --tcm-text: #2C2416;
    --tcm-text-light: #5A4D3A;
    --tcm-text-muted: #8B7355;
    
    /* 边框与分割线 */
    --tcm-border: #D4C4A8;
    --tcm-border-dark: #B8A888;
    
    /* 阴影 */
    --tcm-shadow: rgba(44, 36, 22, 0.15);
    --tcm-shadow-dark: rgba(44, 36, 22, 0.3);
    
    /* 字体 */
    --tcm-font-heading: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --tcm-font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 间距 */
    --tcm-spacing-xs: 0.5rem;
    --tcm-spacing-sm: 1rem;
    --tcm-spacing-md: 1.5rem;
    --tcm-spacing-lg: 2rem;
    --tcm-spacing-xl: 3rem;
    
    /* 圆角 */
    --tcm-radius-sm: 4px;
    --tcm-radius-md: 8px;
    --tcm-radius-lg: 12px;
}

/* ========================================
   基础重置与全局样式
   ======================================== */

/* 字体已通过header.php异步加载，不阻塞渲染 */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--tcm-font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--tcm-text);
    background-color: var(--tcm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 首页时body背景透明，让轮播图全屏显示 */
body.home {
    background-color: transparent !important;
}

/* 移除首页body的默认背景 */
body.custom-background.home {
    background-color: transparent !important;
    background-image: none !important;
}

/* 页面过渡动画 */
body.custom-background {
    background-color: var(--tcm-bg);
}

/* ========================================
   排版与标题
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tcm-font-heading);
    font-weight: 600;
    line-height: 1.4;
    color: var(--tcm-text);
    margin-top: 0;
    margin-bottom: var(--tcm-spacing-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: var(--tcm-spacing-sm);
}

a {
    color: var(--tcm-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:focus {
    color: var(--tcm-gold);
}

a:focus-visible {
    outline: 2px solid var(--tcm-gold);
    outline-offset: 2px;
}

blockquote {
    margin: var(--tcm-spacing-lg) 0;
    padding: var(--tcm-spacing-md) var(--tcm-spacing-lg);
    border-left: 4px solid var(--tcm-gold);
    background: linear-gradient(135deg, var(--tcm-bg-paper) 0%, var(--tcm-bg) 100%);
    font-style: italic;
    color: var(--tcm-text-light);
}

blockquote::before {
    content: '"';
    font-family: var(--tcm-font-heading);
    font-size: 3rem;
    color: var(--tcm-gold);
    opacity: 0.3;
    line-height: 1;
}

/* ========================================
   头部与导航
   ======================================== */

.tcm-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(44, 36, 22, 0.98) 0%, rgba(44, 36, 22, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--tcm-gold);
    transition: all 0.3s ease;
}

.tcm-header.scrolled {
    box-shadow: 0 4px 20px var(--tcm-shadow-dark);
}

.tcm-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--tcm-spacing-sm) var(--tcm-spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tcm-logo {
    display: flex;
    align-items: center;
    gap: var(--tcm-spacing-sm);
}

.tcm-logo img {
    height: 50px;
    width: auto;
}

.tcm-logo-text {
    font-family: var(--tcm-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tcm-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 主导航 */
.tcm-nav {
    display: flex;
    align-items: center;
    gap: var(--tcm-spacing-lg);
    position: relative;
    z-index: 1001;
}

.tcm-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--tcm-spacing-md);
}

.tcm-nav-menu li {
    position: relative;
}

.tcm-nav-menu a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: var(--tcm-spacing-xs) var(--tcm-spacing-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--tcm-bg);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--tcm-radius-sm);
    position: relative;
    z-index: 1002;
}

.tcm-nav-menu a:hover,
.tcm-nav-menu a.current-menu-item,
.tcm-nav-menu .current-menu-parent > a {
    color: var(--tcm-gold);
    background: rgba(201, 162, 39, 0.1);
}

/* 下拉菜单 */
.tcm-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: var(--tcm-spacing-sm) 0;
    background: linear-gradient(180deg, rgba(44, 36, 22, 0.98) 0%, rgba(62, 48, 32, 0.98) 100%);
    border: 1px solid var(--tcm-gold);
    border-top: none;
    border-radius: 0 0 var(--tcm-radius-md) var(--tcm-radius-md);
    box-shadow: 0 10px 30px var(--tcm-shadow-dark);
    list-style: none;
    z-index: 100;
}

.tcm-nav-menu li:hover > .sub-menu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.tcm-nav-menu .sub-menu li {
    position: relative;
}

.tcm-nav-menu .sub-menu li a {
    padding: var(--tcm-spacing-xs) var(--tcm-spacing-md);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

/* 子菜单箭头 */
.tcm-submenu-arrow {
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.tcm-nav-menu li:hover > a .tcm-submenu-arrow {
    transform: rotate(180deg);
}

/* 第3级菜单 */
.tcm-nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border: 1px solid var(--tcm-gold);
    border-radius: var(--tcm-radius-md);
    margin-left: -1px;
}

.tcm-nav-menu .sub-menu li:hover > .sub-menu {
    display: block;
    animation: fadeInLeft 0.3s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 子菜单中的箭头（水平方向） */
.tcm-nav-menu .sub-menu .tcm-submenu-arrow {
    transform: rotate(-90deg);
}

.tcm-nav-menu .sub-menu li:hover > a .tcm-submenu-arrow {
    transform: rotate(90deg);
}

.tcm-nav-menu .sub-menu li:last-child a {
    border-bottom: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端菜单按钮 */
/* 移动端菜单按钮 */
.tcm-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 2px solid var(--tcm-gold);
    border-radius: var(--tcm-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1003;
}

.tcm-menu-toggle:hover {
    background: rgba(201, 162, 39, 0.1);
}

.tcm-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--tcm-gold);
    transition: all 0.3s ease;
}

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

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

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

/* 头部CTA按钮 */
.tcm-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--tcm-gold) 0%, var(--tcm-gold-light) 100%);
    color: var(--tcm-primary-dark);
    font-weight: 600;
    border-radius: var(--tcm-radius-md);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.tcm-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
    color: var(--tcm-primary-dark);
}

/* ========================================
   英雄区域 - 首页大图轮播
   ======================================== */

/* 英雄区域 - 强制移除所有遮罩 */
.tcm-hero {
    position: relative !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent !important;
    z-index: 1;
}

.tcm-hero-slider {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
}

.tcm-hero-slide {
    position: absolute !important;
    inset: 0 !important;
    opacity: 0;
    transition: opacity 1.5s ease;
    z-index: 2;
}

.tcm-hero-slide.active {
    opacity: 1 !important;
    z-index: 3;
}

.tcm-hero-slide::before {
    display: none !important;
}

.tcm-hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.tcm-hero-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2001 !important;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--tcm-spacing-xl);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 100%;
}

.tcm-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    margin-bottom: var(--tcm-spacing-md);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    font-size: 0.9rem;
    color: #fff;
}

.tcm-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: var(--tcm-spacing-md);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.tcm-hero-title span {
    color: var(--tcm-gold) !important;
}

.tcm-hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--tcm-spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tcm-hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--tcm-spacing-md);
    flex-wrap: wrap;
}

.tcm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--tcm-radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.tcm-btn-primary {
    background: linear-gradient(135deg, var(--tcm-gold) 0%, var(--tcm-gold-light) 100%);
    color: var(--tcm-primary-dark);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
}

.tcm-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
    color: var(--tcm-primary-dark);
}

.tcm-btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.tcm-btn-secondary:hover {
    background: var(--tcm-bg);
    color: var(--tcm-primary-dark);
}

/* 轮播指示器 */
.tcm-hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    display: flex;
    gap: 12px;
}

.tcm-hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(245, 240, 230, 0.4);
    border: 2px solid var(--tcm-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcm-hero-indicator.active {
    background: var(--tcm-gold);
    transform: scale(1.2);
}

/* 向下滚动箭头 */
.tcm-hero-scroll {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    z-index: 3;
    animation: bounce 2s infinite;
}

.tcm-hero-scroll svg {
    width: 30px;
    height: 30px;
    color: var(--tcm-gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   装饰性古风边框
   ======================================== */

.tcm-decorative-border {
    position: relative;
    padding: var(--tcm-spacing-md);
}

.tcm-decorative-border::before,
.tcm-decorative-border::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tcm-gold), transparent);
}

.tcm-decorative-border::before {
    top: 0;
}

.tcm-decorative-border::after {
    bottom: 0;
}

/* ========================================
   内容容器
   ======================================== */

.tcm-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--tcm-spacing-lg);
}

.tcm-section {
    padding: var(--tcm-spacing-xl) 0;
}

.tcm-section-dark {
    background: linear-gradient(180deg, var(--tcm-primary-dark) 0%, var(--tcm-primary) 100%);
    color: var(--tcm-bg);
}

.tcm-section-pattern {
    position: relative;
    background: var(--tcm-bg);
}

.tcm-section-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 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='%238B4513' 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");
    pointer-events: none;
}

/* ========================================
   标题区块
   ======================================== */

.tcm-section-header {
    text-align: center;
    margin-bottom: var(--tcm-spacing-xl);
}

.tcm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 20px;
    margin-bottom: var(--tcm-spacing-sm);
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--tcm-gold);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--tcm-gold);
}

.tcm-section-title {
    font-size: 2.5rem;
    margin-bottom: var(--tcm-spacing-sm);
    position: relative;
}

.tcm-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: var(--tcm-spacing-sm) auto 0;
    background: linear-gradient(90deg, var(--tcm-gold), var(--tcm-primary));
    border-radius: 2px;
}

.tcm-section-subtitle {
    font-size: 1.1rem;
    color: var(--tcm-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   特色服务卡片
   ======================================== */

.tcm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--tcm-spacing-lg);
}

.tcm-feature-card {
    position: relative;
    padding: var(--tcm-spacing-lg);
    background: var(--tcm-bg-paper);
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-lg);
    transition: all 0.4s ease;
    overflow: hidden;
}

.tcm-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--tcm-gold), var(--tcm-primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tcm-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--tcm-shadow);
    border-color: var(--tcm-gold);
}

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

.tcm-feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--tcm-spacing-md);
    background: linear-gradient(135deg, var(--tcm-primary) 0%, var(--tcm-primary-light) 100%);
    border-radius: var(--tcm-radius-md);
    color: var(--tcm-bg);
    font-size: 2rem;
}

.tcm-feature-icon svg {
    width: 36px;
    height: 36px;
}

.tcm-feature-title {
    font-size: 1.3rem;
    margin-bottom: var(--tcm-spacing-sm);
}

.tcm-feature-description {
    color: var(--tcm-text-light);
    margin-bottom: 0;
}

/* ========================================
   名师介绍卡片
   ======================================== */

.tcm-teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--tcm-spacing-lg);
}

.tcm-teacher-card {
    position: relative;
    background: var(--tcm-bg-paper);
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--tcm-shadow);
    transition: all 0.4s ease;
}

.tcm-teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--tcm-shadow-dark);
}

.tcm-teacher-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

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

.tcm-teacher-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 36, 22, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: var(--tcm-spacing-md);
}

.tcm-teacher-card:hover .tcm-teacher-overlay {
    opacity: 1;
}

.tcm-teacher-specialty {
    padding: 6px 16px;
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.tcm-teacher-content {
    padding: var(--tcm-spacing-lg);
}

.tcm-teacher-name {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.tcm-teacher-title {
    color: var(--tcm-primary);
    font-weight: 500;
    margin-bottom: var(--tcm-spacing-sm);
}

.tcm-teacher-bio {
    color: var(--tcm-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tcm-teacher-tag {
    padding: 4px 12px;
    background: var(--tcm-bg);
    border: 1px solid var(--tcm-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--tcm-text-muted);
}

/* ========================================
   师承项目
   ======================================== */

.tcm-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--tcm-spacing-lg);
}

.tcm-project-card {
    position: relative;
    background: var(--tcm-bg-paper);
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
}

.tcm-project-card:hover {
    border-color: var(--tcm-gold);
    box-shadow: 0 15px 40px var(--tcm-shadow);
}

.tcm-project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.tcm-project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.tcm-project-content {
    padding: var(--tcm-spacing-lg);
}

.tcm-project-category {
    color: var(--tcm-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tcm-project-title {
    font-size: 1.3rem;
    margin-bottom: var(--tcm-spacing-sm);
    transition: color 0.3s ease;
}

.tcm-project-card:hover .tcm-project-title {
    color: var(--tcm-gold);
}

.tcm-project-excerpt {
    color: var(--tcm-text-light);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--tcm-spacing-sm);
    border-top: 1px solid var(--tcm-border);
    font-size: 0.85rem;
    color: var(--tcm-text-muted);
}

.tcm-project-price {
    color: var(--tcm-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========================================
   课程学习
   ======================================== */

.tcm-courses-tabs {
    display: flex;
    justify-content: center;
    gap: var(--tcm-spacing-sm);
    margin-bottom: var(--tcm-spacing-xl);
    flex-wrap: wrap;
}

.tcm-course-tab {
    padding: 12px 28px;
    background: var(--tcm-bg-paper);
    border: 2px solid var(--tcm-border);
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcm-course-tab:hover,
.tcm-course-tab.active {
    background: var(--tcm-primary);
    border-color: var(--tcm-primary);
    color: var(--tcm-bg);
}

.tcm-courses-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--tcm-spacing-lg);
}

.tcm-course-card {
    background: var(--tcm-bg-paper);
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 25px var(--tcm-shadow);
    transition: all 0.4s ease;
}

.tcm-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--tcm-shadow-dark);
}

.tcm-course-header {
    position: relative;
    height: 200px;
}

.tcm-course-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcm-course-level {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--tcm-accent);
    color: var(--tcm-bg);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.tcm-course-duration {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(44, 36, 22, 0.85);
    color: var(--tcm-bg);
    font-size: 0.8rem;
    border-radius: 20px;
}

.tcm-course-body {
    padding: var(--tcm-spacing-lg);
}

.tcm-course-category {
    color: var(--tcm-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tcm-course-title {
    font-size: 1.25rem;
    margin-bottom: var(--tcm-spacing-sm);
}

.tcm-course-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tcm-spacing-md);
    margin-bottom: var(--tcm-spacing-md);
    color: var(--tcm-text-muted);
    font-size: 0.9rem;
}

.tcm-course-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tcm-course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--tcm-spacing-md);
    border-top: 1px solid var(--tcm-border);
}

.tcm-course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tcm-primary);
}

.tcm-course-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--tcm-text-muted);
}

/* ========================================
   统计数据
   ======================================== */

.tcm-stats {
    background: linear-gradient(135deg, var(--tcm-primary-dark) 0%, var(--tcm-primary) 100%);
    padding: var(--tcm-spacing-xl) 0;
}

.tcm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--tcm-spacing-lg);
}

.tcm-stat-item {
    text-align: center;
    padding: var(--tcm-spacing-lg);
}

.tcm-stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--tcm-gold);
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--tcm-font-heading);
}

.tcm-stat-label {
    color: rgba(245, 240, 230, 0.8);
    font-size: 1.1rem;
}

/* ========================================
   最新资讯/博客
   ======================================== */

.tcm-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--tcm-spacing-lg);
}

.tcm-news-card {
    background: var(--tcm-bg-paper);
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 25px var(--tcm-shadow);
    transition: all 0.4s ease;
}

.tcm-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--tcm-shadow-dark);
}

.tcm-news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.tcm-news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--tcm-primary);
    color: var(--tcm-bg);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
}

.tcm-news-content {
    padding: var(--tcm-spacing-lg);
}

.tcm-news-date {
    color: var(--tcm-text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.tcm-news-title {
    font-size: 1.25rem;
    margin-bottom: var(--tcm-spacing-sm);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.tcm-news-card:hover .tcm-news-title {
    color: var(--tcm-gold);
}

.tcm-news-excerpt {
    color: var(--tcm-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--tcm-spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tcm-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tcm-news-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--tcm-text-muted);
}

.tcm-news-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.tcm-news-readmore {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--tcm-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.tcm-news-readmore svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.tcm-news-card:hover .tcm-news-readmore svg {
    transform: translateX(4px);
}

/* ========================================
   学员评价
   ======================================== */

.tcm-testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.tcm-testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.tcm-testimonial-item {
    flex: 0 0 100%;
    padding: var(--tcm-spacing-lg);
}

.tcm-testimonial-content {
    position: relative;
    background: var(--tcm-bg-paper);
    padding: var(--tcm-spacing-xl);
    border-radius: var(--tcm-radius-lg);
    box-shadow: 0 10px 40px var(--tcm-shadow);
    text-align: center;
}

.tcm-testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 5rem;
    font-family: var(--tcm-font-heading);
    color: var(--tcm-gold);
    opacity: 0.2;
    line-height: 1;
}

.tcm-testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--tcm-text-light);
    margin-bottom: var(--tcm-spacing-lg);
    line-height: 1.8;
}

.tcm-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tcm-spacing-md);
}

.tcm-testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--tcm-gold);
}

.tcm-testimonial-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.tcm-testimonial-info span {
    color: var(--tcm-text-muted);
    font-size: 0.9rem;
}

.tcm-testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    color: var(--tcm-gold);
}

/* ========================================
   图片画廊
   ======================================== */

.tcm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--tcm-spacing-md);
}

.tcm-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--tcm-radius-md);
    overflow: hidden;
    cursor: pointer;
}

.tcm-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tcm-gallery-item:hover img {
    transform: scale(1.15);
}

.tcm-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(44, 36, 22, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--tcm-spacing-md);
}

.tcm-gallery-item:hover .tcm-gallery-overlay {
    opacity: 1;
}

.tcm-gallery-caption {
    color: var(--tcm-bg);
    font-size: 0.95rem;
    text-align: center;
}

/* ========================================
   视频展示
   ======================================== */

.tcm-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--tcm-spacing-lg);
}

.tcm-video-item {
    background: var(--tcm-bg-paper);
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--tcm-shadow);
}

.tcm-video-player {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
}

.tcm-video-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tcm-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(201, 162, 39, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.tcm-video-play-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--tcm-gold);
    animation: pulse 2s infinite;
}

.tcm-video-play-btn svg {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    color: var(--tcm-primary-dark);
    margin-left: 4px;
}

.tcm-video-item:hover .tcm-video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.tcm-video-info {
    padding: var(--tcm-spacing-lg);
}

.tcm-video-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tcm-video-meta {
    color: var(--tcm-text-muted);
    font-size: 0.9rem;
}

/* ========================================
   在线预约咨询
   ======================================== */

.tcm-booking-section {
    background: linear-gradient(135deg, var(--tcm-primary-dark) 0%, var(--tcm-primary) 50%, var(--tcm-primary-light) 100%);
    padding: var(--tcm-spacing-xl) 0;
}

.tcm-booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--tcm-spacing-xl);
    align-items: center;
}

.tcm-booking-info {
    color: var(--tcm-bg);
}

.tcm-booking-info h2 {
    font-size: 2.5rem;
    color: var(--tcm-bg);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-booking-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--tcm-spacing-lg);
}

.tcm-booking-contact {
    display: flex;
    flex-direction: column;
    gap: var(--tcm-spacing-md);
}

.tcm-booking-contact-item {
    display: flex;
    align-items: center;
    gap: var(--tcm-spacing-sm);
    padding: var(--tcm-spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--tcm-radius-md);
    backdrop-filter: blur(5px);
}

.tcm-booking-contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-gold);
    border-radius: 50%;
    color: var(--tcm-primary-dark);
}

.tcm-booking-contact-text h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--tcm-gold);
}

.tcm-booking-contact-text p {
    margin: 0;
    font-size: 1.1rem;
}

.tcm-booking-form {
    background: var(--tcm-bg-paper);
    padding: var(--tcm-spacing-xl);
    border-radius: var(--tcm-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tcm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tcm-spacing-md);
}

.tcm-form-group {
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--tcm-text);
}

.tcm-form-group input,
.tcm-form-group select,
.tcm-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--tcm-bg);
    color: var(--tcm-text);
    transition: all 0.3s ease;
}

.tcm-form-group input:focus,
.tcm-form-group select:focus,
.tcm-form-group textarea:focus {
    outline: none;
    border-color: var(--tcm-gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.tcm-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.tcm-form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--tcm-gold) 0%, var(--tcm-gold-light) 100%);
    border: none;
    border-radius: var(--tcm-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tcm-primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.tcm-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

/* ========================================
   联系我们
   ======================================== */

.tcm-contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--tcm-spacing-xl);
}

.tcm-contact-info {
    background: linear-gradient(135deg, var(--tcm-primary-dark) 0%, var(--tcm-primary) 100%);
    padding: var(--tcm-spacing-xl);
    border-radius: var(--tcm-radius-lg);
    color: var(--tcm-bg);
}

.tcm-contact-info h3 {
    font-size: 1.8rem;
    color: var(--tcm-bg);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-contact-info p {
    opacity: 0.9;
    margin-bottom: var(--tcm-spacing-lg);
}

.tcm-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcm-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--tcm-spacing-sm);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-contact-list-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.2);
    border-radius: 50%;
    color: var(--tcm-gold);
    flex-shrink: 0;
}

.tcm-contact-list-text h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--tcm-gold);
}

.tcm-contact-list-text p {
    margin: 0;
    font-size: 1rem;
}

.tcm-contact-social {
    display: flex;
    gap: var(--tcm-spacing-sm);
    margin-top: var(--tcm-spacing-lg);
}

.tcm-contact-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--tcm-bg);
    transition: all 0.3s ease;
}

.tcm-contact-social a:hover {
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
}

.tcm-contact-map {
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.tcm-contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   关于我们页面
   ======================================== */

.tcm-about-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--tcm-primary-dark) 0%, var(--tcm-primary) 100%);
    overflow: hidden;
}

.tcm-about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0 L100 50 L50 100 L0 50Z' fill='none' stroke='%23C9A227' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 50px 50px;
}

.tcm-about-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--tcm-spacing-xl);
    text-align: center;
    color: var(--tcm-bg);
}

.tcm-about-hero h1 {
    font-size: 3rem;
    color: var(--tcm-bg);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-about-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.tcm-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tcm-spacing-xl);
    align-items: center;
}

.tcm-about-image {
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px var(--tcm-shadow-dark);
}

.tcm-about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.tcm-about-text h2 {
    font-size: 2rem;
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-about-text p {
    color: var(--tcm-text-light);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tcm-spacing-md);
    margin-top: var(--tcm-spacing-lg);
}

.tcm-about-value {
    display: flex;
    align-items: center;
    gap: var(--tcm-spacing-sm);
    padding: var(--tcm-spacing-sm);
    background: var(--tcm-bg);
    border-radius: var(--tcm-radius-md);
}

.tcm-about-value-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-primary);
    border-radius: 50%;
    color: var(--tcm-bg);
    flex-shrink: 0;
}

.tcm-about-value h4 {
    margin: 0;
    font-size: 1rem;
}

/* ========================================
   分页导航
   ======================================== */

.tcm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--tcm-spacing-xs);
    margin-top: var(--tcm-spacing-xl);
}

.tcm-pagination a,
.tcm-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--tcm-spacing-sm);
    background: var(--tcm-bg-paper);
    border: 2px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    color: var(--tcm-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tcm-pagination a:hover,
.tcm-pagination .current {
    background: var(--tcm-primary);
    border-color: var(--tcm-primary);
    color: var(--tcm-bg);
}

.tcm-pagination .dots {
    border: none;
    background: transparent;
}

/* ========================================
   侧边栏
   ======================================== */

.tcm-sidebar {
    position: sticky;
    top: 100px;
}

.tcm-widget {
    background: var(--tcm-bg-paper);
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-lg);
    padding: var(--tcm-spacing-lg);
    margin-bottom: var(--tcm-spacing-lg);
}

.tcm-widget-title {
    font-size: 1.2rem;
    margin-bottom: var(--tcm-spacing-md);
    padding-bottom: var(--tcm-spacing-sm);
    border-bottom: 2px solid var(--tcm-gold);
}

.tcm-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcm-widget ul li {
    margin-bottom: var(--tcm-spacing-sm);
    padding-bottom: var(--tcm-spacing-sm);
    border-bottom: 1px solid var(--tcm-border);
}

.tcm-widget ul li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 搜索小部件 */
.tcm-search-form {
    display: flex;
    gap: var(--tcm-spacing-xs);
}

.tcm-search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    font-size: 1rem;
}

.tcm-search-form button {
    padding: 12px 20px;
    background: var(--tcm-primary);
    border: none;
    border-radius: var(--tcm-radius-md);
    color: var(--tcm-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcm-search-form button:hover {
    background: var(--tcm-primary-dark);
}

/* ========================================
   文章内容样式
   ======================================== */

.tcm-article {
    background: var(--tcm-bg-paper);
    border-radius: var(--tcm-radius-lg);
    padding: var(--tcm-spacing-xl);
    box-shadow: 0 10px 30px var(--tcm-shadow);
}

.tcm-article-header {
    text-align: center;
    margin-bottom: var(--tcm-spacing-xl);
    padding-bottom: var(--tcm-spacing-lg);
    border-bottom: 1px solid var(--tcm-border);
}

.tcm-article-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--tcm-primary);
    color: var(--tcm-bg);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-article-title {
    font-size: 2.2rem;
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-article-meta {
    color: var(--tcm-text-muted);
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    gap: var(--tcm-spacing-lg);
}

.tcm-article-featured-image {
    margin: 0 calc(-1 * var(--tcm-spacing-xl));
    margin-bottom: var(--tcm-spacing-xl);
}

.tcm-article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--tcm-radius-lg);
}

.tcm-article-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.tcm-article-content h2,
.tcm-article-content h3,
.tcm-article-content h4 {
    margin-top: var(--tcm-spacing-xl);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--tcm-radius-md);
    margin: var(--tcm-spacing-lg) 0;
}

.tcm-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tcm-spacing-sm);
    margin-top: var(--tcm-spacing-xl);
    padding-top: var(--tcm-spacing-lg);
    border-top: 1px solid var(--tcm-border);
}

.tcm-article-tag {
    padding: 6px 14px;
    background: var(--tcm-bg);
    border: 1px solid var(--tcm-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--tcm-text-muted);
}

/* ========================================
   页脚
   ======================================== */

.tcm-footer {
    background: linear-gradient(180deg, var(--tcm-primary-dark) 0%, #1a1008 100%);
    color: var(--tcm-bg);
    padding-top: var(--tcm-spacing-xl);
}

.tcm-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--tcm-spacing-xl);
    padding-bottom: var(--tcm-spacing-xl);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.tcm-footer-brand {
    max-width: 350px;
}

.tcm-footer-logo {
    display: flex;
    align-items: center;
    gap: var(--tcm-spacing-sm);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-footer-logo img {
    height: 45px;
}

.tcm-footer-logo span {
    font-family: var(--tcm-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tcm-gold);
}

.tcm-footer-brand p {
    color: rgba(245, 240, 230, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

.tcm-footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tcm-gold);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tcm-footer-links li {
    margin-bottom: var(--tcm-spacing-sm);
}

.tcm-footer-links a {
    color: rgba(245, 240, 230, 0.7);
    transition: all 0.3s ease;
}

.tcm-footer-links a:hover {
    color: var(--tcm-gold);
    padding-left: 5px;
}

.tcm-footer-newsletter {
    background: rgba(201, 162, 39, 0.1);
    padding: var(--tcm-spacing-md);
    border-radius: var(--tcm-radius-md);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.tcm-footer-newsletter p {
    color: rgba(245, 240, 230, 0.8);
    font-size: 0.9rem;
    margin-bottom: var(--tcm-spacing-sm);
}

.tcm-newsletter-form {
    display: flex;
    gap: var(--tcm-spacing-xs);
}

.tcm-newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: var(--tcm-radius-md);
    background: rgba(255, 255, 255, 0.1);
    color: var(--tcm-bg);
}

.tcm-newsletter-form input::placeholder {
    color: rgba(245, 240, 230, 0.5);
}

.tcm-newsletter-form button {
    padding: 10px 18px;
    background: var(--tcm-gold);
    border: none;
    border-radius: var(--tcm-radius-md);
    color: var(--tcm-primary-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tcm-newsletter-form button:hover {
    background: var(--tcm-gold-light);
}

.tcm-footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--tcm-spacing-sm);
    margin-bottom: var(--tcm-spacing-sm);
    color: rgba(245, 240, 230, 0.7);
    font-size: 0.95rem;
}

.tcm-footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--tcm-gold);
    flex-shrink: 0;
}

.tcm-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--tcm-spacing-lg) 0;
}

.tcm-footer-copyright {
    color: rgba(245, 240, 230, 0.5);
    font-size: 0.9rem;
}

.tcm-footer-social {
    display: flex;
    gap: var(--tcm-spacing-sm);
}

.tcm-footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--tcm-bg);
    transition: all 0.3s ease;
}

.tcm-footer-social a:hover {
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
}

/* ========================================
   面包屑导航
   ======================================== */

.tcm-breadcrumb {
    padding: var(--tcm-spacing-md) 0;
    background: var(--tcm-bg-dark);
}

.tcm-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: var(--tcm-spacing-sm);
    font-size: 0.9rem;
    color: var(--tcm-text-muted);
}

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

.tcm-breadcrumb span {
    color: var(--tcm-text-muted);
}

.tcm-breadcrumb-current {
    color: var(--tcm-text);
}

/* ========================================
   返回顶部
   ======================================== */

.tcm-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-primary);
    border: 2px solid var(--tcm-gold);
    border-radius: 50%;
    color: var(--tcm-bg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.tcm-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.tcm-back-to-top:hover {
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
    transform: translateY(-5px);
}

/* ========================================
   页面加载动画
   ======================================== */

.tcm-loader {
    position: fixed;
    inset: 0;
    background: var(--tcm-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

/* ========================================
   页面加载动画
   ======================================== */
.tcm-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-primary-dark);
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.tcm-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tcm-loader-content {
    text-align: center;
}

.tcm-loader-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--tcm-spacing-md);
    animation: rotate 2s linear infinite;
}

.tcm-loader-icon svg {
    width: 100%;
    height: 100%;
    color: var(--tcm-gold);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   工具类
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--tcm-spacing-xs); }
.mt-2 { margin-top: var(--tcm-spacing-sm); }
.mt-3 { margin-top: var(--tcm-spacing-md); }
.mt-4 { margin-top: var(--tcm-spacing-lg); }
.mt-5 { margin-top: var(--tcm-spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--tcm-spacing-xs); }
.mb-2 { margin-bottom: var(--tcm-spacing-sm); }
.mb-3 { margin-bottom: var(--tcm-spacing-md); }
.mb-4 { margin-bottom: var(--tcm-spacing-lg); }
.mb-5 { margin-bottom: var(--tcm-spacing-xl); }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .tcm-footer-top {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tcm-booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .tcm-contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .tcm-hero-title {
        font-size: 2.5rem;
    }
    
    .tcm-hero-description {
        font-size: 1.1rem;
    }
    
    .tcm-about-content {
        grid-template-columns: 1fr;
    }
    
    .tcm-form-row {
        grid-template-columns: 1fr;
    }
    
    .tcm-video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --tcm-spacing-lg: 1.5rem;
        --tcm-spacing-xl: 2rem;
    }
    
    /* 移动端导航菜单 - 修复显示问题 */
    .tcm-nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--tcm-primary-dark);
        padding: var(--tcm-spacing-md);
        flex-direction: column;
        border-top: 2px solid var(--tcm-gold);
        overflow-y: auto;
        z-index: 999;
        max-height: calc(100vh - 80px);
    }
    
    .tcm-nav-menu.active {
        display: flex;
    }
    
    .tcm-nav-menu li {
        border-bottom: 1px solid rgba(201, 162, 39, 0.2);
        width: 100%;
    }
    
    .tcm-nav-menu li a {
        padding: 15px 10px;
        width: 100%;
        display: block;
    }
    
    .tcm-nav-menu .sub-menu {
        position: static;
        background: transparent;
        border: none;
        padding-left: var(--tcm-spacing-md);
        max-height: none;
        overflow: visible;
    }
    
    .tcm-nav-menu .sub-menu a {
        color: rgba(245, 240, 230, 0.8);
        padding: 12px 10px;
    }
    
    .tcm-menu-toggle {
        display: flex;
    }
    
    .tcm-header-cta {
        display: none;
    }
    
    /* 修复 header 在移动端的 z-index */
    .tcm-header {
        z-index: 1001;
    }
    
    .tcm-hero {
        min-height: 80vh;
    }
    
    .tcm-hero-title {
        font-size: 2rem;
    }
    
    .tcm-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tcm-section {
        padding: var(--tcm-spacing-lg) 0;
    }
    
    /* 移动端双列显示 - 所有卡片网格 */
    .tcm-news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--tcm-spacing-sm) !important;
    }
    
    .tcm-news-card {
        margin-bottom: 0;
    }
    
    .tcm-news-image {
        height: 120px;
    }
    
    .tcm-news-content {
        padding: var(--tcm-spacing-sm);
    }
    
    .tcm-news-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .tcm-news-excerpt {
        display: none;
    }
    
    .tcm-news-footer {
        display: none;
    }
    
    /* 精选课程双列显示 */
    .tcm-courses-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--tcm-spacing-sm) !important;
    }
    
    .tcm-course-card {
        margin-bottom: 0;
    }
    
    .tcm-course-header {
        height: 80px;
    }
    
    .tcm-course-body {
        padding: var(--tcm-spacing-sm);
    }
    
    .tcm-course-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .tcm-course-info,
    .tcm-course-footer {
        display: none;
    }
    
    /* 名师团队双列显示 */
    .tcm-teachers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--tcm-spacing-sm) !important;
    }
    
    .tcm-teacher-card {
        margin-bottom: 0;
    }
    
    /* 师承项目双列显示 */
    .tcm-projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--tcm-spacing-sm) !important;
    }
    
    .tcm-project-card {
        margin-bottom: 0;
    }
    
    /* 为什么选择我们双列显示 */
    .tcm-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--tcm-spacing-sm) !important;
    }
    
    .tcm-feature-card {
        margin-bottom: 0;
    }
    
    /* 学员评价双列显示 */
    .tcm-testimonials-slider {
        overflow: hidden;
    }
    
    .tcm-testimonial-track {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--tcm-spacing-sm) !important;
    }
    
    .tcm-testimonial-item {
        transform: none !important;
    }
    
    .tcm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tcm-stat-number {
        font-size: 2.5rem;
    }
    
    .tcm-footer-top {
        grid-template-columns: 1fr;
    }
    
    .tcm-footer-bottom {
        flex-direction: column;
        gap: var(--tcm-spacing-md);
        text-align: center;
    }
    
    .tcm-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .tcm-container {
        padding: 0 var(--tcm-spacing-sm);
    }
    
    .tcm-feature-card,
    .tcm-teacher-card,
    .tcm-project-card,
    .tcm-course-card,
    .tcm-news-card {
        margin-bottom: var(--tcm-spacing-md);
    }
    
    .tcm-about-values {
        grid-template-columns: 1fr;
    }
    
    .tcm-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tcm-article {
        padding: var(--tcm-spacing-md);
    }
    
    .tcm-article-title {
        font-size: 1.75rem;
    }
}

/* ========================================
   打印样式
   ======================================== */

@media print {
    .tcm-header,
    .tcm-footer,
    .tcm-sidebar,
    .tcm-back-to-top,
    .tcm-pagination {
        display: none !important;
    }
    
    .tcm-article {
        box-shadow: none;
    }
}

/* ========================================
   右侧悬浮联系导航
   ======================================== */

.tcm-floating-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: var(--tcm-font-heading);
}

.tcm-floating-contact-inner {
    position: relative;
}

.tcm-floating-toggle {
    width: 50px;
    height: 50px;
    background: var(--tcm-primary);
    border: 2px solid var(--tcm-gold);
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--tcm-gold);
}

.tcm-floating-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.tcm-floating-toggle:hover {
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
}

.tcm-floating-toggle.active .tcm-floating-icon-open {
    display: none;
}

.tcm-floating-toggle.active .tcm-floating-icon-close {
    display: block !important;
}

.tcm-floating-options {
    position: absolute;
    right: 50px;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.tcm-floating-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.tcm-floating-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--tcm-primary);
    border: 2px solid var(--tcm-gold);
    border-radius: 8px;
    color: var(--tcm-bg);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 180px;
}

.tcm-floating-item:hover {
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
    transform: translateX(-5px);
}

.tcm-floating-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.tcm-floating-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.tcm-floating-value {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: auto;
}

.tcm-floating-phone:hover .tcm-floating-value,
.tcm-floating-wechat:hover .tcm-floating-value,
.tcm-floating-qrcode:hover .tcm-floating-value {
    opacity: 1;
}

.tcm-floating-top {
    background: rgba(201, 162, 39, 0.9);
    color: var(--tcm-primary-dark);
}

.tcm-floating-top:hover {
    background: var(--tcm-gold);
}

/* 模态弹窗 */
.tcm-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tcm-modal.tcm-modal-visible {
    opacity: 1;
    visibility: visible;
}

.tcm-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.tcm-modal-content {
    position: relative;
    background: var(--tcm-bg);
    border-radius: var(--tcm-radius-lg);
    padding: var(--tcm-spacing-xl);
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--tcm-gold);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tcm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--tcm-bg-dark);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--tcm-text);
}

.tcm-modal-close:hover {
    background: var(--tcm-primary);
    color: var(--tcm-gold);
}

.tcm-modal-close svg {
    width: 20px;
    height: 20px;
}

.tcm-modal-body {
    text-align: center;
}

.tcm-modal-body h3 {
    font-size: 1.3rem;
    color: var(--tcm-primary);
    margin-bottom: var(--tcm-spacing-md);
}

.tcm-modal-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--tcm-spacing-md);
    background: var(--tcm-bg);
    border-radius: var(--tcm-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tcm-border);
}

.tcm-modal-qrcode img {
    max-width: 100%;
    max-height: 100%;
}

.tcm-modal-wechat-id {
    padding: 10px 20px;
    background: var(--tcm-bg-dark);
    border-radius: var(--tcm-radius-md);
    font-size: 1.1rem;
    color: var(--tcm-primary);
    font-weight: 600;
    display: inline-block;
}

.tcm-modal-body .tcm-modal-wechat,
.tcm-modal-body .tcm-modal-qrcode-section {
    margin-bottom: var(--tcm-spacing-xl);
}

.tcm-modal-body .tcm-modal-qrcode-section:last-child {
    margin-bottom: 0;
}

/* 响应式 - 移动端悬浮导航 */
@media (max-width: 768px) {
    .tcm-floating-contact {
        right: 10px;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .tcm-floating-toggle {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid var(--tcm-gold);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    .tcm-floating-options {
        position: fixed;
        right: 10px;
        bottom: 80px;
        top: auto;
        transform: translateY(10px);
    }
    
    .tcm-floating-options.active {
        transform: translateY(0);
    }
    
    .tcm-floating-item {
        min-width: auto;
        padding: 12px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .tcm-floating-label,
    .tcm-floating-value {
        display: none;
    }
    
    .tcm-modal-content {
        padding: var(--tcm-spacing-lg);
    }
}

/* ========================================
   英雄区域箭头样式
   ======================================== */

.tcm-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    z-index: 2001;
    opacity: 0.7;
}

.tcm-hero:hover .tcm-hero-arrow {
    opacity: 1;
}

.tcm-hero-arrow:hover {
    background: var(--tcm-gold);
    border-color: var(--tcm-gold);
    color: var(--tcm-primary-dark);
}

.tcm-hero-arrow svg {
    width: 24px;
    height: 24px;
}

.tcm-hero-arrow-prev {
    left: 30px;
}

.tcm-hero-arrow-next {
    right: 30px;
}

@media (max-width: 768px) {
    .tcm-hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .tcm-hero-arrow-prev {
        left: 15px;
    }
    
    .tcm-hero-arrow-next {
        right: 15px;
    }
}

/* ========================================
   文章详情页 - 分类导航（两行式，可交互）
   ======================================== */

.tcm-article-categories {
    background: var(--tcm-bg-paper);
    border-bottom: 1px solid var(--tcm-border);
    padding: 14px 0;
    margin-top: 80px;
}

.tcm-cat-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tcm-cat-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--tcm-radius-lg);
}

.tcm-cat-label {
    font-size: 1rem;
    color: var(--tcm-text);
    font-weight: 600;
    flex-shrink: 0;
    margin-right: 4px;
}

.tcm-cat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--tcm-bg);
    color: var(--tcm-text);
    border: 2px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
}

.tcm-cat-item:hover {
    background: var(--tcm-bg-dark);
    border-color: var(--tcm-gold);
    color: var(--tcm-gold);
}

.tcm-cat-item.active {
    background: linear-gradient(135deg, var(--tcm-gold) 0%, var(--tcm-gold-light) 100%);
    border-color: var(--tcm-gold);
    color: var(--tcm-primary-dark);
    font-weight: 600;
}

.tcm-cat-arrow {
    margin-left: 2px;
    transition: transform 0.2s;
}

.tcm-cat-item.has-child:hover .tcm-cat-arrow,
.tcm-cat-item.has-child.active .tcm-cat-arrow {
    transform: rotate(180deg);
}

.tcm-cat-subs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.7);
    border-radius: var(--tcm-radius-lg);
    border: 1px solid var(--tcm-border);
}

.tcm-cat-sub {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--tcm-radius-md);
    background: rgba(255,255,255,0.5);
}

.tcm-cat-sub-label {
    font-size: 0.85rem;
    color: var(--tcm-text-muted);
    flex-shrink: 0;
    font-weight: 600;
    min-width: 70px;
}

.tcm-cat-sub-item {
    padding: 8px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 20px;
    margin: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0.9;
    min-width: auto;
}

/* 子分类符号样式 - 确保有文字间隔 */
.tcm-cat-symbol {
    margin-right: 10px;
    font-size: 0.85em;
    opacity: 0.85;
}

.tcm-cat-sub-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.tcm-cat-sub-item.all {
    background: var(--tcm-primary);
    color: #fff;
    font-weight: 500;
}

.tcm-cat-sub-item.all:hover {
    background: var(--tcm-primary-dark);
}

/* 不同颜色的子分类标签 */
.tcm-cat-sub-item.bg-blue {
    background: #3498db;
}
.tcm-cat-sub-item.bg-blue:hover {
    background: #2980b9;
}

.tcm-cat-sub-item.bg-green {
    background: #27ae60;
}
.tcm-cat-sub-item.bg-green:hover {
    background: #229954;
}

.tcm-cat-sub-item.bg-orange {
    background: #e67e22;
}
.tcm-cat-sub-item.bg-orange:hover {
    background: #d35400;
}

.tcm-cat-sub-item.bg-purple {
    background: #9b59b6;
}
.tcm-cat-sub-item.bg-purple:hover {
    background: #8e44ad;
}

.tcm-cat-sub-item.bg-pink {
    background: #e91e63;
}
.tcm-cat-sub-item.bg-pink:hover {
    background: #c2185b;
}

.tcm-cat-sub-item.bg-teal {
    background: #00acc1;
}
.tcm-cat-sub-item.bg-teal:hover {
    background: #00838f;
}

/* 更多子分类颜色 - 20种不同颜色确保每个子分类都有独特标识 */
.tcm-cat-sub-item.bg-red { background: #e53935; }
.tcm-cat-sub-item.bg-red:hover { background: #c62828; }

.tcm-cat-sub-item.bg-orange { background: #f57c00; }
.tcm-cat-sub-item.bg-orange:hover { background: #ef6c00; }

.tcm-cat-sub-item.bg-yellow { background: #f9a825; }
.tcm-cat-sub-item.bg-yellow:hover { background: #f57f17; }

.tcm-cat-sub-item.bg-lime { background: #7cb342; }
.tcm-cat-sub-item.bg-lime:hover { background: #689f38; }

.tcm-cat-sub-item.bg-green { background: #43a047; }
.tcm-cat-sub-item.bg-green:hover { background: #388e3c; }

.tcm-cat-sub-item.bg-teal { background: #00897b; }
.tcm-cat-sub-item.bg-teal:hover { background: #00796b; }

.tcm-cat-sub-item.bg-cyan { background: #00acc1; }
.tcm-cat-sub-item.bg-cyan:hover { background: #0097a7; }

.tcm-cat-sub-item.bg-blue { background: #1e88e5; }
.tcm-cat-sub-item.bg-blue:hover { background: #1976d2; }

.tcm-cat-sub-item.bg-indigo { background: #5e35b1; }
.tcm-cat-sub-item.bg-indigo:hover { background: #512da8; }

.tcm-cat-sub-item.bg-purple { background: #8e24aa; }
.tcm-cat-sub-item.bg-purple:hover { background: #7b1fa2; }

.tcm-cat-sub-item.bg-violet { background: #9c27b0; }
.tcm-cat-sub-item.bg-violet:hover { background: #8e24aa; }

.tcm-cat-sub-item.bg-pink { background: #d81b60; }
.tcm-cat-sub-item.bg-pink:hover { background: #c2185b; }

.tcm-cat-sub-item.bg-rose { background: #e91e63; }
.tcm-cat-sub-item.bg-rose:hover { background: #c2185b; }

.tcm-cat-sub-item.bg-coral { background: #ff7043; }
.tcm-cat-sub-item.bg-coral:hover { background: #f4511e; }

.tcm-cat-sub-item.bg-amber { background: #ffa000; }
.tcm-cat-sub-item.bg-amber:hover { background: #ff8f00; }

.tcm-cat-sub-item.bg-brown { background: #6d4c41; }
.tcm-cat-sub-item.bg-brown:hover { background: #5d4037; }

.tcm-cat-sub-item.bg-olive { background: #827717; }
.tcm-cat-sub-item.bg-olive:hover { background: #7cb342; }

.tcm-cat-sub-item.bg-slate { background: #546e7a; }
.tcm-cat-sub-item.bg-slate:hover { background: #455a64; }

.tcm-cat-sub-item.bg-gray { background: #757575; }
.tcm-cat-sub-item.bg-gray:hover { background: #616161; }

.tcm-cat-sub-item.bg-steel { background: #607d8b; }
.tcm-cat-sub-item.bg-steel:hover { background: #546e7a; }

@media (max-width: 768px) {
    .tcm-article-categories {
        margin-top: 60px;
        padding: 12px 0;
    }
    
    .tcm-cat-header {
        gap: 8px;
        padding: 10px 12px;
    }
    
    .tcm-cat-item {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .tcm-cat-subs-wrapper {
        gap: 10px;
        padding: 12px;
    }
    
    .tcm-cat-sub {
        padding: 12px;
        gap: 8px;
    }
    
    .tcm-cat-sub-item {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin: 4px;
    }
    
    .tcm-cat-symbol {
        margin-right: 8px;
    }
    
    .tcm-cat-sub-label {
        font-size: 0.85rem;
        min-width: auto;
        margin-bottom: 4px;
    }
}

/* ========================================
   分类归档页面样式
   ======================================== */

.tcm-archive-hero {
    background: linear-gradient(135deg, var(--tcm-primary-dark) 0%, var(--tcm-primary) 50%, var(--tcm-primary-light) 100%);
    padding: 60px 0;
    margin-top: 80px;
    text-align: center;
}

.tcm-archive-header {
    max-width: 600px;
    margin: 0 auto;
}

.tcm-archive-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.tcm-archive-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 12px;
    font-weight: 700;
}

.tcm-archive-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.tcm-archive-count {
    padding: 12px 20px;
    background: var(--tcm-bg);
    border-radius: var(--tcm-radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--tcm-text-muted);
}

.tcm-empty-state {
    text-align: center;
    padding: 80px 20px;
}

.tcm-empty-state svg {
    color: var(--tcm-border-dark);
    margin-bottom: 20px;
}

.tcm-empty-state h3 {
    font-size: 1.5rem;
    color: var(--tcm-text);
    margin-bottom: 8px;
}

.tcm-empty-state p {
    color: var(--tcm-text-muted);
    margin-bottom: 24px;
}

/* ========================================
   文章详情页 - 导航按钮增强
   ======================================== */

.tcm-post-navigation {
    background: var(--tcm-bg-paper);
    padding: var(--tcm-spacing-lg);
    border-radius: var(--tcm-radius-lg);
}

.tcm-post-nav-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.5) !important;
}

@media (max-width: 768px) {
    .tcm-article-categories {
        margin-top: 60px;
    }
    
    .tcm-categories-nav {
        gap: 8px;
    }
    
    .tcm-categories-trigger {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .tcm-post-navigation {
        grid-template-columns: 1fr !important;
    }
}

