/* ============================================
   新音院系统 - 暗黑科技风格样式表
   ============================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-base: #0d1117;
    --bg-sidebar: #161b22;
    --bg-card: #1a2030;
    --bg-card-hover: #202838;
    --bg-input: #0d1117;
    --color-primary: #2ee6a6;
    --color-primary-dark: #1cb885;
    --color-primary-glow: rgba(46, 230, 166, 0.15);
    --color-text: #e6edf3;
    --color-text-muted: #8b949e;
    --color-text-dim: #6e7681;
    --color-border: #30363d;
    --color-blue: #3b82f6;
    --color-green: #10b981;
    --color-red: #ef4444;
    --color-purple: #8b5cf6;
    --color-yellow: #facc15;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* body */
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-base);
    color: var(--color-text);
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   主布局
   ============================================ */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ============================================
   侧边导航栏
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    z-index: 100;
}

/* 品牌区 */
.brand-area {
    padding: 20px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    white-space: nowrap;
}

.brand-sub {
    font-size: 10px;
    color: var(--color-text-dim);
    margin-top: 2px;
    white-space: nowrap;
}

/* 当前视角面板 */
.view-panel {
    margin: 16px 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: var(--radius-md);
}

.view-panel-label {
    font-size: 11px;
    color: var(--color-text-dim);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.view-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.view-btn {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
}

.view-btn.active {
    background: var(--color-primary);
    color: #0d1117;
    font-weight: 600;
}

.view-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
}

.view-tip {
    font-size: 10px;
    color: var(--color-text-dim);
    margin-top: 10px;
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px solid rgba(48, 54, 61, 0.4);
}

/* 导航菜单 */
.nav-menu {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-label {
    font-size: 11px;
    color: var(--color-text-dim);
    padding: 8px 12px 4px;
    letter-spacing: 0.5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 500;
    position: relative;
    user-select: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.nav-item.active {
    background: var(--color-primary-glow);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
    padding-left: 11px;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

/* 底部管理签到 */
.bottom-panel {
    margin: 12px 14px 20px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(48, 54, 61, 0.5);
    border-radius: var(--radius-md);
}

.bottom-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.bottom-panel-header svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.8;
}

.bottom-panel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.bottom-panel-desc {
    font-size: 11px;
    color: var(--color-text-dim);
    line-height: 1.5;
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-base);
    position: relative;
}

/* 页面切换 */
.page {
    display: none;
    min-height: 100%;
    padding: 24px 32px;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

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

/* ============================================
   顶部标题栏
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header-left .page-date {
    font-size: 12px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.page-header-left .page-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 8px 16px;
    width: 220px;
    max-width: 100%;
    flex-shrink: 1;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.search-box svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--color-text-dim);
    stroke-width: 2;
    flex-shrink: 0;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--color-text);
    font-size: 13px;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--color-text-dim);
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.icon-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-glow);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-text-muted);
    stroke-width: 1.8;
}

.btn-system {
    padding: 9px 22px;
    border-radius: var(--radius-xl);
    border: none;
    background: linear-gradient(135deg, #a3e635, #2ee6a6);
    color: #0d1117;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-system:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(46, 230, 166, 0.3);
}

/* ============================================
   首页控制台
   ============================================ */
.home-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 48px);
    text-align: center;
}

.home-title {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #2ee6a6, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 16px;
    text-shadow: 0 0 80px rgba(46, 230, 166, 0.2);
}

.home-subtitle {
    font-size: 16px;
    color: var(--color-text-dim);
    letter-spacing: 2px;
}

/* ============================================
   占位页面
   ============================================ */
.placeholder-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(46, 230, 166, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.placeholder-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.5;
}

.placeholder-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.placeholder-desc {
    font-size: 14px;
    color: var(--color-text-dim);
}

/* ============================================
   横幅模块
   ============================================ */
.banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #4f46e5 50%, #7c3aed 100%);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 180px;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 230, 166, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.banner-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.banner-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(250, 204, 21, 0.9);
    color: #1e3a8a;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.banner-tag:hover {
    background: var(--color-yellow);
    transform: translateY(-1px);
}

/* 横幅右侧人物区 */
.banner-figures {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.figure-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.figure-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.figure-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 1px;
}

