/* ============================================
   智绘造物 - 全局样式表
   ============================================ */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-success: #10b981;
    --color-bg: #f8fafc;
    --color-bg-alt: #f1f5f9;
    --color-text: #1e293b;
    --color-text-secondary: #64748b;
    --color-muted: #94a3b8;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    --color-dark: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   导航栏
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    font-size: 28px;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.08);
}

/* 主站外链按钮样式 */
.nav-link-external {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.04);
    text-decoration: none;
}
.nav-link-external:hover {
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--color-primary);
}

@media (max-width: 1024px) {
    .nav-link-external {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ============================================
   轮播区域
   ============================================ */
.hero-slider {
    margin-top: 70px;
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slides {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    background-color: #667eea;
}
/* 图片遮罩层 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    transition: background 1s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 背景图片 Ken Burns 效果 */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 8s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.active .slide-bg {
    transform: scale(1.08);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    color: var(--color-white);
    text-align: center;
}

/* 内容入场动画 */
.slide-content h2,
.slide-content p,
.slide-content .slide-btn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-content h2 { transition-delay: 0.1s; }
.slide-content p { transition-delay: 0.25s; }
.slide-content .slide-btn { transition-delay: 0.4s; }

.slide.active .slide-content h2,
.slide.active .slide-content p,
.slide.active .slide-content .slide-btn {
    opacity: 1;
    transform: translateY(0);
}

/* 轮播图按钮 - 白色加粗下划线 */
.slide-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-btn:hover {
    background: #fff;
    color: #333;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.slide.active {
    opacity: 1;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.1);
}

.dot.active {
    background: var(--color-white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ============================================
   通用区块
   ============================================ */
.section {
    padding: 80px 0;
}
/* 白色背景区块 */
.section-light {
    padding: 80px 0;
    background: #ffffff;
}
/* 灰色背景区块 */
.section-gray {
    padding: 80px 0;
    background: #f8f9fa;
}
/* 渐变背景区块 */
.section-gradient {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 50px;
}

.section-more {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
}

/* ============================================
   课程卡片
   ============================================ */
.courses-section {
    background: var(--color-white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #f0e6d2;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.course-card.featured {
    border: 2px solid #f5d78e;
    background: linear-gradient(135deg, #fffcf0 0%, #fef8e8 100%);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.course-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.course-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
}

.course-desc {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.course-features {
    margin-bottom: 25px;
}

.course-features li {
    padding: 8px 0;
    color: var(--color-text);
    font-size: 14px;
}

/* 课程大纲 - 暖色系设计 */
.course-outline {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #fcd34d;
}

.course-outline h4 {
    font-size: 15px;
    color: #92400e;
    margin-bottom: 12px;
    font-weight: 600;
}

.course-outline ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-outline li {
    font-size: 13px;
    color: #78350f;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(146, 64, 14, 0.15);
    line-height: 1.5;
}

.course-outline li:last-child {
    border-bottom: none;
}

/* ============================================
   课程特色卡片
   ============================================ */
.feature-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
    border-color: var(--color-accent);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    color: var(--color-text);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   作品卡片
   ============================================ */
.works-grid,
.products-grid,
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.work-card,
.product-card,
.article-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.work-card:hover,
.product-card:hover,
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.work-image,
.article-image {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.product-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.work-image img,
.product-image img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.work-card:hover img,
.product-card:hover img,
.article-card:hover img {
    transform: scale(1.05);
}

.work-info,
.product-info,
.article-content {
    padding: 20px;
}

.work-info h3,
.product-info h3,
.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-info p,
.product-info p,
.article-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-meta,
.news-meta,
.article-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--color-muted);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-accent);
}

.original-price {
    font-size: 14px;
    color: var(--color-muted);
    text-decoration: line-through;
}

.sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.article-category,
.news-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ============================================
   学员评价
   ============================================ */
.testimonials-section {
    background: var(--color-bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 学员评价轮播 */
.testimonials-wrapper {
    position: relative;
}

.testimonials-track {
    overflow: hidden;
}

@media (max-width: 640px) {
    .testimonials-wrapper {
        padding: 0 30px;
    }
}

.testimonials-slider {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    min-width: 280px;
}

.testimonial-avatar {
    font-size: 50px;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 15px;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* 轮播箭头 - 浮动在内容上方，半透明 */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #666;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.testimonial-arrow.prev {
    left: 10px;
}

.testimonial-arrow.next {
    right: 10px;
}

.testimonial-arrow:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* 轮播指示点 */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.3s;
}

.testimonial-dots .dot.active {
    background: var(--color-primary);
}

/* 响应式 */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 calc(100% - 16px);
    }
    .testimonial-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .testimonial-arrow.prev {
        left: 0;
    }
    .testimonial-arrow.next {
        right: 0;
    }
}

/* ============================================
   新闻列表
   ============================================ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.news-image {
    width: 200px;
    height: 130px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.news-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   CTA区域
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    color: var(--color-white);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

/* CTA白色线框按钮 */
.cta-btn-outline {
    display: inline-block;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 2px solid #fff;
    border-radius: 6px;
    background: transparent;
    transition: all 0.3s ease;
}
.cta-btn-outline:hover {
    background: #fff;
    color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ============================================
   页脚
   ============================================ */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

/* 底部微信 */
.footer-wechat {
    font-size: 14px;
    color: rgba(255,255,255,0.85) !important;
    margin-bottom: 10px;
}

/* 底部二维码 */
.footer-qrcode {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

.footer-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-icp {
    font-size: 12px;
    margin-top: 8px;
    white-space: nowrap;
}

.footer-icp a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
}

.footer-icp a:hover {
    text-decoration: underline;
}

/* ============================================
   列表页通用 - Page Header（统一高度）
   ============================================ */
.page-header {
    margin-top: 70px;
    padding: 60px 20px 45px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
}

/* 各页面不同的背景色 - 低调奢华莫兰迪色系 */
.page-header.purple   { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); } /* 紫蓝 - 知识 */
.page-header.teal     { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); }  /* 青绿 - 动态 */
.page-header.blue     { background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%); }  /* 蓝紫 - 课程 */
.page-header.amber    { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }   /* 琥珀 */
.page-header.cyan     { background: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%); }   /* 青色 - 作品 */
.page-header.slate    { background: linear-gradient(135deg, #475569 0%, #64748b 100%); }   /* 石板灰 - 产品 */
.page-header.rose     { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); }   /* 柔和紫 - 联系 */

/* 响应式 - 统一高度 */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 20px 35px;
        margin-top: 60px;
    }
    .page-header h1 {
        font-size: 1.6rem;
    }
    .page-header p {
        font-size: 0.9rem;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

.breadcrumb a {
    color: var(--color-primary);
}

.breadcrumb span {
    color: var(--color-muted);
    white-space: nowrap;
}

/* 文章详情页标题手机端字体缩小 */
@media (max-width: 768px) {
    .article-detail-header .detail-title {
        font-size: 1.3rem !important;
    }
}

/* ============================================
   筛选标签
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-tab {
    padding: 8px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* ============================================
   分页
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 40px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.pagination button:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination button.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .pagination-ellipsis {
    min-width: 28px;
    height: 36px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 4px;
    font-size: 14px;
    color: var(--color-muted);
    flex-shrink: 0;
    cursor: default;
    border: none;
    background: none;
}

.pagination .pagination-ellipsis:hover {
    background: none;
    border: none;
    color: var(--color-muted);
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    .pagination button {
        min-width: 32px;
        height: 32px;
        padding: 0 7px;
        font-size: 13px;
    }
    .pagination .pagination-ellipsis {
        height: 32px;
        min-width: 20px;
    }
}

/* ============================================
   空状态
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--color-muted);
    font-size: 16px;
}

/* ============================================
   详情页
   ============================================ */
.detail-header {
    margin-top: 70px;
    padding: 50px 0 40px;
    background: var(--color-white);
}

.article-detail-header {
    color: var(--color-white);
    padding: 60px 20px 45px;
    text-align: left;
}

.article-detail-header.cyan {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
}

.article-detail-header.slate {
    background: linear-gradient(135deg, #475569, #64748b);
}

.article-detail-header.purple {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.article-detail-header .breadcrumb,
.article-detail-header .breadcrumb a,
.article-detail-header .breadcrumb span {
    color: rgba(255,255,255,0.8);
}
.article-detail-header #breadcrumbTitle {
    color: rgba(255,255,255,0.9);
}

.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-detail-header .detail-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #fff;
}

.article-detail-header .detail-meta,
.article-detail-header .detail-meta * {
    color: rgba(255,255,255,0.8);
}

.detail-content {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.detail-content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: var(--radius-md);
}

.detail-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.detail-content h2,
.detail-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.detail-content ul,
.detail-content ol {
    margin-bottom: 15px;
    padding-left: 28px;
}

.detail-content ul {
    list-style-type: disc;
}

.detail-content ol {
    list-style-type: decimal;
}

.detail-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* ============================================
   联系表单
   ============================================ */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* ============================================
   联系页面二维码
   ============================================ */
.contact-qrcode {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding: 25px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    justify-content: center;
}

.qrcode-item {
    text-align: center;
    flex: 1;
    max-width: 180px;
}

.qrcode-img {
    width: 150px !important;
    height: 150px !important;
    object-fit: contain !important;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: white;
    padding: 8px;
    margin: 0 auto !important;
}

.qrcode-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-muted);
    font-size: 14px;
}

