/* ================================================================
   SurfLife Pro — 首页样式（HIBP 极简风格优化版）
   全部颜色使用 CSS 变量，字体大小统一为 shared.css 排版比例
   ================================================================ */

/* =============================================
   入场动画关键帧
   ============================================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   Hero 主视觉区
   ============================================= */
.hero {
    padding: 72px 24px 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78vh;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(77,171,247,0.15) 0%, transparent 55%),
        radial-gradient(ellipse 40% 55% at 80% 35%, rgba(34,184,207,0.08) 0%, transparent 50%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 620px; width: 100%;
    text-align: center;
    animation: fadeUp 0.6s ease both;
}

/* Logo */
.hero-logo-wrap {
    margin-bottom: 28px;
    animation: scaleIn 0.5s ease 0.1s both;
}
.hero-logo-svg {
    width: 64px; height: 64px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(77,171,247,0.25));
}

/* 标题 */
.hero-title {
    font-size: var(--text-hero); font-weight: var(--fw-black); line-height: 1.18;
    letter-spacing: -0.025em; margin-bottom: 14px;
    color: var(--text-primary);
    animation: fadeUp 0.5s ease 0.15s both;
}
.hero-sub {
    font-size: var(--text-body-lg); color: var(--text-secondary);
    line-height: 1.65; margin-bottom: 32px;
    animation: fadeUp 0.5s ease 0.22s both;
}

/* =============================================
   搜索框
   ============================================= */
.hero-search {
    max-width: 500px; margin: 0 auto;
    position: relative;
}
.hero-search::before {
    content: '';
    position: absolute; inset: -12px; border-radius: 22px;
    background: radial-gradient(ellipse at center, rgba(77,171,247,0.06) 0%, transparent 70%);
    pointer-events: none; z-index: -1;
}
.hero .hero-search { animation: fadeUp 0.5s ease 0.3s both; }
.search-bar {
    display: flex; align-items: center;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 5px 5px 5px 14px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    box-shadow: 0 0 0 0 rgba(77,171,247,0);
}
.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(77,171,247,0.14), 0 0 20px rgba(77,171,247,0.08);
    transform: translateY(-1px);
}
.search-icon {
    flex-shrink: 0; color: var(--text-muted); margin-right: 10px;
}
.search-input {
    flex: 1; min-width: 0;
    background: none; border: none; outline: none;
    font-size: var(--text-body); color: var(--text-primary);
    padding: 12px 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    flex-shrink: 0;
    padding: 11px 26px;
    background: var(--gradient-accent);
    color: #fff; border: none; border-radius: var(--btn-radius);
    font-size: var(--text-body); font-weight: 600; cursor: pointer;
    font-family: inherit;
    box-shadow: var(--btn-shadow);
    transition: all var(--transition);
}
.search-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: var(--btn-shadow-hover); }
.search-btn:active { transform: translateY(0); }
.search-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.search-hint {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    margin-top: 10px;
    font-size: var(--text-xs); color: var(--text-muted);
}

/* 二级链接 */
.hero-secondary {
    margin-top: 24px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: var(--text-small); color: var(--text-muted);
    animation: fadeUp 0.5s ease 0.38s both;
}
.secondary-link {
    color: var(--accent-light); transition: color 0.2s;
    display: inline-flex; align-items: center; gap: 4px;
}
.secondary-link:hover { color: var(--accent-light); }
.secondary-sep { opacity: 0.3; }

/* =============================================
   密码查询区域（紧凑折叠样式）
   ============================================= */
.password-section {
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.password-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.section-title-sm {
    font-size: var(--text-card-title); font-weight: var(--fw-bold); color: var(--text-primary);
    margin-bottom: 6px;
}
.section-sub-sm {
    font-size: var(--text-caption); color: var(--text-secondary); margin-bottom: 6px; line-height: 1.6;
}

/* 密码输入框的 toggle 按钮 */
.pw-toggle-btn {
    background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text-muted);
    font-family: inherit;
    display: flex; align-items: center; justify-content: center;
    transition: color var(--transition);
}
.pw-toggle-btn:hover { color: var(--text-primary); }

