/* =====================================================
   CSS 变量（统一管理主题色）
   ===================================================== */
:root {
    --primary: #5470c6;
    --primary-light: #f0f5ff;
    --primary-dark: #3d4a61;
    --primary-bg: #f0f5ff;
    --success: #52c41a;
    --success-bg: #f6ffed;
    --warning: #fac858;
    --danger: #dc2626;
    --text-primary: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #eee;
    --border-light: #f0f0f0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.2s ease;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* =====================================================
   0. 全局重置
   ===================================================== */
* { box-sizing: border-box; }

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

/* =====================================================
   1. 布局骨架
   ===================================================== */
.layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================================================
   2. 侧边导航
   ===================================================== */
.sidebar {
    width: 200px;
    background: #2f3a4d;
    padding: 20px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
}

.sidebar .logo {
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 0 30px;
}

.nav-item {
    padding: 14px 24px;
    color: #b8c0cc;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item:hover {
    background: #3d4a61;
    color: #fff;
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
    border-right: 3px solid #91cc75;
}

.nav-item .arrow {
    float: right;
    font-size: 12px;
    line-height: 24px;
}

/* 二级子导航 */
.nav-group { position: relative; }

.submenu {
    position: absolute;
    left: 100%;
    top: 0;
    width: 150px;
    background: #27303f;
    border-radius: 0 6px 6px 0;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.nav-group:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-item {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* =====================================================
   3. 通用组件（复用核心）
   ===================================================== */

/* ----- 3.1 页面标题 ----- */
.page-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 10px 0 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

/* ----- 3.2 白色卡片 ----- */
.profile-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px 30px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

/* ----- 3.3 小节标题 ----- */
.section-subtitle {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
}

/* ----- 3.4 时间线条目（实习/社会经历共用） ----- */
.exp-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 30px;
    border-left: 2px solid #e8ecf3;
}

.exp-item:last-child { padding-bottom: 0; }

.exp-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.exp-item.current::before {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-bg);
}

.exp-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.exp-company {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-primary);
}

.exp-role {
    color: var(--primary);
    font-size: 14px;
}

.exp-period {
    margin-left: auto;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 12px;
    flex-shrink: 0;
}

.exp-points {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.exp-points li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.exp-points li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.exp-links {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.exp-link {
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: 12px;
    padding: 4px 12px;
    text-decoration: none;
    transition: var(--transition);
}

.exp-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ----- 3.5 通用表格样式 ----- */
.generic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.generic-table th {
    background: #fafbfc;
    color: var(--text-muted);
    font-weight: normal;
    padding: 11px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.generic-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-align: center;
}

.generic-table tr:last-child td { border-bottom: none; }
.generic-table tbody tr:hover { background: #f8f9fa; }

/* ----- 3.6 链接标签 ----- */
.chsi-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    background: var(--primary-bg);
    padding: 4px 12px;
    border-radius: 20px;
    transition: var(--transition);
    white-space: nowrap;
}

.chsi-link:hover {
    background: var(--primary);
    color: #fff;
}

/* =====================================================
   4. HomePanel 首页样式
   ===================================================== */

/* 4.1 首页容器 */
.home-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    gap: 50px;
}

/* 4.2 Hero 区 */
.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #ffffff 100%);
}

.hero-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 4px solid #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-name {
    font-size: 32px;
    margin: 16px 0 8px;
    color: #1e293b;
    font-weight: bold;
}

.hero-tagline {
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
    margin: 0 0 8px;
}

.hero-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.hero-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    padding: 4px 14px;
    border-radius: 20px;
    background: #eef3fd;
    color: var(--primary);
    font-size: 13px;
    border: 1px solid #d6e4ff;
}

/* 4.3 通用区块容器 */
.section-container {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* 4.4 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 520px;
    perspective: 1000px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: var(--transition);
    user-select: none;
}

