/**
 * Case Library Theme Styles
 * 案例库主题样式
 * Version: 1.0.0
 */

/* ===== CSS Variables ===== */
:root {
    --primary: #185FA5;
    --primary-dark: #134A82;
    --primary-light: #E6F1FB;
    --primary-hover: #0F3D6E;
    --accent: #0F6E56;
    --accent-light: #E1F5EE;
    --warn: #854F0B;
    --warn-light: #FAEEDA;
    --danger: #A32D2D;
    --danger-light: #FCEBEB;

    --bg: #FAFAF8;
    --bg-white: #FFFFFF;
    --bg-alt: #F5F4F0;
    --border: #E0DDD3;
    --border-light: #EEEDE8;

    --text: #2C2C2A;
    --text-muted: #5F5E5A;
    --text-light: #8C8A82;

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;

    --header-h: 60px;
    --container-w: 1200px;
    --sidebar-w: 260px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-hover); }
img { max-width: 100%; height: auto; }
ul, ol { margin: 8px 0 8px 24px; }
.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== Container ===== */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--bg-alt); color: var(--text-muted); border-color: var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-light); }
.btn-text { background: none; border: none; color: var(--primary); padding: 4px 8px; }
.btn-text:hover { text-decoration: underline; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ===== Header ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
/* ===== 修复与WP管理工具栏的遮挡（仅登录用户生效） ===== */
/* 已登录用户：管理工具栏（#wpadminbar）固定在视口顶部 32px，
   sticky header 需从工具栏下方开始定位，避免被覆盖 */
body.admin-bar .site-header {
    top: 32px;
}
/* 平板/手机：管理工具栏在 ≤782px 时变为 46px 高 */
@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
/* 移动端：管理工具栏在 ≤600px 时自动隐藏，header 回到视口顶部 */
@media screen and (max-width: 600px) {
    body.admin-bar .site-header {
        top: 0;
    }
}
/* ===== Header 容器 ===== */
.header-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-branding { flex-shrink: 0; }
.site-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
    white-space: nowrap;
}
.logo-img { height: 28px; width: auto; display: block; }
.main-navigation { flex: 1; }
.main-navigation ul { list-style: none; margin: 0; display: flex; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
}
.main-navigation a:hover { background: var(--primary-light); color: var(--primary); }
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.main-navigation li:hover > .sub-menu { display: flex; }
.main-navigation .sub-menu a { padding: 6px 12px; font-size: 13px; }

