/* ==========================================================
   eenano.com 前台页面样式 (pages.css)
   从各视图文件的 inline <style> 标签统一提取
   ========================================================== */


/* ===== question - index ===== */
/* ====== Page ====== */
.qa-page {
    padding-top: 20px;
    padding-bottom: 32px;
}

/* ====== Hero ====== */
.qa-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 150px;
}

.qa-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f0ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    z-index: 0;
}

.qa-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

.qa-hero-bg::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.qa-hero-body {
    position: relative;
    z-index: 1;
    padding: 30px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #1e3a5f;
}

.qa-hero-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #1e3a5f;
}

.qa-hero-title i {
    color: #3b82f6;
}

.qa-hero-desc {
    font-size: 13px;
    color: #64748b;
    margin: 5px 0 0;
}

.qa-hero-stats {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.qa-hstat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.qa-hstat strong {
    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
}

.qa-hstat span {
    font-size: 12px;
    color: #94a3b8;
}

.qa-hstat-sep {
    width: 1px;
    height: 16px;
    background: #cbd5e1;
    margin: 0 16px;
}

.qa-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.qa-ask-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qa-ask-btn.outline {
    background: transparent;
    color: #3b82f6;
    border: 1.5px solid #93c5fd;
}

.qa-ask-btn.outline:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* ====== Tabs ====== */
.qa-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 0 16px;
    margin-bottom: 12px;
}

.qa-tab {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.qa-tab:hover {
    color: #3b82f6;
}

.qa-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.qa-tab-count {
    margin-left: auto;
    font-size: 12px;
    color: #bbb;
}

/* ====== List ====== */
.qa-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

.qa-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
}

.qa-item:last-child {
    border-bottom: none;
}

.qa-item:hover {
    background: #f8fafd;
}

.qa-item-stats {
    text-align: center;
    min-width: 64px;
    flex-shrink: 0;
}

.qa-ans-box {
    padding: 8px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.15s;
}

.qa-ans-num {
    font-size: 18px;
    font-weight: 700;
    display: block;
    color: #aaa;
}

.qa-ans-label {
    font-size: 11px;
    color: #bbb;
}

.qa-ans-box.has-answer {
    border-color: #f59e0b;
    background: #fffbeb;
}

.qa-ans-box.has-answer .qa-ans-num {
    color: #d97706;
}

.qa-ans-box.resolved {
    border-color: #10b981;
    background: #ecfdf5;
}

.qa-ans-box.resolved .qa-ans-num {
    color: #059669;
}

.qa-views {
    font-size: 11px;
    color: #ccc;
    margin-top: 4px;
}

.qa-item-body {
    flex: 1;
    min-width: 0;
}

.qa-item-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.5;
}

.qa-item-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.15s;
}

.qa-item-title a:hover {
    color: #3b82f6;
}

.qa-item-meta {
    font-size: 12px;
    color: #aaa;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.qa-item-meta span {
    margin-right: 10px;
}

.qa-item-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    background: #eff6ff;
    color: #3b82f6;
    transition: all 0.15s;
}

.qa-item-tag:hover {
    background: #3b82f6;
    color: #fff;
}

/* ====== Empty ====== */
.qa-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.qa-empty i {
    font-size: 48px;
    color: #ddd;
}

.qa-empty p {
    color: #999;
    margin: 12px 0;
}

/* ====== Sidebar ====== */
.qa-side {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.qa-side-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.qa-side-body {
    padding: 12px 16px;
}

.qa-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.qa-tip i {
    color: #3b82f6;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.qa-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qa-cloud-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f6f8;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.15s;
}

.qa-cloud-tag:hover {
    background: #eff6ff;
    color: #3b82f6;
}

.qa-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.qa-stat-cell {
    text-align: center;
    padding: 10px 8px;
    background: #f0f7ff;
    border-radius: 8px;
}

.qa-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #2563eb;
}

.qa-stat-lbl {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
    .qa-hero-body {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .qa-item {
        padding: 12px;
        gap: 12px;
    }

    .qa-item-stats {
        min-width: 50px;
    }
}

/* ===== question - view ===== */
.qv-page {
    padding-top: 20px;
    padding-bottom: 32px;
}

/* ====== Main ====== */
.qv-main {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.qv-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f3f4f6;
}

.qv-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 14px;
    line-height: 1.45;
}

.qv-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.qv-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.qv-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: block;
}

.qv-pub-time {
    font-size: 12px;
    color: #94a3b8;
}

.qv-counters {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.qv-counters i {
    color: #93c5fd;
}

.qv-tags {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qv-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #eff6ff;
    color: #3b82f6;
    transition: all 0.15s;
}

.qv-tag:hover {
    background: #3b82f6;
    color: #fff;
}

.qv-content {
    padding: 28px;
    line-height: 1.9;
    font-size: 15px;
    color: #374151;
    min-height: 80px;
}

.qv-content img {
    max-width: 100%;
    border-radius: 8px;
}

/* ====== Answers ====== */
.qv-answers-section {
    margin-bottom: 20px;
}

.qv-answers-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
}

.qv-answers-count {
    margin-left: 8px;
    font-size: 12px;
    background: #eff6ff;
    color: #3b82f6;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.qv-no-answer {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
}

.qv-no-answer i {
    font-size: 36px;
    color: #d1d5db;
}

.qv-no-answer p {
    color: #94a3b8;
    margin: 8px 0 0;
    font-size: 14px;
}

.qv-answer {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.qv-answer:hover {
    border-color: #dbeafe;
}

.qv-answer.accepted {
    border-color: #86efac;
    border-width: 2px;
}

.qv-accepted-ribbon {
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    color: #16a34a;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #bbf7d0;
}

.qv-answer-body {
    padding: 16px 20px;
}

.qv-answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.qv-answer-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qv-answer-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.qv-answer-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.qv-answer-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 8px;
}

.qv-answer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qv-like-count {
    font-size: 13px;
    color: #94a3b8;
}

.qv-accept-btn {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    background: #dcfce7;
    color: #16a34a;
    transition: all 0.15s;
}

.qv-accept-btn:hover {
    background: #16a34a;
    color: #fff;
}

.qv-answer-content {
    font-size: 14px;
    line-height: 1.8;
    color: #4b5563;
}

/* ====== Form ====== */
.qv-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

.qv-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
}

.qv-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
}

.qv-textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.qv-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.qv-form-tip {
    font-size: 12px;
    color: #94a3b8;
}

.qv-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.qv-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.qv-login-prompt {
    text-align: center;
    padding: 20px 0;
}

.qv-login-prompt p {
    color: #94a3b8;
    margin: 0 0 12px;
    font-size: 14px;
}

/* ====== Sidebar ====== */
.qv-side {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.qv-side-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.qv-side-body {
    padding: 12px 16px;
}

.qv-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f0f0f0;
}

.qv-info-row:last-child {
    border: none;
}

.qv-info-row>span:first-child {
    color: #94a3b8;
}

.qv-info-row strong {
    color: #334155;
    font-weight: 700;
}

.qv-status {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.qv-status.resolved {
    background: #dcfce7;
    color: #16a34a;
}

.qv-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.qv-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.qv-side-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f6f8;
    border-radius: 5px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    transition: all 0.15s;
}

.qv-side-tag:hover {
    background: #eff6ff;
    color: #3b82f6;
}

