/* ============================================
   流量工作室 - 全局样式 v1.0
   暗色主题，响应式设计
   ============================================ */

:root {
    --bg-primary: #f5f6f8;
    --bg-secondary: #eef0f3;
    --bg-card: #ffffff;
    --bg-input: #f0f2f5;
    --bg-hover: #e8ebef;
    --border-color: #e0e3e8;
    --border-light: #d4d7dc;
    
    --text-primary: #1a1d24;
    --text-secondary: #5c6068;
    --text-muted: #9498a0;
    
    --accent: #00b894;
    --accent-hover: #009e7d;
    --accent-light: rgba(0, 184, 148, 0.08);
    
    --danger: #e74c3c;
    --danger-hover: #c0392b;
    --warning: #f39c12;
    --success: #27ae60;
    --info: #3498db;
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    
    --transition: 0.2s ease;
    --shadow: 0 1px 8px rgba(0,0,0,0.06);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.1);
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    
    --transition: 0.2s ease;
    --shadow: 0 2px 12px rgba(0,0,0,0.45);
    --shadow-card: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.6);
    
    --header-height: 60px;
    --sidebar-width: 220px;
    --max-width: 1200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f6f8;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

/* ========== 顶部导航 ========== */
.top-nav {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-nav .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-nav .logo .icon { font-size: 24px; }

.top-nav .nav-links { display: flex; gap: 4px; }
.top-nav .nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition);
}
.top-nav .nav-links a:hover,
.top-nav .nav-links a.active {
    color: var(--accent);
    background: var(--accent-light);
}

.top-nav .user-area {
    display: flex;
    align-items: center;
    gap: 16px;
}
.top-nav .balance-badge {
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.top-nav .user-avatar {
    width: 34px; height: 34px;
    background: #333;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
}
.top-nav .dropdown {
    position: relative;
}
.top-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 160px;
    padding: 8px 0;
    box-shadow: var(--shadow);
    z-index: 200;
    margin-top: 8px;
}
.top-nav .dropdown-menu.show { display: block; }
.top-nav .dropdown-menu a,
.top-nav .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background var(--transition);
}
.top-nav .dropdown-menu a:hover,
.top-nav .dropdown-menu button:hover {
    background: var(--bg-hover);
}

/* ========== 移动端菜单按钮 ========== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}
.mobile-sidebar {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    z-index: 99;
    overflow-y: auto;
    padding: 16px;
}
.mobile-sidebar.show { display: block; }
.mobile-sidebar a {
    display: block;
    padding: 14px 16px;
    color: var(--text-secondary);
    border-radius: var(--radius);
    margin-bottom: 4px;
    font-size: 15px;
}
.mobile-sidebar a:hover, .mobile-sidebar a.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* ========== 主容器 ========== */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* ========== 卡片 ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-card);
}
.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-hover);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== 搜索栏 ========== */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.search-bar .platform-tabs {
    display: flex;
    gap: 4px;
}
.search-bar .platform-tab {
    padding: 10px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
}
.search-bar .platform-tab:hover { background: var(--bg-hover); }
.search-bar .platform-tab.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.search-input-wrap {
    flex: 1;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }

.btn {
    padding: 10px 24px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn:hover { background: var(--accent-hover); opacity: 0.95; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: var(--bg-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ========== 结果网格 ========== */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}
.result-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.result-card .cover {
    width: 100%;
    aspect-ratio: 16/10;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 36px;
    overflow: hidden;
}
.result-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.result-card .body { padding: 14px; }
.result-card .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.result-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}
.result-card .meta .author { color: var(--text-secondary); }
.result-card .stats { display: flex; gap: 12px; }
.result-card .stat { display: flex; align-items: center; gap: 4px; }

/* 结果卡片内联功能按钮 */
.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.card-actions button {
    padding: 5px 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 12px;
    background: var(--bg-input);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.card-actions button:hover {
    background: var(--accent);
    color: #000;
}

/* ========== 底部导航（统一手机端布局，始终显示） ========== */
.bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -1px 12px rgba(0,0,0,0.06);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding: 0 8px;
}
.bottom-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}
.bottom-nav a.active { color: var(--accent); }
.bottom-nav .nav-icon { font-size: 20px; }