/* =============================================
   数据统计区（与 Hero 自然衔接）
   ============================================= */
.stats-section {
    padding: 56px 24px 64px;
    position: relative;
}
.stats-section::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px;
    background: linear-gradient(90deg, transparent, rgba(77,171,247,0.4), transparent);
    border-radius: 2px;
}
.stats-inner { max-width: 720px; margin: 0 auto; }
.stats-grid {
    display: flex; justify-content: center; gap: 56px;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    animation: fadeUp 0.5s ease both;
}
.stat-item:nth-child(1) { animation-delay: 0.45s; }
.stat-item:nth-child(2) { animation-delay: 0.55s; }

.stat-number {
    font-size: 38px; font-weight: 800; color: var(--text-primary);
    line-height: 1; margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: var(--text-caption); color: var(--text-secondary); font-weight: 500;
}

/* =============================================
   工作原理
   ============================================= */
.how-section {
    padding: 72px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.how-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.section-title {
    font-size: var(--text-section-title); font-weight: var(--fw-bold); color: var(--text-primary);
    margin-bottom: 40px;
}
.steps-grid {
    display: flex; gap: 24px; text-align: left;
    flex-wrap: wrap; justify-content: center;
}
.step-card {
    flex: 1; min-width: 200px; max-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    animation: fadeUp 0.5s ease both;
}
.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }
.step-card:hover {
    border-color: rgba(77,171,247,0.35);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-3px);
}
.step-num {
    width: 34px; height: 34px;
    background: var(--gradient-accent);
    border-radius: 50%; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--text-body); font-weight: 700; margin-bottom: 14px;
}
.step-card h3 { font-size: var(--text-body); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.step-card p { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.7; }

.how-note {
    margin-top: 32px;
    padding: 14px 20px;
    background: var(--accent-bg-light);
    border: 1px solid var(--accent-bg);
    border-radius: 10px;
    font-size: var(--text-small); color: var(--text-secondary); line-height: 1.7;
    text-align: left;
}

/* =============================================
   功能特性
   ============================================= */
.features-section { padding: 72px 24px; }
.features-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.features-grid {
    display: flex; gap: 24px;
    flex-wrap: wrap; justify-content: center;
    margin-top: 36px;
}
.feature-card {
    flex: 1; min-width: 220px; max-width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    text-align: left;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    animation: fadeUp 0.5s ease both;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:hover {
    border-color: rgba(77,171,247,0.35);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-3px);
}
.feature-icon {
    width: 44px; height: 44px;
    background: rgba(77,171,247,0.08);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; color: var(--accent-light);
}
.feature-card h3 { font-size: var(--text-body); font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.feature-card p { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.7; }

/* =============================================
   查询结果样式
   ============================================= */
.result-container {
    max-width: 640px; margin: -16px auto 60px; padding: 0 24px;
    display: none;
}
.result-container.active {
    display: block;
    animation: fadeUp 0.4s ease;
}

.result-header {
    display: flex; align-items: flex-start; gap: 16px;
    padding: 24px; border-radius: 14px; margin-bottom: 20px;
}
.safe-result { background: var(--success-bg); border: 1px solid var(--success-border); }
.breach-result { border-radius: 14px; padding: 24px; margin-bottom: 20px; }
.breach-result.low { background: var(--warning-bg); border: 1px solid var(--warning-border); }
.breach-result.medium { background: var(--warning-bg); border: 1px solid var(--warning-border); }
.breach-result.high { background: var(--danger-bg); border: 1px solid var(--danger-border); }
.breach-result.critical { background: var(--critical-bg); border: 1px solid var(--critical-border); }

.result-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.result-icon.safe { background: var(--success-bg); color: var(--success); }
.result-icon.low { background: var(--warning-bg); color: var(--warning); }
.result-icon.medium { background: var(--warning-bg); color: var(--warning); }
.result-icon.high { background: var(--danger-bg); color: var(--danger); }
.result-icon.critical { background: var(--critical-bg); color: var(--critical); }

.result-summary h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.email-query-text { font-size: var(--text-small); color: var(--text-muted); margin-bottom: 6px; word-break: break-all; }
.result-desc { font-size: var(--text-body-sm); color: var(--text-secondary); line-height: 1.7; }
.risk-badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px;
    font-size: var(--text-xs); font-weight: 600; vertical-align: middle; margin-left: 6px;
}
.risk-badge.safe { background: var(--success-bg); color: var(--success); }
.risk-badge.low { background: var(--warning-bg); color: var(--warning); }
.risk-badge.medium { background: var(--warning-bg); color: var(--warning); }
.risk-badge.high { background: var(--danger-bg); color: var(--danger); }
.risk-badge.critical { background: var(--critical-bg); color: var(--critical); }

/* 泄露来源列表 */
.breach-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: var(--text-body); font-weight: 700; color: var(--text-primary);
    margin-bottom: 16px;
}
.breach-list { display: flex; flex-direction: column; gap: 14px; }
.breach-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px;
    transition: border-color 0.2s;
}
.breach-card:hover { border-color: rgba(77,171,247,0.3); }
.breach-card.breach-severe { border-color: rgba(239,68,68,0.3); }
.breach-card.breach-warning { border-color: rgba(245,158,11,0.3); }

