﻿/* ========== 基础重置与兼容性 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 
        -apple-system, 
        BlinkMacSystemFont, 
        "Segoe UI", 
        "PingFang SC", 
        "Hiragino Sans GB", 
        "Microsoft YaHei", 
        "Helvetica Neue", 
        Helvetica, 
        Arial, 
        sans-serif,
        "Apple Color Emoji",
        "Segoe UI Emoji";
    
    background: linear-gradient(135deg, #efc3de 0%, #c6eef3 100%);
    background-attachment: fixed; /* iOS Safari 兼容 */
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    padding-bottom: 40px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.image-option img{
    width: 100%;
}

/* ========== 语言切换按钮 ========== */
.lang-toggle-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 9999;
    min-width: 44px;
    padding: 6px 14px;
    border: 1.5px solid #ff6b9d;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #c44569;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(196, 69, 105, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}

.lang-toggle-btn:active {
    transform: scale(0.94);
    background: #ff6b9d;
    color: #fff;
}

/* 觸摸設備優化 */
@media (hover: none) and (pointer: coarse) {
    button, .option-btn, .image-option, .confirm-btn, .cta-button {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255,107,157,0.2);
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* ========== 頂部標題 - 全新設計 ========== */
.header {
    text-align: center;
    padding: 10px 20px 20px;
    animation: fadeInDown 0.8s ease-out;
    -webkit-animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@-webkit-keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari/iOS 支持 */
    border-radius: 25px;
    padding: 30px 50px;
    box-shadow: 
        0 10px 45px rgba(239,107,157,0.35),
        0 2px 15px rgba(198,238,243,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
    border: 2px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
    max-width: 95vw; /* 防止溢出 */
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(
        left,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    animation: shimmer 3s infinite;
    -webkit-animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

@-webkit-keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* 心电图 SVG - 跨平台兼容 */
.heartbeat-svg {
    width: 90px;
    height: 55px;
    display: block;
    animation: heartbeat 1.5s ease-in-out infinite;
    -webkit-animation: heartbeat 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.heartbeat-path {
    fill: none;
    stroke: url(#heartGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 8px rgba(239,107,157,0.5));
    -webkit-filter: drop-shadow(0 2px 8px rgba(239,107,157,0.5));
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    10% { transform: scale(1.08); opacity: 1; }
    20% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.05); opacity: 1; }
    40% { transform: scale(1); opacity: 1; }
}

@-webkit-keyframes heartbeat {
    0%, 100% { transform: scale(1); opacity: 1; }
    10% { transform: scale(1.08); opacity: 1; }
    20% { transform: scale(1); opacity: 1; }
    30% { transform: scale(1.05); opacity: 1; }
    40% { transform: scale(1); opacity: 1; }
}

/* 标题文字 */
.logo-text {
    font-size: 48px;
    font-weight: bold;
    background: -webkit-linear-gradient(left, #ff6b9d 0%, #c44569 30%, #ff6b9d 70%, #c44569 100%);
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 30%, #ff6b9d 70%, #c44569 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 8px;
    white-space: nowrap;
    filter: drop-shadow(0 3px 8px rgba(196,69,105,0.3));
    -webkit-filter: drop-shadow(0 3px 8px rgba(196,69,105,0.3));
    animation: textShine 3s linear infinite;
    -webkit-animation: textShine 3s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

@-webkit-keyframes textShine {
    to { background-position: 200% center; }
}

/* 右侧心电图 */
.heartbeat-svg-right {
    width: 90px;
    height: 55px;
    display: block;
    animation: heartbeat 1.5s ease-in-out infinite;
    -webkit-animation: heartbeat 1.5s ease-in-out infinite;
    animation-delay: 0.2s;
    -webkit-animation-delay: 0.2s;
    flex-shrink: 0;
}

/* 装饰性波纹 */
.ripple-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.ripple {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,157,0.15) 0%, transparent 70%);
    background: -webkit-radial-gradient(circle, rgba(255,107,157,0.15) 0%, transparent 70%);
    animation: rippleEffect 3s ease-out infinite;
    -webkit-animation: rippleEffect 3s ease-out infinite;
}

.ripple:nth-child(2) {
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}

.ripple:nth-child(3) {
    animation-delay: 2s;
    -webkit-animation-delay: 2s;
}

@keyframes rippleEffect {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

@-webkit-keyframes rippleEffect {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* ========== 響應式斷點 - 標題區域 ========== */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px 20px;
    }
    
    .logo-container {
        padding: 25px 35px;
        gap: 12px;
    }

    .logo-text {
        font-size: 36px;
        letter-spacing: 5px;
    }

    .heartbeat-svg,
    .heartbeat-svg-right {
        width: 65px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px 20px;
    }
    
    .logo-container {
        padding: 22px 26px;
        gap: 8px;
        border-radius: 20px;
    }

    .logo-text {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .heartbeat-svg,
    .heartbeat-svg-right {
        width: 50px;
        height: 32px;
    }
}

/* 极小屏幕保护 */
@media (max-width: 320px) {
    .logo-text {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .heartbeat-svg,
    .heartbeat-svg-right {
        width: 40px;
        height: 26px;
    }
}

/* ========== 进度条 ========== */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.4);
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: -webkit-linear-gradient(left, #ff6b9d, #c44569);
    background: linear-gradient(90deg, #ff6b9d, #c44569);
    transition: width 0.5s ease;
    -webkit-transition: width 0.5s ease;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(196,69,105,0.4);
}

/* ========== 问题卡片 ========== */
.question-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 42px 38px;
    margin-bottom: 28px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px rgba(239,195,222,0.35);
    animation: fadeInUp 0.6s ease-out;
    -webkit-animation: fadeInUp 0.6s ease-out;
}

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

@-webkit-keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-number {
    display: inline-block;
    background: -webkit-linear-gradient(top, #ff6b9d, #c44569);
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    padding: 11px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(196,69,105,0.3);
}

.question-text {
    font-size: 21px;
    line-height: 1.7;
    margin-bottom: 34px;
    font-weight: 600;
    color: #444;
    word-wrap: break-word;
    word-break: break-word;
}

.options {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    gap: 18px;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
}

.option-btn {
    padding: 17px 48px;
    font-size: 18px;
    border: 2px solid rgba(196,69,105,0.3);
    background: rgba(255,255,255,0.95);
    color: #c44569;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    min-width: 165px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(239,195,222,0.35);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.option-btn:hover,
.option-btn:focus {
    background: -webkit-linear-gradient(top, #ff6b9d, #c44569);
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(196,69,105,0.45);
}

.option-btn.selected {
    background: -webkit-linear-gradient(top, #ff6b9d, #c44569);
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(196,69,105,0.55);
}

/* ========== 選擇環節 ========== */
.selection-card {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 42px 38px;
    margin-bottom: 28px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 40px rgba(239,195,222,0.35);
    animation: fadeInUp 0.6s ease-out;
    -webkit-animation: fadeInUp 0.6s ease-out;
}

.selection-title {
    font-size: 23px;
    text-align: center;
    margin-bottom: 34px;
    font-weight: bold;
    color: #c44569;
    text-shadow: 0 2px 4px rgba(196,69,105,0.1);
    word-wrap: break-word;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
    margin-bottom: 30px;
}

/* IE/舊版Safari Grid降級 */
@supports not (display: grid) {
    .image-grid {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .image-option {
        width: calc(50% - 10px);
        margin-bottom: 14px;
    }
}

@media (max-width: 600px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 13px;
    }
}

.image-option {
    position: relative;
    aspect-ratio: 1 / 1;
    -webkit-aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    background: -webkit-linear-gradient(135deg, #f8a5c2 0%, #a8edea 100%);
    background: linear-gradient(135deg, #f8a5c2 0%, #a8edea 100%);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    font-size: 54px;
    box-shadow: 0 6px 22px rgba(239,195,222,0.4);
    outline: none;
    -webkit-tap-highlight-color: rgba(196,69,105,0.2);
}

/* aspect-ratio 降級方案 */
@supports not (aspect-ratio: 1 / 1) {
    .image-option {
        height: 0;
        padding-bottom: 100%;
    }
    .image-option > * {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
    }
}

.image-option:hover,
.image-option:focus {
    transform: scale(1.04) translateY(-4px);
    -webkit-transform: scale(1.04) translateY(-4px);
    box-shadow: 0 13px 35px rgba(196,69,105,0.38);
}

.image-option.selected {
    border-color: #c44569;
    box-shadow: 0 0 0 3px rgba(196,69,105,0.2), 0 13px 38px rgba(196,69,105,0.44);
    transform: scale(1.03);
    -webkit-transform: scale(1.03);
}

.image-option.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    background: -webkit-linear-gradient(top, #ff6b9d, #c44569);
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    font-size: 19px;
    font-weight: bold;
    box-shadow: 0 3px 11px rgba(196,69,105,0.45);
    animation: popIn 0.3s ease-out;
    -webkit-animation: popIn 0.3s ease-out;
    z-index: 10;
}

@keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@-webkit-keyframes popIn {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform(1); }
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    /*background: -webkit-linear-gradient(top, rgba(196,69,105,0.92), rgba(196,69,105,0.72));*/
    /*background: linear-gradient(to top, rgba(196,69,105,0.92), rgba(196,69,105,0.72));*/
    padding: 11px 8px;
    font-size: 14px;
    color: white;
    font-weight: 500;
    /*backdrop-filter: blur(5px);*/
    /*-webkit-backdrop-filter: blur(5px);*/
    z-index: 5;
}

.confirm-btn {
    width: 100%;
    padding: 20px;
    font-size: 19px;
    background: -webkit-linear-gradient(top, #ff6b9d, #c44569);
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    box-shadow: 0 6px 26px rgba(196,69,105,0.47);
    letter-spacing: 1px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.confirm-btn:hover,
.confirm-btn:focus {
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    box-shadow: 0 10px 37px rgba(196,69,105,0.58);
}

.confirm-btn:active {
    transform: translateY(-1px);
    -webkit-transform: translateY(-1px);
}

/* ========== 加载动画 ========== */
.loading-container {
    text-align: center;
    padding: 85px 20px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(239,195,222,0.35);
    animation: fadeInUp 0.6s ease-out;
    -webkit-animation: fadeInUp 0.6s ease-out;
    margin-top: 20px;
}

.spinner {
    width: 72px;
    height: 72px;
    border: 5px solid rgba(196,69,105,0.16);
    border-top-color: #c44569;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    -webkit-animation: spin 1s linear infinite;
    margin: 0 auto 27px;
}

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

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

.loading-text {
    font-size: 19px;
    color: #c44569;
    font-weight: 500;
}

/* ========== 成功页面 ========== */
.success-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 38px 38px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 10px 52px rgba(239,195,222,0.42);
    animation: fadeInUp 0.6s ease-out;
    -webkit-animation: fadeInUp 0.6s ease-out;
    /*margin-top: 20px;*/
}

.success-icon {
    font-size: 56px;
    text-align: center;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

@-webkit-keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.16); }
}

.success-title {
    font-size: 29px;
    text-align: center;
    margin-bottom: 6px;
    background: -webkit-linear-gradient(top, #ff6b9d, #c44569, #ffd700);
    background: linear-gradient(135deg, #ff6b9d, #c44569, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    letter-spacing: 1px;
    word-wrap: break-word;
}

.success-subtitle {
    font-size: 12px;
    text-align: center;
    margin-bottom: 8px;
    color: #c44569;
    font-weight: 600;
    line-height: 1.5;
}

.success-subtitle strong {
    font-size: 16px;
    color: #ff6b9d;
    text-shadow: 0 2px 9px rgba(255,107,157,0.32);
}

.warning-box {
    background: -webkit-linear-gradient(135deg, rgba(255,215,0,0.16), rgba(255,165,0,0.16));
    background: linear-gradient(135deg, rgba(255,215,0,0.16), rgba(255,165,0,0.16));
    border-left: 5px solid #ffa500;
    padding: 4px 6px;
    margin-bottom: 10px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.75;
    color: #cc7000;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(255,165,0,0.22);
}

.cta-hint {
    text-align: center;
    margin-bottom: 10px;
    font-size: 17px;
    color: #666;
    font-weight: 500;
}

.rules-list {
    list-style: none;
    margin-top: 10px;
}

.rules-list li {
    padding: 4px 8px;
    margin-bottom: 6px;
    background: -webkit-linear-gradient(135deg, rgba(255,240,245,0.92), rgba(240,248,255,0.92));
    background: linear-gradient(135deg, rgba(255,240,245,0.92), rgba(240,248,255,0.92));
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.73;
    border-left: 4px solid #ff6b9d;
    color: #444;
    box-shadow: 0 3px 13px rgba(239,195,222,0.27);
    word-wrap: break-word;
}

.rules-list li strong {
    color: #c44569;
    font-size: 15px;
}

.cta-button {
    width: 100%;
    padding: 25px;
    font-size: 21px;
    background: -webkit-linear-gradient(top, #ff6b9d, #c44569, #ff6b9d);
    background: linear-gradient(135deg, #ff6b9d, #c44569, #ff6b9d);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 34px;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    box-shadow: 0 8px 34px rgba(196,69,105,0.52);
    animation: gradientShift 3s ease infinite, glow 2s ease-in-out infinite;
    -webkit-animation: gradientShift 3s ease infinite, glow 2s ease-in-out infinite;
    letter-spacing: 2px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@-webkit-keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 8px 34px rgba(196,69,105,0.52); }
    50% { box-shadow: 0 8px 50px rgba(196,69,105,0.78); }
}

@-webkit-keyframes glow {
    0%, 100% { box-shadow: 0 8px 34px rgba(196,69,105,0.52); }
    50% { box-shadow: 0 8px 50px rgba(196,69,105,0.78); }
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-4px) scale(1.02);
    -webkit-transform: translateY(-4px) scale(1.02);
    box-shadow: 0 13px 48px rgba(196,69,105,0.67);
}

.hidden {
    display: none !important;
}

/* ========== 響應式 - 移動端優化 ========== */
@media (max-width: 600px) {
    .container {
        padding: 14px;
    }
    
    .question-card,
    .selection-card,
    .success-card,
    .loading-container {
        padding: 12px 12px;
        border-radius: 20px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .option-btn {
        padding: 14px 34px;
        font-size: 16px;
        min-width: 134px;
    }
    
    .selection-title {
        font-size: 19px;
    }

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

    .success-subtitle {
        font-size: 13px;
    }

    .success-subtitle strong {
        font-size: 20px;
    }

    .cta-button {
        font-size: 18px;
        padding: 21px;
    }

    .progress-bar {
        margin-bottom: 10px;
    }

    .image-option {
        font-size: 46px;
    }
}

/* ========== 打印样式隐藏 ========== */
@media print {
    body {
        background: white !important;
    }
    .hidden {
        display: none !important;
    }
}

/* ========== 高对比度模式支持 ========== */
@media (prefers-contrast: high) {
    .option-btn,
    .confirm-btn,
    .cta-button {
        border: 2px solid currentColor;
    }
}

/* ========== 减少动画模式（无障碍） ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== 横屏模式提示（移动端） ========== */
@media (max-width: 767px) and (orientation: landscape) {
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    .header {
        padding: 10px 15px 20px;
    }
    
    .logo-container {
        padding: 20px 30px;
    }
}

