:root {
    --primary: #7C5CFC;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --primary-glow: rgba(124, 92, 252, 0.25);
    --accent: #F97316;
    --accent-glow: rgba(249, 115, 22, 0.2);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --bg: #080812;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-card-hover: rgba(255, 255, 255, 0.055);
    --bg-card-solid: #12121A;
    --bg-input: rgba(255, 255, 255, 0.05);
    --text: #F1F1F6;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --radius: 16px;
    --radius-sm: 10px;
    --glass-blur: 16px;
    --content-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(124, 92, 252, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(249, 115, 22, 0.03) 0%, transparent 60%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.app {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 24px 32px;
}

/* === 三栏布局 === */
.workspace {
    display: grid;
    gap: 24px;
    align-items: start;
}

.workspace-left {
    position: sticky;
    top: 24px;
}

.workspace-center {
    min-width: 0;
}

.workspace-right {
    position: sticky;
    top: 24px;
}

/* 手机预览框 */
.phone-preview {
    background: #1A1A2E;
    border: 3px solid #333;
    border-radius: 32px;
    padding: 12px 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.phone-screen {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 20px 16px;
    min-height: 550px;
    font-size: 13px;
    color: #333;
    overflow-y: auto;
    max-height: 650px;
}
.phone-screen .phone-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
}
.phone-screen .phone-body {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
    white-space: pre-wrap;
}
.phone-screen .phone-emoji {
    font-size: 14px;
}
.phone-preview-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* 响应式 */
.workspace { grid-template-columns: 300px 1fr 300px; gap: 20px; }
@media (min-width: 1400px) { .workspace { grid-template-columns: 350px 1fr 340px; } }
/* 平板过渡：左侧上移 + 中右并排 */
@media (max-width: 1100px) and (min-width: 768px) {
    .workspace { grid-template-columns: 1fr 1fr; }
    .workspace-left { grid-column: 1 / -1; position: static; }
    .workspace-left .card { max-width: none; }
    .workspace-right { display: block; }
}
.mobile-sidebar-toggle { display: none; }
.mobile-sidebar-body { display: contents; }
@media (max-width: 767px) {
    .app { padding: 12px 16px; }
    .workspace { display: block; }
    .workspace-left { position: static !important; }
    .workspace-center { margin-top: 0; }
    .workspace-right { display: none; }
    .header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .header-right { flex-wrap: wrap; gap: 6px; }
    .header-right .btn { font-size: 12px; padding: 5px 10px; }
    .mobile-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
        background: var(--bg-card-solid);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: var(--text);
        margin-bottom: 12px;
    }
    .mobile-sidebar-toggle .arrow { transition: transform 0.3s; }
    .mobile-sidebar-toggle.open .arrow { transform: rotate(180deg); }
    .mobile-sidebar-body { display: none; }
    .mobile-sidebar-body.open { display: block; }
}

/* ============================================================
   页头（Header）— 玻璃质感 · 80px · 左中右三栏
   ============================================================ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1280px;
    margin: 0 auto 24px;
    padding: 0 60px;
    background: rgba(8, 8, 18, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 200;
}

/* ---- 品牌区 ---- */
.header-brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-shrink: 0;
}
.header-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}
.header-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ---- 导航区 ---- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 48px;
}
.nav-link {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.25s;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--text);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--text);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link.active {
    color: var(--text);
}
.nav-link.active::after {
    width: 100%;
}

/* ---- 操作区 ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 更多按钮（⋮） */
.btn-more {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}
.btn-more:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}
.header-more {
    position: relative;
}
.more-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    min-width: 160px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    z-index: 210;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 用户菜单 */
.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}
.user-info:hover {
    background: var(--bg-card-hover);
}
.user-avatar {
    font-size: 18px;
}
.user-nickname {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-menu {
    position: relative;
}

/* ---- 汉堡菜单（桌面隐藏，移动端显示）---- */
.btn-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.btn-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all 0.3s;
}
.btn-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.btn-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.btn-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- 移动端抽屉导航 ---- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 190;
}
.mobile-nav-overlay.open {
    display: block;
}
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--bg-card-solid);
    z-index: 195;
    padding: 100px 32px 32px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-direction: column;
    gap: 8px;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav .nav-link {
    display: block;
    font-size: 20px;
    padding: 12px 0;
}
.mobile-nav-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }
    .header-nav {
        display: none;
    }
    .header-more {
        display: none;
    }
    .btn-hamburger {
        display: flex;
    }
    .mobile-nav {
        display: flex;
    }
    .header-tagline {
        display: none;
    }
}