.qv-quick-link {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
    border-bottom: 1px dashed #f0f0f0;
}

.qv-quick-link:last-child {
    border: none;
}

.qv-quick-link:hover {
    color: #3b82f6;
}

.qv-quick-link i {
    color: #93c5fd;
}

@media (max-width: 768px) {
    .qv-header {
        padding: 16px;
    }

    .qv-content {
        padding: 16px;
    }

    .qv-answer-body {
        padding: 12px;
    }
}

/* ===== question - create ===== */
.post-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .04)
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0
}

.post-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.post-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary)
}

.post-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0
}

.step-guide {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 20px;
    background: #fafafa;
    border-radius: 12px
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: .4;
    transition: all .3s
}

.step-item.active {
    opacity: 1
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center
}

.step-item span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary)
}

.step-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 12px
}

.detail-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 6px
}

.hint-tag {
    background: #fff8e1;
    color: #f57c00;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.editor-container {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden
}

.tox-tinymce {
    border: none !important
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px
}

.hot-tag-btn {
    border: 1px solid #e0e0e0;
    background: #fafafa;
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s
}

.hot-tag-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f5f3ff
}

.tips-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .03)
}

.tips-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-size: 15px
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5
}

.tips-list li i {
    color: #ff9800;
    margin-top: 2px;
    flex-shrink: 0
}

.reward-items {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.reward-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 8px;
    font-size: 13px
}

.reward-label {
    color: var(--text-secondary)
}

.reward-value {
    color: var(--primary);
    font-weight: 700
}

/* ===== forum - index ===== */
/* ====== Page ====== */
.forum-page {
    padding-top: 20px;
    padding-bottom: 32px;
}

/* ====== Hero ====== */
.fm-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    min-height: 150px;
}

.fm-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f0ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    z-index: 0;
}

.fm-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

.fm-hero-bg::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.fm-hero-body {
    position: relative;
    z-index: 1;
    padding: 30px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #1e3a5f;
}

.fm-hero-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #1e3a5f;
}

.fm-hero-title i {
    color: #3b82f6;
}

.fm-hero-desc {
    font-size: 13px;
    color: #64748b;
    margin: 5px 0 0;
}

.fm-hero-stats {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.fm-hstat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.fm-hstat strong {
    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
}

.fm-hstat span {
    font-size: 12px;
    color: #94a3b8;
}

.fm-hstat-sep {
    width: 1px;
    height: 16px;
    background: #cbd5e1;
    margin: 0 16px;
}

.fm-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.fm-post-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fm-post-btn.outline {
    background: transparent;
    color: #3b82f6;
    border: 1.5px solid #93c5fd;
}

.fm-post-btn.outline:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* ====== Section Title ====== */
.fm-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.fm-section-title i {
    color: #3b82f6;
}

.fm-section-count {
    margin-left: auto;
    font-size: 12px;
    color: #bbb;
    font-weight: 400;
}

/* ====== Board Cards ====== */
.fm-board {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
    height: 100%;
}

.fm-board:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.fm-board-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fm-board-icon i {
    font-size: 24px;
}

.fm-board-info {
    flex: 1;
    min-width: 0;
}

.fm-board-name {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    transition: color 0.15s;
}

.fm-board:hover .fm-board-name {
    color: #2563eb;
}

.fm-board-desc {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-board-stats {
    font-size: 12px;
    color: #aaa;
}

.fm-board-stats span {
    margin-right: 16px;
}

.fm-board-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fm-board:hover .fm-board-arrow {
    background: #3b82f6;
    color: #fff;
}

/* ====== Notice ====== */
.fm-notice {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: #fafbfc;
    border: 1px solid #eee;
    border-radius: 12px;
    align-items: flex-start;
}

.fm-notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fm-notice-body {
    flex: 1;
}

.fm-notice-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.fm-notice-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.fm-notice-items span {
    font-size: 13px;
    color: #777;
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
    .fm-hero-body {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .fm-board {
        padding: 14px;
        gap: 12px;
    }

    .fm-board-icon {
        width: 44px;
        height: 44px;
    }

    .fm-notice {
        flex-direction: column;
    }
}

/* ===== forum - board ===== */
.fb-page {
    padding-top: 20px;
    padding-bottom: 32px;
}

/* ====== Hero ====== */
.fb-hero {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.fb-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f0ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    z-index: 0;
}

.fb-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

.fb-hero-body {
    position: relative;
    z-index: 1;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.fb-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fb-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #3b82f6;
    flex-shrink: 0;
}

.fb-hero-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    color: #1e3a5f;
}

.fb-hero-desc {
    font-size: 13px;
    color: #64748b;
    margin: 3px 0 0;
}

.fb-hero-stats {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 6px;
}

.fb-hero-stats span {
    margin-right: 16px;
}

.fb-hero-stats i {
    color: #3b82f6;
}

.fb-hero-right {
    display: flex;
    gap: 8px;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.fb-btn.primary {
    background: #3b82f6;
    color: #fff;
}

.fb-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.fb-btn.outline {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.fb-btn.outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* ====== Thread List ====== */
.fb-list {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

.fb-list-header {
    display: grid;
    grid-template-columns: 1fr 120px 100px 110px;
    padding: 12px 20px;
    background: #fafbfc;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    border-bottom: 1px solid #eee;
}

.fb-row {
    display: grid;
    grid-template-columns: 1fr 120px 100px 110px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.fb-row:last-child {
    border-bottom: none;
}

.fb-row:hover {
    background: #f8fafd;
}

.fb-row.is-top {
    background: #fffdf5;
}

.fb-row.is-top:hover {
    background: #fffbe8;
}

.fb-title-col {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.fb-link {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}

.fb-row:hover .fb-link {
    color: #3b82f6;
}

.fb-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.fb-badge.top {
    background: #fef3c7;
    color: #d97706;
}

.fb-badge.digest {
    background: #dcfce7;
    color: #16a34a;
}

.fb-author {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fb-author-name {
    font-weight: 600;
    color: #334155;
}

.fb-time {
    color: #94a3b8;
    font-size: 11px;
}

.fb-stats {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.fb-reply-num {
    font-weight: 700;
    color: #3b82f6;
}

.fb-slash {
    color: #d1d5db;
}

.fb-view-num {
    color: #94a3b8;
}

.fb-last {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-no-reply {
    color: #d1d5db;
}

.fb-empty {
    text-align: center;
    padding: 60px 20px;
}

.fb-empty i {
    font-size: 48px;
    color: #ddd;
}

.fb-empty p {
    color: #999;
    margin: 12px 0;
}

/* ====== Sidebar ====== */
.fb-side {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.fb-side-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.fb-side-body {
    padding: 12px 16px;
}

.fb-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f0f0f0;
}

.fb-info-row:last-child {
    border: none;
}

.fb-info-row span {
    color: #94a3b8;
}

.fb-info-row strong {
    color: #2563eb;
    font-weight: 700;
}

.fb-nav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fb-nav-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    background: #f5f6f8;
    text-decoration: none;
    transition: all 0.15s;
}

.fb-nav-tag:hover {
    background: #eff6ff;
    color: #3b82f6;
}

.fb-nav-tag.active {
    background: #3b82f6;
    color: #fff;
}

@media (max-width: 768px) {

    .fb-list-header,
    .fb-stats,
    .fb-last {
        display: none;
    }

    .fb-row {
        grid-template-columns: 1fr 100px;
    }

    .fb-hero-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== forum - thread ===== */
.ft-page {
    padding-top: 20px;
    padding-bottom: 32px;
}

/* ====== Main Thread ====== */
.ft-main {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.ft-header {
    padding: 24px 28px;
    border-bottom: 1px solid #f3f4f6;
}

.ft-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.ft-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.ft-badge.top {
    background: #fef3c7;
    color: #d97706;
}

.ft-badge.digest {
    background: #dcfce7;
    color: #16a34a;
}

.ft-title {
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 14px;
    line-height: 1.4;
}

.ft-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ft-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.ft-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: block;
}

.ft-pub-time {
    font-size: 12px;
    color: #94a3b8;
}

.ft-counters {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.ft-counters i {
    color: #93c5fd;
}

.ft-content {
    padding: 28px;
    line-height: 1.9;
    font-size: 15px;
    color: #374151;
    min-height: 100px;
}

.ft-content img {
    max-width: 100%;
    border-radius: 8px;
}

.ft-actions {
    padding: 16px 28px;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}

.ft-action-btn {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.ft-action-btn:hover {
    color: #3b82f6;
}

/* ====== Replies ====== */
.ft-replies {
    margin-bottom: 20px;
}

.ft-replies-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
}

.ft-replies-count {
    margin-left: 8px;
    font-size: 12px;
    background: #eff6ff;
    color: #3b82f6;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.ft-reply {
    display: flex;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: border-color 0.15s;
}

.ft-reply:hover {
    border-color: #dbeafe;
}

.ft-reply-left {
    flex-shrink: 0;
}

.ft-reply-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.ft-reply-right {
    flex: 1;
    min-width: 0;
}

.ft-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.ft-reply-name {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.ft-reply-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 8px;
}

.ft-reply-floor {
    font-size: 12px;
    color: #cbd5e1;
    font-weight: 700;
}

.ft-reply-body {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

/* ====== Reply Form ====== */
.ft-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px;
}

.ft-form-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px;
}

.ft-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
}

.ft-textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.ft-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.ft-form-tip {
    font-size: 12px;
    color: #94a3b8;
}

.ft-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ft-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ft-login-prompt {
    text-align: center;
    padding: 24px 0;
}

.ft-login-icon {
    font-size: 36px;
    color: #93c5fd;
    margin-bottom: 8px;
}

.ft-login-prompt p {
    color: #94a3b8;
    margin: 0 0 12px;
    font-size: 14px;
}

/* ====== Sidebar ====== */
.ft-side {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.ft-side-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.ft-side-body {
    padding: 12px 16px;
}

.ft-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f0f0f0;
}

.ft-info-row:last-child {
    border: none;
}

.ft-info-row span {
    color: #94a3b8;
}

.ft-info-row strong {
    color: #334155;
    font-weight: 700;
}

.ft-info-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.ft-info-link:hover {
    text-decoration: underline;
}

.ft-nav-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ft-nav-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #555;
    background: #f5f6f8;
    text-decoration: none;
    transition: all 0.15s;
}

.ft-nav-tag:hover {
    background: #eff6ff;
    color: #3b82f6;
}

.ft-nav-tag.active {
    background: #3b82f6;
    color: #fff;
}

@media (max-width: 768px) {
    .ft-header {
        padding: 16px;
    }

    .ft-content {
        padding: 16px;
    }

    .ft-reply {
        padding: 12px;
    }
}

/* ===== forum - create ===== */
.post-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .04)
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0
}

.post-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.post-card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary)
}

.post-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0
}

.board-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.board-option {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all .2s;
    background: #fafafa
}

.board-option input {
    display: none
}

.board-option:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #fff
}

.board-option.active {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary)
}

.editor-container {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden
}

.tox-tinymce {
    border: none !important
}

.tips-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .03)
}

