/* ====================================
   大国工匠人才培育工程 - 前端样式
   主色调：工会蓝(#2563eb) + 工业灰 + 中国红
   风格：中国政府工会网站 · 川渝工业风 · 教育系统
   适配：40+人群 · 简洁清新 · 信息清晰 · 视觉舒适
   ==================================== */

/* ---- CSS Variables ---- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --primary-bg: #eff6ff;
    --accent: #dc2626;
    --accent-light: #ef4444;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --bg: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --radius: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --transition: all 0.2s ease;
}

/* ---- Reset & Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
::selection { background: rgba(37,99,235,0.15); color: var(--text); }
::-moz-selection { background: rgba(37,99,235,0.15); color: var(--text); }

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
 
.craftsman-main {
    position: relative;
    flex: 1 0 auto;
    min-height: 0;
    width: 100%;
}
.craftsman-main > *:not(.landmark-bg):not(.video-modal-overlay):not(.reflection-overlay) {
    position: relative;
    z-index: 1;
}
.landmark-bg {
    position: fixed;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background: url('../img/bg-landmark.png') repeat;
    background-size: 1200px auto;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    filter: blur(2px);  /* 模糊度*/
    transform: scale(1.03);
    opacity: 5.92;  /*背景淡化程度*/
}
.landmark-bg .landmark-item {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: none; }

img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ====================================
   Header
   ==================================== */
.craftsman-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
}
.logo h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
    margin: 0;
}
.logo .logo-icon {
    width: 44px;
    height: 44px;
    border: 2.5px solid var(--text);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 900;
    font-size: 24px;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    position: relative;
}
/* Inner seal border */
.logo .logo-icon::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border: 1px solid var(--text);
    border-radius: 2px;
}

.main-nav .nav-list { display: flex; list-style: none; gap: 0; margin: 0; padding: 0; }
.main-nav .nav-list li a {
    display: block;
    padding: 24px 22px;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    line-height: 24px;
}
.main-nav .nav-list li a:hover {
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: 6px;
}
.main-nav .nav-list li a.active {
    color: var(--primary);
    font-weight: 600;
}
.main-nav .nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hide chat nav */
.nav-item-chat { display: none !important; }

.header-right { display: flex; align-items: center; gap: 20px; }

.user-info { position: relative; display: flex; align-items: center; cursor: pointer; gap: 8px; padding: 8px 0; }
.user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}
.user-name { font-size: 15px; color: var(--text); font-weight: 500; }

.user-dropdown {
    display: none;
    position: absolute; top: 100%; right: 0;
    padding-top: 8px;
    z-index: 999;
}
.user-dropdown-inner {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--border);
}
.user-info:hover .user-dropdown { display: block; }
.user-dropdown-inner a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.user-dropdown-inner a i { width: 16px; color: var(--text-muted); }
.user-dropdown-inner a:hover { background: var(--primary-bg); color: var(--primary); }
.user-dropdown-inner a:hover i { color: var(--primary); }

/* Message notification */
.header-msg {
    position: relative;
    display: flex; align-items: center; gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}
.header-msg i { font-size: 18px; }
.header-msg .msg-badge {
    position: absolute; top: -2px; right: -4px;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--white);
    display: none;
}
.header-msg.has-unread .msg-badge { display: block; }

.login-btns { display: flex; gap: 10px; }
.btn-login {
    padding: 7px 24px;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.btn-login:hover { background: var(--primary-bg); }
.btn-register {
    padding: 7px 24px;
    background: var(--primary);
    color: var(--white) !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1.5px solid var(--primary);
    transition: var(--transition);
}
.btn-register:hover {
    background: var(--primary-dark); border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

/* ====================================
   Page Banner / Hero
   ==================================== */
.page-hero {
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 50%, #93c5fd 100%);
    padding: 56px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
    position: relative;
    letter-spacing: 4px;
}
.page-hero .breadcrumb-link {
    position: absolute; left: 24px; top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    z-index: 2;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.page-hero .breadcrumb-link:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* ====================================
   Banner / Slider（自适应铺满）
   ==================================== */
.banner-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    width: 100%;
}
.banner-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    z-index: 0;
}
.banner-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 1;
}
.banner-slide a {
    display: block;
    width: 100%;
    line-height: 0;
}
.banner-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
}
.banner-dots {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 5;
}
.banner-dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer; transition: var(--transition);
}
.banner-dots span.active { background: var(--white); transform: scale(1.2); }
.banner-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0,0,0,0.25); border: none; color: #fff;
    font-size: 20px; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s, transform 0.3s;
    opacity: 0;
}
.banner-section:hover .banner-arrow { opacity: 1; }
.banner-arrow:hover { background: rgba(0,0,0,0.5); transform: translateY(-50%) scale(1.1); }
.banner-arrow.prev { left: 16px; }
.banner-arrow.next { right: 16px; }