.qrcode-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 8px;
}

/* 响应式 - 手机端（768px以下） */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* 二维码保持左右排版 */
    .contact-qrcode {
        gap: 20px;
        padding: 20px;
    }
    
    .qrcode-item {
        flex: 1;
        max-width: none;
    }
    
    .qrcode-img,
    .qrcode-placeholder {
        width: 160px !important;
        height: 160px !important;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-form {
        padding: 25px;
    }
}

/* 极小屏幕（300px以下）才上下排版 */
@media (max-width: 300px) {
    .contact-qrcode {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .qrcode-item {
        width: 100%;
        max-width: 150px;
    }
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-item span:first-child {
    font-size: 24px;
}

.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 1024px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .courses-grid,
    .works-grid,
    .products-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-grid .footer-col:last-child {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-grid .footer-col:last-child h4 {
        display: none;
    }

    .footer-grid .footer-col:last-child .footer-qrcode {
        width: 100px;
        height: 100px;
    }

    .detail-content {
        padding: 20px;
    }

    .detail-title {
        font-size: 24px;
    }
}

/* ============================================
   加载动画
   ============================================ */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   文章底部CTA
   ============================================ */
.article-cta {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--color-accent);
}

.article-cta h3 {
    font-size: 22px;
    color: var(--color-text);
    margin-bottom: 10px;
}

.article-cta p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.article-cta .btn {
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 16px;
    padding: 14px 35px;
}

/* ============================================
   上一篇 下一篇 导航
   ============================================ */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.article-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 0;
    max-width: 48%;
}