.tips-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-size: 15px
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5
}

.tips-list li i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0
}

.tips-content {
    font-size: 13px
}

.feature-tag {
    background: #f5f3ff;
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px
}

/* ===== article - view ===== */
.article-abstract {
    background: #f8f9fa;
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-content {
    font-size: 15px;
    line-height: 2;
    color: #333;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 24px 0 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-content table td,
.article-content table th {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    background: #f8f9fa;
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.tr-color:hover {
    color: var(--primary) !important;
}

.comment-section {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0
}

.comment-post-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px
}

.cmt-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0
}

.cmt-item:last-child {
    border: none
}

.cmt-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0
}

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

.cmt-user {
    font-weight: 700;
    font-size: 13px
}

.cmt-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px
}

.cmt-text {
    font-size: 14px;
    margin: 4px 0;
    line-height: 1.6
}

.cmt-replies {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px
}

.cmt-reply-item {
    margin-bottom: 4px
}

.cmt-reply-user {
    font-weight: 600;
    color: var(--primary)
}

/* ===== download - index ===== */
/* ====== Page ====== */
.dl-page {
    padding-top: 20px;
    padding-bottom: 32px;
}

/* ====== Hero Card — 与下方 row 同宽同容器 ====== */
.dl-hero-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 160px;
}

.dl-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f0ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    z-index: 0;
}

.dl-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
    background-size: 20px 20px;
}

.dl-hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.dl-hero-content {
    position: relative;
    z-index: 1;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    color: #1e3a5f;
}

.dl-hero-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    color: #1e3a5f;
}

.dl-hero-title i {
    color: #3b82f6;
}

.dl-hero-desc {
    font-size: 13px;
    color: #64748b;
    margin: 5px 0 0;
}

.dl-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 14px;
}

.dl-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.dl-stat strong {
    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
}

.dl-stat span {
    font-size: 12px;
    color: #94a3b8;
}

.dl-stat-sep {
    width: 1px;
    height: 16px;
    background: #cbd5e1;
    margin: 0 16px;
}

.dl-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
    width: 420px;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.08);
    transition: all 0.2s;
}

.dl-search-box:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
}

.dl-search-box i {
    color: #93c5fd;
    font-size: 15px;
}

.dl-search-input {
    background: none;
    border: none;
    outline: none;
    color: #1e3a5f;
    padding: 8px 12px;
    flex: 1;
    font-size: 14px;
}

.dl-search-input::placeholder {
    color: #94a3b8;
}

.dl-search-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 9px 24px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dl-search-btn:hover {
    background: #2563eb;
}

/* ====== Filter ====== */
.dl-filter-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.dl-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    padding-top: 4px;
    flex-shrink: 0;
}

.dl-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.dl-ftag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    background: #f5f6f8;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.dl-ftag:hover {
    color: #3b82f6;
    background: #eff6ff;
}

.dl-ftag.active {
    background: #3b82f6;
    color: #fff;
}

.dl-filter-total {
    font-size: 12px;
    color: #bbb;
    white-space: nowrap;
    padding-top: 5px;
    flex-shrink: 0;
}

/* More dropdown */
.dl-more-wrap {
    position: relative;
}

.dl-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #3b82f6;
    background: #eff6ff;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.dl-more-btn:hover {
    background: #dbeafe;
}

.dl-more-btn i {
    font-size: 11px;
    transition: transform 0.2s;
}

.dl-more-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    z-index: 100;
    min-width: 380px;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-more-wrap.open .dl-more-panel {
    display: flex;
}

.dl-more-wrap.open .dl-more-btn i {
    transform: rotate(180deg);
}

/* ====== List ====== */
.dl-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
}

