/* ==========================================================================
   CyberGuardReviews - Master Stylesheet (Updated 2026)
   ========================================================================== */

:root {
    --primary: #0f172a;
    --secondary: #2563eb;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border: #cbd5e1;
    --green: #16a34a;         
    --red: #dc2626;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --site-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 30px 15px;
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    width: 100%;
}

.header-container {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 16px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
}

.logo span { color: var(--accent); }

nav { display: flex; align-items: center; }

nav a {
    color: #e2e8f0;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

nav a.active, nav a:hover { color: var(--accent); }

.disclosure-bar {
    background-color: #f1f5f9;
    border-bottom: 1px solid var(--border);
    padding: 8px 15px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

.disclosure-bar a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.disclosure-bar a:hover { text-decoration: underline; }

/* ==========================================================================
   Homepage Elements
   ========================================================================== */
.date-badge {
    display: inline-block;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--secondary);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.main-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.intent-matrix {
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 24px;
    margin: 35px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.matrix-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.matrix-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.matrix-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.matrix-btn .btn-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.matrix-btn .btn-target { font-size: 15px; font-weight: 700; color: var(--secondary); margin-top: 4px; }

/* ==========================================================================
   Product Feed & Cards
   ========================================================================== */
.product-feed { display: flex; flex-direction: column; gap: 30px; margin: 35px 0; }

.product-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow);
}

.product-card.premium-pick { border: 2px solid var(--secondary); }

.ribbon {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--secondary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.col-rank { flex: 0 0 50px; text-align: center; }
.rank-number {
    font-size: 16px;
    font-weight: 800;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.premium-pick .rank-number { background: var(--secondary); color: white; }

.col-brand { flex: 0 0 180px; padding: 0 10px; }
.brand-title { font-size: 22px; font-weight: 800; color: var(--primary); }
.stars { color: #f59e0b; font-size: 14px; margin-top: 4px; }

.col-score {
    flex: 0 0 110px;
    text-align: center;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    padding: 10px 0;
}
.score-num { font-size: 32px; font-weight: 900; color: var(--primary); line-height: 1; }
.score-label { font-size: 11px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-top: 6px; }

.col-features { flex: 1; padding: 0 24px; }
.badge-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.premium-pick .badge-tag { color: var(--green); background: #f0fdf4; }

.features-list { list-style: none; font-size: 14px; color: var(--text-dark); }
.features-list li { margin-bottom: 8px; padding-left: 20px; position: relative; line-height: 1.5; }
.features-list li::before { content: "✓"; color: var(--green); position: absolute; left: 0; font-weight: bold; }

.col-actions { flex: 0 0 220px; display: flex; flex-direction: column; gap: 8px; }

/* ==========================================================================
   Buttons & Pure CSS Tooltip Engine
   ========================================================================== */
.btn-cta {
    display: block;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 8px;
    border-radius: 6px;
    text-align: center;
    transition: background 0.15s ease;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
    position: relative;
    white-space: nowrap;
}
.btn-cta:hover { background-color: var(--accent-hover); }

.cta-trust-note { font-size: 11px; color: var(--text-muted); text-align: center; line-height: 1.3; margin-top: 2px; }

.btn-review {
    display: block;
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 6px;
    text-align: center;
}

/* 🛠️ 纯 CSS 气泡核心处理器 */
.btn-cta::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: #1e293b;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.btn-cta::before {
    content: "";
    position: absolute;
    bottom: 118%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

@media (min-width: 769px) {
    .btn-cta:hover::after,
    .btn-cta:hover::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================================================
   Review Inner Pages
   ========================================================================== */
.review-hero { background-color: var(--bg-light); border-bottom: 1px solid var(--border); padding: 40px 15px; }
.hero-container { max-width: var(--site-width); margin: 0 auto; }
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }
.breadcrumbs a { color: var(--secondary); text-decoration: none; }
.hero-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.hero-title-area h1 { font-size: 32px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.score-badge-large { background: var(--primary); color: white; padding: 8px 16px; border-radius: 6px; font-size: 15px; }

.review-layout { display: flex; gap: 40px; margin-top: 40px; }
.review-body { flex: 1; }
.review-sidebar { flex: 0 0 300px; }
.review-section { margin-bottom: 40px; }
.review-section h2 { font-size: 22px; color: var(--primary); margin-bottom: 15px; font-weight: 700; }
.review-section p { font-size: 15px; color: var(--text-dark); line-height: 1.7; margin-bottom: 15px; }

.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.pros-box, .cons-box { padding: 20px; border-radius: var(--radius); }
.pros-box { background-color: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background-color: #fef2f2; border: 1px solid #fecaca; }
.pros-box h3 { color: var(--green); font-size: 16px; margin-bottom: 12px; }
.cons-box h3 { color: var(--red); font-size: 16px; margin-bottom: 12px; }
.pros-box ul, .cons-box ul { list-style: none; font-size: 14px; }
.pros-box li, .cons-box li { margin-bottom: 8px; padding-left: 18px; position: relative; }
.pros-box li::before { content: "✓"; color: var(--green); position: absolute; left: 0; }
.cons-box li::before { content: "•"; color: var(--red); position: absolute; left: 0; font-weight: bold; }

.verdict-box { background: var(--bg-light); border-left: 4px solid var(--secondary); padding: 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.verdict-box h3 { font-size: 16px; margin-bottom: 8px; color: var(--primary); }

.sticky-widget {
    position: sticky;
    top: 90px;
    background: #ffffff;
    border: 2px solid var(--secondary);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
}
.widget-title { font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.special-rate { font-size: 32px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.widget-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.4; }
.bullet-list { list-style: none; text-align: left; font-size: 13px; margin-bottom: 20px; }
.bullet-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.bullet-list li::before { content: "✓"; color: var(--green); position: absolute; left: 0; font-weight: bold; }

/* ==========================================================================
   FAQs & Legal Layouts
   ========================================================================== */
.faq-section { margin-top: 60px; border-top: 1px solid var(--border); padding-top: 50px; }
.faq-section h2 { text-align: center; font-size: 26px; color: var(--primary); margin-bottom: 8px; font-weight: 800; }
.faq-subtitle { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 35px; }
.faq-grid { display: flex; flex-direction: column; gap: 14px; max-width: 850px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background-color: var(--bg-light); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 18px 20px; font-size: 16px; font-weight: 700; color: var(--primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 0 20px 18px 20px; font-size: 14px; color: #334155; line-height: 1.6; }

.legal-layout { max-width: 800px; margin: 40px auto; padding: 0 15px; }
.legal-layout h1 { font-size: 32px; color: var(--primary); margin-bottom: 10px; font-weight: 800; }
.legal-layout .meta-date { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.legal-layout h2 { font-size: 20px; color: var(--primary); margin: 30px 0 15px 0; font-weight: 700; }
.legal-layout p { font-size: 15px; color: var(--text-dark); line-height: 1.6; margin-bottom: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 20px 0 40px 0;
    margin-top: 60px;
    width: 100%;
}

.footer-container {
    max-width: var(--site-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-disclosure {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 900px;
    text-align: center;
}

.footer-links { display: flex; gap: 25px; margin-top: 5px; }
.footer-links a { color: #ffffff; text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }
.footer-copyright { font-size: 12px; text-align: center; color: #64748b; }

/* ==========================================================================
   高转化/高合规安全过渡中转遮罩引擎
   ========================================================================== */
.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.redirect-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 24px;
}

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

.redirect-title { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 8px; text-align: center; }
.redirect-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.redirect-subtitle svg { color: var(--green); flex-shrink: 0; }

/* ==========================================================================
   Smart Sticky Floating Bar (PC & Mobile Adaptive)
   ========================================================================== */
.sticky-floating-bar {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 3px solid var(--secondary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 2000;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-floating-bar.show { 
    bottom: 0; 
}

.sf-brand-info { display: flex; align-items: center; gap: 14px; }
.sf-brand-name { font-size: 18px; font-weight: 800; color: var(--primary); }
.sf-brand-meta { display: flex; flex-direction: column; }
.sf-stars { color: #f59e0b; font-size: 12px; line-height: 1.2; }
.sf-score { font-size: 12px; color: var(--text-muted); font-weight: 700; margin-top: 2px; }
.sf-cta-area { display: flex; align-items: center; gap: 16px; }
.sf-trust-badge { font-size: 12px; color: var(--green); font-weight: 600; }

.sf-btn {
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
    transition: background 0.15s ease;
}
.sf-btn:hover { background-color: var(--accent-hover); }

/* ==========================================================================
   Responsive Utilities (Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 12px; padding: 12px 10px; }
    nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding: 4px 0 10px 0; scrollbar-width: none; }
    nav::-webkit-scrollbar { display: none; }
    nav a { margin: 0 14px 0 0; font-size: 14px; }

    .intent-matrix { padding: 16px; margin: 20px 0; }
    .matrix-buttons { grid-template-columns: 1fr; gap: 10px; }
    
    .product-card { flex-direction: column; align-items: stretch; justify-content: flex-start !important; padding: 35px 16px 16px 16px !important; gap: 6px !important; }
    .col-rank { position: absolute; top: 12px; right: 12px; flex: none !important; }
    .col-brand { flex: none !important; width: 100%; padding: 0 !important; margin-bottom: 0 !important; }
    
    .col-score { flex: none !important; width: 100%; border: none !important; padding: 0 !important; margin: 2px 0 6px 0 !important; display: flex; align-items: center; gap: 8px; }
    .score-num { font-size: 26px !important; line-height: 1 !important; }
    .score-label { margin-top: 0 !important; font-size: 11px !important; }
    
    .col-features { flex: none !important; width: 100%; padding: 10px 0 !important; border-top: 1px dashed var(--border) !important; border-bottom: 1px dashed var(--border) !important; margin-bottom: 6px !important; }
    .col-actions { flex: none !important; width: 100%; gap: 8px; }
    
    .review-hero { padding: 20px 15px !important; }
    .review-layout { flex-direction: column; margin-top: 20px !important; gap: 16px !important; }
    .review-section { margin-bottom: 24px !important; }
    .review-body .review-section:last-child { margin-bottom: 0 !important; }
    .review-sidebar { width: 100%; }
    .pros-cons-grid { grid-template-columns: 1fr; }

    .sticky-widget { padding: 16px !important; }
    .sticky-widget h2, .sticky-widget h3, .sticky-widget .special-rate { margin-top: 4px !important; margin-bottom: 8px !important; line-height: 1.2 !important; }
    .sticky-widget p, .sticky-widget .stars, .sticky-widget ul { margin-top: 4px !important; margin-bottom: 8px !important; }

    .faq-section { margin-top: 24px !important; padding-top: 24px !important; }
    footer { margin-top: 24px !important; }

    /* Mobile Adaptations for Floating Bar */
    .sticky-floating-bar { padding: 10px 16px; }
    .sf-brand-name { font-size: 16px; }
    .sf-trust-badge { display: none; }
    .sf-btn { padding: 8px 16px; font-size: 13px; }
    body { padding-bottom: 70px; }
}