/* Default Banner (no images) */
.banner-default {
    height: min(50vh, 460px);
    min-height: 220px;
    max-height: min(50vh, 460px);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f2744 0%, #1a3a5c 30%, #2563eb 100%);
    position: relative; overflow: hidden;
}
.banner-default .banner-pattern {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 25% 75%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(59,130,246,0.12) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.banner-default .banner-content {
    text-align: center; color: #fff; position: relative; z-index: 1;
}
.banner-default .banner-seal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 72px; height: 72px; border: 3px solid rgba(255,255,255,0.85);
    border-radius: 8px; font-size: 38px; font-weight: 900;
    font-family: "楷体", "KaiTi", "STKaiti", serif;
    margin-bottom: 24px; position: relative;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.banner-default .banner-seal::before {
    content: '';
    position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px;
    border: 1.5px solid rgba(255,255,255,0.5); border-radius: 4px;
}
.banner-default h2 {
    font-size: 46px; margin-bottom: 16px; font-weight: 800;
    letter-spacing: 8px; text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.banner-default p {
    font-size: 18px; opacity: 0.75; letter-spacing: 3px; font-weight: 300;
}

/* ====================================
   Section Common
   ==================================== */
.section { padding: 64px 0; }
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 0;
    font-weight: 700;
    letter-spacing: 2px;
}
.section-title p { color: var(--text-secondary); font-size: 15px; margin-top: 8px; }
.section-title .title-line { display: none; }
.section-title::after {
    content: '';
    display: block;
    width: 32px;
    height: 3px;
    background: var(--primary);
    margin: 14px auto 0;
    border-radius: 2px;
}
.section-title .title-en {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* ====================================
   Notice Bar V2
   ==================================== */
.notice-bar-v2 {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%);
    border-bottom: 1px solid #fde68a;
    padding: 0;
    position: relative;
    z-index: 10;
}
.notice-bar-inner {
    display: flex;
    align-items: center;
    height: 52px;
    gap: 0;
}
.notice-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-right: 20px;
    border-right: 1px solid rgba(217,119,6,0.15);
    margin-right: 20px;
}
.notice-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(245,158,11,0.3);
    animation: noticeIconPulse 2s ease-in-out infinite;
}
@keyframes noticeIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.notice-tag {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 2px;
}
.notice-bar-center {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 52px;
}
.notice-swiper {
    position: relative;
    width: 100%;
    height: 100%;
}
.notice-swiper-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.notice-swiper-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.notice-swiper-item.leaving {
    opacity: 0;
    transform: translateY(-100%);
}
.notice-swiper-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #78350f;
    font-size: 15px;
    text-decoration: none;
    width: 100%;
    transition: color 0.2s;
}
.notice-swiper-item a:hover { color: var(--primary); }
.notice-top-badge {
    display: inline-block;
    padding: 1px 8px;
    background: var(--accent);
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.notice-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}
.notice-date {
    flex-shrink: 0;
    font-size: 13px;
    color: #b45309;
    opacity: 0.7;
}
.notice-bar-more {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 20px;
    border-left: 1px solid rgba(217,119,6,0.15);
    margin-left: 20px;
    color: #b45309;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}
.notice-bar-more:hover { color: var(--primary); }
.notice-bar-more i { font-size: 16px; transition: transform 0.2s; }
.notice-bar-more:hover i { transform: translateX(3px); }

/* ====================================
   Notice List Page V2
   ==================================== */
.notice-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notice-card {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.25s ease;
    text-decoration: none;
    color: var(--text);
}
.notice-card:hover {
    border-color: var(--primary-lighter);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    color: var(--text);
}
.notice-card-date {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    padding: 16px 8px;
    border-right: 3px solid var(--primary);
    transition: background 0.25s;
}
.notice-card:hover .notice-card-date {
    background: var(--primary);
}
.notice-card-date .date-day {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    transition: color 0.25s;
}
.notice-card:hover .notice-card-date .date-day {
    color: #fff;
}
.notice-card-date .date-month {
    font-size: 13px;
    color: var(--primary);
    margin-top: 4px;
    font-weight: 500;
    transition: color 0.25s;
}
.notice-card:hover .notice-card-date .date-month {
    color: rgba(255,255,255,0.85);
}
.notice-card-body {
    flex: 1;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}
.notice-card-info {
    flex: 1;
    min-width: 0;
}
.notice-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notice-card-title .title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-card-title .pin-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}
.notice-card-title .attach-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}
.notice-card-summary {
    font-size: 13px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notice-card-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.25s;
}
.notice-card:hover .notice-card-arrow {
    background: var(--primary);
    color: #fff;
    transform: translateX(2px);
}

/* ====================================
   Course Cards
   ==================================== */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    color: var(--text);
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--text);
}
.course-card .card-image { position: relative; padding-top: 56.25%; overflow: hidden; }
.course-card .card-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s;
}
.course-card:hover .card-image img { transform: scale(1.05); }
.course-card .card-body { padding: 18px 20px; }
.course-card .card-title {
    font-size: 16px; font-weight: 600; color: var(--text);
    margin-bottom: 10px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.4;
}
.course-card .card-meta {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 13px;
}
.course-card .card-tag {
    display: inline-block; padding: 3px 10px;
    background: var(--primary-bg); color: var(--primary);
    border-radius: 4px; font-size: 12px; font-weight: 600;
}
.course-card .card-teacher {
    font-size: 14px; color: var(--text-secondary); margin-bottom: 8px;
}

/* ====================================
   Zone Tabs
   ==================================== */