.dl-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

.dl-card:last-child {
    border-bottom: none;
}

.dl-card:hover {
    background: #f8fafd;
}

/* 文件类型图标 — 区分颜色 */
.dl-card-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eff6ff;
    color: #3b82f6;
}

.dl-card-icon.pdf {
    background: #fef2f2;
    color: #dc2626;
}

.dl-card-icon.zip {
    background: #fffbeb;
    color: #d97706;
}

.dl-card-icon.rar {
    background: #f5f3ff;
    color: #7c3aed;
}

.dl-card-icon.doc,
.dl-card-icon.docx {
    background: #eff6ff;
    color: #2563eb;
}

.dl-type-label {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: .3px;
    background: currentColor;
    color: #fff;
}

/* 让badge用白字 */
.dl-card-icon.pdf .dl-type-label {
    background: #dc2626;
}

.dl-card-icon.zip .dl-type-label {
    background: #d97706;
}

.dl-card-icon.rar .dl-type-label {
    background: #7c3aed;
}

.dl-card-icon .dl-type-label {
    background: #3b82f6;
    color: #fff;
}

.dl-card-body {
    flex: 1;
    min-width: 0;
}

.dl-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s;
}

.dl-card:hover .dl-card-title {
    color: #3b82f6;
}

.dl-card-desc {
    font-size: 13px;
    color: #999;
    margin: 0 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #aaa;
}

.dl-meta-cat {
    color: #3b82f6;
    font-weight: 500;
}

.dl-card-action {
    flex-shrink: 0;
}

.dl-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #f0f7ff;
    color: #3b82f6;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.dl-card:hover .dl-action-btn {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* ====== Empty ====== */
.dl-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
}

.dl-empty i {
    font-size: 48px;
    color: #ddd;
}

.dl-empty p {
    color: #999;
    margin: 12px 0;
}

/* ====== Sidebar ====== */
.dl-side {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
}

.dl-side-title {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.dl-side-body {
    padding: 10px 16px 14px;
}

/* Rank */
.dl-rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    text-decoration: none;
    color: #444;
    transition: color 0.15s;
    border-bottom: 1px solid #f8f9fa;
}

.dl-rank-item:last-child {
    border-bottom: none;
}

.dl-rank-item:hover {
    color: #3b82f6;
}

.dl-rank-num {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: #f0f0f0;
    color: #999;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dl-rank-num.top1 {
    background: #ef4444;
    color: #fff;
}

.dl-rank-num.top2 {
    background: #f97316;
    color: #fff;
}

.dl-rank-num.top3 {
    background: #eab308;
    color: #fff;
}

.dl-rank-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dl-rank-cnt {
    font-size: 11px;
    color: #bbb;
    flex-shrink: 0;
    font-feature-settings: 'tnum';
}

/* Format */
.dl-fmt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dl-fmt-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    transition: all 0.15s;
}

.dl-fmt-item:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.dl-fmt-item i {
    font-size: 18px;
}

/* Tags */
.dl-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-tag-item {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f6f8;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.15s;
}

.dl-tag-item:hover {
    background: #eff6ff;
    color: #3b82f6;
}

/* ====== Responsive ====== */
@media (max-width: 991px) {
    .dl-hero-content {
        padding: 24px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .dl-search-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dl-card {
        padding: 12px;
        gap: 12px;
    }

    .dl-card-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .dl-more-panel {
        min-width: 260px;
    }

    .dl-filter-bar {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== download - view ===== */
/* Header */
.dlv-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px
}

.dlv-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.dlv-header-info {
    flex: 1;
    min-width: 0
}

.dlv-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
    line-height: 1.4
}

.dlv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted)
}

.dlv-meta-cat {
    color: var(--primary);
    font-weight: 600
}

/* Download Box */
.dlv-download-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f5f3ff, #ede7f6);
    border: 2px solid #d1c4e9;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 20px
}

.dlv-download-info {
    display: flex;
    align-items: center;
    gap: 14px
}

.dlv-file-icon {
    font-size: 36px
}

.dlv-download-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.dlv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    color: #fff
}

.dlv-download-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none
}

/* Cover */
.dlv-cover {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center
}

.dlv-cover img {
    max-width: 100%;
    border-radius: 8px
}

/* Content */
.dlv-content-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 20px
}

.dlv-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block
}

.dlv-content-body {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary)
}

.dlv-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0
}

.dlv-content-body p {
    margin-bottom: 12px
}

/* Tags */
.dlv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px
}

.dlv-tag {
    background: #f5f3ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500
}

/* Sidebar */
.dlv-info-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px
}

.dlv-sidebar-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text-primary)
}

.dlv-info-table {
    width: 100%;
    font-size: 13px
}

.dlv-info-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5
}

.dlv-info-table td:first-child {
    color: var(--text-muted);
    width: 80px
}

.dlv-info-table tr:last-child td {
    border-bottom: none
}

/* Related */
.dlv-related-list {
    display: flex;
    flex-direction: column;
    gap: 0
}

.dlv-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: color .2s
}

.dlv-related-item:last-child {
    border-bottom: none
}

.dlv-related-item:hover .dlv-related-title {
    color: var(--primary)
}

.dlv-related-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5f3ff;
    color: var(--primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.dlv-related-info {
    flex: 1;
    min-width: 0
}

.dlv-related-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.dlv-related-meta {
    font-size: 11px;
    color: var(--text-muted)
}

@media(max-width:768px) {
    .dlv-header {
        flex-direction: column;
        gap: 12px
    }

    .dlv-download-box {
        flex-direction: column;
        gap: 16px;
        text-align: center
    }
}

/* ===== video - index ===== */
.video-card-link {
    text-decoration: none;
    color: inherit
}

.video-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all .2s
}

.video-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    transform: translateY(-3px)
}

.video-thumb {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: #1a1a2e
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.video-thumb-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, .3)
}

.video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, .8);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    opacity: 0;
    transition: opacity .2s
}

.video-card:hover .video-play-overlay {
    opacity: 1
}

.video-info {
    padding: 12px
}

.video-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.3;
    max-height: 2.6em
}

.video-meta {
    font-size: 11px;
    color: var(--text-muted)
}

.video-meta span {
    margin-right: 8px
}

/* ===== video - view ===== */
.video-player-card {
    background: #000;
    border-radius: 12px;
    overflow: hidden
}

.video-embed {
    position: relative;
    padding-top: 56.25%
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #1a1a2e;
    border-radius: 12px
}

.video-description {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    line-height: 1.8;
    color: var(--text-secondary)
}

.related-video-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit
}

.related-video-item:hover .related-title {
    color: var(--primary)
}

.related-thumb {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a2e;
    flex-shrink: 0
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.related-thumb .ph {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, .3);
    font-size: 20px
}

.related-info {
    flex: 1;
    min-width: 0
}

.related-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.related-meta {
    font-size: 11px;
    color: var(--text-muted)
}

/* ===== live - index ===== */
.live-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 28px 32px;
    border-radius: 16px
}

.live-card-link {
    text-decoration: none;
    color: inherit
}

.live-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all .2s;
    height: 100%
}

.live-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    transform: translateY(-3px)
}

.live-thumb {
    position: relative;
    padding-top: 50%;
    overflow: hidden;
    background: #1a1a2e
}

.live-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.live-thumb-ph {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgba(255, 255, 255, .2)
}

.live-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff
}