.breach-card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.breach-brand { display: flex; align-items: center; gap: 12px; }
.breach-logo {
    width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
    background: #fff; padding: 3px;
}
.breach-logo-fallback {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--gradient-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; flex-shrink: 0;
}
.breach-brand-info { min-width: 0; }
.breach-name { font-size: var(--text-body); font-weight: 700; color: var(--text-primary); }
.breach-domain { font-size: var(--text-xs); color: var(--text-muted); }

.breach-meta-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.breach-date { font-size: var(--text-small); color: var(--text-secondary); }
.breach-count { font-size: var(--text-small); font-weight: 600; color: var(--accent-light); }

.breach-desc-wrap { margin-top: 12px; }
.breach-desc { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.7; }

.breach-data-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.data-tag {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: var(--text-xs); font-weight: 500;
    background: rgba(77,171,247,0.08); color: var(--accent-light);
    border: 1px solid rgba(77,171,247,0.15);
}
.data-tag.sensitive {
    background: var(--danger-bg); color: var(--danger);
    border-color: var(--danger-border);
}

.breach-expand { margin-top: 12px; }
.breach-toggle-btn {
    background: none; border: 1px solid var(--border);
    border-radius: var(--btn-radius-sm);
    padding: 6px 14px; font-size: var(--btn-font-size-sm);
    color: var(--text-secondary); font-family: inherit;
    cursor: pointer; transition: all var(--transition);
}
.breach-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

.breach-detail { margin-top: 14px; padding: 14px; background: var(--bg-secondary); border-radius: 10px; }
.detail-row { display: flex; gap: 8px; font-size: var(--text-small); padding: 6px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-muted); min-width: 80px; }
.detail-value { color: var(--text-primary); }

/* 建议行动框 */
.action-box {
    background: var(--accent-bg-light);
    border: 1px solid var(--accent-bg);
    border-radius: 14px; padding: 20px 24px;
    margin-top: 20px;
}
.action-box-title {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--text-body-sm); font-weight: 700; color: var(--text-primary);
    margin-bottom: 10px;
}
.action-list { padding-left: 18px; margin: 0; }
.action-list li {
    font-size: var(--text-caption); color: var(--text-secondary); line-height: 1.8;
}
.action-list li strong { color: var(--text-primary); }

/* 演示模式提示 */
.demo-note {
    display: flex; align-items: center; gap: 6px;
    margin-top: 16px; padding: 10px 14px;
    background: var(--warning-bg); border: 1px solid var(--warning-border);
    border-radius: 10px; font-size: var(--text-small); color: var(--text-muted);
}

/* 密码结果卡片 */
.password-result-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 24px;
    margin-bottom: 20px;
}
.pw-result-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.pw-result-icon { flex-shrink: 0; }
.pw-result-title h3 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }

