/* ============================================
 * 百昔心理 - 情商深度测评 (EQ) 样式
 * 暗色主题 + 粉色渐变
 * ============================================ */

/* === Design Tokens (主色调动态变量) === */
:root {
    --color-primary: #f472b6;
    --color-primary-dark: #ec4899;
    --color-primary-light: #f9a8d4;
    --color-bg: #0a0a14;
    --nav-bg: linear-gradient(to bottom, rgba(10, 10, 20, 0.75) 0%, rgba(10, 10, 20, 0.5) 100%);
    --btn-primary-bg: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    --btn-primary-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background-color: #0a0a14;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* === Particles Canvas === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Top Navigation === */
.top-nav {
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    z-index: 1000;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 12px 16px;
                    background: transparent;
                    -webkit-backdrop-filter: blur(10px);
                    backdrop-filter: blur(10px);
            }

.nav-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(244, 114, 182, 0.4);
    color: #fff;
}

.nav-btn.primary {
    background: var(--btn-primary-bg);
    border: none;
    color: white;
    box-shadow: var(--btn-primary-shadow);
}

.nav-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.4);
}

/* === Container === */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 70px 20px 40px;
}

/* === Page System === */
.page {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page.active {
    display: block;
}

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

/* === Loading === */
.loading-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #0a0a14;
    position: fixed;
    inset: 0;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(244, 114, 182, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
 * Page 1: Password / Home
 * ============================================ */
.home-wrap {
    padding: 20px 0;
}

.brand-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 24px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 auto 28px;
    width: fit-content;
}

.hero-title {
    font-family: Georgia, "Times New Roman", "PingFang SC", serif;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 50%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 15px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.7;
}

.description {
    font-size: 14.5px;
    color: #b0b5c0;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 20px;
    color: var(--color-primary-light);
    font-size: 13px;
    font-weight: 500;
}

/* Password Box */
.pw-box {
    max-width: 340px;
    margin: 0 auto 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.06) 0%, rgba(236, 72, 153, 0.02) 100%);
    border: 1px solid rgba(244, 114, 182, 0.15);
    border-radius: 18px;
	box-shadow: 0 0 60px rgba(202, 86, 255, 0.25);
}

.pw-label {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    font-weight: 500;
}

.pw-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.25s ease;
    font-family: inherit;
}