.status-0 {
    background: #2196f3
}

.status-1 {
    background: #f44336;
    animation: pulse 1.5s infinite
}

.status-2 {
    background: #757575
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .6
    }
}

.live-info {
    padding: 14px
}

.live-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.live-speaker {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 4px;
    font-weight: 600
}

.live-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px
}

.live-stats {
    font-size: 11px;
    color: var(--text-muted)
}

.live-stats span {
    margin-right: 12px
}

/* ===== live - view ===== */
.live-detail-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden
}

.live-detail-header {
    position: relative
}

.speaker-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto
}

.live-status-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: inline-block
}

.status-0 {
    background: #2196f3
}

.status-1 {
    background: #f44336
}

.status-2 {
    background: #757575
}

.sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px
}

.sidebar-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary)
}

.sidebar-info-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.sidebar-info-list li {
    padding: 6px 0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #f0f0f0
}

.sidebar-info-list li:last-child {
    border: none
}

.sidebar-info-list li span:first-child {
    color: var(--text-muted)
}

/* ===== company - index ===== */
.company-hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 32px;
    border-radius: 16px
}

.company-hero .text-muted {
    color: rgba(255, 255, 255, .6) !important
}

.company-hero .btn-outline-primary {
    border-color: rgba(255, 255, 255, .5);
    color: #fff
}

.company-hero .btn-outline-primary:hover {
    background: rgba(255, 255, 255, .1)
}

.benefit-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all .2s
}

.benefit-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px)
}

.benefit-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    display: block
}

.benefit-card h6 {
    font-weight: 700;
    margin-bottom: 4px
}

.benefit-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0
}

.company-card-link {
    text-decoration: none;
    color: inherit
}

.company-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all .2s;
    height: 100%
}

.company-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    border-color: var(--primary-light);
    transform: translateY(-2px)
}

.company-card-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center
}

.company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px
}

.logo-placeholder {
    font-size: 24px;
    color: #ccc
}

.company-card-info {
    flex: 1;
    min-width: 0
}

.company-card-name {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center
}

.company-card-intro {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.company-card-stats {
    font-size: 11px;
    color: var(--text-muted)
}

.company-card-stats span {
    margin-right: 12px
}

/* ===== company - view ===== */
.company-profile-header {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04)
}

.company-profile-logo {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center
}

.company-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px
}

.logo-placeholder-lg {
    font-size: 32px;
    color: #ccc
}

.company-profile-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px
}

.verified-badge {
    font-size: 13px;
    color: #1565c0;
    font-weight: 600
}

.company-profile-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px
}

.company-profile-stats {
    font-size: 13px;
    color: var(--text-muted)
}

.company-profile-stats span {
    margin-right: 16px
}

.stat-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600
}

.company-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px
}

.section-heading {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary)
}

.section-content {
    line-height: 1.8;
    color: var(--text-secondary)
}

.product-showcase-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: all .2s
}

.product-showcase-card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, .06)
}

.product-img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px
}

.product-img-placeholder {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ddd;
    margin-bottom: 8px
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 2px
}

.product-model {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0
}

.company-article-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
    text-decoration: none;
    color: var(--text-primary);
    transition: color .15s
}

.company-article-row:hover {
    color: var(--primary)
}

.company-article-row:last-child {
    border: none
}

.article-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 16px
}

.sidebar-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px
}

.sidebar-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary)
}

.sidebar-info-list {
    list-style: none;
    padding: 0;
    margin: 0
}

.sidebar-info-list li {
    padding: 6px 0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #f0f0f0
}

.sidebar-info-list li:last-child {
    border: none
}

.sidebar-info-list li span:first-child {
    color: var(--text-muted)
}

/* ===== company - apply ===== */
.apply-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 36px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .04)
}

/* ===== topic - index ===== */
.topic-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 16px;
    overflow: hidden;
    position: relative
}

.topic-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, .15) 0%, transparent 70%);
    pointer-events: none
}

.topic-hero-inner {
    position: relative;
    padding: 40px;
    color: #fff
}

.topic-hero h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px
}

.topic-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, .6)
}

.topic-card-link {
    text-decoration: none;
    color: inherit;
    display: block
}

.topic-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: all .3s
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12)
}

.topic-card-cover {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #1a1a2e
}

.topic-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s
}

.topic-card:hover .topic-card-cover img {
    transform: scale(1.05)
}

.topic-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: rgba(255, 255, 255, .3);
    font-size: 48px
}

.topic-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .6))
}

.topic-article-count {
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center
}

.topic-card-body {
    padding: 16px
}

.topic-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.topic-card-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6
}

/* ===== user - index ===== */
.uc-profile-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    text-align: center
}

.uc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto
}

.uc-nav {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

.uc-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all .15s
}

.uc-nav-item:last-child {
    border: none
}

.uc-nav-item:hover,
.uc-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600
}

.uc-stat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all .2s
}

.uc-stat-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.uc-stat-card .num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: block
}

.uc-stat-card .label {
    font-size: 12px;
    color: var(--text-muted)
}

.uc-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px
}

.notify-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0
}

.notify-item:last-child {
    border: none
}

.notify-item.unread {
    background: rgba(59, 130, 246, .03);
    border-radius: 6px;
    padding: 10px;
    margin: -2px -4px
}

.notify-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0
}

.notify-info {
    flex: 1;
    min-width: 0
}

/* ===== user - profile ===== */
.uc-nav {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

.uc-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all .15s
}

.uc-nav-item:last-child {
    border: none
}

.uc-nav-item:hover,
.uc-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600
}

/* ===== user - favorites ===== */
.uc-nav {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

.uc-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all .15s
}

.uc-nav-item:last-child {
    border: none
}

.uc-nav-item:hover,
.uc-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600
}

.uc-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0
}

.fav-item:last-child {
    border: none
}

.fav-type {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0
}

.fav-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.fav-title:hover {
    color: var(--primary)
}

.fav-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0
}

/* ===== user - questions ===== */
.uc-nav {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

.uc-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all .15s
}

.uc-nav-item:last-child {
    border: none
}

.uc-nav-item:hover,
.uc-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600
}

.uc-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px
}

/* ===== user - notifications ===== */
.uc-nav {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

.uc-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all .15s
}

.uc-nav-item:last-child {
    border: none
}

.uc-nav-item:hover,
.uc-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600
}

.uc-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px
}

.notify-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0
}

.notify-item:last-child {
    border: none
}

.notify-item.unread {
    background: rgba(59, 130, 246, .03);
    border-radius: 6px;
    padding: 10px;
    margin: -2px -4px
}

.notify-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0
}

.notify-info {
    flex: 1;
    min-width: 0
}