.carousel-arrow:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.15);
}

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.item-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 3;
}
.carousel-item.active .item-card {
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.carousel-item.prev {
    transform: translateX(-75%) scale(0.5);
    opacity: 0.6;
    z-index: 1;
    filter: brightness(0.85);
}
.carousel-item.next {
    transform: translateX(75%) scale(0.5);
    opacity: 0.6;
    z-index: 1;
    filter: brightness(0.85);
}
.carousel-item.hidden {
    opacity: 0;
    transform: scale(0.6);
    z-index: 0;
    pointer-events: none;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
}
.carousel-item.active .carousel-caption { opacity: 1; }
.carousel-item.prev .carousel-caption,
.carousel-item.next .carousel-caption { opacity: 0.7; }

.caption-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 6px;
}
.caption-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.carousel-indicators span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: var(--transition);
}
.carousel-indicators span:hover { background: rgba(0,0,0,0.4); }
.carousel-indicators span.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* 4.5 视频区域 */
.video-section {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 2px solid #e8ecf3;
}

.video-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.video-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a2e;
    position: relative;
    aspect-ratio: 16 / 9;
    border: 4px solid #2f3a4d;
    cursor: pointer;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: opacity 0.3s;
    cursor: pointer;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.video-wrapper:hover .play-btn {
    transform: scale(1.1);
    background: #fff;
}

.video-desc {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: center;
}

/* 4.6 项目声明 */
.project-notice {
    width: 100%;
    max-width: 1100px;
    background: var(--primary-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 22px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #4a5a7a;
    line-height: 1.7;
}
.notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.notice-text { flex: 1; }

/* 4.7 页面标题（渐变色） */
.page-header {
    width: 100%;
    max-width: 1100px;
    text-align: center;
    margin-bottom: 10px;
}

.header-title {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary), #91cc75, var(--warning), #ee6666, var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
    margin-bottom: 12px;
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.header-subtitle {
    font-size: 15px;
    color: #888;
    text-align: right;
    padding-right: 4px;
}

/* 4.8 服务列表（垂直布局） */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius);
    background: #fff;
    transition: box-shadow 0.2s;
}
.service-row:hover { box-shadow: var(--shadow-hover); }

.service-row .service-img {
    flex-shrink: 0;
    width: 800px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
}
.service-row .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}
.service-body .service-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}
.service-body .service-desc {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}
.service-body .service-brief {
    margin: 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    min-height: 1.6em;
}

