/* Reset and Base Styles */
:root {
    --primary-color: #0b5ed7;
    --primary-dark: #0a58ca;
    --secondary-color: #f8f9fa;
    --text-color: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #198754;
    --danger-color: #dc3545;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--secondary-color);
}

/* 顶部阅读进度条 */
.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.progress-bar {
    height: 4px;
    background: var(--primary-color);
    width: 0%;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 99;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.site-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.site-header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.site-header nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 0 0 40%;
    text-align: center;
}

.hero-favicon-display {
    width: 250px;
    max-width: 100%;
    height: auto;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    object-fit: contain;
    border: 1px solid var(--border-color);
}

.update-badge {
    display: inline-block;
    background: #e8f4fd;
    color: #052c65;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid #b6d4fe;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 0 rgba(25, 135, 84, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* ★ 高级 2x2 网格目录 (TOC) 样式 ★ */
.toc-section {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.toc-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.toc-box h2 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 1.5rem;
    text-align: center;
}

.toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.toc-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.toc-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(11, 94, 215, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.toc-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* AI Summary Box */
.ai-summary-box {
    background: #ffffff;
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.ai-summary-box h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: left;
    color: var(--text-color);
}

.ai-summary-box ul {
    margin-left: 20px;
    margin-top: 15px;
    color: #444;
}

.ai-summary-box li {
    margin-bottom: 10px;
}

/* Spinner Loader */
.spinner {
    border: 4px solid rgba(0,0,0,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.reveal-box {
    margin-top: 15px;
    padding: 10px;
    background: #f1f5f9;
    border-radius: 6px;
    display: inline-block;
    border: 1px dashed var(--border-color);
}

#maskedPhone {
    font-weight: bold;
    letter-spacing: 1px;
}

/* Content Sections */
.content-section, .faq-section {
    padding: 60px 0;
}

.content-section h2, .faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.warning-card {
    border-top: 4px solid var(--danger-color);
}

/* Tabs Panel */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

/* Interactive Quiz */
.quiz-container {
    max-width: 700px;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.quiz-step {
    display: none;
    text-align: center;
    animation: fadeIn 0.3s;
}

.quiz-step.active {
    display: block;
}

.quiz-step h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: var(--text-color);
}

.quiz-btn {
    margin: 5px;
    min-width: 150px;
}

.quiz-result.error {
    color: var(--danger-color);
}

.quiz-result.success {
    color: var(--success-color);
}

.quiz-result p {
    color: var(--text-color);
    margin: 15px 0 25px 0;
}

/* SEO Article Section */
.article-section article {
    max-width: 800px;
    margin: 0 auto;
}

.article-section h2 {
    text-align: left;
    margin-bottom: 20px;
}

.article-section p {
    margin-bottom: 15px;
    color: #444;
}

.article-section ol, .article-section ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: #444;
}

.article-section li {
    margin-bottom: 10px;
}

/* Accordion FAQ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-btn {
    background-color: #fff;
    color: var(--text-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: 1px solid var(--border-color);
    border-bottom: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.accordion-btn:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.accordion-btn:last-of-type {
    border-bottom: 1px solid var(--border-color);
}

.accordion-btn:hover, .accordion-btn.active {
    background-color: var(--secondary-color);
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.accordion-content p {
    padding: 18px 0;
}

/* LSI Ticker */
.lsi-ticker {
    background-color: #f1f5f9;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.lsi-ticker strong {
    color: var(--primary-color);
    margin-right: 10px;
}

.lsi-ticker span {
    margin-right: 10px;
}

/* Footer & Legal Links */
.site-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 50px 0;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 5px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.85rem;
    color: #888;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Box */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 650px;
    border-radius: 8px;
    position: relative;
    color: var(--text-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--danger-color);
    text-decoration: none;
}

/* ★ 手机端底部悬浮查余额按钮 ★ */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    text-align: center;
    padding: 15px;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.mobile-sticky-cta a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    letter-spacing: 0.5px;
}

/* FOMO 弹窗动画样式 */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 30px;
    bottom: 30px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.toast.show {
    visibility: visible;
    animation: slidein 0.5s, fadeout 0.5s 4.5s;
}

@keyframes slidein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Responsive & 打印模式优化 */
@media print {
    .site-header, .hero-image, .tabs, .quiz-container, .mobile-sticky-cta, .toast, .lsi-ticker, .toc-section {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    .container { width: 100%; max-width: none; }
}

@media (max-width: 768px) {
    .site-header nav a {
        margin: 0 10px;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero-image {
        margin-top: 20px;
    }
    .toc-grid {
        grid-template-columns: 1fr;
    }
    .mobile-sticky-cta {
        display: block;
    }
    body {
        padding-bottom: 60px;
    }
    .toast {
        left: 5%;
        right: 5%;
        min-width: auto;
        bottom: 80px; 
    }
    @keyframes slidein {
        from {bottom: 0; opacity: 0;}
        to {bottom: 80px; opacity: 1;}
    }
    @keyframes fadeout {
        from {bottom: 80px; opacity: 1;}
        to {bottom: 0; opacity: 0;}
    }
}