/* ===== site - login ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    width: 100%
}

.auth-container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04);
    overflow: hidden
}

.auth-brand {
    background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 40%, #1e3a5f 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, .15) 0%, transparent 70%);
    pointer-events: none
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    color: #fff
}

.brand-logo {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px
}

.auth-brand .logo-ee {
    color: #ef4444
}

.auth-brand .logo-nano {
    color: #fff
}

.auth-brand .logo-com {
    color: rgba(255, 255, 255, .4);
    font-size: 18px
}

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

.brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 36px;
    line-height: 1.6
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, .85)
}

.feature-item i {
    color: #60a5fa;
    font-size: 18px
}

.auth-form-area {
    padding: 36px 44px
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px
}

.auth-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block
}

.auth-input {
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    padding: 0 16px;
    font-size: 14px;
    transition: all .2s;
    background: #fafbfc
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
    background: #fff
}

.auth-error {
    color: #3b82f6;
    font-size: 12px;
    margin-top: 4px
}

.auth-btn-primary {
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all .2s
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
    color: #fff
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    font-size: 12px;
    color: #999
}

.social-login-row {
    display: flex;
    justify-content: center;
    gap: 16px
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s
}

.social-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff
}

.social-btn:disabled {
    opacity: .35;
    cursor: not-allowed
}

.auth-link {
    color: #3b82f6;
    text-decoration: none
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline
}

@media(max-width:991px) {
    .auth-form-area {
        padding: 32px 24px
    }

    .auth-container {
        max-width: 100%;
        border-radius: 12px
    }
}

/* ===== site - signup ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    width: 100%
}

.auth-container {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .04);
    overflow: hidden
}

.auth-brand {
    background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 40%, #1e3a5f 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 36px;
    position: relative;
    overflow: hidden
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    color: #fff
}

.brand-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px
}

.auth-brand .logo-ee {
    color: #ef4444
}

.auth-brand .logo-nano {
    color: #fff
}

.auth-brand .logo-com {
    color: rgba(255, 255, 255, .4);
    font-size: 18px
}

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

.brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 24px;
    line-height: 1.6
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, .08);
    padding: 12px 14px;
    border-radius: 10px;
    backdrop-filter: blur(4px)
}

.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(96, 165, 250, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0
}

.benefit-card strong {
    font-size: 13px;
    color: #fff
}

.benefit-card small {
    font-size: 11px;
    color: rgba(255, 255, 255, .5)
}

.auth-form-area {
    padding: 32px 40px
}

.auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 4px
}

.auth-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block
}

.auth-input {
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    padding: 0 16px;
    font-size: 14px;
    transition: all .2s;
    background: #fafbfc
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
    background: #fff
}

.auth-error {
    color: #3b82f6;
    font-size: 12px;
    margin-top: 4px
}

.auth-btn-primary {
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all .2s
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
    color: #fff
}

.auth-divider {
    text-align: center;
    margin: 18px 0;
    position: relative
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    font-size: 12px;
    color: #999
}

.social-login-row {
    display: flex;
    justify-content: center;
    gap: 16px
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    font-size: 20px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s
}

.social-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff
}

.social-btn:disabled {
    opacity: .35;
    cursor: not-allowed
}

.auth-link {
    color: #3b82f6;
    text-decoration: none
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px
}

.pw-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden
}

.pw-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all .3s
}

.pw-text {
    font-size: 11px;
    color: #999;
    min-width: 40px
}

@media(max-width:991px) {
    .auth-form-area {
        padding: 28px 20px
    }

    .auth-container {
        max-width: 100%;
        border-radius: 12px
    }
}

/* ===== site - requestPasswordResetToken ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%)
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    padding: 48px 40px
}

.auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px
}

.auth-subtitle {
    font-size: 14px;
    color: #666
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block
}

.auth-input {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    padding: 0 16px;
    font-size: 14px;
    transition: all .2s
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1)
}

.auth-error {
    color: #3b82f6;
    font-size: 12px;
    margin-top: 4px
}

.auth-btn-primary {
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
    color: #fff
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline
}

@media(max-width:576px) {
    .auth-card {
        padding: 32px 20px;
        border-radius: 16px
    }
}

/* ===== site - resetPassword ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%)
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    padding: 48px 40px
}

.auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px
}

.auth-subtitle {
    font-size: 14px;
    color: #666
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block
}

.auth-input {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    padding: 0 16px;
    font-size: 14px;
    transition: all .2s
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1)
}

.auth-error {
    color: #3b82f6;
    font-size: 12px;
    margin-top: 4px
}

.auth-btn-primary {
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
    color: #fff
}

@media(max-width:576px) {
    .auth-card {
        padding: 32px 20px
    }
}

/* ===== site - resendVerificationEmail ===== */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%)
}

.auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .08);
    padding: 48px 40px
}

.auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #fff
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 4px
}

.auth-subtitle {
    font-size: 14px;
    color: #666
}

.auth-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block
}

.auth-input {
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid #e0e0e0;
    padding: 0 16px;
    font-size: 14px;
    transition: all .2s
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .1)
}

.auth-error {
    color: #3b82f6;
    font-size: 12px;
    margin-top: 4px
}

.auth-btn-primary {
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: all .2s
}

.auth-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, .3);
    color: #fff
}

.auth-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px
}

.auth-link:hover {
    color: #2563eb;
    text-decoration: underline
}

@media(max-width:576px) {
    .auth-card {
        padding: 32px 20px
    }
}

/* ===== site - index ===== */
/* Utilities for quick hover effect */
.tr-color:hover {
    color: var(--primary) !important;
}

.tr-bg:hover {
    background-color: #f8f9fa !important;
}

.tr-bg-danger:hover {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Feed items hover effect */
.feed-item:hover .feed-img {
    transform: scale(1.05);
}

.feed-item:hover .main-title {
    color: var(--primary) !important;
}

/* Dl item hover */
.dl-item:hover i {
    transform: translateY(-5px);
}

.dl-item:hover h6 {
    color: var(--primary);
}

/* Rank List hover */
.rank-list li:hover {
    background-color: #fafafa;
}

@keyframes scrollFlash {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 991px) {
    .hero-layout-row {
        height: auto !important;
    }
}

/* ===== layouts - auth ===== */
/* ============ Auth Layout — 科技企业风格 ============ */
html,
body {
    height: 100%;
    margin: 0;
}

body.auth-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #eef2f7;
    /* 浅色科技感渐变背景 */
    background-image:
        linear-gradient(135deg, #e8f0fe 0%, #f0f4f8 30%, #e3ecf7 60%, #f5f7fa 100%);
    position: relative;
    overflow-x: hidden;
}

/* 微妙的科技纹理（电路板网格点） */
body.auth-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle, rgba(0, 80, 180, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* 装饰性渐变色块 */
.auth-deco-1 {
    position: fixed;
    top: -120px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-deco-2 {
    position: fixed;
    bottom: -100px;
    left: -60px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-deco-3 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ---- Top Bar ---- */
.auth-topbar {
    position: relative;
    z-index: 10;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-topbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.auth-topbar-logo:hover {
    opacity: 0.8;
}

.auth-topbar-logo .logo-text {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.5px;
}

.auth-topbar-logo .logo-text .t-ee {
    color: #e74c3c;
}

.auth-topbar-logo .logo-text .t-nano {
    color: #1a1a2e;
}

.auth-topbar-logo .logo-text .t-com {
    color: #999;
    font-size: 15px;
    font-weight: 600;
}

.auth-topbar-logo .logo-divider {
    width: 1px;
    height: 18px;
    background: #ddd;
}

.auth-topbar-logo .logo-slogan {
    font-size: 13px;
    color: #888;
    letter-spacing: 0.5px;
}

.auth-topbar-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-topbar-nav a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-topbar-nav a:hover {
    color: #e74c3c;
}

.auth-topbar-nav .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #555;
    font-size: 13px;
    background: #fff;
    transition: all 0.2s;
}

.auth-topbar-nav .btn-back:hover {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fff5f4;
}

/* ---- Main Content ---- */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 40px 20px;
}

/* ---- Footer ---- */
.auth-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 16px 40px;
    font-size: 12px;
    color: #999;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.auth-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #e74c3c;
}

.auth-footer .sep {
    margin: 0 8px;
    color: #ccc;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .auth-topbar {
        padding: 12px 16px;
    }

    .auth-topbar-logo .logo-divider,
    .auth-topbar-logo .logo-slogan {
        display: none;
    }

    .auth-main {
        padding: 20px 12px;
    }

    .auth-footer {
        padding: 12px 16px;
    }

    .auth-deco-1,
    .auth-deco-2,
    .auth-deco-3 {
        display: none;
    }
}

/* ===== article - index (global article list) ===== */
.ef-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ef-empty-state i {
    font-size: 48px;
    color: #ddd;
    opacity: 0.5;
}

.ef-empty-state p {
    color: #999;
    margin: 12px 0 0;
    font-size: 14px;
}

.ef-sidebar-tags-body {
    padding: 12px 16px;
}

/* ============================================================
   ===== TOOL MODULE V2 — 在线工具箱 redesign =====
   ============================================================ */

/* --- V2 Page Container --- */
.tool-hub-page-v2 {
    padding-bottom: 0;
    overflow: hidden;
}

/* ===== HERO SECTION ===== */
.th-hero {
    position: relative;
    padding: 64px 24px 48px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(160deg, #f8fafc 0%, #fff5f5 50%, #fef2f2 100%);
    border-bottom: 1px solid #e2e8f0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.th-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.th-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(229,57,53,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229,57,53,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* floating gradient orbs */
.th-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 12s ease-in-out infinite alternate;
}

.th-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(229,57,53,0.1) 0%, transparent 70%);
    top: -100px;
    right: -60px;
    animation-delay: 0s;
}

