/* ========================================
   中医师承主题 - 新增组件样式
   版本：2.0
   更新日期：2024-05-20
   ======================================== */

/* ========================================
   浮动联系栏
   ======================================== */
.floating-contact-bar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-contact-bar .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--tcm-primary);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.floating-contact-bar .contact-item:first-child {
    border-radius: var(--tcm-radius-md) 0 0 0;
}

.floating-contact-bar .contact-item:last-child {
    border-radius: 0 0 0 var(--tcm-radius-md);
}

.floating-contact-bar .contact-item:hover {
    width: auto;
    padding: 0 15px;
    background: var(--tcm-accent);
}

.floating-contact-bar .contact-item i {
    font-size: 20px;
}

.floating-contact-bar .contact-item span {
    display: none;
    white-space: nowrap;
    margin-left: 10px;
}

.floating-contact-bar .contact-item:hover span {
    display: inline;
}

.floating-contact-bar .contact-item.phone { background: var(--tcm-accent); }
.floating-contact-bar .contact-item.wechat { background: #07C160; }
.floating-contact-bar .contact-item.qq { background: #12B7F5; }
.floating-contact-bar .contact-item.top {
    background: var(--tcm-gold);
    border-radius: 0;
}

/* ========================================
   首页模块 - Hero区域
   ======================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tcm-primary-dark) 0%, var(--tcm-primary) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(93, 58, 26, 0.9) 0%,
        rgba(139, 69, 19, 0.8) 50%,
        rgba(93, 58, 26, 0.9) 100%
    );
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: var(--tcm-font-heading);
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero-feature i {
    color: var(--tcm-gold);
}

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tcm-gold);
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    animation: bounce 2s infinite;
}

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

/* ========================================
   首页模块 - 特色服务
   ======================================== */
.features-section {
    background: var(--tcm-bg-paper);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--tcm-radius-lg);
    text-align: center;
    box-shadow: 0 5px 20px var(--tcm-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tcm-border);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tcm-primary) 0%, var(--tcm-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 28px;
    color: white;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--tcm-primary-dark);
    font-family: var(--tcm-font-heading);
}

.feature-desc {
    color: var(--tcm-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   首页模块 - 统计数据
   ======================================== */
.stats-section {
    position: relative;
    background: var(--tcm-primary-dark);
    padding: 4rem 0;
    color: white;
}

.stats-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--tcm-radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--tcm-gold);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--tcm-gold);
    font-family: var(--tcm-font-heading);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   首页模块 - 名师团队
   ======================================== */
.teachers-section {
    background: white;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.teacher-card {
    background: white;
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--tcm-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tcm-border);
}

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

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

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

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

.teacher-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-bg);
    font-size: 4rem;
    color: var(--tcm-text-muted);
}

.teacher-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tcm-gold);
    color: var(--tcm-primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.teacher-info {
    padding: 1.5rem;
    text-align: center;
}

.teacher-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--tcm-primary-dark);
    font-family: var(--tcm-font-heading);
}

.teacher-title {
    color: var(--tcm-gold);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.teacher-specialty {
    color: var(--tcm-text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.teacher-specialty i {
    color: var(--tcm-accent);
}

/* ========================================
   首页模块 - 课程/项目卡片
   ======================================== */
.courses-section,
.projects-section {
    background: var(--tcm-bg-paper);
}

.course-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card,
.project-card {
    background: white;
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--tcm-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tcm-border);
}

.course-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--tcm-shadow-dark);
}

.course-thumb,
.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-thumb img,
.project-image img,
.course-placeholder,
.project-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-thumb img,
.project-card:hover .project-image img {
    transform: scale(1.05);
}

.course-placeholder,
.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-bg);
    font-size: 3rem;
    color: var(--tcm-text-muted);
}

