/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e8edf2 0%, #d8e3ec 50%, #c8d5e0 100%);
    min-height: 100vh;
    color: #1a1a1a;
    background-attachment: fixed;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* ===== 页面切换动画 ===== */
[class^="landing"], [class^="card"], [class^="quiz-page"], [class^="results-page"] {
    animation: fadeUp 0.4s ease;
}

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

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 12px 36px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.btn-phishing {
    background: #dc2626;
    color: white;
    padding: 14px 40px;
    font-size: 18px;
}

.btn-phishing:hover {
    background: #b91c1c;
}

.btn-legit {
    background: #16a34a;
    color: white;
    padding: 14px 40px;
    font-size: 18px;
}

.btn-legit:hover {
    background: #15803d;
}

/* ===== 首页 ===== */
.landing {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 60px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.landing .shield {
    font-size: 64px;
    margin-bottom: 16px;
}

.landing h1 {
    font-size: 40px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing .subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
}

.landing .intro {
    max-width: 580px;
    margin: 0 auto 30px;
    text-align: left;
    line-height: 1.8;
    color: #4b5563;
    font-size: 15px;
}

.landing .intro p {
    margin-bottom: 8px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.badge {
    background: #eef2ff;
    color: #4338ca;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.landing .note {
    margin-top: 20px;
    font-size: 12px;
    color: #9ca3af;
}

/* ===== 信息填写 ===== */
.card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.info-card {
    max-width: 560px;
    margin: 40px auto 0;
}

.info-card h2 {
    text-align: center;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 28px;
}

.info-card .desc {
    text-align: center;
    color: #6b7280;
    margin-bottom: 28px;
    font-size: 14px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 15px;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.field input:focus {
    outline: none;
    border-color: #2563eb;
}

.info-card .btn {
    width: 100%;
    margin-top: 8px;
}

/* ===== 答题页 ===== */
.quiz-page {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.quiz-header .count {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.quiz-header .score {
    color: #6b7280;
    font-size: 14px;
}
.quiz-subheader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -6px 0 16px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}
.timer-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eef2ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 14px;
    font-weight: 600;
}
.score-hint {
    color: #059669;
    font-weight: 600;
}


.quiz-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.4;
}

.quiz-desc {
    color: #6b7280;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== 邮件卡片 ===== */
.email-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.email-result-banner {
    padding: 12px 20px;
    font-weight: 700;
    text-align: center;
    font-size: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.correct-banner {
    background: #dcfce7;
    color: #166534;
}

.wrong-banner {
    background: #fee2e2;
    color: #991b1b;
}

.email-topbar {
    background: #f9fafb;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.email-topbar .hint {
    font-size: 11px;
}

.email-subject {
    background: #eff6ff;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    color: #1e3a5f;
}

.email-meta {
    padding: 10px 18px;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    background: #fff;
}

.email-meta .label {
    color: #9ca3af;
    margin-right: 6px;
    display: inline-block;
    min-width: 50px;
}

.email-meta .sender {
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.3s;
}

.email-meta .sender.bad {
    background: #fee2e2;
    color: #dc2626;
}

.email-meta .sender.good {
    background: #dcfce7;
    color: #15803d;
}

.email-body {
    padding: 18px;
    line-height: 1.8;
    font-size: 15px;
    color: #1f2937;
    background: white;
}

.email-body p {
    margin-bottom: 10px;
}

.signature {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 13px;
    color: #6b7280;
}

.links-section,
.attachments-section,
.qr-section {
    padding: 12px 18px;
    border-top: 1px solid #f3f4f6;
    background: #fafafa;
}

.section-title {
    font-weight: 600;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 8px;
}

.link-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    flex-wrap: wrap;
}

.link-name {
    color: #4b5563;
    white-space: nowrap;
}

.link-url {
    color: #1d4ed8;
    text-decoration: underline;
    word-break: break-all;
    padding: 1px 4px;
    border-radius: 3px;
    transition: all 0.3s;
}

.link-url.bad {
    color: #dc2626;
    background: #fee2e2;
    text-decoration: underline wavy;
}

.link-url.good {
    color: #15803d;
    background: #dcfce7;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 13px;
}

.mini-tag {
    font-size: 11px;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 10px;
}

.mini-tag.bad {
    background: #fee2e2;
    color: #b91c1c;
}

.mini-tag.good {
    background: #dcfce7;
    color: #15803d;
}

.qr-placeholder {
    display: inline-block;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    color: #6b7280;
}

.qr-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 4px;
}

/* ===== 操作按钮 ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

/* ===== 反馈区域 ===== */
.feedback {
    border-radius: 12px;
    padding: 18px;
    margin-top: 16px;
    animation: fadeUp 0.3s ease;
}

.feedback-good {
    background: #f0fdf4;
    border: 2px solid #86efac;
}

.feedback-bad {
    background: #fef2f2;
    border: 2px solid #fca5a5;
}

.fb-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feedback-good .fb-title { color: #15803d; }
.feedback-bad .fb-title { color: #b91c1c; }

.fb-compare {
    font-size: 14px;
    margin-bottom: 8px;
}

.fb-desc {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.fb-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 4px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

.fb-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

/* ===== 结果页 ===== */
.results-page {
    padding: 0;
}

.summary {
    text-align: center;
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.summary h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #1f2937;
}

.summary-org {
    display: inline-block;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 16px;
    background: #eef2ff;
    border-radius: 16px;
    margin-bottom: 10px;
}

.score-line {
    margin-bottom: 12px;
}

.big-score {
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.total {
    color: #9ca3af;
    font-size: 24px;
}

.result-tag {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.result-tag.great {
    background: #f0fdf4;
    color: #166534;
    border: 2px solid #86efac;
}

.result-tag.warning {
    background: #fffbeb;
    color: #92400e;
    border: 2px solid #fde68a;
}

.result-tag.danger {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

.summary-text {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}
.result-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #374151;
    flex-wrap: wrap;
}
.result-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.result-stats .stat-sep {
    color: #d1d5db;
}
.info-card .config-line {
    color: #059669;
    font-weight: 600;
    margin-top: 2px;
}


.share-area {
    text-align: center;
    margin-bottom: 24px;
}

.share-canvas {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: inline-block;
}

.share-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.review {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.review h3 {
    margin-bottom: 16px;
    color: #1f2937;
}

.review-item {
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

.review-item:last-child {
    border-bottom: none;
}

.review-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.review-row .idx {
    color: #9ca3af;
    font-size: 13px;
    min-width: 28px;
}

.review-row .status {
    font-weight: 600;
    font-size: 15px;
}

.review-row .status.correct { color: #16a34a; }
.review-row .status.wrong { color: #dc2626; }

.review-row .subject {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    flex: 1;
}

.mini-info {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 4px 36px;
}

.explanation {
    font-size: 13px;
    color: #6b7280;
    margin: 6px 0 0 36px;
    line-height: 1.5;
    background: #f9fafb;
    padding: 8px 12px;
    border-radius: 6px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .landing {
        padding: 36px 18px;
    }
    .landing h1 {
        font-size: 28px;
    }
    .badges {
        flex-direction: column;
        gap: 6px;
    }
    .quiz-page {
        padding: 14px;
    }
    .email-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn-phishing, .btn-legit {
        width: 100%;
        max-width: 300px;
    }
    .share-actions {
        flex-direction: column;
        align-items: center;
    }
    .share-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    .card {
        padding: 24px;
    }
}

/* ===== 语言切换 ===== */
.lang-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #eef2ff;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lang-switcher:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lang-switcher span {
    color: #9ca3af;
    transition: color 0.3s;
}

.lang-switcher span.active {
    color: #4338ca;
}

.lang-sep {
    color: #d1d5db !important;
}

/* 语言栏下内容需要留出顶部空间 */
#app > .container {
    padding-top: 60px;
}

@media (max-width: 768px) {
    #app > .container {
        padding-top: 56px;
    }
}


/* ==========================================
   ===== 移动端 & 微信内浏览器优化 =====
   ========================================== */

/* 防止微信调整字体大小导致布局错乱 */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 禁止长按弹出菜单（避免误触） */
.btn, button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* WeChat 内置浏览器视口处理 */
body {
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* 修复 iOS/微信 fixed 元素问题 */
#app {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 让所有卡片不超过屏幕宽度 */
.container, .landing, .card, .quiz-page, .summary, .review,
.email-card, .feedback, .share-area {
    max-width: 100%;
}

/* ===== 微信/手机专用：小屏幕（≤480px）===== */
@media (max-width: 480px) {

    /* 容器：充分利用宽度但留安全边距 */
    .container {
        padding: 8px;
        padding-top: 54px; /* 给固定顶部栏留空间 */
    }

    /* 卡片圆角与边距 */
    .landing {
        padding: 28px 16px;
        margin-top: 8px;
        border-radius: 12px;
    }
    .card {
        padding: 20px 16px;
        border-radius: 12px;
    }
    .quiz-page {
        padding: 14px 10px;
        border-radius: 12px;
    }
    .summary {
        padding: 28px 16px;
        border-radius: 12px;
    }
    .review {
        padding: 18px 14px;
        border-radius: 12px;
    }

    /* 更紧凑的标题 */
    .landing h1 {
        font-size: 24px;
        line-height: 1.35;
    }
    .landing .subtitle {
        font-size: 15px;
        margin-bottom: 18px;
        line-height: 1.6;
    }
    .landing .intro {
        font-size: 13px;
        line-height: 1.75;
        margin-bottom: 18px;
    }
    .landing .shield {
        font-size: 48px;
        margin-bottom: 10px;
    }

    /* 徽章更紧凑 */
    .badges {
        gap: 6px;
        margin-bottom: 22px;
    }
    .badge {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* 按钮触控友好 */
    .btn {
        padding: 12px 28px;
        font-size: 15px;
        min-height: 44px; /* 苹果推荐最小触控高度 */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-phishing, .btn-legit {
        font-size: 16px;
        padding: 13px 32px;
        width: 100%;
        max-width: 280px;
    }
    .btn-primary {
        width: 100%;
        max-width: 280px;
    }

    /* 答题页标题与描述 */
    .quiz-title {
        font-size: 16px;
        line-height: 1.45;
    }
    .quiz-desc {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 14px;
    }

    /* 进度条 */
    .progress-bar {
        height: 5px;
        margin-bottom: 12px;
    }

    /* 邮件卡片内边距 */
    .email-subject {
        padding: 12px 14px;
        font-size: 15px;
        line-height: 1.4;
        word-break: break-word;
    }
    .email-meta {
        padding: 8px 14px;
        font-size: 12px;
        line-height: 1.6;
    }
    .email-meta .label {
        min-width: 40px;
        font-size: 11px;
    }
    .email-body {
        padding: 14px;
        font-size: 14px;
        line-height: 1.8;
        word-break: break-word;
    }
    .signature {
        font-size: 12px;
    }
    .email-topbar {
        font-size: 11px;
        padding: 6px 14px;
    }
    .email-topbar .hint {
        font-size: 10px;
    }

    /* 链接与附件 */
    .links-section, .attachments-section, .qr-section {
        padding: 10px 14px;
    }
    .section-title {
        font-size: 12px;
    }
    .link-row {
        font-size: 12px;
    }
    .link-name {
        white-space: normal;
        margin-bottom: 2px;
    }
    .link-url {
        font-size: 12px;
    }
    .attachment-item {
        font-size: 12px;
        padding: 5px 8px;
    }

    /* 反馈区 */
    .feedback {
        padding: 14px;
        margin-top: 12px;
    }
    .fb-title {
        font-size: 16px;
    }
    .fb-desc {
        font-size: 13px;
    }
    .fb-note {
        font-size: 12px;
    }
    .fb-compare {
        font-size: 12px;
    }

    /* 结果页 */
    .summary h1 {
        font-size: 26px;
        line-height: 1.4;
    }
    .big-score {
        font-size: 52px;
    }
    .result-tag {
        font-size: 14px;
        padding: 6px 16px;
    }
    .summary-text {
        font-size: 13px;
    }

    /* Canvas 分享图片 */
    .share-canvas {
        border-radius: 8px;
        width: 100%;
        height: auto;
    }
    .share-actions {
        gap: 10px;
    }
    .share-actions .btn {
        width: 100%;
        max-width: 280px;
    }

    /* 逐题解析 */
    .review-row .subject {
        font-size: 13px;
        line-height: 1.4;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .mini-info {
        margin-left: 24px;
        font-size: 11px;
        line-height: 1.5;
    }
    .explanation {
        margin-left: 24px;
        font-size: 12px;
        padding: 6px 10px;
        line-height: 1.6;
    }

    /* 语言切换栏 */
    .lang-bar {
        padding: 8px 12px;
    }
    .lang-switcher {
        padding: 5px 12px;
        font-size: 13px;
    }
}

/* ===== 更小屏幕（≤360px，iPhone SE 等）===== */
@media (max-width: 360px) {
    .landing {
        padding: 20px 12px;
    }
    .landing h1 {
        font-size: 21px;
    }
    .quiz-page {
        padding: 10px 8px;
    }
    .email-body {
        padding: 10px;
        font-size: 13px;
    }
    .email-meta {
        padding: 6px 10px;
        font-size: 11px;
        line-height: 1.7;
    }
    .email-meta .label {
        min-width: 36px;
    }
    .email-subject {
        padding: 10px 12px;
        font-size: 14px;
    }
    .btn {
        font-size: 14px;
        min-height: 40px;
    }
    .btn-phishing, .btn-legit {
        font-size: 15px;
        max-width: 260px;
    }
    .card {
        padding: 16px 12px;
    }
    .review {
        padding: 14px 10px;
    }
    .summary {
        padding: 20px 12px;
    }
}

/* ===== 针对微信浏览器 ===== */
/* 检测微信 UA 时可通过类名 wechat 添加额外样式 */
.wechat-body {
    padding-top: 0 !important; /* 微信已有顶部栏，不需要额外空间 */
}

/* 长内容防止撑破屏幕 */
p, div, span {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 防止链接文字超长溢出 */
.link-url {
    max-width: 100%;
    display: inline-block;
}

/* 修复输入框在 iOS Safari 的样式 */
.field input {
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px; /* iOS Safari 防止缩放 */
}

/* 修复 WeChat 中的 backdrop-filter 兼容性 */
.lang-bar {
    background: rgba(255, 255, 255, 0.95); /* 更高不透明度，降级友好 */
}
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .lang-bar {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* 在微信中底部按钮不被工具栏遮挡 */
@media (max-width: 768px) {
    .fb-actions .btn {
        margin-bottom: 8px;
    }
}

/* ===== Admin 图形化配置页 ===== */
.admin-card {
    max-width: 560px;
    margin: 0 auto;
}
.admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.admin-head h2 { margin: 0; font-size: 20px; }
.btn-small {
    font-size: 13px;
    padding: 6px 12px;
    background: #eef2f7;
    color: #3a4a5c;
    border: 1px solid #d4dce5;
}
.btn-small:hover { background: #e2e8f0; }
.admin-field {
    margin: 18px 0;
}
.admin-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    color: #2b3a4a;
}
.admin-hint {
    font-size: 12px;
    color: #8a97a5;
    margin-top: 8px;
}
.admin-hint.copy-tip { color: #2e9e5b; font-weight: 600; }
.num-control {
    display: flex;
    align-items: center;
    gap: 16px;
}
.num-slider {
    flex: 1;
    accent-color: #2f6fed;
    height: 6px;
    cursor: pointer;
}
.num-value {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.num-input {
    width: 64px;
    text-align: center;
    padding: 8px 6px;
    border: 1px solid #d4dce5;
    border-radius: 8px;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.num-unit { font-size: 14px; color: #5a6a7a; }
.org-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d4dce5;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color .2s;
}
.org-input:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 2px rgba(47,111,237,.15);
}
.url-preview {
    background: #f4f7fb;
    border: 1px dashed #b8c4d0;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    color: #2f6fed;
    word-break: break-all;
    cursor: pointer;
    user-select: all;
}
.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.admin-actions .btn { flex: 1; min-width: 140px; }

/* ===== 首页当前链接配置提示条 ===== */
.config-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    background: #eef4ff;
    border: 1px solid #cddcff;
    color: #2b5fd9;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    margin-top: 14px;
    max-width: 100%;
}
.config-label { font-weight: 600; }
.config-edit {
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}
.config-edit:hover { color: #1c46a8; }