/* ============================================
   新成员成长专区
   ============================================ */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-left: 14px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-link {
    font-size: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.section-link:hover {
    color: var(--color-primary);
}

.growth-section {
    margin-bottom: 32px;
}

.growth-cards {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.growth-card {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
    margin-right: -8px;
}

.growth-card:first-child {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}

.growth-card:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
    margin-right: 0;
}

.growth-card-header {
    padding: 14px 28px 14px 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(46, 230, 166, 0.12), rgba(59, 130, 246, 0.12));
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.growth-step-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}

.growth-step-icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--color-text-muted);
    stroke-width: 2;
}

.growth-step-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.growth-card-body {
    padding: 16px 28px 20px 36px;
}

.growth-task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.growth-task:hover {
    color: var(--color-text);
}

.growth-task-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.growth-task-check svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
}

/* ============================================
   高光合辑推荐
   ============================================ */
.highlights-section {
    margin-bottom: 32px;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.highlight-card {
    border-radius: var(--radius-md);
    min-height: 130px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.highlight-card-img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    flex-shrink: 0;
}

.highlight-card-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.highlight-card.blue {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}
.highlight-card.green {
    background: linear-gradient(135deg, #065f46, #10b981);
}
.highlight-card.red {
    background: linear-gradient(135deg, #991b1b, #ef4444);
}
.highlight-card.purple {
    background: linear-gradient(135deg, #5b21b6, #8b5cf6);
}

.highlight-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.highlight-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* ============================================
   推荐课程
   ============================================ */
.courses-section {
    margin-bottom: 32px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.course-card {
    background: #1a1a2e;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    flex-direction: column;
}

.course-card-top {
    position: relative;
    padding: 16px 16px 12px;
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 30%, #ddd6fe 60%, #e9d5ff 100%);
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2);
}

.course-card-top::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.3), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(139,92,246,0.15), transparent 50%);
    pointer-events: none;
}

.course-card-top-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.course-card-header {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.course-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 4px;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.course-card-top-img ~ .course-card-header .course-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.course-subtitle {
    font-size: 11px;
    color: #6b21a8;
    line-height: 1.4;
}

.course-card-top-img ~ .course-card-header .course-subtitle {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.course-btn {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.course-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.course-card-bottom {
    padding: 12px 16px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.course-desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.course-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
}

.course-tag.optional {
    background: rgba(139,92,246,0.15);
    color: #a78bfa;
}

.course-learn-count {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-stars {
    color: #fbbf24;
    font-size: 10px;
    letter-spacing: 1px;
}

/* ============================================
   签到管理 iframe
   ============================================ */
.checkin-container {
    width: 100%;
    height: calc(100vh - 48px);
}

.checkin-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

/* ============================================
   详情页
   ============================================ */
.detail-page {
    padding: 24px 32px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.back-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-glow);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.detail-content {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.detail-content h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
}

.detail-content p {
    font-size: 14px;
    color: var(--color-text-dim);
}

/* ============================================
   管理后台样式
   ============================================ */
.admin-body {
    background: var(--bg-base);
    color: var(--color-text);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
}

.admin-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.admin-login-box {
    background: var(--bg-sidebar);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 380px;
}

.admin-login-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.admin-login-sub {
    font-size: 13px;
    color: var(--color-text-dim);
    text-align: center;
    margin-bottom: 28px;
}

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

.admin-form-label {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.admin-form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.admin-form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.admin-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #0d1117;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.admin-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.admin-alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}

.admin-alert.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-alert.success {
    background: rgba(46, 230, 166, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(46, 230, 166, 0.3);
}

/* 后台布局 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--color-border);
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar-brand {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
    margin-bottom: 16px;
}

.admin-sidebar-brand h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.admin-sidebar-brand p {
    font-size: 11px;
    color: var(--color-text-dim);
    margin-top: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--color-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.admin-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
}

.admin-nav-item.active {
    background: var(--color-primary-glow);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
}

.admin-main {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
}

.admin-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--color-text-dim);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
}

.admin-table td {
    padding: 12px;
    font-size: 13px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(48, 54, 61, 0.3);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-action-btn {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-right: 6px;
}

.admin-action-btn.edit {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-blue);
}

.admin-action-btn.delete {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-red);
}

.admin-action-btn:hover {
    opacity: 0.8;
}

.admin-add-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #0d1117;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    display: inline-block;
    text-decoration: none;
}

.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.admin-form select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 14px;
    outline: none;
}

.admin-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-row .admin-form-group {
    flex: 1;
}

.admin-back-link {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--color-text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.admin-back-link:hover {
    color: var(--color-primary);
}

/* 响应式 */
@media (max-width: 1400px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        min-width: 60px;
    }
    .brand-text, .view-panel, .nav-label, .bottom-panel, .nav-item span {
        display: none;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .courses-grid, .highlights-grid {
        grid-template-columns: 1fr;
    }
    .growth-cards {
        flex-direction: column;
    }
    .page {
        padding: 16px;
    }
}


/* ============================================
   首页控制台 - 新增样式
   ============================================ */

/* 首页日期浅蓝色 */
.home-date {
    color: #7dd3fc !important;
}

/* 首页标题超大号 */
.home-page-title {
    font-size: 36px !important;
}

/* 副标题 */
.section-subtitle {
    font-size: 12px;
    color: var(--color-text-dim);
    margin-top: 4px;
    padding-left: 14px;
}

/* 行布局 */
.home-row {
    flex-wrap: wrap;
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: flex-start;
}

/* 公告栏 */
.home-announcements {
    flex: 3 1 300px;
    min-width: 0;
    background: rgba(26, 32, 48, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.home-announcement-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.home-announcement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.home-announcement-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.home-announcement-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-announcement-dot.yellow { background: #facc15; box-shadow: 0 0 8px rgba(250, 204, 21, 0.4); }
.home-announcement-dot.green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.home-announcement-dot.blue { background: #3b82f6; box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.home-announcement-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
.home-announcement-dot.purple { background: #8b5cf6; box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }

.home-announcement-content {
    flex: 1;
    min-width: 0;
}

.home-announcement-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.home-announcement-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.home-announcement-tag {
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-announcement-tag.yellow { background: rgba(250, 204, 21, 0.15); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.3); }
.home-announcement-tag.green { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.home-announcement-tag.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.home-announcement-tag.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.home-announcement-tag.purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.3); }

/* 侧边小卡片 */
.home-sidebar-widgets {
    flex: 2 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-widget-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(26, 32, 48, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: var(--transition);
}

.home-widget-card:hover {
    background: rgba(32, 40, 56, 0.8);
    border-color: rgba(46, 230, 166, 0.2);
}

.home-widget-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(46, 230, 166, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-widget-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-primary);
}

.home-widget-body {
    flex: 1;
    min-width: 0;
}

.home-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.home-widget-subtitle {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 3px;
}

/* 奖励入口卡片 */
.home-rewards-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.home-reward-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.home-reward-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.home-reward-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.home-reward-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.home-reward-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.home-reward-text {
    position: relative;
    z-index: 1;
}

.home-reward-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.home-reward-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* 今日任务流 */
.home-task-flow {
    flex: 3 1 300px;
    min-width: 0;
    background: rgba(26, 32, 48, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.home-task-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.home-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.home-task-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.home-task-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
    box-shadow: 0 0 8px var(--color-primary-glow);
}

.home-task-content {
    flex: 1;
    min-width: 0;
}

.home-task-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.home-task-desc {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.home-task-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.home-task-time {
    font-size: 12px;
    color: var(--color-text-dim);
}

.home-task-status {
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(46, 230, 166, 0.3);
    cursor: pointer;
    background: rgba(46, 230, 166, 0.15);
    color: var(--color-primary);
    transition: var(--transition);
}

.home-task-status:hover {
    background: rgba(46, 230, 166, 0.25);
}

/* 交付节点时间线 */
.home-delivery-nodes {
    flex: 2 1 240px;
    min-width: 0;
    background: rgba(26, 32, 48, 0.6);
    border: 1px solid rgba(48, 54, 61, 0.6);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}

.home-timeline {
    position: relative;
    margin-top: 12px;
}

.home-timeline::before {
    content: '';
    position: absolute;
    left: 72px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(48, 54, 61, 0.6);
}

.home-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}

.home-timeline-date {
    width: 60px;
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
    flex-shrink: 0;
    padding-top: 2px;
    text-align: right;
}

.home-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--bg-base);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 8px var(--color-primary-glow);
}

.home-timeline-content {
    flex: 1;
    min-width: 0;
    padding-left: 4px;
}

.home-timeline-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.home-timeline-desc {
    font-size: 11px;
    color: var(--color-text-dim);
    line-height: 1.4;
}

/* 首页响应式 */
@media (max-width: 1200px) {
    .home-row {
        flex-direction: column;
    }
    .home-announcements,
    .home-sidebar-widgets,
    .home-task-flow,
    .home-delivery-nodes {
        flex: 1 1 100%;
        width: 100%;
    }
    .home-rewards-row {
        flex-wrap: wrap;
    }
    .home-reward-card {
        flex: 1 1 calc(50% - 8px);
    }
    .home-page-title {
        font-size: 30px !important;
    }
}

@media (max-width: 1024px) {
    .page {
        padding: 20px 18px;
    }
    .home-page-title {
        font-size: 26px !important;
    }
    .search-box {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .home-reward-card {
        flex: 1 1 100%;
    }
    .home-page-title {
        font-size: 28px !important;
    }
    .home-timeline::before {
        left: 52px;
    }
    .home-timeline-date {
        width: 40px;
    }
}

/* ============================================
   富文本编辑器 & 大弹窗样式
   ============================================ */

/* 大尺寸弹窗 */
.tr-modal-box-large {
    width: 80vw !important;
    max-width: 1200px !important;
    height: 80vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.tr-modal-body-large {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.tr-modal-form-large {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* 富文本编辑器容器 */
.tr-rte {
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1117;
    display: flex;
    flex-direction: column;
}

/* 工具栏 */
.tr-rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
    flex-shrink: 0;
}

.tr-rte-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #8b949e;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1;
}

.tr-rte-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
}

.tr-rte-btn:active {
    transform: scale(0.95);
}

.tr-rte-sep {
    width: 1px;
    height: 20px;
    background: #30363d;
    margin: 0 4px;
    flex-shrink: 0;
}

/* 颜色选择面板 */
.tr-rte-colors {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: #161b22;
    border-bottom: 1px solid #30363d;
}

.tr-rte-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #30363d;
    transition: transform 0.15s, border-color 0.15s;
    display: inline-block;
}

.tr-rte-color:hover {
    transform: scale(1.2);
    border-color: #00ff88;
}

/* 编辑区域 */
.tr-rte-editor {
    min-height: 400px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 16px 20px;
    color: #e6edf3;
    font-size: 14px;
    line-height: 1.7;
    outline: none;
    flex: 1;
    background: #0d1117;
}

.tr-rte-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 255, 136, 0.15);
}

.tr-rte-editor:empty::before {
    content: '在此输入内容...';
    color: #484f58;
    pointer-events: none;
}

/* 编辑器内容样式 */
.tr-rte-editor h2 {
    color: #00ff88;
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0 8px;
    line-height: 1.4;
}

.tr-rte-editor h3 {
    color: #2ee6a6;
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 6px;
    line-height: 1.4;
}

.tr-rte-editor p {
    margin: 8px 0;
}

.tr-rte-editor ul,
.tr-rte-editor ol {
    margin: 8px 0;
    padding-left: 24px;
}

.tr-rte-editor ul {
    list-style: disc;
}

.tr-rte-editor ol {
    list-style: decimal;
}

.tr-rte-editor li {
    margin: 4px 0;
}

.tr-rte-editor blockquote {
    border-left: 3px solid #00ff88;
    margin: 12px 0;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.05);
    color: #8b949e;
    font-style: italic;
    border-radius: 0 6px 6px 0;
}

.tr-rte-editor hr {
    border: none;
    border-top: 1px solid #30363d;
    margin: 16px 0;
}

.tr-rte-editor img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.tr-rte-editor video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.tr-rte-editor iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 8px;
    margin: 8px 0;
    display: block;
}

.tr-rte-editor a {
    color: #2ee6a6;
    text-decoration: underline;
}

.tr-rte-editor a:hover {
    color: #00ff88;
}

/* 大弹窗中的表单容器样式 */
.tr-modal-form-large .tr-rte-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin-bottom: 16px;
}

.tr-modal-form-large .tr-rte-container .tr-rte {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.tr-modal-form-large .tr-rte-container .tr-rte-editor {
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
    max-height: none;
}

.tr-modal-form-large .tr-form-actions {
    flex-shrink: 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .tr-modal-box-large {
        width: 95vw !important;
        max-width: 95vw !important;
        height: 90vh;
    }
    .tr-rte-toolbar {
        gap: 1px;
        padding: 4px;
    }
    .tr-rte-btn {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }
    .tr-rte-editor {
        min-height: 300px;
        padding: 12px;
        font-size: 13px;
    }
}