.tier-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:11px; font-weight:600; margin:0 4px; background:transparent; }
.user-credits {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    background: rgba(253, 203, 110, 0.12);
    border: 1px solid rgba(253, 203, 110, 0.25);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--warning);
}

.user-menu {
    position: relative;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.dropdown-item.logout {
    color: var(--danger);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: rgba(18, 18, 26, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    z-index: 100;
    overflow: hidden;
}

.btn-login {
    font-size: 13px;
    padding: 6px 14px;
}

.feedback-link {
    font-size: 13px;
    padding: 6px 14px;
    text-decoration: none;
}

.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s ease;
}

.login-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 380px;
    max-width: 90vw;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: slideUpModal 0.3s ease;
}

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

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.login-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.login-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.login-modal-close:hover {
    border-color: var(--primary);
    color: var(--text);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-input-row {
    display: flex;
    gap: 8px;
}

.login-input-row .input {
    flex: 1;
}

.login-btn-send {
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 13px;
    min-width: 110px;
}

.login-btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.login-btn-submit {
    margin-top: 4px;
    padding: 14px 28px;
    font-size: 16px;
}

.login-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 4px;
}

.login-switch {
    display: flex;
    gap: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 16px;
}

.login-switch-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.login-switch-btn:hover:not(.active) {
    color: var(--text);
}

.login-switch-btn.active {
    background: var(--primary);
    color: white;
}

.label-hint {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

.content-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.content-type-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    color: var(--text-secondary);
    user-select: none;
}

.content-type-item:hover {
    border-color: var(--primary);
    color: var(--text);
}

.content-type-item.checked {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}

.content-type-item input[type="checkbox"] {
    display: none;
}

.content-type-check {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
    flex-shrink: 0;
    color: #fff;
}

