:root {
    --orange: #FF6B35;
    --orange-dark: #E55A2B;
    --orange-light: #FFF0E8;
    --orange-pale: #FFF7F2;
    --amber: #FFB347;
    --amber-light: #FFF3E0;
    --text: #1A1A2E;
    --text-secondary: #5A6070;
    --text-muted: #8B95A1;
    --bg: #FFFBF7;
    --white: #FFFFFF;
    --card: #FFFFFF;
    --border: #F0E8E0;
    --border-light: #F5F0EB;
    --success: #10B981;
    --success-light: #ECFDF5;
    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --shadow-sm: 0 1px 2px rgba(26, 26, 46, 0.04);
    --shadow: 0 1px 3px rgba(26, 26, 46, 0.06), 0 1px 2px rgba(26, 26, 46, 0.04);
    --shadow-md: 0 4px 6px rgba(26, 26, 46, 0.05), 0 2px 4px rgba(26, 26, 46, 0.04);
    --shadow-lg: 0 10px 15px rgba(26, 26, 46, 0.06), 0 4px 6px rgba(26, 26, 46, 0.03);
    --shadow-xl: 0 20px 25px rgba(26, 26, 46, 0.08), 0 8px 10px rgba(26, 26, 46, 0.03);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s, visibility 0.4s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-logo .icon-wrap {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoPulse 1.2s ease-in-out infinite;
}

.loading-logo .icon-wrap i {
    font-size: 32px;
    color: white;
}

.loading-logo .brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.loading-bar {
    width: 120px;
    height: 3px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: var(--orange);
    border-radius: 4px;
    animation: loadingBar 1s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes loadingBar {
    0% {
        width: 0%;
        margin-left: 0;
    }

    50% {
        width: 60%;
        margin-left: 20%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

/* ===== NAVIGATION ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

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

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}

.nav-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo .logo-icon i {
    font-size: 20px;
    color: white;
}

.nav-logo span {
    color: var(--orange);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--orange);
    background: var(--orange-pale);
}

.nav-link.live-badge::after {
    content: 'LIVE';
    font-size: 10px;
    font-weight: 700;
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 20px;
}

.nav-search-btn:hover {
    background: var(--orange-pale);
    color: var(--orange);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--border-light);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-outline {
    background: transparent;
    color: var(--orange);
    border: 1.5px solid var(--orange);
}

.btn-outline:hover {
    background: var(--orange-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--orange-pale);
    color: var(--orange);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

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

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--text);
    font-size: 24px;
}

/* ===== MOBILE MENU - 完整展示模式 ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    z-index: 999;
    padding: 16px 20px;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    animation: mobileMenuSlide 0.25s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 移动端菜单项样式优化 - 整个li可点击 */
.mobile-menu>li {
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
}

.mobile-menu>li:hover,
.mobile-menu>li:has(.active) {
    background: var(--orange-pale) !important;
}

.mobile-menu .nav-link {
    padding: 14px 16px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    display: block;
    width: 100%;
}

.mobile-menu .nav-link.active {
    color: var(--orange-dark) !important;
}

/* ===== HERO ===== */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 64px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--orange-light);
    color: var(--orange-dark);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.hero-badge i {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--orange), var(--amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
    padding-top: 8px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--orange);
}

.hero-stat .label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual .main-card {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, #FFF8F3, #FFF0E5);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-visual .main-card .play-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--orange);
    color: white;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.hero-visual .main-card .play-btn:hover {
    transform: scale(1.08);
}

.hero-visual .float-card {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.float-card.ct {
    top: 12%;
    right: 8%;
}

.float-card.cb {
    bottom: 12%;
    left: 8%;
}

.float-card i {
    font-size: 20px;
    color: var(--orange);
}

.hero-video-wrap {
    width: 100%;
    max-width: 500px;
    position: relative;
}

.hero-video-wrap .hero-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.hero-video-wrap .hero-video-overlay .play-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--orange);
    color: white;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.4);
    transition: var(--transition);
}

.hero-video-wrap .hero-video-overlay:hover .play-btn {
    transform: scale(1.08);
}

.hero-video-wrap .hero-video-overlay.is-playing {
    display: none;
}

.hero-video-wrap .float-card {
    position: absolute;
    z-index: 3;
}

/* ===== SECTION ===== */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== COURSE FILTERS ===== */
.course-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: #ffffff;
    color: var(--text-secondary);
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    border-color: var(--orange-light);
    color: var(--orange-dark);
    transform: translateY(-1px);
}