.course-level {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.course-level.level-beginner { background: var(--tcm-accent); }
.course-level.level-intermediate { background: var(--tcm-gold); color: var(--tcm-primary-dark); }
.course-level.level-advanced { background: var(--tcm-primary); }

.course-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover .course-play-btn {
    opacity: 1;
}

.course-info,
.project-content {
    padding: 1.5rem;
}

.course-title,
.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--tcm-primary-dark);
    font-family: var(--tcm-font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-excerpt,
.project-excerpt {
    color: var(--tcm-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta,
.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--tcm-text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta-item.price {
    color: var(--tcm-primary);
    font-weight: 600;
}

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

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

.course-price.free {
    color: var(--tcm-accent);
    font-size: 0.9rem;
}

.course-cta {
    color: var(--tcm-gold);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tcm-border);
}

.price-label {
    font-size: 0.85rem;
    color: var(--tcm-text-muted);
}

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

/* 课程分类筛选 */
.courses-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    background: white;
    border: 1px solid var(--tcm-border);
    border-radius: 30px;
    color: var(--tcm-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* ========================================
   首页模块 - 最新资讯
   ======================================== */
.news-section {
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: white;
    border-radius: var(--tcm-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px var(--tcm-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--tcm-border);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--tcm-shadow-dark);
}

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

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

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

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tcm-bg);
    font-size: 2.5rem;
    color: var(--tcm-text-muted);
}

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tcm-accent);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--tcm-text-muted);
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--tcm-primary-dark);
    font-family: var(--tcm-font-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.news-more {
    color: var(--tcm-gold);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ========================================
   首页模块 - 学员评价
   ======================================== */
.testimonials-section {
    background: var(--tcm-bg-paper);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.slider-container {
    overflow: hidden;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.testimonial-card {
    background: white;
    padding: 3rem;
    border-radius: var(--tcm-radius-lg);
    box-shadow: 0 5px 20px var(--tcm-shadow);
    text-align: center;
}

.testimonial-quote {
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-quote i {
    color: var(--tcm-gold);
    font-size: 1.5rem;
    opacity: 0.5;
}

.testimonial-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--tcm-text);
    line-height: 1.8;
    margin: 1rem 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

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

.author-avatar i {
    font-size: 2rem;
    color: var(--tcm-text-muted);
}

.author-info {
    text-align: left;
}

.author-name {
    font-size: 1.1rem;
    color: var(--tcm-primary-dark);
    margin-bottom: 0.3rem;
    font-family: var(--tcm-font-heading);
}

.author-course {
    color: var(--tcm-gold);
    font-size: 0.9rem;
}

.author-year {
    color: var(--tcm-text-muted);
    font-size: 0.85rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-prev,
.slider-next {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid var(--tcm-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--tcm-primary);
    color: white;
    border-color: var(--tcm-primary);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tcm-border);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--tcm-primary);
}

/* ========================================
   首页模块 - 图库
   ======================================== */
.gallery-section {
    background: var(--tcm-bg-paper);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

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

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-info {
    color: white;
}

.gallery-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.gallery-count {
    font-size: 0.85rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    opacity: 1;
}

/* ========================================
   首页模块 - CTA区域
   ======================================== */
.cta-section {
    position: relative;
    background: var(--tcm-primary-dark);
    padding: 5rem 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cta-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(93, 58, 26, 0.95) 0%,
        rgba(139, 69, 19, 0.9) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--tcm-font-heading);
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.cta-feature i {
    color: var(--tcm-gold);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.9;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   首页模块 - 预约表单
   ======================================== */
.booking-section {
    background: var(--tcm-bg-paper);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.booking-info .section-header {
    text-align: left;
}

.booking-benefits {
    margin: 2rem 0;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: var(--tcm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.benefit-text h4 {
    font-size: 1.1rem;
    color: var(--tcm-primary-dark);
    margin-bottom: 0.3rem;
}

.benefit-text p {
    color: var(--tcm-text-light);
    font-size: 0.9rem;
}

.contact-info {
    background: white;
    padding: 1.5rem;
    border-radius: var(--tcm-radius-lg);
    border: 1px solid var(--tcm-border);
}

.contact-info h4 {
    font-size: 1rem;
    color: var(--tcm-primary-dark);
    margin-bottom: 1rem;
}

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

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--tcm-border);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list i {
    color: var(--tcm-primary);
    width: 20px;
}

.booking-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: var(--tcm-radius-lg);
    box-shadow: 0 5px 20px var(--tcm-shadow);
}

.booking-form .form-group {
    margin-bottom: 1.5rem;
}

.booking-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--tcm-text);
}

.booking-form label i {
    color: var(--tcm-primary);
}

.booking-form .required {
    color: var(--tcm-primary);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--tcm-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.booking-form .form-note {
    text-align: center;
    color: var(--tcm-text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.booking-success {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--tcm-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.booking-success h3 {
    font-size: 1.5rem;
    color: var(--tcm-primary-dark);
    margin-bottom: 1rem;
}

.booking-success p {
    color: var(--tcm-text-light);
    margin-bottom: 2rem;
}

/* ========================================
   页面头部样式
   ======================================== */
.page-header,
.archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title,
.archive-title {
    font-size: 2.5rem;
    color: var(--tcm-primary-dark);
    margin-bottom: 1rem;
    font-family: var(--tcm-font-heading);
}

.page-description,
.archive-description {
    font-size: 1.1rem;
    color: var(--tcm-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   通用组件
   ======================================== */
.section-padding {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.2rem;
    color: var(--tcm-primary-dark);
    margin-bottom: 1rem;
    font-family: var(--tcm-font-heading);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--tcm-gold);
    margin: 1rem auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--tcm-text-light);
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 30px;
    border-radius: var(--tcm-radius-md);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--tcm-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--tcm-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--tcm-shadow-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--tcm-primary);
    color: var(--tcm-primary);
}

.btn-outline:hover {
    background: var(--tcm-primary);
    color: white;
}

.btn-light {
    background: white;
    color: var(--tcm-primary);
}

.btn-light:hover {
    background: var(--tcm-bg);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--tcm-primary);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 分页样式 */
.archive-pagination {
    margin-top: 3rem;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    gap: 0.5rem;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--tcm-border);
    border-radius: var(--tcm-radius-sm);
    text-decoration: none;
    color: var(--tcm-text);
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers a:hover,
.archive-pagination .page-numbers .current {
    background: var(--tcm-primary);
    color: white;
    border-color: var(--tcm-primary);
}

/* 无结果样式 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--tcm-radius-lg);
    border: 1px solid var(--tcm-border);
}

.no-results i {
    font-size: 4rem;
    color: var(--tcm-text-muted);
    margin-bottom: 1.5rem;
}

.no-results p {
    font-size: 1.2rem;
    color: var(--tcm-text-light);
    margin-bottom: 1.5rem;
}

/* 侧边栏CTA */
.sidebar-cta {
    background: var(--tcm-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--tcm-radius-lg);
    margin-top: 2rem;
}

.sidebar-cta h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sidebar-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.sidebar-cta .btn {
    background: white;
    color: var(--tcm-primary);
}

.sidebar-cta .btn:hover {
    background: var(--tcm-bg);
}

/* ========================================
   灯箱样式
   ======================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .teachers-grid,
    .course-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-features {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .floating-contact-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features-grid,
    .stats-grid,
    .teachers-grid,
    .course-grid,
    .projects-grid,
    .news-grid,
    .gallery-masonry {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-quote blockquote {
        font-size: 1rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .courses-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
    }
}
