* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e27;
    color: #fff;
    min-height: 100vh;
}
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-left h1 { font-size: 24px; margin-bottom: 4px; white-space: nowrap; }
.header-left .subtitle { opacity: 0.8; font-size: 14px; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.user-info { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.user-avatar {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.logout-btn {
    background: rgba(255,255,255,0.1);
    border: none; color: white;
    padding: 8px 16px; border-radius: 6px;
    cursor: pointer; font-size: 13px; transition: all 0.3s;
}
.logout-btn:hover { background: rgba(255,255,255,0.2); }
.controls {
    padding: 16px 20px;
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.search-input {
    flex: 1; min-width: 220px;
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff; font-size: 14px;
}
.search-input:focus { outline: none; border-color: #667eea; }
.search-input::placeholder { opacity: 0.4; }
.category-select {
    padding: 10px 14px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff; font-size: 14px; cursor: pointer;
}
.category-select option { background: #1a1f3a; }
.btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    cursor: pointer; font-size: 14px; transition: all 0.3s;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(102,126,234,0.4); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 320px));
    gap: 15px; padding: 20px;
    justify-content: center;
}
.stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px; padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.stat-card .number { font-size: 32px; font-weight: bold; color: #667eea; }
.stat-card .label { font-size: 12px; opacity: 0.7; margin-top: 5px; }
.stat-card-link {
    text-decoration: none; color: inherit; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.25s;
}
.stat-card-link:hover {
    border-color: rgba(102,126,234,0.5);
    transform: translateY(-2px);
    background: rgba(102,126,234,0.12);
}
.stat-card-icon { font-size: 28px; margin-bottom: 6px; }
.stat-card-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 4px; }
/* 时段标带 */
.period-banner {
    margin: 10px 0 16px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(102,126,234,0.18), rgba(118,75,162,0.15));
    border: 1px solid rgba(102,126,234,0.35);
    border-radius: 10px;
    font-size: 15px; font-weight: 600; color: #a5b4fc;
}
.period-banner small { font-size: 12px; opacity: 0.7; font-weight: 400; }
.period-banner .back-btn { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.8); text-decoration: none; margin-right: 12px; padding: 2px 8px; border: 1px solid rgba(255,255,255,0.4); border-radius: 4px; transition: background 0.2s; }
.period-banner .back-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* 快捷入口卡片 */
.shortcut-card {
    text-decoration: none; color: inherit;
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(118,75,162,0.15));
    border: 1px solid rgba(102,126,234,0.35);
    border-radius: 12px; padding: 14px 18px;
    transition: all 0.25s; cursor: pointer;
}
.shortcut-card:hover {
    border-color: rgba(102,126,234,0.7);
    background: linear-gradient(135deg, rgba(102,126,234,0.28), rgba(118,75,162,0.25));
    transform: translateY(-2px);
}
.shortcut-icon { font-size: 26px; flex-shrink: 0; }
.shortcut-body { flex: 1; min-width: 0; }
.shortcut-title { font-size: 14px; font-weight: 600; color: #a5b4fc; margin-bottom: 3px; }
.shortcut-desc  { font-size: 12px; opacity: 0.6; }
.shortcut-arrow { font-size: 22px; color: rgba(165,180,252,0.6); flex-shrink: 0; }
.results { padding: 0 20px 20px; max-width: 1200px; margin: 0 auto; }
.result-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px; padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.result-card:hover {
    border-color: rgba(102,126,234,0.5);
    transform: translateY(-2px);
}
.result-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 12px;
    flex-wrap: wrap; gap: 10px;
}
.news-title { font-size: 18px; font-weight: 600; color: #fff; flex: 1; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 500;
}
.badge-event  { background: rgba(102,126,234,0.3); color: #a5b4fc; }
.badge-high   { background: rgba(34,197,94,0.2);   color: #4ade80; }
.badge-medium { background: rgba(234,179,8,0.2);   color: #facc15; }
.badge-short  { background: rgba(168,85,247,0.2);  color: #c084fc; }
.news-meta { font-size: 12px; opacity: 0.6; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.news-meta a { color: #667eea; text-decoration: none; }
.badge-subject  { background: rgba(14,165,233,0.2);  color: #38bdf8; }
.badge-scope    { background: rgba(251,146,60,0.2);  color: #fb923c; }
.badge-benefit-direct   { background: rgba(34,197,94,0.2);  color: #4ade80; }
.badge-benefit-indirect { background: rgba(234,179,8,0.2);  color: #facc15; }
.badge-benefit-emotion  { background: rgba(168,85,247,0.2); color: #c084fc; }
.logic-box {
    background: rgba(102,126,234,0.1);
    border-left: 3px solid #667eea;
    padding: 12px 15px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 15px; font-size: 14px; line-height: 1.6;
}
.stocks-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}
.stocks-box { background: rgba(0,0,0,0.2); border-radius: 12px; padding: 15px; }
.stocks-box.bullish { border: 1px solid rgba(34,197,94,0.3); }
.stocks-box.bearish { border: 1px solid rgba(239,68,68,0.3); }
.stocks-locked-wrap {
    margin-top: 12px; border-radius: 12px;
    overflow: hidden; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.2s;
}
.stocks-locked-wrap:hover { border-color: rgba(102,126,234,0.4); }
.stocks-locked-header {
    display: flex; gap: 14px; flex-wrap: wrap;
    padding: 8px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stocks-locked-count { font-size: 13px; }
.stocks-locked-count.bullish { color: #4ade80; }
.stocks-locked-count.bearish { color: #f87171; }
.stocks-locked-count b { font-weight: 700; }
.stocks-locked-inner { position: relative; }
.stocks-locked-blur {
    background: rgba(0,0,0,0.2); padding: 12px 15px;
    filter: blur(5px); user-select: none; pointer-events: none;
}
.fake-stock-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.fake-stock-row:last-child { border-bottom: none; }
.fake-bar-a { height: 13px; border-radius: 4px; background: rgba(255,255,255,0.2); width: 45%; }
.fake-bar-b { height: 13px; border-radius: 4px; background: rgba(255,255,255,0.12); width: 25%; }
.stocks-locked-tip {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.28); letter-spacing: 0.5px;
}
.stocks-locked-wrap:hover .stocks-locked-tip { background: rgba(102,126,234,0.35); }
.stocks-title {
    font-size: 14px; font-weight: 600;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 5px;
}
.stocks-title.bullish { color: #4ade80; }
.stocks-title.bearish { color: #f87171; }
.stock-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap; gap: 4px;
}
.stock-item:last-child { border-bottom: none; }
.stock-logic {
    font-size: 12px; opacity: 0.65; line-height: 1.6;
    padding: 4px 0 8px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.relevance-tag { font-size: 11px; padding: 1px 7px; border-radius: 4px; flex-shrink: 0; }
.relevance-high { background: rgba(34,197,94,0.15); color: #4ade80; }
.relevance-mid  { background: rgba(234,179,8,0.15);  color: #facc15; }
.relevance-low  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
.industry-bar {
    display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
    font-size: 12px; flex-wrap: wrap;
}
.industry-node {
    background: rgba(255,255,255,0.07); padding: 3px 10px; border-radius: 4px;
}
.industry-highlight { background: rgba(102,126,234,0.2); color: #a5b4fc; font-weight: 600; }
.industry-arrow { opacity: 0.4; }
.invest-section { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.invest-box {
    background: rgba(102,126,234,0.07);
    border: 1px solid rgba(102,126,234,0.2);
    border-radius: 8px; padding: 10px 12px;
}
.invest-box-title { font-size: 11px; color: #a5b4fc; margin-bottom: 4px; font-weight: 600; }
.invest-box-text  { font-size: 12px; opacity: 0.75; line-height: 1.6; }
.risk-list {
    margin-top: 12px;
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 8px; padding: 10px 14px;
}
.risk-list-title { font-size: 12px; color: #f87171; margin-bottom: 6px; font-weight: 600; }
.risk-list ul { list-style: none; padding: 0; margin: 0; }
.risk-list li { font-size: 12px; opacity: 0.7; line-height: 1.7; }
.stock-info { display: flex; align-items: center; gap: 10px; }
.stock-code {
    background: rgba(255,255,255,0.1);
    padding: 2px 8px; border-radius: 4px;
    font-size: 12px; font-family: monospace;
}
.stock-name { font-weight: 500; }
.stock-sector {
    font-size: 11px; opacity: 0.6;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px; border-radius: 4px;
}
.tab-bar {
    display: flex; gap: 0;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 20px;
}
a.tab-item {
    text-decoration: none;
    color: inherit;
}

/* ===== 报告页未登录正文遮罩 ===== */
.report-content-locked {
    position: relative; cursor: pointer;
    border-radius: 8px; overflow: hidden;
    margin-top: 2px;
}
.report-content-locked:hover .report-content-tip { background: rgba(102,126,234,0.35); }
.report-content-blur {
    font-size: 13px; line-height: 1.8;
    white-space: pre-line;
    background: rgba(0,0,0,0.25);
    border-radius: 8px; padding: 15px;
    max-height: 160px; overflow: hidden;
    color: rgba(255,255,255,0.8);
    filter: blur(4px); user-select: none; pointer-events: none;
}
.report-content-tip {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9);
    background: rgba(0,0,0,0.28); letter-spacing: 0.5px;
    border-radius: 8px;
}

/* ===== 财经新闻股票排名页 ===== */
.ranking-header {
    display: flex; align-items: center; padding: 16px 20px 10px;
    font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.85);
}
.ranking-date { opacity: 0.8; }
.ranking-locked {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 16px;
    padding: 60px 20px; color: rgba(255,255,255,0.6);
}
.ranking-locked-icon { font-size: 48px; }
.ranking-locked-text { font-size: 16px; }
.ranking-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px;
    padding: 0 20px 20px;
}
@media (max-width: 700px) {
    .ranking-columns { grid-template-columns: 1fr; }
}
.ranking-col {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; overflow: hidden;
}
.ranking-col-title {
    padding: 12px 16px; font-size: 14px; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ranking-col-title.bullish { color: #4ade80; background: rgba(74,222,128,0.08); }
.ranking-col-title.bearish { color: #f87171; background: rgba(248,113,113,0.08); }
.ranking-col-title.neutral { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.05); }
.ranking-list { padding: 8px 0; }
.ranking-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.ranking-row:last-child { border-bottom: none; }
.ranking-row:hover { background: rgba(255,255,255,0.04); }
.rank-num {
    min-width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
}
.rank-num.rank-top {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
}
.rank-stock {
    flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}
.rank-bar-wrap {
    width: 60px; height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.08); flex-shrink: 0;
    overflow: hidden;
}
.rank-bar {
    height: 100%; border-radius: 3px; transition: width 0.4s ease;
}
.rank-bar.bullish { background: linear-gradient(90deg, #4ade80, #22c55e); }
.rank-bar.bearish { background: linear-gradient(90deg, #f87171, #ef4444); }
.rank-bar.neutral { background: linear-gradient(90deg, #818cf8, #6366f1); }
.rank-count {
    font-size: 12px; font-weight: 700; min-width: 30px; text-align: right;
}
.rank-count.bullish { color: #4ade80; }
.rank-count.bearish { color: #f87171; }
.rank-count.neutral { color: #a5b4fc; }

.tab-item {

    padding: 14px 22px;
    font-size: 14px; cursor: pointer;
    color: rgba(255,255,255,0.5);
    border-bottom: 3px solid transparent;
    transition: all 0.25s;
    white-space: nowrap;
}
.tab-item:hover { color: rgba(255,255,255,0.85); }
.tab-item.active {
    color: #fff;
    border-bottom-color: #667eea;
    font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.coming-soon {
    text-align: center; padding: 80px 20px;
    opacity: 0.5; font-size: 15px;
}
.coming-soon .icon { font-size: 48px; margin-bottom: 16px; }
.coming-soon-sub { margin-top: 8px; font-size: 13px; }
.empty-icon { font-size: 48px; margin-bottom: 15px; }
.logic-icon { opacity: 0.8; }
.logic-box-dim { border-color: rgba(255,255,255,0.15); }
.badge-sm { font-size: 11px; padding: 2px 8px; }
.stock-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.empty-state { text-align: center; padding: 60px 20px; opacity: 0.6; }
.loading-wrap {
    display: flex; flex-direction: column;
    align-items: center; padding: 60px 20px; opacity: 0.8;
}
.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(102,126,234,0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pagination {
    display: flex; justify-content: center;
    align-items: center; gap: 15px;
    padding: 20px 0;
    font-size: 14px; opacity: 0.8;
}
.toast {
    position: fixed; bottom: 30px; right: 30px;
    background: rgba(34,197,94,0.9);
    color: white; padding: 15px 25px;
    border-radius: 12px;
    transform: translateX(150%);
    transition: transform 0.3s; z-index: 1001;
}
.toast.show  { transform: translateX(0); }
.toast.error { background: rgba(239,68,68,0.9); }
.site-logo {
    height: 48px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.back-top {
    position: fixed; bottom: 80px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; font-size: 22px; line-height: 44px; text-align: center;
    border: none; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(102,126,234,0.45);
    z-index: 1000;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { transform: translateY(-3px); }

/* 登录弹窗 */
.login-modal-mask {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
}
.login-modal {
    position: relative;
    background: linear-gradient(135deg, #1a1f3a 0%, #12152e 100%);
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 20px; padding: 40px 36px;
    width: 100%; max-width: 380px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.login-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.4); font-size: 22px; line-height: 1;
    transition: color 0.2s;
}
.login-close:hover { color: #fff; }
.login-modal h2 {
    font-size: 22px; font-weight: 700;
    text-align: center; margin: 0 0 28px;
    color: #fff;
}
.login-error {
    color: #f87171; font-size: 13px;
    text-align: center; margin-bottom: 14px;
    background: rgba(239,68,68,0.1);
    border-radius: 8px; padding: 8px 12px;
}
.login-input {
    display: block; width: 100%; box-sizing: border-box;
    padding: 12px 14px; margin-bottom: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px; color: #fff; font-size: 14px;
    transition: border-color 0.2s;
}
.login-input:focus { outline: none; border-color: #667eea; }
.login-input::placeholder { color: rgba(255,255,255,0.3); }
.login-submit { display: block; width: 100%; margin-top: 8px; padding: 13px; font-size: 15px; }

.report-card {
    background: rgba(255,255,255,0.05);
    border-radius: 16px; padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.report-card:hover {
    border-color: rgba(102,126,234,0.5);
    transform: translateY(-2px);
}
.report-header {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 10px;
    flex-wrap: wrap; gap: 8px;
}
.report-period { font-size: 12px; opacity: 0.6; }
.report-meta {
    font-size: 12px; opacity: 0.55;
    margin-bottom: 12px;
    display: flex; flex-wrap: wrap; gap: 10px;
}
.report-content {
    font-size: 13px; line-height: 1.8;
    white-space: pre-line;
    background: rgba(0,0,0,0.25);
    border-radius: 8px; padding: 15px;
    max-height: 420px; overflow-y: auto;
    color: rgba(255,255,255,0.8);
}
.report-content::-webkit-scrollbar { width: 4px; }
.report-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.report-content::-webkit-scrollbar-thumb { background: rgba(102,126,234,0.4); border-radius: 2px; }

@media (max-width: 600px) {
    .header { padding: 10px 14px; flex-wrap: nowrap; gap: 8px; align-items: center; }
    .header-left { flex: 1; min-width: 0; }
    .header-left h1 { font-size: 17px; white-space: normal; word-break: keep-all; line-height: 1.5; }
    .header-left .subtitle { display: none; }
    .header-right { gap: 4px; }
    .user-avatar { width: 28px; height: 28px; font-size: 14px; }
    .logout-btn { padding: 6px 10px; font-size: 12px; }
    .tab-bar { padding: 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .tab-bar::-webkit-scrollbar { display: none; }
    .tab-item { padding: 12px 14px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
    .controls { padding: 12px; gap: 8px; }
    .search-input { min-width: 0; }
    .stats { gap: 10px; padding: 12px; grid-template-columns: repeat(2, 1fr); }
    .results { padding: 0 12px 16px; }
    .ranking-header { padding-left: 12px; padding-right: 12px; }
    .ranking-columns { padding: 0 12px 16px; }
    .result-card { padding: 14px; border-radius: 12px; }
    .result-header { flex-direction: column; }
    .news-title { font-size: 16px; }
    .invest-section { grid-template-columns: 1fr; }
    .stocks-section { grid-template-columns: 1fr; }
    .report-content { max-height: 300px; font-size: 12px; }
    .home-modules { grid-template-columns: repeat(2, 1fr); padding: 16px 12px 24px; gap: 12px; }
    .home-module-card { padding: 22px 12px; border-radius: 16px; }
    .home-module-icon { font-size: 36px; }
    .home-module-title { font-size: 14px; }
    .home-module-desc { font-size: 11px; }
    .home-greeting { padding: 12px 12px 0; font-size: 14px; }
}

/* ===== 首页模块卡片 ===== */
.home-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 0 40px;
}
.home-greeting {
    padding: 20px 20px 0;
    font-size: 15px;
    color: rgba(255,255,255,0.65);
}
.home-modules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 20px 20px 0;
}
.home-module-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.28s;
    text-align: center;
}
.home-module-card:hover {
    background: rgba(102,126,234,0.15);
    border-color: rgba(102,126,234,0.55);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(102,126,234,0.2);
}
.home-module-icon {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.home-module-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
.home-module-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

/* ===== 滚动公告条 ===== */
.notice-bar {
    display: flex;
    align-items: center;
    background: rgba(255,200,0,0.1);
    border-bottom: 1px solid rgba(255,200,0,0.2);
    padding: 8px 20px;
    overflow: hidden;
    gap: 10px;
}
.notice-icon { font-size: 15px; flex-shrink: 0; }
.notice-scroll-wrap { flex: 1; overflow: hidden; }
.notice-scroll-text {
    display: inline-block;
    white-space: nowrap;
    color: #f5c518;
    font-size: 13px;
    font-weight: 500;
    animation: noticeScroll 18s linear infinite;
    -webkit-animation: noticeScroll 18s linear infinite;
    will-change: transform;
}
@keyframes noticeScroll {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
@-webkit-keyframes noticeScroll {
    0%   { -webkit-transform: translateX(100vw); }
    100% { -webkit-transform: translateX(-100%); }
}

/* ===== 悬浮客服 ===== */
.kefu-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #07c160, #05a350);
    color: #fff;
    border-radius: 14px;
    padding: 10px 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(7,193,96,0.45);
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}
.kefu-float:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(7,193,96,0.55); }
.kefu-float-icon { font-size: 24px; line-height: 1; }
.kefu-float-text { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; }
.kefu-float-arrow {
    font-size: 14px;
    line-height: 1;
    animation: kefuBounce 1.2s ease-in-out infinite;
}
@keyframes kefuBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(4px); }
}

/* ===== 客服弹层 ===== */
.kefu-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.kefu-modal-box {
    position: relative;
    background: #1e2233;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 32px 28px 24px;
    text-align: center;
    min-width: 220px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.kefu-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.kefu-modal-close:hover { color: #fff; }
.kefu-modal-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.kefu-qrcode { width: 180px; height: 180px; border-radius: 10px; object-fit: cover; border: 3px solid rgba(255,255,255,0.1); }
.kefu-modal-tip { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.4); }