.pw-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.pw-input.error {
    border-color: #ef4444;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* 密码提示文字样式 */
.password-hint {
    margin: 8px 0 0 0;
    padding: 0;
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}
.password-hint i {
    font-size: 14px;
    color: #f472b6;
}
.password-link {
    color: #f472b6;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}
.password-link:hover {
    color: #ec4899;
}
/* Primary Button */
.btn-primary {
    width: 100%;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.35);
    margin-top: 12px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(244, 114, 182, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Feature Cards Grid (fc-grid) */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.fc-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    transition: all 0.25s ease;
}

.fc-card:hover {
    border-color: rgba(244, 114, 182, 0.25);
    background: rgba(244, 114, 182, 0.05);
    transform: translateY(-3px);
}

.fc-icon {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.fc-title {
    font-size: 14px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 6px;
}

.fc-desc {
    font-size: 12.5px;
    color: #9ca3af;
    line-height: 1.5;
}

/* ============================================
 * Page 2: Intro
 * ============================================ */
.intro-header {
    text-align: center;
    padding: 30px 16px 20px;
}

.intro-title {
    font-family: Georgia, "Times New Roman", "PingFang SC", serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.intro-desc {
    font-size: 14.5px;
    color: #9ca3af;
    max-width: 560px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.intro-wrap {
    padding: 0 8px;
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--color-primary);
}

.intro-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 14px;
}

.intro-card h3 {
    font-size: 15.5px;
    color: var(--color-primary-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.intro-card p {
    font-size: 14px;
    color: #b0b5c0;
    line-height: 1.75;
}

.intro-card ul {
    list-style: none;
    padding: 0;
}

.intro-card ul li {
    font-size: 14px;
    color: #b0b5c0;
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.intro-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.intro-card strong {
    color: #e5e7eb;
}

/* ============================================
 * Page 3: Quiz
 * ============================================ */
.qt {
    font-family: Georgia, "Times New Roman", "PingFang SC", serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: #f3f4f6;
}

.qt-sub {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 16px;
}

/* Progress Bar */
.prog-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark), var(--color-primary-light));
    border-radius: 3px;
    transition: width 0.35s ease;
    box-shadow: 0 0 10px rgba(244, 114, 182, 0.3);
}

/* Question Card */
.q-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 16px;
}

.q-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.q-text {
    font-size: 16px;
    color: #f3f4f6;
    line-height: 1.65;
    margin-bottom: 18px;
    font-weight: 500;
}

/* Options - THE KEY FIX: style .opt class used by JS */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.opt {
    display: flex;
    align-items: center;
    padding: 15px 18px 15px 16px;
    background: rgba(30, 38, 50, 0.65);
    border: 1.5px solid rgba(65, 75, 90, 0.45);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14.5px;
    color: #c9d1d9;
    line-height: 1.6;
    user-select: none;
    position: relative;
}

/* 勾选图标容器 */
.opt-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 12px;
    color: rgba(140, 152, 170, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 勾选路径 - 默认隐藏 */
.opt-check .check-path {
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* 选项文字 */
.opt-text {
    flex: 1;
}

.opt:hover {
    border-color: rgba(244, 114, 182, 0.40);
    background: rgba(244, 114, 182, 0.08);
    color: #e8eaed;
}

.opt:hover .opt-check {
    color: rgba(244, 114, 182, 0.65);
}

.opt.selected {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.18) 0%, rgba(236, 72, 153, 0.10) 100%);
    color: #fff;
    box-shadow: 0 2px 16px rgba(244, 114, 182, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}

.opt.selected .opt-check {
    color: var(--color-primary);
}

.opt.selected .opt-check svg circle {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}

.opt.selected .opt-check .check-path {
    opacity: 1;
    stroke: #fff;
}

/* Last question tip — fullscreen overlay */
.last-q-tip {
    display: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.92) 0%, rgba(236, 72, 153, 0.92) 100%);
    border-radius: 16px;
    padding: 18px 24px;
    margin: 12px 0;
    width: 100%;
    box-shadow: 0 4px 24px rgba(244, 114, 182, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
    letter-spacing: 0.2px;
    line-height: 1.7;
    animation: lastQSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

.last-q-tip .tip-emoji {
    font-size: 20px;
    margin-right: 4px;
}

@keyframes lastQSlideIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nav Buttons (quiz prev/next) — 心理量表场景优化 */
.nav-btns {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 0 2px;
}

.nav-progress {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 52px;
    text-align: center;
}

.btn-nav {
    flex: 1;
    padding: 13px 20px;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-nav i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

/* 上一题 — 低调柔和，鼓励回顾 */
.btn-prev {
    background: rgba(55, 65, 81, 0.5);
    color: #9ca3af;
}
.btn-prev:hover {
    background: rgba(75, 85, 99, 0.7);
    color: #d1d5db;
    transform: translateY(-1px);
}
.btn-prev:active { transform: translateY(0); }

/* 下一题 — 主行动，粉色系 */
.btn-next {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.18) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(244, 114, 182, 0.1);
}
.btn-next:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(244, 114, 182, 0.3);
    transform: translateY(-1px);
}
.btn-next:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-next:hover i {
    transform: translateX(2px);
}

/* 最后一题 — 完成测评，庆祝感 */
.btn-finish {
    background: linear-gradient(135deg, var(--color-primary) 0%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(244, 114, 182, 0.25);
    animation: finishPulse 2.5s ease-in-out infinite;
}
.btn-finish:hover {
    box-shadow: 0 6px 24px rgba(244, 114, 182, 0.4);
    transform: translateY(-2px);
}
.btn-finish i {
    color: #fde047;
}

@keyframes finishPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(244, 114, 182, 0.25); }
    50% { box-shadow: 0 4px 24px rgba(244, 114, 182, 0.45); }
}

#btn-next:hover i {
    transform: translateX(2px) scale(1.1);
}

/* 上一题按钮 hover 图标左移 */
#btn-prev:hover i {
    transform: translateX(-2px) scale(1.1);
}

/* ============================================
 * Last Question Modal
 * ============================================ */