.filter-tag.active {
    background: var(--orange);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
}

.filter-sort {
    position: relative;
    flex-shrink: 0;
}

.filter-sort select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 40px 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

.filter-sort select:hover,
.filter-sort select:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.15);
}

.filter-sort i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    color: var(--text-muted);
}

/* 移动端响应式 */
/* ========== 平板端适配 (768px - 1024px) ========== */
@media (max-width: 1024px) and (min-width: 769px) {

    /* 干货列表页 - 侧边栏缩小 */
    .articles-layout {
        grid-template-columns: 1fr 280px !important;
        gap: 24px !important;
    }

    .articles-layout aside {
        position: static !important;
    }

    /* 文章卡片图片缩小 */
    .article-list-item .thumb {
        width: 160px !important;
        height: 120px !important;
    }

    .article-list-item h3 {
        font-size: 16px !important;
    }

    /* 热门文章缩略图缩小 */
    .articles-layout aside img,
    .articles-layout aside div[style*='width:120px'] {
        width: 100px !important;
        height: 75px !important;
    }

    /* 干货详情页 */
    .article-detail-layout {
        grid-template-columns: 1fr 280px !important;
        gap: 24px !important;
    }

    .article-detail-layout aside {
        position: static !important;
    }

    .article-detail-layout h1 {
        font-size: 24px !important;
    }

    /* 相关文章3列 */
    .article-detail-layout [style*='grid-template-columns:repeat(4'] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ========== 移动端适配 (≤768px) ========== */
@media (max-width: 768px) {
    .course-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .filter-categories {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-tag {
        padding: 10px 16px;
        font-size: 13px;
    }

    .filter-sort {
        width: 100%;
    }

    .filter-sort select {
        width: 100%;
    }
}

/* ===== COURSE CARDS ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--orange);
}

.course-card .thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #fef3ee, #fff7f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card .thumb i {
    font-size: 48px;
    color: var(--orange);
    opacity: 0.6;
}

.course-card .thumb .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.badge-hot {
    background: var(--danger);
}

.badge-new {
    background: var(--success);
}

.badge-popular {
    background: var(--orange);
}

.badge-premium {
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.course-card .thumb .price-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.course-card .body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-card .category {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.course-card .title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    align-items: center;
}

.course-card .meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-card .instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.course-card .instructor .av {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--orange), var(--amber));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.course-card .instructor .name {
    font-size: 13px;
    font-weight: 600;
}

.course-card .instructor .title-sm {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px 0;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

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

.breadcrumb i {
    font-size: 12px;
}

/* ===== PREMIUM CARDS ===== */
.premium-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: row;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--amber);
}

.premium-card .thumb {
    width: 240px;
    min-height: 180px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #FFF8F0, #FFF3E0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.premium-card .thumb i {
    font-size: 48px;
    color: var(--amber);
    opacity: 0.5;
}

.premium-card .thumb .premium-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.premium-card .body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-card .title {
    font-size: 18px;
    font-weight: 700;
}

.premium-card .desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.premium-card .highlights {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.premium-card .highlight-tag {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--amber-light);
    color: var(--amber);
    font-weight: 600;
}

/* ===== COURSE DETAIL ===== */
.course-detail-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cd-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cd-sidebar {
    position: sticky;
    top: 88px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-sidebar .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--orange);
}