.content-type-item.checked .content-type-check {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.content-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.content-result-card {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.content-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(108, 92, 231, 0.06);
    border-bottom: 1px solid var(--border);
}

.content-result-type {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
}

.content-result-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 36px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.hotspot-toggle {
    font-size: 13px;
    padding: 6px 14px;
}

.main {
    min-height: calc(100vh - 200px);
    position: relative;
}

.hotspot-panel {
    position: fixed;
    top: 70px;
    right: -380px;
    width: 360px;
    max-height: calc(100vh - 100px);
    background: rgba(18, 18, 26, 0.88);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
    z-index: 201;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hotspot-panel.open {
    right: 16px;
}

.hotspot-panel-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.hotspot-panel-close {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hotspot-panel-close:hover {
    border-color: var(--primary);
    color: var(--text);
}

.hotspot-panel-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.hotspot-panel-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hotspot-panel-update {
    padding: 8px 18px;
    font-size: 11px;
    color: var(--text-secondary);
}

.hotspot-tabs {
    display: flex;
    gap: 6px;
}

.hotspot-tab {
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.hotspot-tab:hover {
    color: var(--text);
    border-color: var(--border);
}

.hotspot-tab.active {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-light);
    border-color: var(--primary);
}

.hotspot-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.hotspot-list::-webkit-scrollbar {
    width: 4px;
}

.hotspot-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.hotspot-loading {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.hotspot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    cursor: pointer;
    transition: background 0.15s;
}

.hotspot-item:hover {
    background: var(--bg-card-hover);
}

.hotspot-rank {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.hotspot-rank.top1 { background: linear-gradient(135deg, #e17055, #fdcb6e); color: #fff; }
.hotspot-rank.top2 { background: linear-gradient(135deg, #fd79a8, #a29bfe); color: #fff; }
.hotspot-rank.top3 { background: linear-gradient(135deg, #00b894, #55efc4); color: #fff; }
.hotspot-rank.normal { background: var(--bg-input); color: var(--text-secondary); }

.hotspot-title {
    flex: 1;
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotspot-heat {
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.hotspot-footer {
    padding: 8px 18px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: right;
}

.generator-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.wordcloud-section {
    margin-bottom: 20px;
}

.wordcloud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.wordcloud-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.wordcloud-platform {
    font-size: 12px;
    color: var(--primary-light);
    padding: 2px 10px;
    background: rgba(108, 92, 231, 0.12);
    border-radius: 12px;
    font-weight: 500;
}

.wordcloud-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 18px 14px;
    background: radial-gradient(ellipse at center, rgba(108, 92, 231, 0.04) 0%, var(--bg-input) 100%);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.wordcloud-container::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-sm);
    padding: 1px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), transparent 30%, transparent 70%, rgba(0, 184, 148, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.wordcloud-loading {
    color: var(--text-secondary);
    font-size: 13px;
}

.wordcloud-word {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    border: 1px solid transparent;
    opacity: 0;
    animation:
        wordFadeInBounce 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards,
        wordFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--i,0)*0.05s), calc(var(--i,0)*0.05s+0.6s);
    transition:
        transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


.wordcloud-word:hover {
    transform: scale(1.15) translateY(-2px) !important;
    border-color: currentColor;
    box-shadow:
        0 0 20px currentColor,
        0 4px 20px rgba(108, 92, 231, 0.3);
    z-index: 2;
    transition:
        transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.wordcloud-word:active {
    transform: scale(0.92) !important;
    transition: transform 0.08s ease;
}

@keyframes wordFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.3) rotate(-8deg);
        filter: blur(6px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-3px) scale(1.08) rotate(2deg);
        filter: blur(1px);
    }
    70% {
        transform: translateY(1px) scale(0.95) rotate(-0.5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.wordcloud-word:nth-child(3n+1) { animation-name: wordFadeInLeft, wordFloat; }
.wordcloud-word:nth-child(3n+2) { animation-name: wordFadeInRight, wordFloat; }
.wordcloud-word:nth-child(3n) { animation-name: wordFadeInBounce, wordFloat; }

@keyframes wordFadeInLeft {
    0% { opacity:0; transform: translateX(-30px) scale(0.2) rotate(-15deg); filter:blur(5px); }
    50% { opacity:0.6; transform: translateX(3px) scale(1.1) rotate(3deg); filter:blur(1px); }
    100% { opacity:1; transform: translateX(0) scale(1) rotate(0); filter:blur(0); }
}
@keyframes wordFadeInRight {
    0% { opacity:0; transform: translateX(30px) scale(0.2) rotate(15deg); filter:blur(5px); }
    50% { opacity:0.6; transform: translateX(-3px) scale(1.1) rotate(-3deg); filter:blur(1px); }
    100% { opacity:1; transform: translateX(0) scale(1) rotate(0); filter:blur(0); }
}
@keyframes wordFadeInBounce {
    0% { opacity:0; transform: translateY(20px) scale(0.2); filter:blur(6px); }
    40% { opacity:0.5; transform: translateY(-8px) scale(1.15); filter:blur(1px); }
    60% { opacity:0.8; transform: translateY(3px) scale(0.9); }
    80% { transform: translateY(-2px) scale(1.03); }
    100% { opacity:1; transform: translateY(0) scale(1); filter:blur(0); }
}

@keyframes wordFloat {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-3px);
    }
    50% {
        transform: translateY(-1px);
    }
    75% {
        transform: translateY(-4px);
    }
}
}

.input-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
}

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

.input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

select.input {
    color: var(--text);
    background: var(--bg-input);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A78BFA' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

select.input option {
    background: #1A1A2E;
    color: #F1F1F6;
    padding: 8px;
}

.row {
    display: flex;
    gap: 16px;
}

.half {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    width: 100%;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm.btn-primary {
    display: none;
    width: auto;
    margin-top: 0;
    padding: 4px 12px;
    font-size: 12px;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.result-section {
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.result-header h2 {
    font-size: 18px;
}

.result-meta {
    display: flex;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.hot-words-bar {
    background: rgba(253, 203, 110, 0.08);
    border: 1px solid rgba(253, 203, 110, 0.2);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 13px;
}

.hot-words-label {
    color: var(--warning);
    font-weight: 600;
}

.hot-word-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(253, 203, 110, 0.12);
    color: var(--warning);
    border-radius: 4px;
    font-size: 12px;
    margin: 2px 4px;
}

.result-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-note {
    background: rgba(253, 203, 110, 0.08);
    border: 1px solid rgba(253, 203, 110, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--warning);
    line-height: 1.6;
}

.result-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    transition: border-color 0.2s;
}

.result-item:hover {
    border-color: var(--primary);
}

.result-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-card:hover {
    border-color: var(--primary);
}

.result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.result-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
}

.result-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    flex: 1;
}

.result-reason {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.result-ctr {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
}

.ctr-high {
    background: rgba(0, 184, 148, 0.15);
    color: var(--success);
}

.ctr-mid {
    background: rgba(253, 203, 110, 0.15);
    color: var(--warning);
}

.ctr-low {
    background: rgba(225, 112, 85, 0.15);
    color: var(--danger);
}

/* ---- CTR 进度条 ---- */
.ctr-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.ctr-bar {
    flex: 1;
    max-width: 120px;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}
.ctr-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}
.ctr-label {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.ctr-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ---- 模式切换 ---- */
.mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--bg-input);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}
.mode-tab {
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.mode-tab.active {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}
.mode-tab:hover:not(.active) {
    color: var(--text);
}
/* 按钮内 spinner */
.btn-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 2px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- 跨平台改写 ---- */
/* 平台多选复选框（表单用） */
.platform-checkboxes {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.platform-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s;
    user-select: none;
}
.platform-checkbox.checked {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.4);
    color: var(--primary-light);
}
.platform-checkbox input[type="checkbox"] {
    accent-color: #6c5ce7;
}
/* 平台标签栏（结果展示用） */
.platform-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--bg-input);
    border-radius: 10px;
    padding: 4px;
    overflow: hidden;
}
.platform-tab {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-align: center;
    position: relative;
}
.platform-tab:hover:not(.active) {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}
.platform-tab.active {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.35);
}
/* 首次提示横幅 */
.cross-hint-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 8px;
    font-size: 13px;
    color: var(--primary-light);
    animation: hintFadeIn 0.5s ease;
}
.cross-hint-banner .hint-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    line-height: 1;
}
.cross-hint-banner .hint-close:hover {
    color: var(--text);
}
@keyframes hintFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* 跨平台详情区 */
.cross-detail {
    min-height: 120px;
}
.cross-detail-section {
    margin-bottom: 20px;
}
.cross-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cross-section-title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background: var(--primary-light);
    border-radius: 2px;
}
/* 话题标签 */
.cross-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cross-topic-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(253, 203, 110, 0.12);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}
/* 内容加载 */
.wide-cloud { margin-bottom: 16px; }
.wide-cloud .wordcloud-container { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px 0; }
.result-default { text-align: center; padding: 30px 20px; color: var(--text-secondary); }
.result-default .default-title { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.result-default .default-body { font-size: 13px; line-height: 1.8; max-width: 500px; margin: 0 auto; }
.daily-briefing { background:linear-gradient(135deg, rgba(108,92,231,0.1) 0%, rgba(253,121,168,0.05) 100%); border:1px solid rgba(108,92,231,0.25); border-radius:12px; padding:14px 18px; margin-bottom:16px; animation: bfSlideDown 0.5s ease; position:relative; overflow:hidden; }
.daily-briefing::before { content:""; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, #6c5ce7, #fd79a8, #6c5ce7); animation: bfShimmer 3s infinite; }
@keyframes bfSlideDown { from { opacity:0; transform:translateY(-20px) } to { opacity:1; transform:translateY(0) } }
@keyframes bfShimmer { 0% { opacity:0.5 } 50% { opacity:1 } 100% { opacity:0.5 } }
@keyframes bfFadeIn { from { opacity:0; transform:translateX(-10px) } to { opacity:1; transform:translateX(0) } }

.cross-content-loading {
    padding: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.result-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.content-result-section {
    margin-top: 16px;
}

.content-result-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.content-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
}

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

.content-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
}

.content-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}