.header-user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.header-action-link {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.header-action-link:hover { background: var(--primary-light); color: var(--primary); }
.header-action-highlight {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
}
.header-action-highlight:hover { background: var(--primary-light); color: var(--primary); }
.user-menu { display: flex; align-items: center; gap: 12px; margin-left: 8px; }
.user-link { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.user-name { font-weight: 500; color: var(--text); }
.teacher-badge-small {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 500;
}
.avatar-small { border-radius: 50%; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: .3s;
}
.menu-toggle-icon { position: relative; }
.menu-toggle-icon::before, .menu-toggle-icon::after {
    content: ''; position: absolute; left: 0;
}
.menu-toggle-icon::before { top: -7px; }
.menu-toggle-icon::after { top: 7px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.hero-title { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.hero-subtitle { font-size: 17px; opacity: .9; margin-bottom: 28px; }
.hero-search {
    display: flex;
    max-width: 560px;
    margin: 0 auto 20px;
    gap: 8px;
}
.hero-search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    border: none;
    border-radius: var(--radius-sm);
    outline: none;
}
.hero-search-btn {
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-search-btn:hover { background: #0B5A44; }
.hero-actions { display: flex; justify-content: center; gap: 16px; }
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ===== Section ===== */
.section-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.section-desc { color: var(--text-muted); margin-bottom: 24px; font-size: 14px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.view-all-link { font-size: 14px; font-weight: 500; }

/* ===== Perspectives Grid ===== */
.perspectives-section { padding: 48px 0; background: var(--bg-white); }
.perspectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.perspective-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all .2s;
}
.perspective-card:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.perspective-name { font-weight: 600; font-size: 14px; color: var(--text); }
.perspective-count { font-size: 12px; color: var(--text-light); }
.perspective-chinese { border-color: var(--accent); }
.perspective-chinese .perspective-name { color: var(--accent); }

/* ===== Featured & Latest ===== */
.featured-section, .latest-section { padding: 48px 0; }
.featured-section { background: var(--bg); }
.no-featured-notice { grid-column: 1 / -1; text-align: center; padding: 40px 20px; background: #fff; border: 1px dashed #d0d0c8; border-radius: 8px; }
.no-content { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: #999; font-size: 15px; }

/* ===== Author Archive ===== */
.site-main .page-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--primary); }
.site-main .page-title { font-size: 24px; font-weight: 700; color: var(--text-dark); }
.author-bio { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #666; }

/* ===== Case Grid & Cards ===== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.case-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.case-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.case-card-title { font-size: 17px; font-weight: 600; line-height: 1.4; }
.case-card-title a { color: var(--text); }
.case-card-title a:hover { color: var(--primary); }
.case-card-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.case-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}
.case-company { font-weight: 500; color: var(--text-muted); }
.case-industry { color: var(--text-light); }
.case-date { margin-left: auto; }

/* ===== Tags ===== */
.feature-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}
.tag-feature {
    background: var(--primary-light);
    color: var(--primary);
}
.tag-feature.tag-cooked { background: #FFF4E6; color: #B45309; }
.tag-feature.tag-raw { background: #F3F0FF; color: #553C9A; }
.tag-feature.tag-videos { background: #FED7D7; color: #9B2C2C; }
.tag-feature.tag-corporate-documents { background: #BEE3F8; color: #2A4365; }
.tag-feature.tag-spreadsheets { background: #C6F6D5; color: #22543D; }
.tag-feature.tag-interactive-charts { background: #FED7E6; color: #702459; }
.tag-feature.tag-teaching-package { background: var(--accent-light); color: var(--accent); }
.tag-feature.tag-award-winning { background: #FAF089; color: #744210; }

.perspective-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-perspective {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    transition: all .2s;
}
.tag-perspective:hover { background: var(--primary); color: #fff; }

/* ===== Archive Layout ===== */
.archive-header { padding: 24px 0; background: #fff; border-bottom: 1px solid var(--border); }
.archive-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.archive-description { color: var(--text-muted); font-size: 14px; }
.archive-count { color: var(--text-light); font-size: 13px; margin-top: 4px; }
.taxonomy-label {
    display: inline-block;
    font-size: 12px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 10px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.archive-body { padding: 24px 0; }
.archive-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ===== Filter Panel ===== */
.filter-panel {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.filter-section { margin-bottom: 20px; }
.filter-section:last-child { margin-bottom: 0; }
.filter-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.filter-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-light);
}
.filter-search-input, .filter-select {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s;
}
.filter-search-input:focus, .filter-select:focus { border-color: var(--primary); }

.filter-checkbox-group, .filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}
.filter-checkbox, .filter-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 0;
}
.filter-checkbox input, .filter-radio input { margin: 0; }
.checkbox-label { color: var(--text); }
.checkbox-count { color: var(--text-light); font-size: 11px; }

.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* ===== Case List Area ===== */
.case-list-area { flex: 1; min-width: 0; }
.case-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.result-count { font-size: 13px; color: var(--text-muted); }

/* ===== Loading & No Result ===== */
.case-loading {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}
.case-loading span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--primary);
    animation: bounce 1.4s infinite ease-in-out;
}
.case-loading span:nth-child(2) { animation-delay: .2s; }
.case-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
.case-no-result {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}
.case-no-result p { margin-bottom: 8px; }

/* ===== Pagination ===== */
.case-pagination { margin-top: 32px; }
.case-pagination ul.page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.case-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
}
.case-pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.case-pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== Single Case ===== */
.single-case-study { padding: 0; }
.single-header { padding: 32px 0; background: #fff; border-bottom: 1px solid var(--border); }
.single-header .feature-tags { margin-bottom: 12px; }
.case-title { font-size: 26px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }

.case-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: .5px; }
.meta-value { font-size: 14px; font-weight: 500; color: var(--text); }
.difficulty-beginner { color: var(--accent); }
.difficulty-intermediate { color: var(--warn); }
.difficulty-advanced { color: var(--danger); }

.case-author-date {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.single-body { padding: 32px 0; }
.single-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.case-article { flex: 1; min-width: 0; }
.case-sidebar { width: 280px; flex-shrink: 0; }

.block-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}
.case-excerpt-block { margin-bottom: 32px; }
.case-excerpt-text { font-size: 15px; color: var(--text-muted); font-style: italic; line-height: 1.8; }
.case-content-block { margin-bottom: 32px; }
.entry-content { font-size: 15px; line-height: 1.85; }
.entry-content p { margin-bottom: 16px; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 28px; margin-bottom: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.entry-content th, .entry-content td { padding: 8px 12px; border: 1px solid var(--border); }
.entry-content th { background: var(--bg-alt); font-weight: 600; }
.entry-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    border-left: 3px solid var(--primary);
    background: var(--primary-light);
}

/* ===== Login Prompt ===== */
.case-preview p { font-size: 15px; line-height: 1.85; color: var(--text); }
.case-login-prompt {
    margin: 24px 0;
    padding: 32px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
    border: 1px dashed var(--primary);
    border-radius: var(--radius);
    text-align: center;
}
.login-prompt-inner h4 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.login-prompt-inner p { color: var(--text-muted); margin-bottom: 16px; }
.login-prompt-actions { display: flex; justify-content: center; gap: 12px; }

/* ===== Teaching Materials ===== */
.teaching-materials {
    margin: 32px 0;
    padding: 24px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
}
.teacher-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.teaching-block { margin-bottom: 24px; }
.teaching-block:last-child { margin-bottom: 0; }
.teaching-block h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}
.teaching-content { font-size: 14px; line-height: 1.8; }
.teaching-content p { margin-bottom: 10px; }
.teaching-content ol, .teaching-content ul { margin: 8px 0 8px 24px; }
.teaching-download a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.teaching-download a:hover { background: #0B5A44; color: #fff; }

/* ===== Share Block ===== */
.case-share-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0 24px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.share-label { font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.share-actions { display: flex; gap: 10px; align-items: center; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
    position: relative;
}
.share-btn svg { flex-shrink: 0; }
.share-weibo { background: #E6162C; color: #fff; }
.share-weibo:hover { background: #C81227; color: #fff; }
.share-wechat { background: #07C160; color: #fff; }
.share-wechat:hover { background: #06A551; color: #fff; }
.share-poster { background: var(--primary); color: #fff; }
.share-poster:hover { background: var(--primary-hover); color: #fff; }

/* 微信二维码弹出（点击触发，非hover） */
.share-wechat { cursor: pointer; position: relative; }
.wechat-qr-popup {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}
.wechat-qr-popup.active { display: block; }
.wechat-qr-inner {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    padding: 16px;
    text-align: center;
}
.wechat-qr-container { display: inline-block; }
.wechat-qr-container canvas, .wechat-qr-container img { border-radius: 8px; display: block; }
.wechat-qr-inner p { font-size: 12px; color: #666; margin-top: 8px; line-height: 1.5; }
.wechat-qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

/* 海报弹窗 */
.poster-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: none; align-items: center; justify-content: center; }
.poster-modal-mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.6); }
.poster-modal-box { position: relative; z-index: 1; background: #fff; border-radius: 12px; padding: 20px; max-width: 90vw; max-height: 95vh; overflow: auto; }
.poster-close { position: absolute; top: 8px; right: 12px; background: none; border: none; font-size: 28px; color: #999; cursor: pointer; line-height: 1; z-index: 2; }
.poster-close:hover { color: #333; }
#poster-canvas { width: 100%; max-width: 375px; height: auto; border-radius: 8px; }
.poster-actions { text-align: center; margin-top: 12px; }
.poster-tip { font-size: 12px; color: #999; margin-bottom: 8px; }

/* ===== Related Reading ===== */
.related-reading {
    margin: 24px 0;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}
.related-reading h3 { font-size: 16px; margin-bottom: 8px; }
.related-reading p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ===== Sidebar Widget ===== */
.case-sidebar .sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.case-sidebar .widget-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.related-case-list { list-style: none; margin: 0; padding: 0; }
.related-case-list li { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.related-case-list li:last-child { border-bottom: none; }
.related-case-list a { font-size: 14px; color: var(--text); }
.related-case-list a:hover { color: var(--primary); }

/* ===== Teacher Page ===== */
.page-teacher .page-header { padding: 24px 0; background: #fff; border-bottom: 1px solid var(--border); }
.page-teacher .page-title { font-size: 24px; font-weight: 700; }
.page-body { padding: 32px 0; }

.notice { padding: 16px 24px; border-radius: var(--radius); margin-bottom: 24px; }
.notice-success { background: var(--accent-light); border-left: 4px solid var(--accent); }
.notice-info { background: var(--primary-light); border-left: 4px solid var(--primary); }
.notice h3 { margin-bottom: 8px; }
.notice-actions { display: flex; gap: 12px; margin-top: 12px; }

.teacher-welcome { margin-bottom: 32px; }
.teacher-welcome h2 { font-size: 20px; margin-bottom: 8px; }
.teacher-section { margin-bottom: 32px; }
.teacher-section h3 { font-size: 18px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }

.teacher-case-list { display: flex; flex-direction: column; gap: 12px; }
.teacher-case-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    gap: 16px;
}
.teacher-case-title { font-weight: 500; color: var(--text); display: block; }
.teacher-case-title:hover { color: var(--primary); }
.teacher-case-meta { font-size: 12px; color: var(--text-light); display: block; margin-top: 4px; }
.teacher-case-actions { display: flex; gap: 8px; flex-shrink: 0; }

.questions-list { display: flex; flex-direction: column; gap: 20px; }
.question-item { padding: 16px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.question-case-title a { font-weight: 600; color: var(--text); }
.question-case-title a:hover { color: var(--primary); }
.question-content { margin-top: 8px; font-size: 14px; line-height: 1.7; }

/* Teacher Application Form */
.application-intro { margin-bottom: 32px; }
.application-benefits { margin-top: 16px; padding: 16px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.application-benefits h4 { margin-bottom: 8px; }
.application-benefits ul { margin-left: 20px; }

.teacher-form { max-width: 700px; }
#teacher-form-msg { max-width: 700px; margin-bottom: 20px; }
#teacher-form-msg.notice-success { background: #d4edda; border-left: 4px solid #28a745; padding: 15px 20px; border-radius: 4px; }
#teacher-form-msg.notice-error { background: #f8d7da; border-left: 4px solid #dc3545; padding: 15px 20px; border-radius: 4px; }
#teacher-form-msg h3 { margin: 0 0 8px; }
#teacher-form-msg p { margin: 0; }

/* ===== Teacher Application Admin Meta Box ===== */
.teacher-meta-block { font-size: 13px; line-height: 1.5; }
.teacher-meta-table { width: 100%; border-collapse: collapse; margin: 0; }
.teacher-meta-table th { text-align: left; padding: 5px 8px 5px 0; width: 80px; font-weight: 600; color: #1d2327; vertical-align: top; }
.teacher-meta-table td { padding: 5px 0; color: #1d2327; vertical-align: top; }
.teacher-meta-table-wide th { width: 100px; }
.teacher-meta-table a { color: #2271b1; text-decoration: none; }
.teacher-meta-table a:hover { text-decoration: underline; }

.teacher-timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid #f0f0f1; padding-left: 16px; }
.teacher-timeline li { position: relative; padding: 6px 0 10px; }
.teacher-timeline li .tl-dot { position: absolute; left: -23px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: #2271b1; border: 2px solid #fff; box-shadow: 0 0 0 1px #2271b1; }
.teacher-timeline li .tl-dot-blue { background: #2271b1; box-shadow: 0 0 0 1px #2271b1; }
.teacher-timeline li .tl-dot-green { background: #16a34a; box-shadow: 0 0 0 1px #16a34a; }
.teacher-timeline li .tl-dot-red { background: #dc2626; box-shadow: 0 0 0 1px #dc2626; }
.teacher-timeline li .tl-dot-gray { background: #c3c4c7; box-shadow: 0 0 0 1px #c3c4c7; }
.teacher-timeline li .tl-time { font-size: 12px; color: #646970; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.teacher-timeline li .tl-reviewer { font-size: 11px; color: #2271b1; margin-top: 2px; display: inline-block; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group .required { color: var(--danger); }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s;
    font-family: var(--font-sans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-actions { margin-top: 24px; }

/* ===== Teacher Banner ===== */
.teacher-banner { padding: 32px 0; background: var(--accent); }
.teacher-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    color: #fff;
}
.teacher-banner-text h2 { font-size: 20px; margin-bottom: 4px; }
.teacher-banner-text p { opacity: .9; font-size: 14px; }

/* ===== About Section ===== */
.about-section { padding: 48px 0; text-align: center; background: var(--bg-alt); }
.about-text { font-size: 16px; color: var(--text-muted); max-width: 700px; margin: 0 auto 16px; line-height: 1.8; }

/* ===== Submit Guide Page ===== */
.page-submit .page-header { padding: 24px 0; background: #fff; border-bottom: 1px solid var(--border); }
.page-submit .page-title { font-size: 24px; font-weight: 700; }
.page-submit .page-body { padding: 32px 0; }
.submit-section { margin-bottom: 40px; }
.submit-guidelines { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); padding: 32px; }
.guide-block { margin-bottom: 28px; }
.guide-block:last-child { margin-bottom: 0; }
.guide-block h3 { font-size: 17px; font-weight: 600; color: var(--primary); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border-light); }
.guide-block ul, .guide-block ol { margin: 8px 0 8px 24px; }
.guide-block li { margin-bottom: 6px; font-size: 14px; line-height: 1.8; color: var(--text); }
.guide-block li strong { color: var(--text); }
.guide-block ul ul, .guide-block ol ul { margin-top: 4px; }
.submit-actions-area { margin-top: 32px; }
.my-cases-section { margin-top: 32px; }
.my-cases-section h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); color: var(--primary); }

/* ===== Footer ===== */
.site-footer { background: #1a1a2e; color: #c8c8c0; padding: 48px 0 24px; margin-top: 48px; }
.footer-container { max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.7; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-links a { font-size: 13px; color: #c8c8c0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; font-size: 13px; color: #888; }
.footer-bottom p { margin-bottom: 4px; }
    .footer-bottom a { color: #888; }
.footer-bottom a:hover { color: #c8c8c0; }
@media (max-width: 768px) {
    .footer-bottom a { display: block; margin-top: 6px; }
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .archive-layout { flex-direction: column; }
    .filter-panel {
        width: 100%;
        position: relative;
        top: 0;
    }
    .single-layout { flex-direction: column; }
    .case-sidebar { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-container { gap: 8px; padding: 0 12px; overflow: hidden; }
    .site-title { display: none; }
    .logo-img { height: 26px; }
    .main-navigation { display: none; }
    .menu-toggle { display: block; flex-shrink: 0; order: -1; }
    .main-navigation.active {
        display: block;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 16px;
        z-index: 999;
    }
    .main-navigation.active ul { flex-direction: column; }
    .main-navigation.active .sub-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }

    .header-user-area { gap: 4px; flex-shrink: 0; }
    .header-user-area .user-name { display: none; }
    .header-user-area .teacher-badge-small { display: none; }
    .header-action-link { display: none; }
    .header-action-highlight { display: none; }
    .header-user-area .btn { padding: 4px 10px; font-size: 13px; }

    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 14px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .case-grid { grid-template-columns: 1fr; }
    .perspectives-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

    .case-title { font-size: 20px; }
    .case-meta-bar { gap: 12px; }

    .teacher-banner-inner { flex-direction: column; text-align: center; }

    .form-row { flex-direction: column; gap: 0; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-col { margin-bottom: 24px; }
}

@media (max-width: 480px) {
    .hero-search { flex-direction: column; }
    .hero-search-btn { justify-content: center; }
    .case-card { padding: 16px; }
    .teacher-case-item { flex-direction: column; align-items: flex-start; }
}

/* ===== 用户中心页面 ===== */
.user-center-page {
    background: var(--bg);
    min-height: 60vh;
    padding: 32px 0 64px;
}

.uc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 用户信息头部 */
.uc-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.uc-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-light);
}

.uc-header-info {
    flex: 1;
}

.uc-username {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
}

.uc-usermeta {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.uc-role-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.uc-header-stats {
    display: flex;
    gap: 24px;
}

.uc-stat {
    text-align: center;
}

.uc-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.uc-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* 通知消息 */
.uc-notice {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.uc-notice-success {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid #B8E2D0;
}

.uc-notice-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid #F0C8C8;
}

/* Tab 导航 */
.uc-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.uc-tab,
.uc-tab-link {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.uc-tab:hover,
.uc-tab-link:hover {
    color: var(--primary);
}

.uc-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.uc-tab-link {
    margin-left: auto;
}

/* Tab 内容 */
.uc-tab-content {
    display: none;
}

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

/* 投稿列表表格 */
.uc-cases-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

.uc-cases-table thead th {
    background: var(--bg-alt);
    color: var(--text-muted);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.uc-cases-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.uc-cases-table tbody tr:last-child td {
    border-bottom: none;
}

.uc-case-title a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.uc-case-title a:hover {
    text-decoration: underline;
}

.uc-case-unpublished {
    color: var(--text);
}

.uc-muted {
    color: var(--text-light);
}

.uc-case-date {
    color: var(--text-light);
    white-space: nowrap;
}

/* 状态标签 */
.uc-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.uc-status-published { background: var(--accent-light); color: var(--accent); }
.uc-status-pending { background: var(--warn-light); color: var(--warn); }
.uc-status-draft { background: var(--bg-alt); color: var(--text-muted); }
.uc-status-trash { background: var(--danger-light); color: var(--danger); }

/* 空状态 */
.uc-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.uc-empty p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 8px 0;
}

/* 投稿表单 */
.uc-form-wrap {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 28px 32px;
}

.uc-form-intro {
    background: var(--primary-light);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
}

.uc-form-intro a {
    color: var(--primary);
    font-weight: 500;
}

.uc-form-intro p {
    margin: 0 0 6px;
}

.uc-form-intro p:last-child {
    margin-bottom: 0;
}

/* 表单字段 */
.uc-field {
    margin-bottom: 18px;
}

.uc-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.uc-field-row .uc-field {
    flex: 1;
    margin-bottom: 0;
}

.uc-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.uc-required {
    color: var(--danger);
}

.uc-input,
.uc-select,
.uc-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-white);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.uc-input:focus,
.uc-select:focus,
.uc-textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.1);
}

.uc-textarea {
    resize: vertical;
    line-height: 1.7;
}

.uc-field-hint {
    font-size: 12px;
    color: var(--text-light);
    margin: 4px 0 0;
}

/* WordPress编辑器容器 */
.wp-editor-wrap {
    margin-bottom: 4px;
}

/* 按钮 */
.uc-btn-primary,
.uc-btn-secondary {
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.uc-btn-primary {
    background: var(--primary);
    color: #fff;
}

.uc-btn-primary:hover {
    background: var(--primary-hover);
}

.uc-btn-secondary {
    background: var(--bg-alt);
    color: var(--text-muted);
    margin-left: 8px;
}

.uc-btn-secondary:hover {
    background: var(--border-light);
}

.uc-form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* 响应式 */
@media (max-width: 768px) {
    .uc-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .uc-header-stats {
        justify-content: center;
        gap: 20px;
    }

    .uc-field-row {
        flex-direction: column;
        gap: 0;
    }

    .uc-field-row .uc-field {
        margin-bottom: 18px;
    }

    .uc-tabs {
        flex-wrap: wrap;
    }

    .uc-tab-link {
        margin-left: 0;
    }

    .uc-form-wrap {
        padding: 20px;
    }

    .uc-cases-table {
        font-size: 13px;
    }

    .uc-cases-table thead {
        display: none;
    }

    .uc-cases-table tbody td {
        display: block;
        padding: 6px 12px;
        border: none;
    }

    .uc-cases-table tbody tr {
        border-bottom: 2px solid var(--border-light);
        padding: 8px 0;
    }
}

/* ===== 积分与角色系统 ===== */

/* 角色徽章 */
.role-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    border: 1px solid;
    background: #fff;
    vertical-align: middle;
    margin-left: 8px;
    line-height: 1.5;
}
.badge-reader { border-color: #ccc; color: #999; }
.badge-contributor { border-color: #185FA5; color: #185FA5; background: #EBF4FB; }
.badge-certified { border-color: #D4A017; color: #B88A0E; background: #FDF8E8; }
.badge-editor { border-color: #7B3FA0; color: #7B3FA0; background: #F5EDF9; }

/* 升级进度条 */
.uc-level-progress {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 16px;
}
.uc-progress-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
}
.uc-progress-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2px 12px;
    font-weight: 600;
    color: var(--primary);
}

/* 积分概览卡片 */
.uc-points-overview {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.uc-points-card {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.uc-points-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.uc-points-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 积分规则表 */
.uc-rules-table,
.uc-points-log,
.uc-levels-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}
.uc-rules-table th,
.uc-points-log th,
.uc-levels-table th {
    text-align: left;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}
.uc-rules-table td,
.uc-points-log td,
.uc-levels-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}
.uc-rules-table tr:hover,
.uc-levels-table tr:hover {
    background: #fafafa;
}

/* 积分日志 */
.uc-log-type {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}
.uc-log-earn { background: var(--accent-light); color: var(--accent); }
.uc-log-spend { background: var(--bg-alt); color: var(--text-muted); }
.uc-log-positive { color: var(--accent); font-weight: 600; }
.uc-log-negative { color: var(--danger); font-weight: 600; }

/* 权益列表 */
.uc-perks-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.uc-perk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.uc-perk-on {
    background: #f0faf0;
    border-color: #c8e6c8;
}
.uc-perk-off {
    background: #fafafa;
    opacity: 0.6;
}
.uc-perk-icon {
    font-size: 18px;
    font-weight: 700;
}
.uc-perk-on .uc-perk-icon { color: #4caf50; }
.uc-perk-off .uc-perk-icon { color: #ccc; }
.uc-perk-label { font-size: 14px; }

/* 等级卡片 */
.uc-level-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.uc-level-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    flex-shrink: 0;
}
.uc-level-detail h4 { margin: 0 0 4px; font-size: 18px; }
.uc-level-detail p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* 等级表 */
.uc-level-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.uc-level-active {
    background: #f5f5f5;
    font-weight: 600;
}
.uc-level-active td:first-child::before {
    content: '当前 ';
    color: var(--primary);
    font-size: 12px;
}

/* 区段标题 */
.uc-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}
.uc-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .uc-perks-list { grid-template-columns: 1fr; }
    .uc-points-overview { flex-direction: column; }
}

/* ===== 投稿指南 - 激励体系板块 ===== */

/* 三大维度概览卡片 */
.incentive-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f0f6fc 0%, #f5f0fa 100%);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.incentive-card {
    text-align: center;
    padding: 16px 12px;
}
.incentive-card-icon {
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1;
}
.incentive-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    border: none;
    padding: 0;
}
.incentive-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* 激励板块表格增强 */
.incentive-table {
    font-size: 14px;
}
.incentive-table th {
    white-space: nowrap;
}
.incentive-table td {
    vertical-align: middle;
}

/* 积分数字高亮 */
.incentive-points {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 10px;
}

/* 功能权益对照矩阵 */
.incentive-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.incentive-matrix {
    min-width: 480px;
}
.incentive-matrix th {
    text-align: center;
}
.incentive-matrix td:first-child {
    text-align: left;
    white-space: nowrap;
}
.matrix-col-header {
    text-align: center !important;
    font-size: 12px !important;
}
.matrix-cell {
    text-align: center;
}
.matrix-yes {
    color: #4caf50;
    font-size: 16px;
    font-weight: 700;
}
.matrix-no {
    color: #ccc;
    font-size: 15px;
}

/* 行动号召区块 */
.incentive-cta {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f6fc 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    border: 1px solid #c5ddf0;
}
.incentive-cta h3 {
    color: var(--primary) !important;
    border-bottom: none !important;
}
.incentive-cta p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text);
}
.incentive-cta .btn {
    margin-right: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .incentive-overview {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    .incentive-card {
        padding: 12px;
    }
    .incentive-cta {
        padding: 20px;
    }
    .incentive-cta .btn {
        display: block;
        width: 100%;
        margin: 0 0 10px 0;
    }
    .incentive-cta .btn:last-child {
        margin-bottom: 0;
    }
}

/* ===== 投稿指南 - 顶部快捷操作横幅 ===== */
.submit-top-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 20px 0;
    border-bottom: 3px solid var(--primary-hover);
}
.top-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.top-banner-text {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.top-banner-text strong {
    font-size: 18px;
    font-weight: 600;
}
.top-banner-hint {
    font-size: 13px;
    opacity: 0.85;
    line-height: 1.5;
}
.top-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.top-banner-actions .btn {
    border-radius: var(--radius-sm);
    border-width: 1.5px;
}
.top-banner-actions .btn-primary {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}
.top-banner-actions .btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary-light);
}
.top-banner-actions .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.top-banner-actions .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}
@media (max-width: 768px) {
    .submit-top-banner {
        padding: 16px 0;
    }
    .top-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .top-banner-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .top-banner-actions .btn {
        width: 100%;
    }
}