.zone-tabs {
    display: flex; gap: 12px; margin-bottom: 40px;
    flex-wrap: wrap; justify-content: center;
}
.zone-tab {
    padding: 8px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.zone-tab:hover { border-color: var(--primary); color: var(--primary); }
.zone-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ====================================
   Teacher Cards
   ==================================== */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 32px 24px; text-align: center;
    box-shadow: var(--shadow); transition: var(--transition);
    display: block; color: var(--text);
}
.teacher-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    color: var(--text);
}
.teacher-card .teacher-avatar { 
    width: 96px; height: 96px; border-radius: 50%;
    margin: 0 auto 16px; overflow: hidden;
    border: 3px solid var(--primary-bg);
}
.teacher-card .teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card .teacher-name { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.teacher-card .teacher-title { font-size: 14px; color: var(--primary); margin-bottom: 6px; font-weight: 500; }
.teacher-card .teacher-company { font-size: 13px; color: var(--text-muted); }

/* ====================================
   Activity / Elegance List
   ==================================== */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item {
    display: flex;
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 32px 0;
}
.activity-item:first-child { padding-top: 0; }
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { color: var(--text); }
.activity-item .item-image {
    width: 220px; min-height: 150px; flex-shrink: 0;
    overflow: hidden; border-radius: var(--radius);
}
.activity-item .item-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.activity-item:hover .item-image img { transform: scale(1.05); }
.activity-item .item-content { padding: 0 0 0 28px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.activity-item .item-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.activity-item .item-summary {
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.activity-item .item-date { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.activity-item .item-more { color: var(--primary); font-size: 13px; font-weight: 500; }

/* ====================================
   Elegance / Innovation Grid
   ==================================== */
.elegance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.elegance-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    display: block; color: var(--text);
}
.elegance-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    color: var(--text);
}
.elegance-card .card-image { position: relative; padding-top: 60%; overflow: hidden; }
.elegance-card .card-image img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s;
}
.elegance-card:hover .card-image img { transform: scale(1.05); }
.elegance-card .card-body { padding: 16px 18px; }
.elegance-card .card-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.elegance-card .card-summary {
    font-size: 13px; color: var(--text-secondary); line-height: 1.7;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Innovation */
.innovation-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.innovation-item {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--border); transition: var(--transition);
}
.innovation-item:hover { border-color: var(--primary-lighter); box-shadow: var(--shadow); }
.innovation-item .item-title {
    font-size: 16px; font-weight: 600; color: var(--text);
    margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.innovation-item .item-desc {
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    margin-bottom: 12px;
}
.innovation-item .item-meta {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--text-muted);
}

/* Image Design */
.design-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.design-item {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    border: 1px solid var(--border); transition: var(--transition);
}
.design-item:hover { border-color: var(--primary-lighter); box-shadow: var(--shadow); }
.design-item .item-title {
    font-size: 16px; font-weight: 600; color: var(--text);
    margin-bottom: 10px;
}
.design-item .item-desc {
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    margin-bottom: 12px;
}
.design-item .item-meta {
    display: flex; justify-content: space-between;
    font-size: 13px; color: var(--text-muted);
}

/* ====================================
   Chat (Hidden but available)
   ==================================== */
.chat-container { display: flex; gap: 20px; min-height: 600px; }
.chat-sidebar {
    width: 250px; background: var(--white); border-radius: var(--radius-lg);
    padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.chat-sidebar h3 {
    font-size: 16px; color: var(--text); margin-bottom: 15px;
    padding-bottom: 10px; border-bottom: 2px solid var(--primary);
}
.chat-sidebar .class-list a {
    display: block; padding: 10px 15px; color: var(--text);
    border-radius: 6px; margin-bottom: 4px; font-size: 14px;
}
.chat-sidebar .class-list a:hover,
.chat-sidebar .class-list a.active { background: var(--primary-bg); color: var(--primary); }
.chat-main {
    flex: 1; background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); display: flex; flex-direction: column;
    border: 1px solid var(--border);
}
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; }
.chat-message { display: flex; gap: 12px; margin-bottom: 20px; }
.chat-message .msg-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.chat-message .msg-body { flex: 1; }
.chat-message .msg-name { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.chat-message .msg-content {
    background: var(--bg); padding: 12px 16px;
    border-radius: 2px 12px 12px 12px;
    font-size: 14px; color: var(--text); line-height: 1.7;
    display: inline-block;
}
.chat-input { padding: 15px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.chat-input textarea {
    flex: 1; border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 15px; font-size: 14px; resize: none; height: 44px; outline: none;
    font-family: inherit;
}
.chat-input textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.chat-input .btn-send {
    padding: 0 24px; background: var(--primary); color: var(--white);
    border: none; border-radius: 8px; font-size: 14px; cursor: pointer;
    font-weight: 500; transition: var(--transition);
}
.chat-input .btn-send:hover { background: var(--primary-dark); }

/* ====================================
   Detail Page
   ==================================== */
.detail-page { padding: 30px 0; }
.detail-content {
    background: var(--white); border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow);
}
.detail-header { display: flex; gap: 28px; margin-bottom: 24px; }
.detail-header .detail-cover {
    width: 320px; flex-shrink: 0; border-radius: var(--radius);
    overflow: hidden;
}
.detail-header .detail-cover img { width: 100%; height: auto; display: block; }
.detail-header .detail-info { flex: 1; }
.detail-title { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.4; }
.detail-meta {
    display: flex; gap: 20px; color: var(--text-muted); font-size: 14px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.detail-body { font-size: 15px; line-height: 2; color: var(--text); }
.detail-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.rich-content { word-break: break-word; }
.rich-content p { margin-bottom: 12px; }
.rich-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.rich-content table td, .rich-content table th { border: 1px solid var(--border); padding: 8px 12px; }
.rich-content a { color: var(--primary); text-decoration: underline; }
.rich-content video, .rich-content iframe { max-width: 100%; }
.rich-content ul, .rich-content ol { padding-left: 24px; margin-bottom: 12px; }
.rich-content blockquote { border-left: 4px solid var(--primary); padding: 8px 16px; margin: 12px 0; background: var(--primary-bg); }

/* Detail Section */
.detail-section { margin-bottom: 32px; }
.detail-section-title {
    font-size: 18px; font-weight: 600; color: var(--text);
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.detail-section-title i { color: var(--primary); font-size: 18px; }

/* Course Detail Tabs */
.detail-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.detail-tab {
    padding: 14px 0; font-size: 16px; font-weight: 500;
    color: var(--text-secondary); cursor: pointer;
    position: relative; transition: var(--transition);
}
.detail-tab:hover { color: var(--primary); }
.detail-tab.active { color: var(--primary); }
.detail-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
    height: 3px; background: var(--primary); border-radius: 2px;
}
.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

/* ====================================
   Personal Center
   ==================================== */
.center-container { padding: 0 0 60px; }
.center-container > .container { display: flex; gap: 24px; padding-top: 30px; }

.center-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow);
    align-self: flex-start;
    position: sticky;
    top: 96px;
}
.center-user-info {
    text-align: center; padding-bottom: 20px;
    border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.center-user-info .avatar {
    width: 80px; height: 80px; border-radius: 50%;
    margin: 0 auto 12px; display: block;
    border: 3px solid var(--primary-bg); object-fit: cover;
}
.center-user-info .name { font-size: 17px; font-weight: 600; color: var(--text); }
.center-user-info .company { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.center-user-info .score-badge {
    display: inline-block; margin-top: 10px; padding: 4px 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}

.center-menu { display: flex; flex-direction: column; gap: 2px; }
.center-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; color: var(--text-secondary);
    font-size: 15px; border-radius: 8px; font-weight: 500;
    transition: var(--transition);
}
.center-menu a i { width: 18px; text-align: center; font-size: 15px; }
.center-menu a:hover { background: var(--primary-bg); color: var(--primary); }
.center-menu a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(37,99,235,0.25);
    font-weight: 600;
}
.center-menu a.active i { color: var(--white); }
.center-menu a:active { transform: scale(0.98); }