@media (max-width: 768px) {
    .main-container { padding-bottom: 70px; }

    /* 移动端搜索栏优化 */
    .search-bar { flex-direction: column; gap: 8px; }
    .search-bar .platform-tabs { flex-wrap: wrap; }
    .search-bar .platform-tab { padding: 8px 14px; font-size: 13px; }

    /* 移动端卡片信息更清晰 */
    .result-card .title { color: var(--text-primary); -webkit-line-clamp: 2; }
    .result-card .meta { color: #777; }
    .result-card .meta .author { color: #aaa; }

    /* 移动端按钮文字更清晰 */
    .card-actions button { color: #e0e0e0; }

    /* 移动端输入框 */
    .search-input { padding: 12px 16px; font-size: 15px; }
    .search-input::placeholder { color: #777; }

    /* 移动端空状态 */
    .empty-state p { color: #a0a0a0; }
}

/* ========== 新用户引导弹窗 ========== */
.guide-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-card {
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-hover);
}
.guide-card h2 {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 8px;
}
.guide-card .guide-steps {
    text-align: left;
    margin: 24px 0;
}
.guide-card .guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: var(--radius);
}
.guide-card .guide-step-num {
    width: 28px; height: 28px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.guide-card .guide-step-text {
    font-size: 14px;
    line-height: 1.5;
}
.guide-card .guide-step-text strong {
    color: var(--accent);
}

/* ========== 通知面板 ========== */
.notif-wrapper {
    position: relative;
}
.notif-bell {
    position: relative;
    cursor: pointer;
    font-size: 20px;
    padding: 4px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-input);
    transition: background var(--transition);
}
.notif-bell:hover { background: var(--bg-hover); }
.notif-badge {
    display: none;
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px; height: 18px;
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
}
.notif-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 200;
    margin-top: 8px;
}
.notif-panel.show { display: block; }
.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition);
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item:last-child { border-bottom: none; }

/* ========== 搜索历史标签 ========== */
.search-history-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    align-items: center;
}
.search-history-tags .hist-tag {
    padding: 4px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.search-history-tags .hist-tag:hover { border-color: var(--accent); color: var(--accent); }
.search-history-tags .hist-tag .star { color: var(--warning); cursor: pointer; }

/* ========== 截流状态面板 ========== */
.jieliu-track-panel {
    margin-top: 24px;
}
.track-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.track-tab {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.track-tab:hover { background: var(--bg-hover); }
.track-tab.active { background: var(--accent); color: #000; }

/* ========== 内容详情 ========== */
.detail-panel {
    position: fixed;
    top: 0; right: 0;
    width: 520px; max-width: 100vw;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
    z-index: 300;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.detail-panel.show { transform: translateX(0); }
.detail-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 299;
    display: none;
}
.detail-overlay.show { display: block; }
.detail-panel .detail-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    z-index: 1;
}
.detail-panel .close-btn {
    width: 32px; height: 32px;
    background: var(--bg-input);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.detail-panel .detail-body { padding: 24px; }

/* ========== 评论列表 ========== */
.comment-list { margin-top: 16px; }
.comment-item {
    padding: 14px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 10px;
    border-left: 3px solid transparent;
    transition: border-color var(--transition);
}
.comment-item.high-intent { border-left-color: var(--danger); }
.comment-item.medium-intent { border-left-color: var(--warning); }
.comment-item .comment-user {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.comment-item .comment-text {
    font-size: 14px;
    margin-bottom: 8px;
}
.comment-item .comment-reply {
    background: var(--accent-light);
    border: 1px solid rgba(0, 212, 170, 0.2);
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--accent);
    margin-top: 8px;
    position: relative;
}
.comment-item .reply-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.comment-item .intent-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.intent-high { background: rgba(255,82,82,0.15); color: var(--danger); }
.intent-medium { background: rgba(255,193,7,0.15); color: var(--warning); }
.intent-low { background: rgba(102,102,102,0.15); color: var(--text-muted); }

/* ========== AI分析面板 ========== */
.ai-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-card);
}
.ai-panel .analyze-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.ai-panel .analyze-section:last-child {
    border: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.ai-panel .section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}
.ai-panel .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-panel .ai-tag {
    padding: 4px 12px;
    background: var(--bg-input);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ========== 改写面板 ========== */
.rewrite-panel .style-select {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.rewrite-panel .style-option {
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}
.rewrite-panel .style-option.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.rewrite-version {
    background: var(--bg-input);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    position: relative;
}
.rewrite-version .version-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.rewrite-version .version-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}
.similarity-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.similarity-high { background: rgba(255,82,82,0.15); color: var(--danger); }
.similarity-medium { background: rgba(255,193,7,0.15); color: var(--warning); }
.similarity-low { background: rgba(76,175,80,0.15); color: var(--success); }

/* ========== 监控列表 ========== */
.monitor-list .monitor-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius);
    margin-bottom: 10px;
}
.monitor-item .monitor-info { flex: 1; }
.monitor-item .monitor-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.monitor-item .monitor-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}
.monitor-item .monitor-actions {
    display: flex;
    gap: 8px;
}