.content-card-footer {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thinking-section {
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.thinking-section.collapsed {
    opacity: 0.7;
}

.thinking-section.collapsed .thinking-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}

.thinking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.thinking-header:hover {
    background: var(--bg-card-hover);
}

.thinking-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thinking-icon {
    font-size: 20px;
}

.thinking-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.thinking-status {
    font-size: 12px;
    color: var(--primary-light);
    padding: 2px 10px;
    background: rgba(108, 92, 231, 0.12);
    border-radius: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

.thinking-status.done {
    color: var(--success);
    background: rgba(0, 184, 148, 0.12);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.thinking-toggle {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.thinking-section.collapsed .thinking-toggle {
    transform: rotate(-90deg);
}

.thinking-body {
    max-height: 600px;
    padding: 0 20px 16px;
    opacity: 1;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.5s ease,
                padding 0.5s ease;
    overflow: hidden;
}

.thinking-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.thinking-step {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    position: relative;
    animation: fadeInStep 0.4s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.thinking-step .step-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.thinking-step .step-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.thinking-step .step-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: auto;
}

.thinking-step.done .step-status {
    color: var(--success);
}

.thinking-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
}

.thinking-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--border);
    transition: all 0.3s;
    flex-shrink: 0;
}

.thinking-step.running .thinking-step-dot {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.5);
    animation: dotPulse 1s ease-in-out infinite;
}

.thinking-step.done .thinking-step-dot {
    background: var(--success);
    border-color: var(--success);
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 4px rgba(108, 92, 231, 0.3); }
    50% { box-shadow: 0 0 12px rgba(108, 92, 231, 0.6); }
}

.thinking-step-line {
    width: 2px;
    flex: 1;
    min-height: 8px;
    background: var(--border);
    transition: background 0.3s;
}

