/* ===== 股票猫门面首页样式 ===== */
:root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-hover: #1c2333;
    --border: #30363d;
    --text: #e6edf3;
    --text-dim: #8b949e;
    --accent: #58a6ff;
    --warn: #f59e0b;
    --red: #ef4444;
    --green: #22c55e;
    --radius: 10px;
    --max-width: 1100px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
ul { list-style: none; }

/* ===== Header ===== */
.lh {
    position: sticky; top: 0; z-index: 100;
    background: rgba(13,17,23,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.lh-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex; align-items: center; gap: 24px;
    padding: 0 24px; height: 60px;
}
.lh-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; white-space: nowrap; }
.lh-logo small { color: var(--text-dim); font-size: 12px; font-weight: 400; margin-left: 2px; }
.lh-logo-icon { font-size: 24px; }
.lh-nav { display: flex; gap: 20px; flex: 1; }
.lh-nav a { color: var(--text-dim); font-size: 14px; transition: color .2s; }
.lh-nav a:hover { color: var(--text); }
.lh-user-area { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.user-greeting { font-size: 13px; color: var(--text-dim); }
.vip-tag { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.btn-login, .btn-register {
    padding: 7px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; transition: all .2s;
}
.btn-login { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-login:hover { background: rgba(88,166,255,.1); }
.btn-register { background: var(--accent); color: #0d1117; font-weight: 600; border: none; }
.btn-register:hover { background: #79b8ff; }
.btn-enter-app {
    padding: 7px 16px; border-radius: 8px; font-size: 13px;
    background: var(--green); color: #0d1117; font-weight: 600; border: none; cursor: pointer;
}

/* ===== Hero ===== */
.lh-hero {
    position: relative;
    padding: 80px 24px 60px;
    text-align: center;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(88,166,255,.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto; }
.hero-content h1 {
    font-size: 42px; font-weight: 800; line-height: 1.3; margin-bottom: 16px;
    background: linear-gradient(135deg, #e6edf3 0%, #58a6ff 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--text-dim); font-size: 16px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 24px; }
.btn-hero-primary, .btn-hero-secondary {
    padding: 12px 32px; border-radius: 10px; font-size: 15px; cursor: pointer; transition: all .25s;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #58a6ff, #2563eb);
    color: #fff; font-weight: 600; border: none;
    box-shadow: 0 4px 20px rgba(88,166,255,.3);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(88,166,255,.4); }
.btn-hero-secondary {
    background: transparent; color: var(--text); border: 1px solid var(--border);
}
.btn-hero-secondary:hover { border-color: var(--accent); background: var(--bg-hover); }
.hero-stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero-stats span { color: var(--text-dim); font-size: 13px; }

/* ===== Section ===== */
.section-header {
    max-width: var(--max-width); margin: 0 auto 24px; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.section-header h2 { font-size: 22px; font-weight: 700; }
.section-header p { color: var(--text-dim); font-size: 14px; }

/* ===== News ===== */
.lh-news { padding: 60px 0; border-top: 1px solid var(--border); }
.news-refresh { color: var(--text-dim); font-size: 12px; }
.news-ticker {
    max-width: var(--max-width); margin: 0 auto 24px; padding: 0 24px;
    overflow: hidden; white-space: nowrap; height: 36px; line-height: 36px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    position: relative;
}
.news-ticker::before {
    content: '⚡快讯'; position: absolute; left: 0; top: 0; bottom: 0; z-index: 1;
    background: var(--red); color: #fff; padding: 0 12px; font-size: 13px; font-weight: 600;
}
.news-ticker-track {
    display: inline-block; padding-left: 80px;
    animation: ticker-scroll 60s linear infinite;
}
.news-ticker-item { margin-right: 48px; font-size: 13px; }
.news-ticker-item a { color: var(--text-dim); }
.news-ticker-item a:hover { color: var(--text); }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.news-grid {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
}
.news-loading { color: var(--text-dim); text-align: center; padding: 40px; grid-column: 1/-1; }
.news-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px; transition: all .2s; cursor: pointer;
    display: flex; flex-direction: column; gap: 8px;
}
.news-card:hover { border-color: var(--accent); background: var(--bg-hover); }
.news-card-meta { display: flex; align-items: center; gap: 8px; }
.news-source {
    font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 500; white-space: nowrap;
}
.news-source.sinacaijing { background: rgba(239,68,68,.15); color: #f87171; }
.news-source.dongfangcaifu { background: rgba(245,158,11,.15); color: #fbbf24; }
.news-source.kr { background: rgba(34,197,94,.15); color: #4ade80; }
.news-source.default { background: rgba(88,166,255,.15); color: #60a5fa; }
.news-time { font-size: 11px; color: var(--text-dim); }
.news-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.news-card:hover .news-title { color: var(--accent); }
.news-summary { font-size: 13px; color: var(--text-dim); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.news-more { text-align: center; margin-top: 24px; }
.btn-more-news {
    padding: 10px 28px; background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-dim); border-radius: 8px; cursor: pointer; font-size: 14px; transition: all .2s;
}
.btn-more-news:hover { border-color: var(--accent); color: var(--text); }

/* ===== Features ===== */
.lh-features { padding: 60px 0; border-top: 1px solid var(--border); }
.features-grid {
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; transition: all .2s; position: relative; overflow: hidden;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-card.vip-card { border-color: rgba(245,158,11,.25); }
.feature-card.vip-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}
.feature-icon { font-size: 28px; margin-bottom: 10px; }
.feature-card h3 { font-size: 16px; margin-bottom: 6px; }
.feature-card p { color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.tier-badge {
    position: absolute; top: 16px; right: 16px;
    font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600;
}
.tier-free { background: rgba(34,197,94,.15); color: #4ade80; }
.tier-vip {
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
}

/* ===== Pricing ===== */
.lh-pricing { padding: 60px 0; border-top: 1px solid var(--border); }
.pricing-card {
    max-width: 420px; margin: 0 auto; padding: 36px 32px;
    background: linear-gradient(180deg, var(--bg-card) 0%, #0f1419 100%);
    border: 1px solid rgba(245,158,11,.3); border-radius: 16px;
    text-align: center; position: relative;
    box-shadow: 0 8px 40px rgba(245,158,11,.08);
}
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
    padding: 4px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.pricing-price { margin: 12px 0 24px; }
.price-symbol { font-size: 24px; color: var(--text-dim); vertical-align: top; }
.price-amount {
    font-size: 56px; font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.price-unit { font-size: 18px; color: var(--text-dim); }
.pricing-features { text-align: left; margin-bottom: 28px; }
.pricing-features li {
    padding: 8px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.pricing-features li:last-child { border-bottom: none; }
.btn-pricing {
    width: 100%; padding: 14px; border-radius: 10px; font-size: 16px; cursor: pointer;
    background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
    font-weight: 700; border: none; transition: all .25s;
    box-shadow: 0 4px 20px rgba(245,158,11,.3);
}
.btn-pricing:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(245,158,11,.4); }
.pricing-note { color: var(--text-dim); font-size: 12px; margin-top: 12px; }

/* ===== Footer ===== */
.lh-footer {
    padding: 32px 24px; border-top: 1px solid var(--border);
    text-align: center;
}
.lh-footer .disclaimer { color: var(--text-dim); font-size: 12px; margin-bottom: 8px; }
.lh-footer .copyright { color: #555; font-size: 12px; }

/* ===== Auth Modal ===== */
.auth-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.auth-box {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 32px; width: 380px; max-width: 90vw; position: relative;
    animation: auth-pop .25s ease;
}
@keyframes auth-pop {
    from { opacity: 0; transform: scale(.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer;
}
.auth-close:hover { color: var(--text); }
.auth-brand {
    display: flex; align-items: center; gap: 8px; justify-content: center;
    font-weight: 700; font-size: 20px; margin-bottom: 20px;
}
.auth-brand-icon { font-size: 28px; }
.auth-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.auth-tab {
    flex: 1; padding: 10px; background: none; border: none; cursor: pointer;
    font-size: 15px; color: var(--text-dim); border-bottom: 2px solid transparent; transition: all .2s;
}
.auth-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field input {
    width: 100%; padding: 12px 14px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    color: var(--text); font-size: 14px; outline: none; transition: border-color .2s;
}
.auth-field input:focus { border-color: var(--accent); }
.btn-auth-submit {
    width: 100%; padding: 12px; border-radius: 8px; font-size: 15px; cursor: pointer;
    background: var(--accent); color: #0d1117; font-weight: 600; border: none; transition: all .2s;
    margin-top: 4px;
}
.btn-auth-submit:hover { background: #79b8ff; }
.btn-auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.auth-error {
    background: var(--red-bg, rgba(239,68,68,.12));
    border: 1px solid rgba(239,68,68,.3); border-radius: 8px;
    padding: 10px 14px; font-size: 13px; color: #f87171; margin-top: 4px;
}

/* ===== VIP Modal ===== */
.vip-box { border-color: rgba(245,158,11,.3); }
.vip-price-display { text-align: center; margin-bottom: 20px; }
.vip-price-symbol { font-size: 22px; color: var(--text-dim); vertical-align: top; }
.vip-price-amount {
    font-size: 48px; font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.vip-price-unit { font-size: 16px; color: var(--text-dim); }
.vip-brief { text-align: left; margin-bottom: 20px; font-size: 13px; line-height: 2; color: var(--text-dim); }
.btn-vip-pay {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    color: #fff !important; font-weight: 700;
}
.edition-title { margin: 12px 0 22px; font-size: 17px; }
.contact-qr {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    margin: 0 auto 20px; color: var(--text);
}
.contact-qr img {
    width: 180px; height: 180px; padding: 8px; background: #fff;
    border-radius: 12px; image-rendering: pixelated;
}
.contact-qr span { color: var(--text-dim); font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .lh-nav { display: none; }
    .hero-content h1 { font-size: 28px; }
    .hero-cta { flex-direction: column; }
    .hero-cta button { width: 100%; }
    .news-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; gap: 8px; align-items: flex-start; }
}