/* ========== 表单 ========== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--accent); }
.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* ========== 登录页 ========== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, #1a1a20 0%, #0a0a0e 65%);
}
.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 400px;
    max-width: 90vw;
    box-shadow: var(--shadow-card);
}
.login-card .login-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    margin-bottom: 32px;
}

/* ========== 加载/占位 ========== */
.skeleton {
    background: linear-gradient(90deg, #151518 25%, #222228 50%, #151518 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Toast通知 ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    color: #fff;
    font-size: 14px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    max-width: 400px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
.toast-warning { background: var(--warning); color: #000; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ========== 模态框 ========== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 480px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
}
.modal h3 { font-size: 18px; margin-bottom: 20px; }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
}
.pagination button {
    padding: 8px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}
.pagination button:hover { background: var(--bg-hover); }
.pagination button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}

/* ========== 统计卡片网格 ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-hover); }
.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 15px; }

/* ========== 徽章 ========== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.badge-green { background: rgba(76,175,80,0.15); color: var(--success); }
.badge-red { background: rgba(255,82,82,0.15); color: var(--danger); }
.badge-yellow { background: rgba(255,193,7,0.15); color: var(--warning); }
.badge-gray { background: rgba(102,102,102,0.15); color: var(--text-muted); }

/* ========== 表格 ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-input);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.data-table tr:hover td { background: var(--bg-hover); }

/* ========== 统一布局：隐藏顶部冗余元素 ========== */
.mobile-menu-btn { display: none !important; }
#userArea        { display: none !important; }
.mobile-sidebar   { display: none !important; }
.top-nav .nav-links { display: none; }


/* ========== 首页平台卡片 ========== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px 16px 80px;
}
.home-card {
    border-radius: 18px;
    padding: 24px 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.home-card::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    border-radius: 50%;
    opacity: 0.08;
    background: #fff;
}
.home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}

/* 平台主题色 */
.card-xhs { background: linear-gradient(135deg, #ff2442, #d91a3a); }
.card-dy  { background: linear-gradient(135deg, #2d3436, #3d4447); border: 1px solid #555; }
.card-ks  { background: linear-gradient(135deg, #ff4906, #e04000); }
.card-wx  { background: linear-gradient(135deg, #07c160, #06ad56); }

/* 四大工作区卡片 */
.card-create   { background: linear-gradient(135deg, #f093fb, #f5576c); }
.card-client   { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.card-ks      { background: linear-gradient(135deg, #ff4906, #e04000); }
.card-dy      { background: linear-gradient(135deg, #2d3436, #3d4447); border: 1px solid #555; }
.card-xhs     { background: linear-gradient(135deg, #ff2442, #d91a3a); }
.card-wx      { background: linear-gradient(135deg, #07c160, #06ad56); }

.home-card .card-icon { font-size: 36px; margin-bottom: 8px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.home-card .card-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.home-card .card-desc { font-size: 11px; color: rgba(255,255,255,0.75); line-height: 1.5; }

/* ========== 全局移动端适配（统一手机端布局，不再区分PC/手机） ========== */
.main-container { padding: 16px 16px 70px; }
.search-bar { flex-direction: column; }
.search-bar .platform-tabs { overflow-x: auto; }
.result-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.detail-panel { width: 100vw; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.login-card { padding: 32px 24px; }
.data-table { font-size: 12px; }
.data-table th, .data-table td { padding: 8px 10px; }
/* ========== 工具页横幅 ========== */
.tool-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}
.tool-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}
.tool-banner-text { flex: 1; min-width: 0; }
.tool-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.tool-banner-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 工具页使用教程折叠 ========== */
.tool-guide {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.tool-guide-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    list-style: none;
}
.tool-guide-summary::-webkit-details-marker { display: none; }
.tool-guide-summary:hover { color: var(--text-primary); }
.tool-guide-arrow {
    font-size: 12px;
    transition: transform 0.2s;
}
details[open] .tool-guide-arrow { transform: rotate(180deg); }
.tool-guide-body {
    padding: 4px 18px 16px;
}
.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.guide-step:last-child { margin-bottom: 0; }
.guide-num {
    width: 22px;
    height: 22px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ========== textarea 内阴影 ========== */
#batchTextarea,
textarea[name="content"],
textarea[id="content"] {
    width: 100%;
    height: 200px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    padding: 14px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
    display: block;
    box-sizing: border-box;
}
#batchTextarea:focus,
textarea[name="content"]:focus,
textarea[id="content"]:focus {
    border-color: var(--accent);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3), 0 0 0 2px rgba(0,212,170,0.15);
}
#batchTextarea::placeholder,
textarea::placeholder { color: var(--text-muted); }

/* ========== 充值页 ========== */
.recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.recharge-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-card);
}
.recharge-card:hover,
.recharge-card.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}
.recharge-card .plan-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.recharge-card .plan-calls { font-size: 32px; font-weight: 700; color: var(--accent); }
.recharge-card .plan-calls small { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.recharge-card .plan-price {
    font-size: 20px; font-weight: 700; margin-top: 8px;
}
.recharge-card .plan-unit { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