.service-download {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 18px;
    font-size: 14px;
    color: #fff;
    background: #2563eb;
    border-radius: 6px;
    text-decoration: none;
    width: fit-content;
    transition: background 0.2s;
}
.service-download:hover { background: #1d4ed8; }

.service-download-placeholder {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    color: #9ca3af;
    font-style: italic;
}

/* =====================================================
   5. BasicPanel 基本信息
   ===================================================== */
.profile-hero {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.hero-banner {
    height: 110px;
    background: linear-gradient(120deg, #3d4f6f 0%, var(--primary) 60%, #73a7e8 100%);
}

.hero-body {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    padding: 0 30px 25px;
    margin-top: -55px;
    flex-wrap: wrap;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #fff;
    overflow: hidden;
    background: #eef1f6;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #bbb;
}

.hero-text { padding-bottom: 6px; }
.profile-name {
    font-size: 26px;
    font-weight: bold;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-badge {
    font-size: 12px;
    font-weight: normal;
    color: var(--success);
    background: var(--success-bg);
    border: 1px solid #b7eb8f;
    border-radius: 10px;
    padding: 3px 10px;
}

.profile-title {
    color: var(--primary);
    font-size: 15px;
    margin: 6px 0 14px;
}
.profile-contacts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.contact-item {
    background: #f5f7fa;
    border-radius: 14px;
    padding: 6px 14px;
    font-size: 13px;
    color: #555;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(1fr, 1fr);
    border-top: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.info-item {
    display: flex;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.info-label {
    width: 72px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafbfc;
    color: var(--text-muted);
    font-size: 13px;
}
.info-value {
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* =====================================================
   6. EduPanel 教育经历
   ===================================================== */
.edu-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
}

.edu-logo-box {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.edu-logo { max-width: 60px; max-height: 60px; object-fit: contain; }

.edu-school-info { flex: 1; }
.edu-school {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
}
.edu-major {
    color: var(--primary);
    font-size: 14px;
    margin-top: 4px;
}

.edu-school-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.edu-stats {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.edu-stats td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
}
.edu-stats tr:last-child td { border-bottom: none; }
.edu-stats tr:nth-child(even) td { background: #fafbfc; }

.stat-label {
    width: 130px;
    color: var(--text-muted);
    font-size: 13px;
    border-right: 1px solid var(--border-light);
}
.stat-value {
    color: var(--text-primary);
    font-weight: 500;
}
.edu-stats tr.highlight td {
    background: var(--primary-bg);
}
.edu-stats tr.highlight .stat-value {
    color: var(--primary);
    font-weight: 600;
}

.edu-desc {
    background: #fafafa;
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    padding: 12px 15px;
    margin: 18px 0 5px;
    font-size: 13px;
    color: #777;
    line-height: 1.9;
}
.edu-site-link {
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    margin-left: 8px;
}
.edu-site-link:hover { text-decoration: underline; }

.course-area { margin-top: 25px; }
.course-group { margin-top: 15px; }
.course-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.course-tag {
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 13px;
    padding: 5px 13px;
    border-radius: 12px;
    transition: var(--transition);
}
.course-tag:hover {
    background: var(--primary);
    color: #fff;
}

.transcript-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.transcript-header .section-subtitle { margin-bottom: 0; }

.download-btn {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    padding: 7px 16px;
    border-radius: 14px;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.download-btn:hover { background: #4160b0; }

.transcript-summary {
    color: var(--text-muted);
    font-size: 13px;
    margin: 12px 0 15px;
    display: flex;
    align-items: center;
}
.toggle-all {
    color: var(--primary);
    cursor: pointer;
    margin-left: 15px;
}
.toggle-all:hover { text-decoration: underline; }

.term-block { margin-bottom: 25px; }
.term-block:last-child { margin-bottom: 0; }

.term-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.term-arrow {
    display: inline-block;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.term-arrow.open { transform: rotate(90deg); }
.term-count {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-muted);
    background: #f5f7fa;
    border-radius: 10px;
    padding: 2px 10px;
}
.term-toggle-text {
    margin-left: auto;
    font-size: 12px;
    font-weight: normal;
    color: var(--primary);
}

.transcript-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.transcript-table th {
    background: #fafbfc;
    color: #888;
    font-weight: normal;
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.transcript-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-primary);
}
.transcript-table tr:last-child td { border-bottom: none; }
.transcript-table tr:hover td { background: #f8f9fa; }

.course-name { font-weight: 500; }
.course-name.core {
    font-weight: 700;
    color: #2f4d8f;
}
.course-cat { color: var(--text-muted); }
.score { font-weight: 600; }
.score-high {
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: 10px;
    padding: 2px 10px;
}
.score-low { color: #fa8c16; }
.score-level {
    color: var(--success);
    background: var(--success-bg);
    border-radius: 10px;
    padding: 2px 10px;
    font-weight: normal;
}
.core-badge {
    font-size: 11px;
    font-weight: normal;
    color: #fff;
    background: var(--primary);
    border-radius: 3px;
    padding: 1px 6px;
    margin-left: 6px;
}

/* =====================================================
   7. SocialPanel 社会经历（meta-tag 特有）
   ===================================================== */
.exp-meta {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.meta-tag {
    font-size: 12px;
    color: var(--text-muted);
    background: #f5f7fa;
    border-radius: 10px;
    padding: 2px 10px;
}

/* =====================================================
   8. SkillPanel 专业技能
   ===================================================== */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    transition: var(--transition);
}
.skill-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}
.skill-name {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.skill-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
}
.cert-item:hover {
    background: var(--primary-bg);
    transform: translateX(4px);
}
.cert-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.cert-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}
.cert-level {
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
    background: rgba(84,112,198,0.08);
    padding: 4px 12px;
    border-radius: 20px;
}

/* =====================================================
   9. WorkPanel 工作记录
   ===================================================== */
#work {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}
#work h1 {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #e0e6ed;
}

.section-anchor {
    scroll-margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
    min-width: 0;
}
#work .section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}

.summary {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    flex: 1;
    min-width: 150px;
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.card-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.number { font-size: 32px; font-weight: bold; }
.已简排     { color: var(--primary); }
.已精排     { color: #91cc75; }
.已最终     { color: var(--warning); }
.LaTeX精排   { color: #ee6666; }
.LaTeX上线   { color: #73c0de; }
.文章详情页 { color: #3ba272; }
.首页处理   { color: #fc8452; }
.积分       { color: #ff6b6b; }

.rules-section {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.rules-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
}
.rules-table {
    width: 100%;
    border-collapse: collapse;
}
.rules-table th,
.rules-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.rules-table th {
    background: #fafafa;
    color: var(--text-secondary);
    font-weight: 600;
}
.rules-table tbody tr:last-child td { border-bottom: none; }
.rules-table tbody tr:hover { background: #f8f9fa; }

.rules-formula {
    margin-top: 15px;
    padding: 12px;
    background: #fff5f5;
    border-left: 4px solid #ff6b6b;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

#chart,
.daily-chart-container {
    width: 100% !important;
    min-width: 0;
    height: 320px;
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    box-sizing: border-box;
    display: block;
    position: relative;
    overflow: hidden;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 16px;
}
.loading::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e6ed;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    color: #c53030;
    font-size: 15px;
    margin: 20px 0;
}
.error small {
    color: #718096;
    font-size: 13px;
}

.status {
    text-align: center;
    color: var(--text-muted);
    margin-top: 20px;
    font-size: 12px;
}

.month-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.month-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.month-card:hover { box-shadow: var(--shadow-hover); }

.month-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    background: #fafbfc;
    transition: background 0.2s ease;
}
.month-header:hover { background: var(--primary-bg); }

.month-arrow {
    display: inline-block;
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.25s ease;
    width: 16px;
    text-align: center;
}
.month-arrow.open { transform: rotate(90deg); }

.month-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}
.month-badge {
    font-size: 12px;
    color: #718096;
    background: #f0f0f0;
    border-radius: 10px;
    padding: 3px 10px;
}
.month-score {
    font-size: 14px;
    font-weight: 700;
    color: #ff6b6b;
    min-width: 60px;
    text-align: right;
}

.month-body {
    padding: 0 20px 20px;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.daily-table-wrap {
    background: white;
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}
.daily-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    min-width: 700px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.daily-table th {
    background: #fafbfc;
    color: #888;
    font-weight: normal;
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}
.daily-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-align: center;
}
.daily-table tr:last-child td { border-bottom: none; }
.daily-table tbody tr:hover { background: #f8f9fa; }

.date-cell {
    font-weight: 500;
    color: #555;
    text-align: left !important;
    padding-left: 14px !important;
}
.tag-empty { color: #ccc; }
.score-cell {
    font-weight: 700;
    color: #ff6b6b;
}
.month-subtotal td {
    background: #fff8f0;
    font-weight: 700;
    color: #d97706;
    border-top: 2px solid #ffe4ba;
}

/* =====================================================
   10. SalaryInfoPanel 薪资信息
   ===================================================== */
#salary-info { scroll-margin-top: 20px; }

.salary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 15px;
}
.salary-table th {
    background: #fafbfc;
    color: var(--text-muted);
    font-weight: normal;
    padding: 11px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.salary-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    text-align: center;
}
.salary-table th:first-child,
.salary-table td:first-child { text-align: left; }
.salary-table tr:last-child td { border-bottom: none; }
.salary-table tr.total td {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 700;
}
.salary-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.7;
}

/* =====================================================
   11. SalaryFormPanel 薪资表单
   ===================================================== */
.date-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.form-grid-wide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.insurance-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    background: #fafafa;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

.deduction-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

/* 表单字段 */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.form-field-green {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}
.form-field-boxed {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: #fafafa;
    border-radius: 6px;
}

.radio-group {
    display: flex;
    gap: 16px;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}
.radio-label {
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 输入框 */
.form-select {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.form-input {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}
.form-input-right {
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
}
.form-input-green {
    padding: 6px 8px;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
}
.form-input-small {
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 12px;
    text-align: right;
}
.form-input-flex {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
}

/* 标签 */
.form-label {
    font-size: 12px;
    color: #64748b;
}
.form-label-green {
    font-size: 12px;
    color: #166534;
    font-weight: 500;
}
.form-label-slate {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}
.form-label-small {
    font-size: 11px;
    color: #94a3b8;
}
.form-label-hint {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

/* 信息条 */
.info-bar-blue {
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #d6e4ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-bar-red {
    background: #fef2f2;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-box {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
}

.info-text-blue {
    font-size: 13px;
    color: #2f4d8f;
}
.info-text-blue-lg {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.info-text-red {
    font-size: 13px;
    font-weight: 600;
    color: #991b1b;
}
.info-text-red-lg {
    font-size: 20px;
    font-weight: 700;
    color: #dc2626;
}

.section-divider {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e2e8f0;
}

.hint-green {
    font-size: 11px;
    color: #14532d;
}
.hint-red {
    font-size: 11px;
    color: #dc2626;
    text-align: right;
}

.insurance-title {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}
.insurance-title-mt {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
}

.preview-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}
.preview-label {
    font-size: 11px;
    color: #64748b;
}

/* 预览值颜色 */
.preview-value-blue   { font-size: 15px; font-weight: 600; color: var(--primary); }
.preview-value-green  { font-size: 15px; font-weight: 600; color: #16a34a; }
.preview-value-red    { font-size: 15px; font-weight: 600; color: #dc2626; }
.preview-value-indigo { font-size: 15px; font-weight: 600; color: #2563eb; }
.preview-value-teal   { font-size: 15px; font-weight: 600; color: #059669; }
.preview-value-pink   { font-size: 15px; font-weight: 600; color: #db2777; }
.preview-value-amber  { font-size: 15px; font-weight: 600; color: #d97706; }

/* 按钮 */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    cursor: pointer;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-warning { background: #d97706; color: #fff; }
.btn-danger  { background: #dc2626; color: #fff; }

.btn-ghost {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mb-12 { margin-bottom: 12px; }

/* =====================================================
   12. SalaryChartPanel 薪资图表
   ===================================================== */
.text-green { color: var(--success); }
.text-blue  { color: #1890ff; }
.text-amber { color: #faad14; }
.text-pink  { color: #eb2f96; }

.chart-container {
    width: 100%;
    height: 400px;
    min-height: 300px;
}

.action-btns {
    display: flex;
    gap: 6px;
}
.btn-xs {
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    font-size: 12px;
    cursor: pointer;
}
.btn-xs.btn-primary { background: #2563eb; color: #fff; }
.btn-xs.btn-danger  { background: #dc2626; color: #fff; }

.empty-state {
    text-align: center;
    padding: 40px;
    color: #64748b;
}
.empty-state-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* =====================================================
   13. 页脚
   ===================================================== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 13px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}
.footer-text { margin: 0 0 8px; }
.footer-copyright {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* =====================================================
   14. 响应式适配
   ===================================================== */
@media (max-width: 768px) {
    .service-row {
        gap: 20px;
        padding: 20px;
    }
    .service-row .service-img {
        width: 240px;
        height: 160px;
    }
    .service-body .service-title { font-size: 18px; }
    .skill-grid { grid-template-columns: 1fr; }
    .profile-section { padding: 16px 20px; }
    .salary-table { font-size: 12px; }
    .salary-table th,
    .salary-table td { padding: 8px 6px; }
    #work { padding: 12px; }
    .daily-chart-container,
    #chart {
        height: 260px;
        padding: 10px;
    }
    .month-header {
        padding: 12px 14px;
        gap: 8px;
    }
    .month-name { font-size: 14px; }
    .daily-table { font-size: 11px; }
    .daily-table th,
    .daily-table td { padding: 6px 4px; }
    .summary { gap: 10px; }
    .card {
        min-width: 100px;
        padding: 15px 10px;
    }
    .number { font-size: 24px; }
}

@media (max-width: 640px) {
    .service-row {
        flex-direction: column;
        gap: 16px;
    }
    .service-row .service-img {
        width: 100%;
        height: 200px;
    }
    .service-body { padding-top: 0; }
    .deduction-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .date-grid { grid-template-columns: 1fr; }
    .salary-table th,
    .salary-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    .profile-section { padding: 12px 16px; }
}