.thinking-step.done .thinking-step-line {
    background: rgba(0, 184, 148, 0.3);
}

.thinking-step-content {
    flex: 1;
    padding-bottom: 4px;
}

.thinking-step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.thinking-step.running .thinking-step-title::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(108, 92, 231, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.thinking-step.done .thinking-step-title::after {
    content: "✓";
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
}

.thinking-step-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.thinking-step-data {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.thinking-step-data .data-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-light);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.hotspot-section {
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.hotspot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.hotspot-header h2 {
    font-size: 18px;
}

.tab {
    padding: 6px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab.active {
    background: var(--primary);
    color: white;
}

.tab:hover:not(.active) {
    color: var(--text);
}

.hotspot-tip {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.feedback-stats-section {
    margin-top: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.feedback-stats-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.stat-good .stat-num {
    color: var(--success);
}

.stat-bad .stat-num {
    color: var(--danger);
}

/* ============================================================
   页脚（Footer）— 四栏结构化布局
   ============================================================ */

/* 顶部缓冲带：分割线 + 上下 40px 留白 */
.footer-separator {
    margin-top: 80px;
    border: 0;
    border-top: 1px solid var(--border);
    opacity: 0.6;
}

/* 主容器：1200px 居中，80px 垂直呼吸 */
.footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5vw 60px;
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1.2fr;
    gap: 48px;
    text-align: left;
}

/* ---- 品牌区 ---- */
.footer-brand-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.footer-brand-tagline {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 280px;
    margin-bottom: 20px;
}
.footer-brand-copy {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.5;
    margin-top: 24px;
}

/* ---- 导航区（共用）---- */
.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    opacity: 0.7;
}
.footer-col a {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 2.2;
    text-decoration: none;
    position: relative;
    transition: color 0.25s;
}
/* 悬停：底部下划线滑入 */
.footer-col a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--text-secondary);
    transition: width 0.3s ease;
}
.footer-col a:hover {
    color: var(--text);
}
.footer-col a:hover::after {
    width: 100%;
}

/* ---- 社交/联系区 ---- */
.footer-contact-email {
    display: inline-block;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.25s;
}
.footer-contact-email:hover {
    color: var(--text);
}
.footer-contact-beian {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.45;
    margin-top: 16px;
}
.footer-contact-beian a {
    color: inherit;
    text-decoration: none;
}
.footer-contact-beian a:hover {
    opacity: 0.8;
}

/* ---- 移动端：折叠为单列 ---- */
@media (max-width: 768px) {
    .footer {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 5vw 48px;
    }
    .footer-brand-tagline {
        max-width: 100%;
    }
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-success {
    background: var(--success);
}

.toast-error {
    background: var(--danger);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 600px) {
    .app { padding: 12px; }
    .row { flex-direction: column; gap: 0; }
    .header { flex-direction: column; gap: 12px; }
    .header-right { flex-wrap: wrap; justify-content: center; }
    .user-info-logged { flex-wrap: wrap; gap: 4px; }
    .hotspot-list { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .login-modal { padding: 20px; width: 95vw; }
}

.aigc-marker-tag {
    color: #888;
    font-size: 11px;
    text-align: right;
    padding: 6px 12px 2px;
    opacity: 0.8;
}

/* 去AI味编辑弹窗 */
.deai-overlay {
    display: none;
    position: fixed; z-index: 2000;
    top:0;left:0;right:0;bottom:0;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
}
.deai-overlay.active { display: flex; }
.deai-modal {
    background: #1e1e30;
    border-radius: 12px;
    width: min(700px, 92vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5);
}
.deai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #2a2a4a;
}
.deai-modal-title { font-size: 16px; font-weight: 600; color: #e0e0e0; }
.deai-modal-close {
    background: none; border: none;
    color: #888; font-size: 18px;
    cursor: pointer;
}
.deai-modal-body { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
/* 登录 tabs */
.login-tabs { display: flex; gap: 0; }
.login-tab {
    padding: 8px 16px; font-size: 14px; color: #888;
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: all 0.2s; user-select: none;
}
.login-tab.active { color: #6c5ce7; border-bottom-color: #6c5ce7; }

/* 签到日历 */
.checkin-area { padding: 12px 16px 4px; }
.checkin-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px; font-size: 13px; color: #e0e0e0;
}
.checkin-days { display: flex; gap: 6px; justify-content: center; }
.checkin-day {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    background: #2a2a4a; color: #666;
    transition: all 0.2s;
}
.checkin-day.checked { background: rgba(108,92,231,0.25); color: #6c5ce7; }
.checkin-day.today { background: #3a3a5a; color: #e0e0e0; border: 2px solid #6c5ce7; }
.checkin-makeup-btn {
    margin-top: 8px; width: 100%; text-align: center;
    font-size: 12px; color: #aaa;
}
.login-tab:hover { color: #aaa; }
.pwd-strength { margin-top: 4px; min-height: 18px; }

.deai-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #aaa; cursor: pointer;
    user-select: none;
}
.deai-editor {
    width: 100%;
    background: #12121f;
    border: 1px solid #3a3a5a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
    padding: 14px;
    resize: vertical;
    font-family: inherit;
}
.deai-editor:focus { outline: none; border-color: #6c5ce7; }
.deai-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-top: 1px solid #2a2a4a;
    flex-wrap: wrap;
}
.deai-status { flex: 1; font-size: 12px; color: #888; min-width: 100px; }
.btn-icon-only {
    width: 32px; height: 32px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid var(--border);
    background: var(--bg-input); color: var(--text-secondary);
    cursor: pointer; font-size: 13px; transition: all 0.15s;
}
.btn-icon-only:hover:not(:disabled) { background: var(--bg-card); color: var(--text); border-color: var(--primary-light); }
.btn-icon-only:disabled { cursor: default; }

.btn-deai {
    color: #6c5ce7 !important;
    border-color: #6c5ce7 !important;
}
.btn-deai:hover { background: rgba(108,92,231,0.1) !important; }

.content-type-badge {
    font-size: 11px;
    color: var(--accent);
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
}

.sensitive-word {
    color: #e74c3c;
    border-bottom: 2px dashed #e74c3c;
    cursor: help;
    background: rgba(231, 76, 60, 0.06);
    padding: 0 1px;
}

/* 热点抽屉（移动端） */
.hotspot-drawer {
    position: fixed;
    z-index: 1001;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60vh;
    background: #1a1a2e;
    border-radius: 16px 16px 0 0;
    padding: 16px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
}
.hotspot-drawer.open {
    transform: translateY(0);
}
.hotspot-drawer-overlay {
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.hotspot-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* 骨架屏 */
@keyframes skeleton-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
.skeleton {
    background: linear-gradient(90deg, #2a2a4a 25%, #3a3a5a 50%, #2a2a4a 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}
.skeleton-wordcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
    justify-content: center;
}
.skeleton-word {
    height: 20px;
    border-radius: 10px;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}
.skeleton-hotspot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0;
}
.skeleton-hotspot-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.skeleton-hotspot-rank {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}
.skeleton-hotspot-text {
    height: 16px;
    border-radius: 4px;
    flex: 1;
}


/* === Task 4: Hot keyword tags === */
.hot-tags-section { margin-bottom: 20px; }
.hot-tags-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hot-tags-title { font-size: 14px; font-weight: 600; color: var(--text); }
.hot-tags-hint { font-size: 11px; color: var(--text-secondary); opacity: 0.7; }
.hot-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.hot-tags-loading { color: var(--text-secondary); font-size: 12px; }

/* === Task 5: Guest banner === */
.guest-banner { background: linear-gradient(135deg, rgba(108,92,231,0.08) 0%, rgba(253,121,168,0.04) 100%); border: 1px solid rgba(108,92,231,0.2); border-radius: 10px; padding: 10px 16px; margin-bottom: 16px; }
.guest-banner-content { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 13px; color: var(--text-secondary); }
.guest-banner-icon { font-size: 16px; }
.guest-banner-text strong { color: var(--primary-light); font-weight: 700; }
.guest-banner-divider { color: var(--border); }
.guest-banner-link { color: var(--primary-light); text-decoration: none; font-weight: 600; white-space: nowrap; }
.guest-banner-link:hover { text-decoration: underline; }

/* === Task 6: Action buttons === */
.btn-regenerate { color: var(--warning) !important; border-color: var(--warning) !important; font-size: 16px !important; padding: 4px 8px !important; }
.btn-regenerate:hover { background: rgba(253,203,110,0.1) !important; }
.btn-favorite { font-size: 12px !important; color: var(--accent) !important; border-color: var(--accent) !important; }
.btn-favorite:hover { background: rgba(8,145,178,0.1) !important; }

/* === Task 8: Streak enhancement === */
.checkin-next-reward { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; margin-top: 6px; background: rgba(108,92,231,0.08); border-radius: 8px; font-size: 12px; color: var(--text-secondary); }
.checkin-reward-amount { font-weight: 700; color: var(--warning); }
.checkin-milestone { margin-top: 6px; padding: 4px 8px; background: rgba(253,121,168,0.08); border-radius: 6px; font-size: 11px; color: #fd79a8; text-align: center; }

/* === Task 9: Daily challenge banner === */
.challenge-banner { background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(8,145,178,0.08)); border: 1px solid rgba(108,92,231,0.2); border-radius: 12px; padding: 14px 20px; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); flex-wrap: wrap; justify-content: center; animation: challengePulse 2s ease-in-out infinite; }
.challenge-banner strong { color: var(--primary-light); }
.challenge-banner button { transition: all 0.2s; }
.challenge-banner button:hover { background: #7cffdc !important; transform: scale(1.03); }
@keyframes challengePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(108,92,231,0.2); } 50% { box-shadow: 0 0 0 6px rgba(108,92,231,0); } }

/* === 词云进场动画 === */
.wordcloud-container .cloud-word {
    display: inline-block;
    animation: wordcloudBurst 0.6s ease-out both;
}
@keyframes wordcloudBurst {
    from { opacity: 0; transform: scale(0.3) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* === 热门关键词标签 === */
.hot-tag-chip {
    padding: 10px 14px; margin: 4px 0;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 12px; cursor: pointer;
    transition: all 0.2s; color: var(--text-primary);
}
.hot-tag-chip:hover { border-color: var(--primary); background: rgba(124,92,252,0.08); }
.hot-tag-chip.hot { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.hot-tag-chip.warm { border-color: rgba(249,115,22,0.2); background: rgba(249,115,22,0.04); }
.hot-tag-main {
    display: flex; align-items: center; gap: 8px; margin-bottom: 5px;
}
.hot-tag-rank { font-size: 11px; color: var(--primary-light); font-weight: 700; min-width: 16px; }
.hot-tag-keyword { font-size: 14px; font-weight: 600; flex: 1; }
.hot-tag-count { font-size: 11px; color: var(--text-secondary); white-space: nowrap; }
.hot-tag-bar { display:block; height: 4px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.hot-tag-bar-fill { display:block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); min-width: 8px; }
.hot-tag-chip.hot .hot-tag-bar-fill { background: linear-gradient(90deg, #ef4444, #f97316); }
.hot-tag-chip.warm .hot-tag-bar-fill { background: linear-gradient(90deg, #f97316, #fbbf24); }

/* === 会员徽章 === */
.membership-badge { display:inline-block;font-size:11px;padding:1px 8px;border-radius:10px;font-weight:700;margin:0 4px; }
.membership-badge.pro { background:linear-gradient(135deg,#9deffc,#6366f1);color:#fff; }
.membership-badge.ultimate { background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff; }

/* === 封面图库 === */
.cover-gallery { margin-top: 24px; padding: 16px; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border); }
.cover-gallery img { border-radius: 8px; }
#lightboxOverlay { transition: opacity 0.2s; }

/* === 弹幕动效（B站） === */
.danmaku-layer { --danmaku-speed: 6s; }
.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 0 2px rgba(0,0,0,0.8);
    animation: danmaku-scroll var(--danmaku-speed) linear infinite;
    left: 100%;
}
.danmaku-item:nth-child(1) { top: 4px; animation-delay: 0s; }
.danmaku-item:nth-child(2) { top: 22px; animation-delay: 2s; }
.danmaku-item:nth-child(3) { top: 40px; animation-delay: 4s; }

@keyframes danmaku-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-100vw - 200px)); }
}

/* === 时间轴（B站简介/抖音脚本） === */
.timeline-list { margin: 0; padding: 0; list-style: none; }
.timeline-list > div { transition: background 0.15s; border-radius: 4px; padding: 3px 4px; }
.timeline-list > div:hover { background: rgba(124,92,252,0.08); }

/* === 预览区平台标签 === */
.preview-platform-tag {
    display: inline-block;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
}

/* === 实时热感条 === */
.hot-bar {
    background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(249,115,22,0.06), rgba(16,185,129,0.06));
    border: 1px solid rgba(124,92,252,0.2);
    border-radius: 12px;
    margin: 0 0 14px;
    overflow: hidden;
    position: relative;
}
.hot-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(124,92,252,0.06), transparent);
    animation: hotBarShimmer 3s ease-in-out infinite;
}
@keyframes hotBarShimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}
.hot-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}
.hot-bar-inner b {
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}
#hotBarIcon {
    font-size: 18px;
    animation: hotBarPulse 2s ease-in-out infinite;
}
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

@keyframes hotBarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
#hotBarText {
    transition: opacity 0.4s ease;
}

/* === 卡片墙 === */
#discoverSection {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
#discoverGrid {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 12px;
    height: 700px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}
#discoverGrid::-webkit-scrollbar { display: none; }
.bento-card {
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s;
    position: relative;
}
.bento-large {
    grid-row: span 2;
}
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.08);
    pointer-events: none;
}
.bento-card:hover {
    transform: translateY(-3px);
}
.bento-card-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: rgba(255,255,255,0.95);
}
.bento-card-top { flex: 1; }
.bento-platform {
    font-size: 10px; opacity: 0.7; display: block; margin-bottom: 6px;
}
.bento-title {
    font-weight: 600; line-height: 1.3; margin-bottom: 4px;
}
.bento-cover-text {
    font-weight: 900; text-shadow: 0 1px 4px rgba(0,0,0,0.15); margin-bottom: 4px;
}
.bento-meta {
    display: flex; gap: 8px; font-size: 11px; opacity: 0.75; margin-top: 8px;
}
/* 左右导航按钮 */
.discover-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.discover-nav:hover { opacity: 1; }
.discover-nav-left { left: -8px; }
.discover-nav-right { right: -8px; }