/* ============================================
 * Last Question Modal — 模块化设计
 * 可复制到其他量表使用
 * ============================================ */

/* 弹窗主体：居中 + 柔和滑入动画 */
.last-q-modal-box {
    /* 作为 flex 子元素由父级 .modal.show 居中，不用 fixed 手动定位 */
    position: relative;
    z-index: 2001;
    text-align: center;
    padding: 28px 24px 24px;
    max-width: 320px;
    width: 88%;
    border-radius: 24px;
    border: 1px solid rgba(244, 114, 182, 0.15);
    background: linear-gradient(160deg, #20183a 0%, #181428 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.04) inset;
    /* 父级 .modal 用 display:none 控制显示，此处不再需要 opacity/visibility 隐藏 */
}

/* 打开弹窗：缩放上浮动画 */
.lqm-visible {
    transform: scale(1) translateY(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 关闭弹窗：缩小下沉 */
.lqm-closing {
    transform: scale(0.96) translateY(8px);
    transition: transform 0.2s ease-in;
}

/* 关闭按钮 */
.last-q-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}
.last-q-modal-close:hover {
    background: rgba(244, 114, 182, 0.25);
    color: #f472b6;
}

/* 图标 */
.last-q-modal-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 8px;
    animation: lqmBounce 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}
@keyframes lqmBounce {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

/* 标题 */
.last-q-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
}

/* 副标题 */
.last-q-modal-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    margin: 0 0 14px;
    line-height: 1.5;
}

/* 时间信息条 */
.last-q-modal-time {
    background: rgba(244, 114, 182, 0.07);
    border: 1px solid rgba(244, 114, 182, 0.15);
    border-radius: 10px;
    padding: 7px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: rgba(244, 114, 182, 0.78);
}

/* 按钮区 */
.last-q-modal-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 主要按钮 */
.last-q-modal-box .btn-lg {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #f472b6, #c084fc);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: transform 0.15s, opacity 0.15s;
}
.last-q-modal-box .btn-lg:active {
    transform: scale(0.96);
    opacity: 0.85;
}

/* ============================================
 * Page 4: Result
 * ============================================ */

/* Result Header */
.result-header {
    text-align: center;
    padding: 24px 16px 20px;
}

.result-title {
    font-family: Georgia, "Times New Roman", "PingFang SC", serif;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 20px;
}

/* Score Display */
.score-display {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.08) 0%, rgba(236, 72, 153, 0.03) 100%);
    border: 1px solid rgba(244, 114, 182, 0.15);
    border-radius: 18px;
    margin: 16px 0 24px;
}

.score-big {
    font-size: 52px;
    font-weight: 800;
    color: var(--color-primary);
    display: block;
    line-height: 1;
    text-shadow: 0 0 40px rgba(244, 114, 182, 0.3);
}

.score-label {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 8px;
    display: block;
}

/* Accuracy Display */
.accuracy-display {
    margin-top: 14px;
    padding: 0 4px;
}

.accuracy-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
    line-height: 1.4;
}

.accuracy-label {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}

.accuracy-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
}

.accuracy-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 8px;
}

.accuracy-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #4ade80);
    border-radius: 3px;
    transition: width 1s ease;
}

/* === 可信度五维分析（PFT 风格：圆环 + 右侧详情）=== */
/* ===== 可信度五维分析（PFT 风格） ===== */
.accuracy-section {
    margin: 50px 0;
    padding: 32px 24px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(244, 114, 182, 0.15);
}

.accuracy-section .sec-title {
    font-size: 1.4em;
    margin-bottom: 24px;
}

.acc-section {
    background: linear-gradient(135deg, rgba(244,114,182,0.04), rgba(167,139,250,0.06));
    border: 1px solid rgba(244,114,182,0.12);
    border-radius: 18px;
    padding: 24px;
    margin-top: 8px;
}