.th-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(229,57,53,0.08) 0%, transparent 70%);
    bottom: -80px;
    left: -40px;
    animation-delay: -4s;
}

.th-orb-3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(229,57,53,0.06) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-delay: -8s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
    100% { transform: translate(-20px, 15px) scale(0.95); }
}

.th-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

/* Badge pill */
.th-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #E53935;
    background: rgba(229,57,53,0.08);
    border: 1px solid rgba(229,57,53,0.15);
    backdrop-filter: blur(8px);
    margin-bottom: 24px;
}

.th-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Title */
.th-hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.th-gradient-text {
    background: linear-gradient(135deg, #E53935, #EF5350, #FF7043);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.th-hero-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.8;
    margin: 0 0 32px;
}

/* Quick pills */
.th-quick-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.th-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.th-pill:hover {
    background: #f0f9ff;
    border-color: #E53935;
    color: #E53935;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229,57,53,0.12);
}

.th-pill i {
    font-size: 15px;
}

/* ===== STATS BAR ===== */
.th-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 28px 24px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(180deg, #fff5f5 0%, #f8fafc 60px);
}

.th-stat-item {
    text-align: center;
    padding: 0 40px;
}

.th-stat-number {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #E53935, #EF5350);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.th-stat-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
}

.th-stat-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(180deg, transparent, #e2e8f0, transparent);
}

/* ===== SECTIONS ===== */
.th-section {
    padding: 32px 0 12px;
}

.th-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.th-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
}

.th-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.3;
}

.th-section-desc {
    font-size: 13px;
    color: #94a3b8;
    margin: 2px 0 0;
    line-height: 1.4;
}

.th-section-link {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.th-section-link:hover {
    color: #2563eb;
    gap: 8px;
}

/* ===== TOOL GRIDS ===== */
.th-tool-grid {
    display: grid;
    gap: 14px;
}

.th-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.th-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.th-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.th-grid-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Tool item card */
.th-tool-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 20px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.th-tool-item:hover {
    border-color: transparent;
    transform: translateY(-6px);
    box-shadow:
        0 12px 40px rgba(59,130,246,0.12),
        0 4px 12px rgba(0,0,0,0.04);
}

.th-tool-item:hover .th-tool-icon-wrap {
    transform: scale(1.1);
}

/* Icon wrapper */
.th-tool-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--c1) 30%, transparent);
}

.th-mini-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 10px;
}

.th-tool-name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

.th-tool-mini .th-tool-name {
    font-size: 12px;
}

/* tag badge */
.th-tool-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 6px;
    line-height: 1.5;
}

/* ===== FEATURES SECTION ===== */
.th-features {
    padding: 48px 0 48px;
}

.th-features-header {
    text-align: center;
    margin-bottom: 32px;
}

.th-features-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.th-features-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.th-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.th-feature-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.th-feature-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.th-feature-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: var(--fc);
    background: var(--fb);
}

.th-feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.th-feature-card p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* ===== V2 RESPONSIVE ===== */
@media (max-width: 1200px) {
    .th-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .th-hero {
        padding: 48px 20px 36px;
    }
    .th-hero-title {
        font-size: 36px;
    }
    .th-grid-4,
    .th-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .th-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-stat-item {
        padding: 0 24px;
    }
    .th-stat-number {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .th-hero {
        padding: 40px 16px 32px;
        margin: -1px -12px 0;
    }
    .th-stats {
        margin: 0 -12px;
        padding: 20px 12px;
    }
    .th-hero-title {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    .th-hero-subtitle {
        font-size: 14px;
    }
    .th-quick-pills {
        gap: 8px;
    }
    .th-pill {
        padding: 6px 14px;
        font-size: 12px;
    }
    .th-stat-item {
        padding: 0 16px;
    }
    .th-stat-number {
        font-size: 22px;
    }
    .th-stat-label {
        font-size: 11px;
    }
    .th-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .th-grid-4,
    .th-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .th-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .th-tool-item {
        padding: 18px 12px 16px;
        border-radius: 14px;
    }
    .th-tool-icon-wrap {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .th-mini-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .th-tool-name {
        font-size: 13px;
    }
    .th-tool-mini .th-tool-name {
        font-size: 11px;
    }
    .th-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .th-feature-card {
        padding: 20px 14px;
    }
    .th-section-header {
        flex-wrap: wrap;
    }
    .th-section-link {
        margin-left: 0;
        padding-left: 58px;
    }
    .th-section-desc {
        display: none;
    }
}

@media (max-width: 480px) {
    .th-hero-title {
        font-size: 24px;
    }
    .th-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    .th-stat-item {
        padding: 0 10px;
    }
    .th-stat-number {
        font-size: 18px;
    }
    .th-features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .th-features-header h2 {
        font-size: 20px;
    }
}

/* ============================================================
   ===== TOOL MODULE — 在线工具箱 (legacy styles for sub-pages) =====
   ============================================================ */

/* --- Hub Hero --- */
.tool-hub-page {
    padding-bottom: 40px;
}

.tool-hub-hero {
    text-align: center;
    padding: 40px 20px 30px;
}

.tool-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    margin-bottom: 16px;
}

.tool-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 1.5s infinite;
}

.tool-hub-title {
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.2;
}

.tool-hub-gradient {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-hub-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* --- Hub Cards --- */
.tool-hub-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    height: 100%;
}

.tool-hub-card:hover {
    border-color: #dbeafe;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.1);
    transform: translateY(-4px);
}

.tool-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.tool-hub-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #1a1a2e;
}

.tool-hub-card p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.tool-card-arrow {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
}