/* === 视频脚本分镜卡片 === */
.script-segment {
    padding: 8px 10px 8px 12px;
    margin: 4px 0;
    background: var(--bg-input);
    border-radius: 6px;
}
.script-time {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}
.script-line {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
    padding: 2px 0;
}
.script-role-tag {
    display: inline-block;
    font-size: 10px;
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 4px;
    font-weight: 600;
    vertical-align: middle;
}

/* ====== 爆款攻略 ====== */
.article-rec-tab {
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}
.article-rec-tab:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}
.article-rec-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ====== 移动端触控优化 ====== */
@media (max-width: 767px) {
    .btn, .btn-sm, .btn-outline {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 14px;
    }
    .content-type-item {
        min-height: 44px;
        padding: 10px 16px;
        font-size: 14px;
    }
    .content-type-item input[type="checkbox"] {
        width: 20px; height: 20px;
    }
    .tab-btn, .platform-tab {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 13px;
    }
    .data-table th, .data-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .hotspot-panel {
        width: min(360px, 90vw);
    }
    #discoverGrid {
        grid-auto-columns: min(180px, 45vw);
        height: auto;
        max-height: 500px;
    }
    .phone-screen {
        min-height: 380px;
        max-height: 480px;
    }
    #mobilePreviewBtn { display: flex !important; }
    /* 模态框移动端适配 */
    .modal {
        width: 95vw;
        max-width: 400px;
        padding: 16px;
    }
    /* 词云移动端 */
    #wordcloudModal .canvas-container {
        width: 95vw !important;
        max-width: 400px;
    }
    /* 手机预览抽屉内字体缩放 */
    .pv-title { font-size: 14px !important; }
    .pv-body { font-size: 11px !important; }
    .pv-tag { font-size: 10px !important; }
    .pv-meta { font-size: 11px !important; }
    /* 付款页面移动端 */
    .pay-info-section .user-info-box { font-size: 12px !important; }
    /* 管理页表格横向滚动 */
    .data-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ====== 手机预览 CSS 类（替代内联样式） ====== */