.accuracy-card-body {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* 左侧圆环 */
.accuracy-ring {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.accuracy-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.accuracy-ring circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.accuracy-ring .score-bg {
    stroke: rgba(31, 41, 55, 0.5);
}

.accuracy-ring .score-progress {
    stroke: url(#eqAccGradient);
    transition: stroke-dashoffset 1.5s ease;
}

.accuracy-ring .score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.accuracy-ring .score-value {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.accuracy-ring .score-unit {
    font-size: 0.9em;
    color: #9ca3af;
    font-weight: 400;
}

/* 右侧分项指标 */
.accuracy-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.acc-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    transition: background .2s;
}

.acc-item:hover {
    background: rgba(255,255,255,0.06);
}

.acc-item-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.acc-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    color: #9ca3af;
}

.acc-label {
    font-size: 13px;
    color: #d1d5db;
    flex: 1;
}

.acc-pct {
    font-size: 12px;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

.acc-pct-good { color: #f9a8d4; }
.acc-pct-warn { color: #c4b5fd; }
.acc-pct-bad { color: #fca5a5; }

.acc-bar {
    height: 4px;
    background: rgba(31, 41, 55, 0.8);
    border-radius: 2px;
    overflow: hidden;
}

.acc-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}

.acc-bar-good { background: linear-gradient(90deg, #f472b6, #e879f9); }
.acc-bar-warn { background: linear-gradient(90deg, #a78bfa, #818cf8); }
.acc-bar-bad { background: linear-gradient(90deg, #fca5a5, #f87171); }

.acc-desc {
    font-size: 11px;
    margin-top: 3px;
}

.acc-desc-good { color: #f9a8d4; }
.acc-desc-good::before { content: '✓ '; }
.acc-desc-warn { color: #c4b5fd; }
.acc-desc-warn::before { content: '! '; }
.acc-desc-bad { color: #fca5a5; }
.acc-desc-bad::before { content: '✗ '; }

/* 移动端：圆环在上，详情在下 */
@media (max-width: 480px) {
    .accuracy-section {
        padding: 20px 16px;
        margin: 24px 0;
    }

    .accuracy-card-body {
        flex-direction: column;
        gap: 20px;
    }

    .accuracy-ring {
        width: 120px;
        height: 120px;
    }

    .accuracy-ring .score-value {
        font-size: 2.2em;
    }

    .accuracy-details {
        width: 90%;
        gap: 10px;
    }
}

/* Result Section */
.result-section {
    padding: 16px 0;
    margin-bottom: 8px;
}

.sec-title {
    font-size: 17px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-title i {
    color: var(--color-primary);
    font-size: 16px;
}

/* Dimension Items */
.dim-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 14px;
}

.dim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dim-name {
    font-size: 15.5px;
    font-weight: 600;
    color: #f3f4f6;
}

.dim-type {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
}

.dim-score {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.dim-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.65;
    margin-bottom: 12px;
}

/* Progress Bar in dim (pb/pb-fill) */
.pb {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.pb-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 3px;
    transition: width 1.2s ease;
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.25);
}

/* Analysis Modules */
.ana-mod {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.ana-mod-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ana-mod-title::before {
    content: '✦';
    font-size: 12px;
}

.ana-mod-text {
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.75;
}

/* Theory Items */
.theory-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.theory-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-light);
    margin-bottom: 8px;
}

.theory-desc {
    font-size: 13.5px;
    color: #b0b5c0;
    line-height: 1.7;
    margin-bottom: 6px;
}

.theory-src {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Action Items */
.action-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: all 0.25s ease;
}

.action-item:hover {
    border-color: rgba(244, 114, 182, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 114, 182, 0.1);
}

.action-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.action-text {
    font-size: 13.5px;
    color: #9ca3af;
    line-height: 1.65;
    margin-top: 6px;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.08), rgba(236, 72, 153, 0.04));
    border-left: 3px solid var(--color-primary);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 20px 0;
}

.quote-text {
    font-family: Georgia, "Times New Roman", "PingFang SC", serif;
    font-size: 15px;
    color: #d1d5db;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 8px;
}

.quote-author {
    font-size: 13px;
    color: var(--color-primary);
    text-align: right;
    font-weight: 600;
}

/* Result Actions */
/* 重新测评 - 渐变蓝 */
.btn-action-restart {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

.btn-action-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(99,102,241,0.4);
}

.btn-action-restart:active {
    transform: translateY(0) scale(0.98);
}

/* 查看历史 - 次要边框 */
.btn-action-history {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.55);
    border: 1.5px solid rgba(255,255,255,0.1);
}

.btn-action-history:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    transform: translateY(-1px);
}

/* === 结果页操作按钮（参考 PFT 布局）=== */
.result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 0 8px 32px;
}

.action-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}

/* 第一行：大实心按钮 */
.primary-row .btn-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
}

/* 生成海报 - 紫色渐变 */
.btn-poster {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.btn-poster:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.45);
}
.btn-poster:active {
    transform: translateY(0);
}

/* 分享结果 - 绿色渐变 */
.btn-share {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.30);
}
.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(5, 150, 105, 0.42);
}
.btn-share:active {
    transform: translateY(0);
}

/* 第二行：文字链接 */
.secondary-row {
    gap: 4px 16px;
    flex-wrap: wrap;
}

.btn-action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: transparent;
    color: rgba(156, 163, 175, 0.85);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}
.btn-action-link:hover {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.08);
}
.btn-action-link:active {
    transform: scale(0.96);
}