.cd-sidebar .price .orig {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.cd-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cd-info-row i {
    font-size: 18px;
    color: var(--orange);
}

.cd-curriculum {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item summary {
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-q {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    user-select: none;
    transition: var(--transition);
}

.faq-q:hover {
    background: var(--orange-pale);
}

.faq-q i {
    font-size: 20px;
    transition: var(--transition);
    color: var(--text-muted);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

details[open]>.faq-a {
    max-height: 500px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-light);
}

details[open] .faq-q i {
    transform: rotate(45deg);
}

/* ===== ARTICLES ===== */
.article-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.article-card .thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #FFF8F3, #FFF0E5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.article-card .thumb i {
    font-size: 40px;
    color: var(--orange);
    opacity: 0.5;
}

.article-card .thumb .type-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card .body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-card .category {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
}

.article-card .title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.article-card .excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 28px 0 12px;
}

.article-body p {
    margin-bottom: 14px;
}

.article-body strong {
    color: var(--orange-dark);
}

/* 文章表格边框 */
.article-body table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #d1d5db !important;
    margin: 20px 0;
}

.article-body th,
.article-body td {
    border: 1px solid #e5e7eb !important;
    padding: 10px 14px;
}

.article-body th {
    background-color: #fef3e7;
    font-weight: 600;
}

/* 文章链接样式 */
.article-body a {
    color: var(--orange) !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    transition: all 0.2s ease !important;
}

.article-body a:hover {
    color: var(--orange-dark) !important;
    text-decoration: none !important;
    background-color: var(--orange-light);
    padding: 0 4px;
    border-radius: 4px;
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    justify-content: center;
}