.center-main {
    flex: 1; min-width: 0;
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px; box-shadow: var(--shadow);
}
.center-main-title {
    font-size: 18px; font-weight: 600; color: var(--text);
    margin-bottom: 24px; padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
    display: flex; align-items: center; gap: 8px;
    position: relative;
}
.center-main-title::after {
    content: '';
    position: absolute; bottom: -2px; left: 0;
    width: 48px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.center-main-title i { color: var(--primary); }

/* Stat Cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: var(--white); padding: 20px; border-radius: var(--radius-lg);
    text-align: center; border: 1px solid var(--border);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary-lighter); }
.stat-card .stat-num {
    font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.stat-card .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 500; letter-spacing: 0.5px; }
.stat-card.red .stat-num { color: var(--accent); }
.stat-card.green .stat-num { color: #16a34a; }
.stat-card.orange .stat-num { color: #ea580c; }
.stat-card.blue .stat-num { color: var(--primary); }

/* Profile Form */
.profile-form { max-width: 700px; }
.profile-form .form-group { margin-bottom: 20px; }
.profile-form .form-group label {
    display: block; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 6px;
}
.profile-form .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.profile-form .form-control {
    width: 100%; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; outline: none;
    transition: var(--transition); color: var(--text);
    background: var(--white); font-family: inherit;
    /*padding: 10px 14px;*/
}
.profile-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.profile-form textarea.form-control { min-height: 100px; resize: vertical; }

select.form-control {
    appearance: auto;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    padding-right: 30px;
    background-image: none;
    cursor: pointer;
    line-height: 1.4;
}

.profile-form .form-hint {
    font-size: 12px; color: var(--accent); margin-top: 6px;
}

/* Upload Area */
.upload-area { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.upload-btn {
    width: 80px; height: 80px;
    border: 2px dashed var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
    color: var(--text-muted); font-size: 12px;
}
.upload-btn i { font-size: 24px; margin-bottom: 4px; }
.upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.upload-preview { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ====================================
   Score Table
   ==================================== */
.score-table-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
}
/* Decorative gradient bar above table */
.score-table-wrapper::before {
    content: '';
    display: block;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter), var(--primary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.score-table {
    width: 100%; border-collapse: collapse;
    background: var(--white);
}
.score-table thead th {
    background: transparent;
    color: var(--primary);
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--border);
}
.score-table tbody td {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
    color: var(--text);
}
.score-table tbody tr:last-child td { border-bottom: none; }
.score-table tbody tr:hover { background: var(--primary-bg); }

/* Legacy (non-wrapper) */
.score-table:not(.score-table-wrapper .score-table) {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
/* Top 3 rank highlight */
.score-table tbody tr:nth-child(1) td:first-child,
.score-table tbody tr:nth-child(2) td:first-child,
.score-table tbody tr:nth-child(3) td:first-child {
    font-weight: 700; color: var(--primary);
}

/* ====================================
   Auth Pages
   ==================================== */
.auth-page {
    min-height: calc(100vh - 73px - 120px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(160deg, #f0f5ff 0%, var(--bg) 40%, #fef7f0 100%);
    position: relative;
}
.auth-page .landmark-bg {
    position: absolute;
}
.auth-card {
    background: var(--white); border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    width: 100%; max-width: 460px; padding: 48px 44px;
    position: relative; z-index: 1;
    border: 1px solid rgba(37,99,235,0.06);
}
.auth-card .auth-header {
    text-align: center; margin-bottom: 36px;
}
.auth-card .auth-header .auth-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 8px;
    border: 2.5px solid var(--primary);
    margin-bottom: 18px;
    position: relative;
}
.auth-card .auth-header .auth-logo::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px;
    border: 1px solid var(--primary);
    border-radius: 4px;
}
.auth-card .auth-header .auth-logo span {
    font-size: 28px; font-weight: 900; color: var(--primary);
    font-family: "楷体", "KaiTi", "STKaiti", serif;
}
.auth-card .auth-header h2 {
    font-size: 22px; font-weight: 700; color: var(--text);
    margin-bottom: 8px; letter-spacing: 2px;
}
.auth-card .auth-header p {
    font-size: 14px; color: var(--text-muted);
}

.auth-form .form-help {
    display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px;
}
.auth-form .help-block {
    display: block; font-size: 12px; color: var(--accent); margin-top: 4px;
}
.auth-card .auth-tabs {
    display: flex; gap: 0; margin-bottom: 28px;
    border-bottom: 2px solid var(--border);
}
.auth-card .auth-tabs a {
    flex: 1; text-align: center; padding: 12px 0;
    color: var(--text-secondary); font-size: 16px; font-weight: 500;
    position: relative; transition: var(--transition);
}
.auth-card .auth-tabs a:hover { color: var(--primary); }
.auth-card .auth-tabs a.active { color: var(--primary); }
.auth-card .auth-tabs a.active::after {
    content: ''; position: absolute; bottom: -2px; left: 20%; right: 20%;
    height: 2px; background: var(--primary); border-radius: 2px;
}

.auth-form .form-group { margin-bottom: 18px; }
.auth-form .form-group label {
    display: block; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 6px;
}
.auth-form .form-control {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 15px; outline: none;
    transition: var(--transition); color: var(--text); font-family: inherit;
}
.auth-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.auth-form .form-row { display: flex; gap: 12px; align-items: flex-end; }
.auth-form .form-row .form-control { flex: 1; }

.auth-form .btn-submit {
    width: 100%; padding: 13px; background: var(--primary);
    color: var(--white); border: none; border-radius: var(--radius);
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; margin-top: 8px;
    letter-spacing: 4px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.auth-form .btn-submit:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}
.auth-form .btn-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(37,99,235,0.25); }
.auth-form .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-form .form-extra {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 4px; font-size: 13px;
}
.auth-form .form-extra a { color: var(--primary); }
.auth-form .form-extra label { color: var(--text-secondary); cursor: pointer; }
.auth-form .form-extra label input { margin-right: 4px; }

.auth-form .form-footer {
    text-align: center; margin-top: 22px; font-size: 14px;
    color: var(--text-muted);
}
.auth-form .form-footer a { color: var(--primary); font-weight: 500; }

.auth-form .captcha-row { display: flex; gap: 10px; align-items: center; }
.auth-form .btn-captcha {
    padding: 10px 16px; background: var(--primary-bg);
    color: var(--primary); border: 1px solid var(--primary);
    border-radius: var(--radius); font-size: 13px; white-space: nowrap;
    cursor: pointer; font-weight: 500; transition: var(--transition);
}
.auth-form .btn-captcha:hover { background: var(--primary); color: var(--white); }

/* ====================================
   Pagination
   ==================================== */
.pagination-wrap { text-align: center; padding: 40px 0; }
.pagination { display: inline-flex; gap: 6px; list-style: none; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 1px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 14px; transition: var(--transition);
}
.pagination span.current, .pagination .active a {
    background: var(--primary); color: var(--white); border-color: var(--primary);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .disabled a { opacity: 0.4; cursor: not-allowed; }

/* ====================================
   Video List
   ==================================== */
.video-list { margin-top: 20px; }
.video-item {
    display: flex; align-items: center; padding: 14px 16px;
    border-bottom: 1px solid var(--border-light); transition: var(--transition); cursor: pointer;
    border-radius: 6px;
}
.video-item:hover { background: var(--primary-bg); }
.video-item .video-index {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-bg); color: var(--primary);
    border-radius: 50%; font-weight: 600; margin-right: 14px; flex-shrink: 0; font-size: 13px;
}
.video-item .video-info { flex: 1; }
.video-item .video-name { font-size: 14px; color: var(--text); margin-bottom: 2px; }
.video-item .video-duration { font-size: 13px; color: var(--text-muted); }
.video-item.playing { background: var(--primary-bg); border-color: var(--primary); }
.video-item.playing .video-play-icon { color: var(--accent) !important; }
.video-item.playing .video-index { background: var(--primary); color: #fff; }

/* -- Course Info Card (Detail Page) -- */
.course-info-card {
    display: flex;
    gap: 32px;
    padding: 36px 40px;
    border-bottom: 1px solid var(--border);
}
.course-info-cover {
    width: 320px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.course-info-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.course-info-cover-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 48px;
}
.course-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.course-info-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    margin: 0 0 16px;
}
.course-info-teacher {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.course-info-teacher span {
    color: var(--text-muted);
}
.course-info-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn-watch-now {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}
.btn-watch-now:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}
.btn-watch-now:active { transform: translateY(0); }
.btn-watch-now i { font-size: 18px; }

/* -- Course Detail Tabs Wrap -- */
.course-detail-tabs-wrap {
    padding: 0 40px;
    border-bottom: 1px solid var(--border);
}
.course-tab-body {
    padding: 32px 40px 40px;
}

/* -- Video Modal (Fullscreen Popup) -- */
.video-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.video-modal {
    background: #1a1a2e;
    border-radius: 16px;
    width: 960px;
    max-width: 94vw;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: videoModalIn 0.3s ease;
    display: flex;
    flex-direction: column;
}
@keyframes videoModalIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #16213e, #1a1a2e);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.video-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    color: #fff;
}
.video-modal-title-wrap i {
    color: var(--primary-lighter);
    font-size: 18px;
    flex-shrink: 0;
}
.video-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.video-modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.video-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.video-modal-player {
    background: #000;
    line-height: 0;
}
.video-modal-player video {
    max-height: 520px;
    margin: 0 auto;
}

/* Progress bar */
.video-modal-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    position: relative;
}
.video-modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
    width: 0%;
    transition: width 0.3s linear;
    border-radius: 0 2px 2px 0;
}