/* ============================================
 * Customer Service
 * ============================================ */
.customer-service {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.service-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #07c160;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.4);
    transition: all 0.2s;
    border: none;
}

.service-btn:hover {
    transform: scale(1.1);
}

.service-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 101;
    display: none;
}

.service-popup.show,
.service-popup.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

.service-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.service-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-popup-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 14px;
}

.service-popup-tip {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

.service-qrcode {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

.service-online-btn {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border-radius: 8px;
    background: #07c160;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.service-online-btn:hover {
    background: #06ae56;
}

/* ============================================
 * Responsive
 * ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 60px 16px 30px;
    }

    .nav-btn span {
        display: none;
    }

    .hero-title {
        font-size: 24px;
    }

    .fc-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .q-card {
        padding: 20px 16px;
    }

    .q-text {
        font-size: 15px;
    }

    .opt {
        padding: 12px 15px;
        font-size: 14px;
    }

    .score-big {
        font-size: 42px;
    }

    .result-title {
        font-size: 22px;
    }

    .intro-title {
        font-size: 22px;
    }

    .nav-btns {
        gap: 8px;
    }
    .nav-progress {
        font-size: 12px;
        min-width: 44px;
    }
    .btn-nav {
        padding: 12px 14px;
        font-size: 13.5px;
        border-radius: 10px;
    }

    .result-actions {
        margin-top: 28px;
        padding: 0 4px 28px;
        gap: 14px;
    }

    .primary-row .btn-action {
        padding: 13px 16px;
        font-size: 14.5px;
        border-radius: 12px;
    }

    .btn-action-link {
        font-size: 13px;
        padding: 7px 12px;
    }

    .feature-tags {
        gap: 8px;
    }

    .feature-tag {
        padding: 6px 11px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 21px;
    }

    .fc-grid {
        grid-template-columns: 1fr;
    }

    .fc-card {
        padding: 16px;
    }

    .score-big {
        font-size: 36px;
    }

    .dim-score {
        font-size: 24px;
    }
}

/* ============================================
 * 历史记录弹窗
 * ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none !important;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(244, 114, 182, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(244, 114, 182, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--color-primary-light);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(244, 114, 182, 0.15);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.history-item {
    background: rgba(244, 114, 182, 0.08);
    border: 1px solid rgba(244, 114, 182, 0.15);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--color-primary);
    transition: all 0.2s;
    cursor: pointer;
}

.history-item:hover {
    background: rgba(244, 114, 182, 0.15);
    transform: translateX(4px);
}

.history-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-type {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary-light);
}

.history-title {
    font-size: 14px;
    color: #9ca3af;
}

.history-time {
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
}

/* 四维紧凑标签行 */
.history-dims-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.eq-dim-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(244, 114, 182, 0.12);
    border: 1px solid rgba(244, 114, 182, 0.2);
    border-radius: 5px;
    padding: 3px 6px;
}

.eq-dim-name {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
    white-space: nowrap;
}

.eq-dim-score {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    margin-right: 3px;
}

.eq-dim-bar {
    width: 28px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
}

.eq-dim-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.history-empty i {
    font-size: 48px;
    color: rgba(244, 114, 182, 0.3);
    margin-bottom: 16px;
    display: block;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================================
 * 手机端历史记录优化
 * ============================================ */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px 20px;
    }

    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
    }

    .history-item {
        padding: 14px;
    }

    .history-type {
        font-size: 16px;
    }

    /* brand-badge 小屏幕优化 */
    .brand-badge {
        font-size: 12px;
        padding: 6px 14px;
    }

    /* 导航按钮优化 */
    .top-nav {
        padding: 10px 12px;
    }

    .nav-btn.primary {
        padding: 8px 12px;
    }

    /* feature-tags 换行优化 */
    .feature-tags {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 四维卡片 */
    .fc-grid {
        gap: 12px;
    }

    .fc-card {
        padding: 14px;
    }

    .fc-icon {
        font-size: 20px;
    }

    .fc-title {
        font-size: 14px;
    }

    .fc-desc {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 96%;
        border-radius: 16px;
    }

    .history-item {
        padding: 12px;
        margin-bottom: 10px;
    }

    .brand-badge {
        font-size: 11px;
        padding: 5px 12px;
        gap: 6px;
    }

    .feature-tags {
        gap: 6px;
    }

    .feature-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* ============================================
 * Poster Preview
 * ============================================ */
.poster-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 20, 0.92);
    color: #ffffff;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 16px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(244, 114, 182, 0.35);
}
.poster-loading i {
    font-size: 20px;
    color: #f472b6;
}