.pw-count-display {
    text-align: center; padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.pw-count-num { font-size: 36px; font-weight: 800; }
.pw-count-num.safe-text { color: var(--success); }
.pw-count-num.critical-text { color: var(--critical); }
.pw-count-num.high-text { color: var(--danger); }
.pw-count-num.medium-text { color: var(--warning); }
.pw-count-num.low-text { color: var(--warning); }
.pw-count-label { display: block; font-size: var(--text-small); color: var(--text-secondary); margin-top: 4px; }

.pw-suggestion { font-size: var(--text-body-sm); color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

/* k-Anonymity 说明 */
.kanon-explainer {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
}
.kanon-title {
    display: flex; align-items: center; gap: 6px;
    font-size: var(--text-small); font-weight: 700; color: var(--text-primary);
    margin-bottom: 14px;
}
.kanon-steps { display: flex; flex-direction: column; gap: 12px; }
.kanon-step { display: flex; gap: 12px; align-items: flex-start; }
.kanon-step-num {
    width: 24px; height: 24px; flex-shrink: 0;
    background: var(--gradient-accent); border-radius: 50%;
    color: #fff; font-size: var(--text-xs); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.kanon-step-desc { font-size: var(--text-small); color: var(--text-secondary); line-height: 1.6; }
.kanon-code {
    display: inline-block; padding: 2px 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 6px; font-size: var(--text-xs); font-family: monospace;
    color: var(--text-primary); margin-top: 4px;
}
.hash-prefix { color: var(--accent); font-weight: 600; }
.hash-suffix { color: var(--text-muted); }

/* =============================================
   加载动画 & 错误提示
   ============================================= */
.loading {
    display: none; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; padding: 40px 24px;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 28, 51, 0.92); z-index: 9998;
}
.loading.active { display: flex; }
.loading p { color: var(--text-secondary); font-size: var(--text-body); }

.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}
.btn-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 12px 24px; border-radius: 10px;
    background: var(--danger-bg); color: var(--danger);
    border: 1px solid var(--danger-border);
    font-size: var(--text-body-sm); font-weight: 500; z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 90vw; text-align: center;
    opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.error-toast.active { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =============================================
   登录弹窗 & 付费墙弹窗
   ============================================= */
.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-box {
    background: var(--bg-card); border-radius: 16px; padding: 40px 36px 32px;
    max-width: 420px; width: 92%; max-height: 90vh; overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: slideUp 0.3s ease; margin: 0 16px;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none; font-size: 26px; cursor: pointer;
    color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

/* 登录弹窗 */
.auth-modal-header { text-align: center; margin-bottom: 24px; }
.auth-modal-header svg { display: block; margin: 0 auto 12px; }
.auth-modal-header h3 { font-size: var(--text-card-title); color: var(--text-primary); margin-bottom: 6px; }
.auth-modal-header p { font-size: var(--text-body-sm); color: var(--text-secondary); }
.auth-modal-body .form-field { margin-bottom: 16px; }
.auth-modal-body label { display: block; font-size: var(--text-small); font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.auth-modal-body input {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: var(--text-body); outline: none;
    background: var(--bg-input); color: var(--text-primary);
    box-sizing: border-box; transition: border-color 0.2s;
}
.auth-modal-body input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,171,247,0.12); }
.auth-modal-btn {
    width: 100%; padding: 12px;
    background: var(--gradient-accent);
    color: #fff; border: none; border-radius: var(--btn-radius);
    font-size: var(--text-body); font-weight: 600; cursor: pointer;
    font-family: inherit;
    box-shadow: var(--btn-shadow);
    transition: all var(--transition);
}
.auth-modal-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: var(--btn-shadow-hover); }
.auth-modal-btn:active { transform: translateY(0); }
.auth-modal-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.login-error {
    display: none; font-size: var(--text-small); padding: 8px 12px; border-radius: 8px;
    margin-bottom: 14px; text-align: center;
}
.login-error.show { display: block; }
.login-error:not(.show) { display: none; }
.login-error[style*="var(--success)"],
.login-error.show[style*="color: var(--success)"] {
    background: var(--success-bg); color: var(--success) !important; border: 1px solid var(--success-border);
}
.login-error:not([style*="var(--success)"]).show {
    background: var(--danger-bg); color: var(--danger) !important; border: 1px solid var(--danger-border);
}

/* 付费墙弹窗 */
.paywall-modal { max-width: 480px; text-align: center; }
.paywall-header { margin-bottom: 24px; }
.paywall-header svg { display: block; margin: 0 auto 12px; }
.paywall-header h3 { font-size: 22px; color: var(--text-primary); margin-bottom: 6px; }
.paywall-header p { font-size: var(--text-body-sm); color: var(--text-secondary); line-height: 1.6; }
.paywall-plans { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; justify-content: center; }
.paywall-plan {
    flex: 1; min-width: 140px; border: 2px solid var(--border); border-radius: 14px;
    padding: 20px 14px; text-align: center; position: relative; transition: border-color 0.2s;
}
.paywall-plan.hot { border-color: var(--accent); background: var(--accent-bg-light); }
.paywall-plan-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--gradient-accent); color: #fff;
    font-size: var(--text-micro); font-weight: 700; padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.paywall-plan-header { margin-bottom: 12px; }