.pv-title { font-weight: 700; line-height: 1.4; margin-bottom: 8px; cursor: pointer; }
.pv-body { line-height: 1.6; margin-bottom: 8px; cursor: pointer; }
.pv-tag { margin-right: 6px; }
.pv-meta { gap: 16px; }
.pv-meta-dy { display: flex; gap: 16px; font-size: 12px; color: #aaa; }
.pv-meta-bl { display: flex; gap: 12px; font-size: 12px; color: #999; }
.pv-meta-ks { display: flex; gap: 16px; font-size: 12px; color: #999; }
.pv-card-dy { background: linear-gradient(180deg, #1a1a2e, #16213e); border-radius: 12px; padding: 16px; color: #fff; }
.pv-card-bl { background: linear-gradient(180deg, #f9f9f9, #fff); border-radius: 12px; padding: 14px; border: 1px solid #eee; }
.pv-card-ks { background: linear-gradient(180deg, #fff, #fafafa); border-radius: 12px; padding: 14px; border: 1px solid #eee; }
.pv-badge-ks { background: rgba(255,107,107,0.1); border-radius: 8px; padding: 10px; margin-bottom: 8px; }

/* ====== 付款页面 ====== */
.pay-qr-wrap { text-align: center; }
.pay-qr-img { width: 160px; height: 160px; border-radius: 12px; margin-bottom: 8px; object-fit: contain; }
@media (max-width: 767px) {
    .pay-qr-img { width: 130px; height: 130px; }
    .pay-info-section img { width: 130px !important; height: 130px !important; }
    .activate-section input { width: 180px !important; font-size: 14px !important; }
}