/* 海报预览弹窗样式 */
.poster-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.poster-preview-modal.active {
    opacity: 1;
}
.poster-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(10px);
}
.poster-preview-container {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
    background: #1a0a1f;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(244, 114, 182, 0.3);
}
.poster-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(244, 114, 182, 0.2);
}
.poster-preview-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}
.poster-preview-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}
.poster-preview-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.poster-preview-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.poster-preview-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.poster-preview-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(244, 114, 182, 0.2);
    background: rgba(26, 13, 31, 0.5);
}
.poster-preview-tip {
    margin: 0 0 16px 0;
    padding: 12px 16px;
    background: rgba(244, 114, 182, 0.1);
    border-radius: 8px;
    color: #f9a8d4;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.poster-preview-tip i {
    font-size: 16px;
}
.poster-preview-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.poster-download-btn,
.poster-close-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.poster-download-btn {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(244, 114, 182, 0.3);
}
.poster-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.4);
}
.poster-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.poster-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
@media (max-width: 600px) {
    .poster-preview-container {
        max-width: 95%;
        max-height: 95%;
    }
    .poster-preview-header {
        padding: 16px 20px;
    }
    .poster-preview-header h3 {
        font-size: 18px;
    }
    .poster-preview-content {
        padding: 16px;
    }
    .poster-preview-footer {
        padding: 16px 20px;
    }
    .poster-preview-actions {
        flex-direction: column;
    }
    .poster-download-btn,
    .poster-close-btn {
        width: 100%;
        justify-content: center;
    }
}


/* 禁止移动端缩放 - iOS兼容 */
html {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

/* 允许输入框选择文字 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 禁止双击缩放 */
* {
    touch-action: manipulation;
}

/* iOS Safari 特定修复 */
@supports (-webkit-touch-callout: none) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* ===== 清除确认弹窗 ===== */
#confirm-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.confirm-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    animation: fadeIn .2s ease;
}

.confirm-box {
    position: relative;
    background: #1a1a2e;
    border: 1px solid rgba(244,114,182,0.2);
    border-radius: 16px;
    width: min(320px, 88vw);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp .25s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: #f9a8d4;
}

.confirm-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .15s;
}

.confirm-close:hover {
    color: #f472b6;
}

.confirm-body {
    padding: 20px 16px;
    text-align: center;
}

.confirm-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    word-break: break-all;
}

.confirm-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
}

.confirm-footer button {
    flex: 1;
    padding: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


#last-q-modal:not(.show):not(.lqm-visible) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
#last-q-modal:not(.show):not(.lqm-visible) .modal-overlay,
#last-q-modal:not(.show):not(.lqm-visible) .last-q-modal-box,
#last-q-modal:not(.show):not(.lqm-visible) * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.acc-item[data-level="good"] { border-left-color: #f472b6; }
.acc-item[data-level="warn"] { border-left-color: #a78bfa; }
.acc-item[data-level="bad"] { border-left-color: #ef4444; }