.article-nav-btn:hover {
    /* 仅标题加下划线 */
}

.article-nav-btn.prev {
    text-align: left;
}

.article-nav-btn.next {
    text-align: right;
}

.article-nav-btn .nav-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    display: block;
}

.article-nav-btn .nav-title {
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.article-nav-btn:hover .nav-title {
    text-decoration: underline;
}

/* 没有上/下篇时禁用样式 */
.article-nav-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.article-nav-btn.disabled .nav-label,
.article-nav-btn.disabled .nav-title {
    color: var(--color-text-secondary);
}

/* 移动端适配 */
@media (max-width: 640px) {
    .article-nav {
        flex-direction: column;
        gap: 12px;
    }
    .article-nav-btn {
        max-width: 100%;
    }
    .article-nav-btn.next {
        text-align: left;
    }
}

/* ============================================
   统一底部样式
   ============================================ */
.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 30px;
    margin-top: auto;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.site-footer .footer-col h4 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.site-footer .footer-col p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.65);
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 10px;
}

.site-footer .footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.site-footer .footer-links a:hover {
    color: var(--color-accent);
}

/* 底部微信 */
.footer-wechat {
    font-size: 14px !important;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.85) !important;
}

/* 底部二维码 */
.footer-qrcode {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
}

.footer-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.footer-qrcode-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

/* 底部版权 */
.site-footer .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

.site-footer .footer-copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.site-footer .footer-icp {
    font-size: 12px;
    margin-top: 8px;
    color: rgba(255,255,255,0.45);
}

.site-footer .footer-icp a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
}

.site-footer .footer-icp a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 992px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .footer-qrcode {
        margin: 0 auto;
    }
}