.tool-hub-card:hover .tool-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- Features Box --- */
.tool-features-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 28px;
}

.tool-features-box h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.tool-feature-item {
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.tool-feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.tool-feature-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.tool-feature-item p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* --- Tool Page Wrapper (for sub-pages) — V2 Upgrade --- */
.tool-page-wrapper {
    padding-top: 24px;
    padding-bottom: 48px;
}

.tool-page-header {
    margin-bottom: 28px;
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

/* subtle grid overlay on header */
.tool-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* decorative orb */
.tool-page-header::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.tool-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.tool-back-link:hover {
    color: #E53935;
    gap: 4px;
}

.tool-page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.tool-page-header h1 i {
    color: #E53935 !important;
}

.tool-page-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* --- Tabs --- */
.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: #f1f5f9;
    border-radius: 14px;
}

.tool-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-tab:hover {
    color: #E53935;
    background: rgba(229,57,53,0.06);
}

.tool-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #E53935, #EF5350);
    box-shadow: 0 4px 14px rgba(229,57,53,0.3);
}

/* --- Upload Zone --- */
.tool-upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 20px;
    padding: 56px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    background: linear-gradient(180deg, #fafbfc, #f1f5f9);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

/* shimmer overlay on hover */
.tool-upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(59,130,246,0.04) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-upload-zone:hover::before,
.tool-upload-zone.dragover::before {
    opacity: 1;
}

.tool-upload-zone:hover,
.tool-upload-zone.dragover {
    border-color: #3b82f6;
    background: linear-gradient(180deg, #eff6ff, #dbeafe);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.1);
}

.tool-upload-icon {
    font-size: 52px;
    color: #94a3b8;
    display: block;
    margin-bottom: 16px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-upload-zone:hover .tool-upload-icon,
.tool-upload-zone.dragover .tool-upload-icon {
    color: #3b82f6;
    transform: translateY(-6px) scale(1.1);
}

.tool-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin: 0 0 8px;
}

.tool-upload-browse {
    color: #3b82f6;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(59,130,246,0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.tool-upload-browse:hover {
    text-decoration-color: #3b82f6;
}

.tool-upload-hint {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* --- Process Box --- */
.tool-process-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.tool-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.tool-file-icon {
    font-size: 32px;
    color: #3b82f6;
    flex-shrink: 0;
}

.tool-file-detail {
    flex: 1;
    min-width: 0;
}

.tool-file-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-file-size {
    font-size: 12px;
    color: #94a3b8;
}

.tool-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tool-file-list .tool-file-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 0;
    transition: all 0.2s;
}

.tool-file-list .tool-file-info:hover {
    background: #eff6ff;
    border-color: #dbeafe;
}

/* --- Progress --- */
.tool-progress-bar {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    margin-bottom: 14px;
    overflow: hidden;
}

.tool-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    transition: width 0.4s ease;
    width: 0%;
}

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

.tool-status {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
}

/* --- Action Button --- */
.tool-action-btn {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    background: linear-gradient(135deg, #E53935, #EF5350);
    color: #fff;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(229,57,53,0.3);
}

.tool-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.tool-action-btn:active {
    transform: translateY(0);
}

.tool-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Result Box --- */
.tool-result-box {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.tool-result-box::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.tool-result-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 16px;
}

.tool-result-success i {
    font-size: 28px;
}

.tool-result-box .btn-success {
    background: linear-gradient(135deg, #16a34a, #059669);
    border: none;
    border-radius: 12px;
    padding: 10px 32px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(22,163,74,0.3);
    transition: all 0.25s;
}

.tool-result-box .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.4);
}

/* --- Option Row --- */
.tool-option-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.tool-option-row label {
    font-weight: 600;
    color: #475569;
}

.tool-format-btns {
    display: flex;
    gap: 6px;
}

.tool-format-btn {
    padding: 7px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-format-btn:hover {
    border-color: #93c5fd;
    color: #E53935;
    background: #fff5f5;
}

.tool-format-btn.active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #E53935, #EF5350);
    box-shadow: 0 2px 10px rgba(229,57,53,0.25);
}

/* --- Info Grid --- */
.tool-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.tool-info-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-info-item:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    border-color: transparent;
}

.tool-info-item i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.tool-info-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
}

.tool-info-item p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.6;
}

/* --- Panel --- */
.tool-panel {
    margin-bottom: 20px;
}

/* ===== Utility Tool Grid — V2 === */
.util-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.util-tool-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 14px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.util-tool-card:hover {
    border-color: transparent;
    box-shadow: 0 10px 32px rgba(59, 130, 246, 0.1), 0 4px 10px rgba(0,0,0,0.03);
    transform: translateY(-5px);
}

.util-tool-card:hover .util-tool-icon {
    transform: scale(1.12);
}

.util-tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 12px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.util-tool-card span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

/* --- Utility Tool Panel Area --- */
.util-tool-area {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px;
    margin-top: 8px;
    animation: fadeSlideIn 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

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

.util-tool-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.util-tool-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

/* --- Utility Tool Widgets --- */
.ut-textarea {
    width: 100%;
    min-height: 120px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.25s;
    background: #fafbfc;
}

.ut-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
    background: #fff;
}

.ut-textarea.ut-output {
    background: #f1f5f9;
    color: #334155;
}

.ut-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.ut-btn-row .btn-primary {
    background: linear-gradient(135deg, #E53935, #EF5350);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229,57,53,0.2);
    transition: all 0.2s;
}

.ut-btn-row .btn-primary:hover {
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
    transform: translateY(-1px);
}

.ut-btn-row .btn-outline-primary {
    border-radius: 8px;
    font-weight: 600;
}

.ut-btn-row .btn-outline-secondary {
    border-radius: 8px;
    font-weight: 600;
}

.ut-output-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    min-height: 42px;
}

.ut-option-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #334155;
}

.ut-md-preview {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #334155;
}

.ut-md-preview h1,
.ut-md-preview h2,
.ut-md-preview h3 {
    color: #1a1a2e;
    margin-top: 16px;
}

.ut-md-preview h1 { font-size: 24px; }
.ut-md-preview h2 { font-size: 20px; }
.ut-md-preview h3 { font-size: 16px; }

.ut-md-preview code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.ut-md-preview pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
}

.ut-md-preview pre code {
    background: transparent;
    color: inherit;
}

/* --- Responsive for sub-pages --- */
@media (max-width: 768px) {
    .tool-hub-title {
        font-size: 26px;
    }

    .tool-page-header {
        padding: 24px 20px 20px;
        border-radius: 16px;
    }

    .tool-page-header h1 {
        font-size: 22px;
    }

    .util-tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }

    .util-tool-card {
        padding: 18px 10px 14px;
        border-radius: 14px;
    }

    .util-tool-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .util-tool-card span {
        font-size: 12px;
    }

    .tool-tabs {
        gap: 6px;
        padding: 4px;
    }

    .tool-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .tool-upload-zone {
        padding: 36px 16px;
        border-radius: 16px;
    }

    .tool-upload-icon {
        font-size: 42px;
    }

    .tool-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tool-process-box {
        padding: 20px;
        border-radius: 16px;
    }

    .tool-result-box {
        padding: 20px;
        border-radius: 16px;
    }

    .tool-action-btn {
        height: 48px;
        border-radius: 12px;
    }

    .tool-option-row {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .util-tool-area {
        padding: 20px;
        border-radius: 16px;
    }
}