.paywall-plan-name { display: block; font-size: var(--text-body-sm); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.paywall-plan-price { font-size: 26px; font-weight: 800; color: var(--accent); }
.paywall-plan-unit { font-size: var(--text-small); font-weight: 500; }
.paywall-plan-features { list-style: none; padding: 0; margin: 0; font-size: var(--text-small); color: var(--text-secondary); line-height: 2; }
.paywall-cta-btn {
    display: block; width: 100%; padding: 13px;
    background: var(--gradient-accent);
    color: #fff; border: none; border-radius: var(--btn-radius);
    font-size: var(--text-body); font-weight: 700; cursor: pointer;
    font-family: inherit;
    text-decoration: none; box-sizing: border-box;
    box-shadow: var(--btn-shadow);
    transition: all var(--transition);
}
.paywall-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.paywall-cta-hot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.paywall-cta-btn:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: var(--btn-shadow-hover); color: #fff; }
.paywall-cta-btn:active { transform: translateY(0); }
.paywall-view-all {
    display: block; text-align: center; color: var(--text-muted); font-size: var(--text-small);
    text-decoration: none; margin-bottom: 8px;
}
.paywall-view-all:hover { color: var(--accent); }
.paywall-logout-link {
    display: block; margin-top: 12px; background: none; border: none;
    color: var(--text-muted); font-size: var(--text-small); cursor: pointer;
}
.paywall-logout-link:hover { color: var(--text-primary); }

/* =============================================
   响应式
   ============================================= */

/* —— 平板/小屏 —— */
@media (max-width: 768px) {
    /* Hero 缩小 */
    .hero {
        padding: 48px 16px 36px;
        min-height: auto;
    }
    .hero-inner { max-width: 100%; }

    .hero-logo-svg {
        width: 48px; height: 48px;
    }
    .hero-logo-wrap { margin-bottom: 20px; }

    .hero-title {
        font-size: 22px;
        letter-spacing: -0.01em;
        line-height: 1.25;
    }
    .hero-sub {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 24px;
    }
    .hero-sub br { display: none; }

    /* 搜索框：保持横行，缩小内边距 */
    .hero-search { max-width: 100%; }
    .hero-search::before {
        inset: -6px;
        border-radius: 18px;
    }
    .search-bar {
        padding: 4px 4px 4px 10px;
        border-radius: 12px;
    }
    .search-icon {
        width: 18px; height: 18px;
        margin-right: 6px;
        flex-shrink: 0;
    }
    .search-input {
        font-size: 14px;
        padding: 10px 0;
    }
    .search-btn {
        padding: 9px 18px;
        font-size: 14px;
    }
    .search-hint {
        font-size: 11px;
        flex-wrap: wrap;
        text-align: center;
    }

    .hero-secondary {
        flex-direction: column;
        gap: 8px;
        margin-top: 18px;
        font-size: 12px;
    }
    .secondary-sep { display: none; }

    /* 密码区域 */
    .password-section { padding: 36px 16px; }
    .password-inner { max-width: 100%; }
    .section-title-sm { font-size: 18px; }
    .section-sub-sm { font-size: 12px; }

    /* 统计 */
    .stats-section { padding: 36px 16px 44px; }
    .stats-grid { gap: 28px; }
    .stat-number { font-size: 30px; }
    .stat-label { font-size: 12px; }

    /* 工作原理 */
    .how-section { padding: 44px 16px; }
    .how-inner { max-width: 100%; }
    .section-title { font-size: 20px; margin-bottom: 28px; }
    .steps-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .step-card {
        max-width: 100%;
        min-width: auto;
        padding: 20px;
    }
    .step-num {
        width: 30px; height: 30px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    .step-card h3 { font-size: 15px; }
    .step-card p { font-size: 12px; }
    .how-note {
        padding: 12px 14px;
        font-size: 12px;
    }

    /* 特性 */
    .features-section { padding: 44px 16px; }
    .features-inner { max-width: 100%; }
    .features-grid {
        flex-direction: column;
        gap: 14px;
        margin-top: 24px;
    }
    .feature-card {
        max-width: 100%;
        min-width: auto;
        padding: 20px;
    }
    .feature-icon {
        width: 38px; height: 38px;
        margin-bottom: 12px;
    }
    .feature-card h3 { font-size: 15px; }
    .feature-card p { font-size: 12px; }

    /* 结果区域 */
    .result-container {
        max-width: 100%;
        padding: 0 16px;
        margin-bottom: 40px;
    }
    .breach-card-header { flex-direction: column; align-items: flex-start; }
    .breach-meta-right { margin-top: 4px; }

    /* 弹窗 */
    .modal-box {
        padding: 28px 20px 24px;
        margin: 0 12px;
    }
    .paywall-plans { flex-direction: column; }
    .paywall-plan { min-width: auto; }

    /* 加载动画 */
    .loading { padding: 30px 16px; }
}

/* —— 小手机 (≤480px) —— */
@media (max-width: 480px) {
    .hero { padding: 36px 14px 28px; }
    .hero-title { font-size: 20px; }
    .hero-sub { font-size: 12px; margin-bottom: 20px; }

    .search-bar {
        padding: 3px 3px 3px 8px;
        border-radius: 10px;
    }
    .search-icon { width: 16px; height: 16px; margin-right: 4px; }
    .search-input { font-size: 13px; padding: 9px 0; }
    .search-btn { padding: 8px 14px; font-size: 13px; border-radius: 8px; }

    .stats-grid { gap: 22px; }
    .stat-number { font-size: 26px; }

    .section-title { font-size: 18px; }

    .step-card { padding: 16px; }
    .feature-card { padding: 16px; }

    /* 弹窗全屏感 */
    .modal-box {
        width: 95%;
        padding: 24px 16px 20px;
    }
    .auth-modal-header h3 { font-size: 17px; }
    .auth-modal-header p { font-size: 12px; }
    .paywall-header h3 { font-size: 18px; }
    .paywall-plan-price { font-size: 22px; }

    .error-toast {
        bottom: 12px;
        padding: 10px 18px;
        font-size: 12px;
    }
}
/* ============================================================
   支付宝支付弹窗
   ============================================================ */
.checkout-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.checkout-overlay.show {
  display: flex;
}
.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.checkout-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.checkout-close:hover {
  color: var(--text-primary);
}
.checkout-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #1677FF, #1677FFdd);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.checkout-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}
.checkout-product {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.checkout-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent, #4dabf7);
  margin-bottom: 24px;
}
.checkout-price .yen {
  font-size: 22px;
  font-weight: 600;
}
.checkout-form label {
  display: block;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.checkout-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.checkout-form input:focus {
  border-color: #1677FF;
  box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
}
.checkout-error {
  color: #ef4444;
  font-size: 12px;
  text-align: left;
  margin-top: 6px;
  min-height: 18px;
  display: none;
}
.checkout-error.show {
  display: block;
}
.checkout-alipay-btn {
  width: 100%;
  margin-top: 20px;
  padding: var(--btn-padding-lg);
  background: linear-gradient(135deg, #1677FF, #0e5ed9);
  color: #fff;
  border: none;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size-lg);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.3);
  transition: all var(--transition);
}
.checkout-alipay-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 119, 255, 0.4);
}
.checkout-alipay-btn:active { transform: translateY(0); }
.checkout-alipay-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.checkout-alipay-btn .spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.checkout-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