/* Info bar */
.video-modal-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 14px;
    background: #16213e;
}
.video-modal-time {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-modal-pct {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    min-width: 42px;
    text-align: center;
}
.video-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Write note button */
.btn-write-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(245,158,11,0.3);
}
.btn-write-note:hover {
    box-shadow: 0 4px 16px rgba(245,158,11,0.4);
    transform: translateY(-1px);
}
.btn-write-note.note-submitted {
    background: rgba(22,163,74,0.15);
    color: #4ade80;
    border-color: rgba(22,163,74,0.3);
    cursor: default;
    box-shadow: none;
}
.btn-write-note.note-submitted:hover {
    transform: none;
    box-shadow: none;
}
.btn-write-note.note-locked {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.12);
    cursor: not-allowed;
    box-shadow: none;
}
.btn-write-note.note-locked:hover {
    transform: none;
    box-shadow: none;
}

/* Playlist in modal */
.video-modal-playlist {
    max-height: 180px;
    overflow-y: auto;
    background: #0f1629;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.video-modal-playlist-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    padding: 10px 20px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vm-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.15s;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}
.vm-playlist-item:hover {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
}
.vm-playlist-item.active {
    background: rgba(37,99,235,0.15);
    color: var(--primary-lighter);
}
.vm-playlist-idx {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.vm-playlist-item.active .vm-playlist-idx {
    background: var(--primary);
    color: #fff;
}
.vm-playlist-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* -- Reflection Modal -- */
.reflection-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.reflection-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 540px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: reflectionSlideUp 0.3s ease;
}
@keyframes reflectionSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
.reflection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.reflection-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.reflection-modal-header h3 i { color: var(--primary); }
.reflection-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transition);
}
.reflection-modal-close:hover { background: var(--bg); color: var(--text); }
.reflection-modal-body { padding: 24px; }
.reflection-modal-tip {
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}
.reflection-modal-tip i { margin-right: 6px; }
.reflection-modal-tip strong { color: var(--accent); font-size: 16px; }
.reflection-form-group { margin-bottom: 18px; }
.reflection-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.reflection-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
    box-sizing: border-box;
}
.reflection-input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.reflection-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text);
    resize: vertical;
    min-height: 120px;
    transition: var(--transition);
    box-sizing: border-box;
    line-height: 1.6;
}
.reflection-textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.reflection-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.reflection-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
}
.btn-reflection-cancel {
    padding: 10px 24px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.btn-reflection-cancel:hover { background: var(--bg); }
.btn-reflection-submit {
    padding: 10px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-reflection-submit:hover { box-shadow: 0 4px 12px rgba(37,99,235,0.3); transform: translateY(-1px); }
.btn-reflection-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ====================================
   Buttons
   ==================================== */
.btn-primary-custom {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px; background: var(--primary);
    color: var(--white) !important; border-radius: var(--radius);
    font-size: 16px; font-weight: 600; border: none; cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.btn-primary-custom:hover {
    background: var(--primary-dark); color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(37,99,235,0.3);
    transform: translateY(-1px);
}
.btn-primary-custom:active { transform: translateY(0); }

.btn-more {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 32px; border: 1.5px solid var(--primary);
    color: var(--primary); border-radius: var(--radius);
    font-size: 15px; font-weight: 500; transition: all 0.25s ease;
    background: transparent;
}
.btn-more:hover {
    background: var(--primary); color: var(--white);
    box-shadow: 0 2px 10px rgba(37,99,235,0.2);
    transform: translateY(-1px);
}
.btn-more:active { transform: translateY(0); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 24px; border: 1px solid var(--border);
    color: var(--text-secondary); border-radius: var(--radius);
    font-size: 15px; transition: var(--transition); cursor: pointer;
    background: var(--white);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ====================================
   Search Bar
   ==================================== */
.search-bar {
    display: flex; max-width: 600px; margin: 0 auto 36px;
    background: var(--white); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.search-bar input {
    flex: 1; border: none; padding: 12px 18px;
    font-size: 15px; outline: none; background: transparent; color: var(--text);
}
.search-bar button {
    padding: 0 28px; background: var(--primary); color: var(--white);
    border: none; font-size: 14px; cursor: pointer; font-weight: 500;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }
.search-input-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.search-input-wrap input { width: 100%; padding-right: 36px; }
.search-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 18px; line-height: 1;
    transition: var(--transition); z-index: 1;
}
.search-clear:hover { color: var(--accent); }

/* ====================================
   Footer
   ==================================== */
.craftsman-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 48px 0 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.footer-content {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-content h3 {
    color: var(--white); margin-bottom: 0; font-weight: 700; font-size: 20px;
    display: flex; align-items: center; gap: 12px;
}
.footer-content h4 { color: var(--white); margin-bottom: 16px; font-weight: 600; font-size: 15px; }
.footer-content a {
    display: block; color: #94a3b8; font-size: 14px; margin-bottom: 10px;
    transition: var(--transition);
}
.footer-content a:hover { color: var(--white); }
.footer-content p { font-size: 14px; margin-bottom: 6px; color: #64748b; }

.footer-info { max-width: 360px; }
.footer-info p { margin-top: 8px; }

.footer-bottom {
    text-align: center; padding: 18px 0; font-size: 13px;
    color: #475569; background: rgba(0,0,0,0.15);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #64748b; }

/* ====================================
   Modal / Dialog
   ==================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 2000;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-dialog {
    background: var(--white); border-radius: var(--radius-xl);
    max-width: 520px; width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-height: 90vh; overflow-y: auto;
}
.modal-header {
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 18px; font-weight: 600; }
.modal-close {
    width: 32px; height: 32px; border: none; background: var(--bg);
    border-radius: 50%; font-size: 18px; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); text-align: right; }

/* ====================================
   Empty State
   ==================================== */
.empty-state {
    text-align: center; padding: 64px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 52px; margin-bottom: 16px; display: block;
    opacity: 0.35; color: var(--primary-lighter);
}
.empty-state p { font-size: 15px; color: var(--text-muted); }

/* ====================================
   Center Section Titles & Records
   ==================================== */
.center-section { margin-bottom: 8px; }
.center-section-title {
    font-size: 16px; font-weight: 600; color: var(--text);
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}
.center-section-title i { color: var(--primary); font-size: 16px; }

/* Record List */
.record-list { display: flex; flex-direction: column; }
.record-item {
    display: flex; align-items: center; padding: 14px 0;
    border-bottom: 1px solid var(--border-light); gap: 14px;
}
.record-item:last-child { border-bottom: none; }
.record-cover {
    width: 80px; height: 52px; border-radius: 6px;
    overflow: hidden; flex-shrink: 0;
}
.record-cover img { width: 100%; height: 100%; object-fit: cover; }
.record-info { flex: 1; min-width: 0; }
.record-title {
    font-size: 14px; font-weight: 500; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.record-meta { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.record-progress { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.record-item-detail .record-cover { width: 140px; height: 90px; }

/* Progress Bar */
.progress-bar-wrap {
    margin-top: 8px; background: var(--border); border-radius: 10px;
    height: 6px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
    border-radius: 10px; transition: width 0.4s ease;
}

/* ====================================
   Status Badges
   ==================================== */
.status-badge {
    display: inline-block; padding: 3px 12px;
    border-radius: 4px; font-size: 12px; font-weight: 500;
}
.status-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.status-warning { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.status-muted { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* Card Badges */
.card-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 2px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 500; color: var(--white);
}
.badge-green, .badge-completed { background: #16a34a; }
.badge-orange, .badge-learning { background: #d97706; }
.badge-red { background: var(--accent); }

/* Small Buttons */
.btn-sm {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; font-size: 12px; font-weight: 500;
    border-radius: 6px; cursor: pointer; transition: var(--transition);
    text-decoration: none; border: none; line-height: 1.5;
}
.btn-primary-outline {
    color: var(--primary); border: 1px solid var(--primary);
    background: transparent;
}
.btn-primary-outline:hover { background: var(--primary); color: var(--white); }
.btn-success-outline {
    color: #16a34a; border: 1px solid #16a34a;
    background: #f0fdf4;
}
.btn-disabled {
    color: var(--text-muted); border: 1px solid var(--border);
    background: var(--bg); cursor: not-allowed; opacity: 0.7;
}
.card-pct { font-weight: 600; color: var(--primary); }

/* ====================================
   Innovation Detail
   ==================================== */
.innovation-detail {
    background: var(--bg); border-radius: var(--radius-lg); padding: 24px;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
    background: var(--white); padding: 16px;
    border-radius: var(--radius); border: 1px solid var(--border);
}
.info-label {
    font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.info-value { font-size: 14px; color: var(--text); }

/* ====================================
   Evaluation Table
   ==================================== */
.eval-table-wrap {
    background: var(--bg); border-radius: var(--radius-lg);
    padding: 24px; overflow-x: auto;
}
.eval-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border-radius: var(--radius); overflow: hidden;
    background: var(--white); border: 1px solid var(--border);
}
.eval-table thead th {
    background: var(--primary); color: var(--white);
    padding: 14px 20px; font-size: 14px; font-weight: 600;
}
.eval-table tbody td {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    font-size: 14px; color: var(--text);
}
.eval-table tbody tr:last-child td { border-bottom: none; }
.eval-table tbody tr:nth-child(even) { background: var(--bg); }
.eval-table tbody tr:hover { background: var(--primary-bg); }
.eval-label { font-weight: 600; text-align: left; }
.eval-status { text-align: center; }

/* ====================================
   Class Cards
   ==================================== */
.class-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.class-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: var(--transition);
}
.class-card:hover { box-shadow: var(--shadow); border-color: var(--primary-lighter); }
.class-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.class-name { font-size: 16px; font-weight: 600; color: var(--text); margin: 0; }
.class-info { display: flex; flex-direction: column; gap: 8px; }
.class-meta {
    font-size: 13px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
}
.class-meta i { width: 16px; color: var(--text-muted); }

/* ====================================
   Message List
   ==================================== */
.message-list { display: flex; flex-direction: column; }
.message-item {
    display: flex;
    gap: 16px;
    padding: 20px 18px;
    margin-bottom: 14px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(15,23,42,0.04);
    transition: var(--transition);
}
.message-item:last-child { margin-bottom: 0; }
.message-item.is-unread {
    background: linear-gradient(135deg, rgba(239,246,255,0.95), rgba(255,255,255,0.98));
    border-color: #bfdbfe;
    box-shadow: 0 14px 34px rgba(37,99,235,0.08);
}
.message-item.is-read {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    border-color: #e2e8f0;
}
.message-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    box-shadow: inset 0 0 0 1px rgba(37,99,235,0.08);
}
.message-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
}
.message-toolbar-meta { font-size: 13px; color: var(--text-secondary); }
.message-toolbar-meta strong { color: var(--accent); }
.message-markall-btn,
.message-read-btn {
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}
.message-markall-btn {
    padding: 10px 16px;
    background: var(--primary-bg);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
}
.message-markall-btn:hover { background: #dbeafe; }
.message-markall-btn:disabled,
.message-read-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.message-content { flex: 1; min-width: 0; }
.message-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.message-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.message-item.is-unread .message-title { font-weight: 700; color: #0f172a; }
.message-title-row .message-title { margin-bottom: 0; }
.message-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.message-status.unread {
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #93c5fd;
}
.message-status.read {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.message-text {
    font-size: 13px; color: var(--text-secondary); line-height: 1.7;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    margin-bottom: 6px;
}
.message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.message-time { font-size: 12px; color: var(--text-muted); }
.message-time i { margin-right: 4px; }
.message-read-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(37,99,235,0.18);
}
.message-read-btn:hover { background: linear-gradient(135deg, #1d4ed8, #2563eb); }

/* ====================================
   Reflection Form
   ==================================== */
.reflection-course-info { margin-bottom: 24px; }
.course-meta-card {
    display: flex; gap: 20px; align-items: center;
    background: var(--primary-bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
}
.course-meta-card .course-thumb {
    width: 120px; height: 80px; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden;
}
.course-meta-card .course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-meta-card .course-info-text h4 {
    margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--text);
}
.course-meta-card .progress-info { font-size: 14px; color: var(--text-secondary); }
.course-meta-card .progress-info strong { color: var(--primary); }
.course-meta-card .threshold-hint { color: var(--text-muted); font-size: 12px; }

.reflection-submitted {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.submitted-header {
    background: #f0fdf4; border-bottom: 1px solid #bbf7d0;
    padding: 16px 24px; font-size: 15px; font-weight: 600; color: #16a34a;
}
.submitted-header i { margin-right: 8px; }
.submitted-body { padding: 24px; }
.submitted-body h4 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.submitted-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.submitted-content {
    font-size: 14px; color: var(--text); line-height: 1.8;
    background: var(--bg); padding: 20px; border-radius: var(--radius);
    border: 1px solid var(--border);
}
.status-pending { color: #d97706; font-weight: 500; }
.status-approved { color: #16a34a; font-weight: 500; }
.status-rejected { color: #dc2626; font-weight: 500; }

.reflection-form { background: var(--white); padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.reflection-form .form-group { margin-bottom: 20px; }
.reflection-form .form-group label {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
}
.reflection-form .form-group label .required { color: var(--accent); }
.reflection-form .form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; transition: var(--transition);
}
.reflection-form .form-control:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.reflection-form textarea.form-control { resize: vertical; min-height: 200px; line-height: 1.8; }
.reflection-form .form-hint {
    display: flex; justify-content: space-between; margin-top: 6px;
    font-size: 12px; color: var(--text-muted);
}
.reflection-form .form-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }

.btn-submit-lg {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px; background: var(--primary);
    color: var(--white); border: none; border-radius: var(--radius);
    font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn-submit-lg:hover { background: var(--primary-dark); }
.btn-cancel-lg {
    display: inline-flex; align-items: center;
    padding: 12px 24px; background: transparent;
    color: var(--text-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; cursor: pointer;
    text-decoration: none; transition: var(--transition);
}
.btn-cancel-lg:hover { background: var(--bg); color: var(--text); }

.progress-warn {
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: var(--radius-lg); padding: 32px;
    text-align: center; color: #92400e;
}
.progress-warn i { font-size: 36px; margin-bottom: 12px; display: block; color: #d97706; }
.progress-warn p { font-size: 15px; margin-bottom: 16px; }
.progress-warn strong { color: var(--primary); }

/* Upload Form */
.upload-form {
    background: var(--white); padding: 28px;
    border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.upload-form .form-group { margin-bottom: 20px; }
.upload-form .form-group label {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
}
.upload-form .form-group label .required { color: var(--accent); }
.upload-form .form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; transition: var(--transition);
}
.upload-form .form-control:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.upload-form textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.7; }
.upload-form .form-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }

.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius-lg);
    padding: 40px; text-align: center; cursor: pointer;
    transition: var(--transition); background: var(--bg);
}
.upload-zone:hover { border-color: var(--primary); background: var(--primary-bg); }
.upload-zone i { font-size: 36px; color: var(--text-muted); margin-bottom: 8px; display: block; }
.upload-zone p { color: var(--text-secondary); font-size: 14px; margin: 0; }
.upload-preview { margin-top: 12px; }
.upload-preview img { max-width: 200px; border-radius: var(--radius); border: 1px solid var(--border); }
.upload-preview video { max-width: 400px; border-radius: var(--radius); border: 1px solid var(--border); }

/* Material Submit */
.material-list { display: flex; flex-direction: column; gap: 12px; }
.material-item {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--white); padding: 16px 20px;
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: var(--transition);
}
.material-item:hover { border-color: var(--primary-lighter); }
.material-item .material-title { font-size: 15px; font-weight: 500; color: var(--text); }
.material-item .material-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.material-item .material-status { flex-shrink: 0; margin-left: 16px; }

/* ====================================
   Quick Submit Panel
   ==================================== */
.quick-submit-panel {
    position: fixed;
    left: auto;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 1px;
    transition: right 0.3s ease, transform 0.3s ease;
}

.quick-submit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    width: 80px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-right: none;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    cursor: pointer;
}
.quick-submit-item:first-child { border-radius: 10px 0 0 0; }
.quick-submit-item:nth-last-child(2) { border-radius: 0 0 0 10px; }
.quick-submit-item:hover {
    background: var(--primary-bg);
    color: var(--primary);
    transform: translateX(-4px);
}
.quick-submit-item .quick-icon {
    width: 38px; height: 38px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s ease;
}
.quick-submit-item:hover .quick-icon { transform: scale(1.08); }
.quick-submit-item span {
    font-size: 11px; font-weight: 500;
    line-height: 1.2; text-align: center; white-space: nowrap;
}

.quick-submit-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 22px; height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px 0 0 6px;
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 11px;
    transition: background 0.2s ease;
    box-shadow: -2px 0 6px rgba(0,0,0,0.08);
}
.quick-submit-toggle:hover { background: var(--primary-dark); }
.quick-submit-panel.collapsed .quick-submit-toggle i { transform: rotate(180deg); }

/* ====================================
   Review List (Microcourse Detail)
   ==================================== */
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-item {
    display: flex; gap: 14px; padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}
.review-item:last-child { border-bottom: none; }
.reviewer-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; border: 2px solid var(--border);
}
.review-body { flex: 1; min-width: 0; }
.reviewer-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.review-score { margin-bottom: 6px; display: flex; align-items: center; gap: 2px; }
.review-score i { font-size: 14px; }
.review-content {
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
}

/* ====================================
   Score Table Note
   ==================================== */
.score-note {
    color: var(--accent);
    font-size: 13px;
    margin-top: 12px;
    padding-left: 4px;
}

/* ====================================
   Toast Notification
   ==================================== */
.craftsman-toast-wrap {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.craftsman-toast {
    pointer-events: auto;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    max-width: 480px;
    white-space: nowrap;
}
.craftsman-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.craftsman-toast-success {
    background: #16a34a;
    color: #fff;
}
.craftsman-toast-error {
    background: #dc2626;
    color: #fff;
}
.craftsman-toast-info {
    background: var(--primary);
    color: #fff;
}
.craftsman-toast i {
    font-size: 16px;
    flex-shrink: 0;
}

/* ====================================
   Teacher Card Extended
   ==================================== */
.teacher-card .teacher-tag {
    font-size: 12px; color: var(--text-secondary); margin-bottom: 4px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
}
.teacher-card .teacher-tag i { font-size: 11px; color: var(--text-muted); }
.teacher-card .teacher-intro {
    font-size: 12px; color: var(--text-muted); margin-top: 8px; line-height: 1.6;
    overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ====================================
   Activity Grid (Homepage)
   ==================================== */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.activity-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    display: block; color: var(--text);
}
.activity-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text);
}
.activity-card .activity-cover { position: relative; padding-top: 56.25%; overflow: hidden; }
.activity-card .activity-cover img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.4s;
}
.activity-card:hover .activity-cover img { transform: scale(1.05); }
.activity-card .activity-body { padding: 16px 18px; }

/* ====================================
   Upload Inline (Innovation)
   ==================================== */
.upload-inline { display: flex; gap: 10px; align-items: center; }
.upload-inline-topic { position: relative; flex-wrap: wrap; }
/* 课题文件：屏幕外可见性隐藏，配合 label[for] 触发选择（避免 display:none 部分浏览器不弹窗） */
.topic-file-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.profile-form .form-group .form-label-block {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ====================================
   Evaluation Action
   ==================================== */
.eval-action { text-align: center; }
.eval-upload-wrap { display: flex; align-items: center; gap: 6px; justify-content: center; }
.eval-upload-status { font-size: 12px; white-space: nowrap; }

/* ====================================
   Role Summary (Material Submit)
   ==================================== */
.role-summary {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 1024px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .teacher-grid { grid-template-columns: repeat(3, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .innovation-list { grid-template-columns: 1fr; }
    .design-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 8px; }
    .main-nav .nav-list { flex-wrap: wrap; gap: 0; }
    .main-nav .nav-list li a { padding: 8px 14px; font-size: 14px; }
    .course-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .elegance-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .activity-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .chat-container { flex-direction: column; }
    .chat-sidebar { width: 100%; }
    .center-container > .container { flex-direction: column; }
    .center-sidebar { width: 100%; position: static; }
    .footer-content { flex-direction: column; gap: 24px; }
    .activity-item { flex-direction: column; }
    .activity-item .item-image { width: 100%; min-height: 200px; }
    .activity-item .item-content { padding: 16px 0 0; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .detail-header { flex-direction: column; }
    .detail-header .detail-cover { width: 100%; }
    .course-info-card { flex-direction: column; padding: 24px 20px; gap: 20px; }
    .course-info-cover { width: 100%; }
    .course-detail-tabs-wrap { padding: 0 20px; }
    .course-tab-body { padding: 24px 20px 28px; }
    .video-modal { width: 98vw; max-width: 98vw; }
    .video-modal-player video { max-height: 300px; }
    .profile-form .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 20px; }
    .class-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .record-item-detail .record-cover { width: 100px; height: 65px; }
    .quick-submit-panel { display: none; }
    .banner-section { width: 100%; }
    .banner-default {
        height: min(42vh, 320px);
        min-height: 160px;
        max-height: min(42vh, 320px);
    }
    .banner-default h2 { font-size: 28px; letter-spacing: 4px; }
    .banner-default p { font-size: 14px; }
    .banner-default .banner-seal { width: 52px; height: 52px; font-size: 28px; margin-bottom: 16px; }
    .banner-arrow { width: 36px; height: 36px; font-size: 16px; }
    .banner-arrow.prev { left: 8px; }
    .banner-arrow.next { right: 8px; }
    .banner-section:hover .banner-arrow { opacity: 0.8; }
}

@media (max-width: 576px) {
    .course-grid { grid-template-columns: 1fr; }
    .teacher-grid { grid-template-columns: 1fr; }
    .elegance-grid { grid-template-columns: 1fr; }
    .activity-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .section-title h2 { font-size: 22px; }
}

/* Homepage Innovation Cards */
.innov-home-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.innov-home-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 22px 24px; text-decoration: none; color: inherit;
    transition: all .25s ease; position: relative; overflow: hidden;
}
.innov-home-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1); opacity: 0; transition: opacity .25s;
}
.innov-home-card:hover {
    box-shadow: 0 8px 24px rgba(59,130,246,.12); transform: translateY(-2px);
    text-decoration: none; color: inherit; border-color: #93c5fd;
}
.innov-home-card:hover::before { opacity: 1; }
.innov-home-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.innov-home-badge-industry {
    padding: 4px 12px; background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.innov-home-badge-field {
    padding: 4px 12px; background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.innov-home-problem { flex: 1; font-size: 14px; line-height: 1.7; color: #475569; margin-bottom: 14px; }
.innov-home-footer {
    display: flex; gap: 16px; font-size: 12px; color: #94a3b8;
    padding-top: 12px; border-top: 1px solid #f1f5f9;
}
.innov-home-footer i { margin-right: 3px; }
@media (max-width: 768px) { .innov-home-grid { grid-template-columns: 1fr; } }