/* ===== TOOLS ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.tool-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 24px 32px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.footer p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer a {
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--orange);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== DETAIL IMAGES ===== */
.detail-images {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-images img {
    width: 100%;
    display: block;
    border-radius: 0;
}

/* ===== ABOUT ===== */
.about-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.about-stat {
    text-align: center;
    padding: 32px 16px;
    border-right: 1px solid var(--border-light);
}

.about-stat:last-child {
    border-right: none;
}

.about-stat .num {
    font-size: 36px;
    font-weight: 800;
    color: var(--orange);
}

.about-stat .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ===== PAGINATION ===== */
.pagination-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-links a,
.pagination-links span {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pagination-links a:hover {
    background: var(--orange-pale);
    color: var(--orange);
    border-color: var(--orange);
}

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

.pagination-links .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ===== ADMIN ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--text);
    color: white;
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar .brand {
    padding: 0 24px 24px;
    font-size: 18px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.admin-sidebar .nav-item {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .nav-item:hover,
.admin-sidebar .nav-item.active {
    color: var(--orange);
    background: rgba(255, 107, 53, 0.1);
}

.admin-main {
    margin-left: 240px;
    flex: 1;
    padding: 24px;
    background: #F5F5F5;
    min-height: 100vh;
}

.admin-table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-table th {
    background: var(--orange-pale);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.admin-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-top: 1px solid var(--border-light);
}

.admin-table tr:hover td {
    background: var(--orange-pale);
}

.admin-form {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    max-width: 800px;
}

.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.admin-form textarea {
    min-height: 200px;
    resize: vertical;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 {
    font-size: 24px;
    font-weight: 800;
}

.alert {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 40px 24px;
        min-height: auto;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual .main-card,
    .hero-video-wrap {
        max-width: 400px;
    }

    .course-detail-layout {
        grid-template-columns: 1fr;
    }

    .cd-sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-stat:nth-child(2) {
        border-right: none;
    }
}

/* ===== 平板适配 (768px - 1024px) ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-logo {
        gap: 4px;
        font-size: 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-logo .logo-icon {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    /* 压缩导航链接 */
    .nav-links {
        gap: 2px;
    }

    .nav-link {
        padding: 8px 8px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* 隐藏用户名 */
    .user-name {
        display: none;
    }

    /* 搜索按钮紧凑 */
    .nav-search-btn {
        padding: 6px;
    }
}

@media (max-width: 768px) {

    /* 手机端 Logo 单行显示 */
    .nav-logo {
        font-size: 16px;
        white-space: nowrap;
        gap: 4px;
        flex-shrink: 0;
    }

    .nav-logo .logo-icon {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* 搜索按钮 */
    .nav-search-btn {
        padding: 8px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-visual .main-card,
    .hero-video-wrap {
        max-width: 300px;
    }

    .hero-visual .float-card,
    .hero-video-wrap .float-card {
        display: none;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .premium-card {
        flex-direction: column;
    }

    .premium-card .thumb {
        width: 100%;
        min-height: 140px;
    }

    /* 干货页面响应式 - 侧边栏移到底部 */
    .articles-layout {
        grid-template-columns: 1fr !important;
    }

    .articles-layout>div:first-child {
        order: 1;
    }

    .articles-layout aside {
        order: 2;
    }

    /* 底部热门/近期改为上下堆叠（移动端） */
    .articles-layout aside {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        position: static !important;
        margin-top: 24px !important;
    }

    .articles-layout aside>div {
        padding: 16px !important;
    }

    .articles-layout aside>div h3 {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }

    /* 热门文章：紧凑列表 */
    .articles-layout aside>div:first-child a {
        flex-direction: row !important;
        gap: 12px !important;
    }

    .articles-layout aside>div:first-child img,
    .articles-layout aside>div:first-child div[style*='width:120px'] {
        width: 80px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }

    .articles-layout aside>div:first-child h4 {
        font-size: 13px !important;
        -webkit-line-clamp: 2 !important;
    }

    .articles-layout aside>div:first-child span {
        font-size: 12px !important;
    }

    .article-list-item {
        flex-direction: column !important;
    }

    .article-list-item .thumb {
        width: 100% !important;
        max-width: none !important;
        height: 180px !important;
    }

    /* 干货详情页响应式 */
    .article-detail-layout {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .article-detail-layout>div:first-child {
        order: 1;
        min-width: 0 !important;
    }

    .article-detail-layout aside {
        order: 2;
        position: static !important;
        margin-top: 24px !important;
    }

    /* 详情页标题缩小 + 防溢出 */
    .article-detail-layout h1 {
        font-size: 22px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* 详情页内边距减小 */
    .article-detail-layout>div>div {
        padding: 16px !important;
        overflow-x: hidden !important;
    }

    /* 头部信息区防溢出 */
    .article-detail-layout>div>div[style*='padding:32px'] {
        padding: 16px !important;
    }

    .article-detail-layout>div>div[style*='padding:32px']>div[style*='flex-wrap'] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .article-body {
        padding: 16px !important;
        font-size: 15px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* 相关文章改为2列 */
    .article-detail-layout [style*='grid-template-columns:repeat(4'] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 上下篇导航垂直排列 */
    .article-detail-layout [style*='grid-template-columns:1fr 1fr'] {
        grid-template-columns: 1fr !important;
    }

    .admin-sidebar {
        width: 0;
        transform: translateX(-100%);
    }

    .admin-main {
        margin-left: 0;
    }
}

/* ===== ENTERPRISE ===== */
.enterprise-hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.enterprise-hero h1 {
    font-size: clamp(32px, 4.5vw, 44px);
    font-weight: 800;
}

.enterprise-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.enterprise-pkg {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enterprise-pkg.recommended {
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
}

.enterprise-pkg.recommended::before {
    content: '推 荐';
    position: absolute;
    top: 16px;
    right: -28px;
    background: var(--orange);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 40px;
    transform: rotate(45deg);
}

.enterprise-pkg:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.enterprise-pkg .pkg-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--orange-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--orange);
}

.enterprise-pkg .pkg-name {
    font-size: 22px;
    font-weight: 800;
}

.enterprise-pkg .pkg-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--orange);
}

.enterprise-pkg .pkg-price .unit {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.enterprise-pkg .pkg-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.enterprise-pkg .pkg-feature {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.enterprise-pkg .pkg-feature i {
    color: var(--success);
    font-size: 18px;
}

.enterprise-cases {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.enterprise-case {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.enterprise-case:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
}

.enterprise-case .logo-area {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--text), #2d2d44);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.enterprise-case h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.enterprise-case p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.enterprise-case .result {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--orange);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.enterprise-form-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.enterprise-form-section h2 {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
}

.enterprise-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .enterprise-form-row {
        grid-template-columns: 1fr;
    }

    .enterprise-packages {
        grid-template-columns: 1fr;
    }

    .enterprise-cases {
        grid-template-columns: 1fr;
    }
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}


/* ===== SEARCH OVERLAY ===== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-box {
    width: 90%;
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.search-input-wrap input {
    flex: 1;
    font-size: 16px;
    background: transparent;
}

.search-input-wrap i {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-results {
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--orange-pale);
}

.search-result-item i {
    font-size: 20px;
    color: var(--orange);
}

/* ===== VIDEO MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-content .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.modal-content .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.modal-content .simulated-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.modal-content .simulated-player i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.3);
}

.modal-content .simulated-player .text {
    font-size: 14px;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.auth-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-panel {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px rgba(26, 26, 46, 0.2);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-overlay.open .auth-panel {
    transform: translateY(0);
}

.auth-overlay:not(.open) .auth-panel {
    transform: translateY(24px);
}

.auth-header {
    padding: 32px 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-header .close-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.auth-header .close-btn:hover {
    background: var(--orange-light);
    color: var(--orange);
}

.auth-tabs {
    display: flex;
    gap: 0;
    padding: 8px 32px 0;
    border-bottom: 1px solid var(--border-light);
}

.auth-tab {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.auth-tab+.auth-tab {
    margin-left: 28px;
}

.auth-tab.active {
    color: var(--text);
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    border-radius: 2px;
}

.auth-tab:hover {
    color: var(--orange);
}

.auth-tab-content {
    display: none;
    padding: 28px 32px 32px;
}

.auth-tab-content.active {
    display: block;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.auth-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.auth-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0 14px;
    height: 48px;
    transition: var(--transition);
    background: var(--bg);
}

.auth-input-wrap:focus-within {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: var(--white);
}

.auth-input-wrap.error {
    border-color: var(--danger);
    background: var(--danger-light);
}

.auth-input-wrap i {
    font-size: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.auth-input-wrap input {
    flex: 1;
    font-size: 15px;
    background: transparent;
    width: 100%;
}

.auth-input-wrap select {
    flex: 1;
    font-size: 15px;
    background: transparent;
    width: 100%;
    cursor: pointer;
    outline: none;
    border: none;
}

.auth-input-wrap .toggle-pw {
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transition: var(--transition);
}

.auth-input-wrap .toggle-pw:hover {
    color: var(--orange);
}

.auth-field .error-text {
    font-size: 12px;
    color: var(--danger);
    display: none;
    align-items: center;
    gap: 4px;
}

.auth-field .error-text.show {
    display: flex;
}

.auth-sms-row {
    display: flex;
    gap: 10px;
}

.auth-sms-row .auth-input-wrap {
    flex: 1;
}

.auth-sms-btn {
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius);
    background: var(--orange-light);
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.auth-sms-btn:hover {
    background: var(--orange);
    color: white;
}

.auth-sms-btn.counting {
    background: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.auth-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-agreement input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--orange);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.auth-agreement a {
    color: var(--orange);
    text-decoration: underline;
}

.auth-agreement a:hover {
    color: var(--orange-dark);
}

.auth-submit-btn {
    width: 100%;
    height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--orange), var(--amber));
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.auth-social-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.auth-social-btn:hover {
    border-color: var(--orange);
    background: var(--orange-light);
    color: var(--orange);
    transform: translateY(-2px);
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}

.auth-switch a {
    color: var(--orange);
    font-weight: 600;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-forgot {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 18px;
}

.auth-forgot a {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-forgot a:hover {
    color: var(--orange);
}

/* search placeholder visibility */
.search-input-wrap input::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

/* ===== COURSE DETAIL ===== */
.course-detail-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.cd-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cd-video {
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cd-video .play-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.5);
    transition: var(--transition);
    position: absolute;
    z-index: 2;
}

.cd-video .play-btn:hover {
    transform: scale(1.1);
}

.cd-sidebar {
    position: sticky;
    top: 88px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cd-sidebar .price {
    font-size: 32px;
    font-weight: 800;
    color: var(--orange);
}

.cd-sidebar .price .orig {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: 400;
}

.cd-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.cd-info-row i {
    font-size: 18px;
    color: var(--orange);
}

.cd-curriculum {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cd-chapter {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.cd-chapter-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    user-select: none;
}

.cd-chapter-header:hover {
    background: var(--orange-pale);
}

.cd-chapter-header i {
    transition: var(--transition);
}

.cd-chapter.open .cd-chapter-header i {
    transform: rotate(90deg);
    color: var(--orange);
}

.cd-lessons {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.cd-chapter.open .cd-lessons {
    max-height: 600px;
}

.cd-lesson {
    padding: 10px 20px 10px 36px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--border-light);
    transition: var(--transition);
}

.cd-lesson:hover {
    background: var(--orange-pale);
    color: var(--orange);
}

.cd-lesson i {
    font-size: 16px;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-images img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px 0;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

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

.breadcrumb i {
    font-size: 12px;
}

@media (max-width: 1024px) {
    .course-detail-layout {
        grid-template-columns: 1fr;
    }

    .cd-sidebar {
        position: static;
    }
}

/* ===== LIVE CARDS ===== */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.live-grid>.live-item {
    display: block;
}

.live-grid>.live-item[style*="display: none"] {
    display: none !important;
}

.live-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.live-card .thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-card .thumb .live-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-status.live {
    background: var(--danger);
    animation: livePulse 2s infinite;
}

.live-status.upcoming {
    background: var(--warning);
}

.live-status.replay {
    background: #3b82f6;
}

/* 蓝色 - 可回放 */
.live-status.ended {
    background: #6b7280;
}

/* 深灰 - 已结束 */
.live-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.live-card .body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.live-card .title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.live-card .schedule {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.live-card .schedule i {
    font-size: 16px;
    color: var(--orange);
}

@media (max-width: 768px) {
    .live-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LIVE TABS ===== */
.live-tab {
    padding: 8px 20px;
    font-weight: 600;
    font-size: 14px;
    transition: none;
    border-radius: var(--radius-full);
}

/* 默认状态 - 透明背景+边框 */
.live-tab:not(.active) {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border);
}

/* 移除悬停效果 */
.live-tab:hover {
    /* 无悬停效果 */
}

/* 直播中标签特殊样式（红点+红字，无边框）*/
.live-tab-live {
    color: var(--danger) !important;
    border-color: var(--border) !important;
}

/* 红点样式 - 默认红色 */
.live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
    margin-right: 4px;
}

/* 统一选中状态 - 橙色实心填充 */
.live-tab.active {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

/* 直播中选中 - 红色背景+白字+白点（特殊）*/
.live-tab-live.active {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: white !important;
}

.live-tab-live.active .live-dot {
    background: white;
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
}

.user-avatar-btn:hover {
    background: var(--orange-pale);
    border-color: var(--orange-light);
    color: var(--orange-dark);
}

.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-light);
}

.user-avatar-icon {
    font-size: 28px;
    color: var(--orange);
}

.user-name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 40px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
}

.dropdown-item:hover {
    background: var(--orange-pale);
    color: var(--orange-dark);
}

.dropdown-danger:hover {
    background: #FDEEEE;
    color: var(--danger);
}

@media (max-width: 768px) {
    .user-name {
        display: none;
    }
}