:root {
    --primary: #7C3AED;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --primary-glow: rgba(124, 58, 237, 0.25);
    --accent: #0891B2;
    --accent-glow: rgba(8, 145, 178, 0.2);
    --success: #059669;
    --danger: #DC2626;
    --warning: #F59E0B;
    --bg: #0C0C14;
    --bg-card: rgba(28, 25, 35, 0.6);
    --bg-card-hover: rgba(38, 35, 45, 0.75);
    --bg-card-solid: #1C1923;
    --bg-input: rgba(15, 15, 25, 0.5);
    --text: #F5F3FF;
    --text-secondary: #94A3B8;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --radius: 14px;
    --radius-sm: 10px;
    --glass-blur: 12px;
}

* {
    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;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(124, 58, 237, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 90%, rgba(8, 145, 178, 0.04) 0%, transparent 60%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.app {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    backdrop-filter: blur(var(--glass-blur));
    position: relative;
    z-index: 200;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tagline-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tagline {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 2px 8px;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 10px;
    width: fit-content;
}

.tagline-sub {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
    padding-left: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.user-info:hover {
    background: var(--bg-card-hover);
}

.user-avatar {
    font-size: 16px;
}

.user-nickname {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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: var(--bg-card);
    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.6);
    backdrop-filter: blur(4px);
    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: var(--bg-card);
    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: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
    flex-shrink: 0;
}

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

.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: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    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;
}

.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);
}
/* 内容加载 */
.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 {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-secondary);
}

.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;
}
