/* ========================================
   温暖关怀风格样式表 - Warm Care Style
   设计风格：温馨、柔和、关怀、圆润
   ======================================== */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 温暖关怀配色方案 */
:root {
    --soft-pink: #FFB6C1;        /* 柔和粉 - 主色 */
    --warm-beige: #F5F5DC;       /* 温暖米色 - 背景 */
    --cream-white: #FFFDD0;      /* 奶油白 - 卡片 */
    --rose-gold: #B76E79;        /* 玫瑰金 - 点缀 */
    --elegant-gray: #808080;     /* 高级灰 - 文字 */
    --light-pink: #FFE4E1;       /* 淡粉 - 悬停 */
    --deep-pink: #FF69B4;        /* 深粉 - 强调 */
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(255, 182, 193, 0.15);
    --shadow-medium: 0 8px 30px rgba(255, 182, 193, 0.2);
    --shadow-hover: 0 12px 40px rgba(255, 105, 180, 0.25);
}

/* 字体引入 - 圆润温暖字体 */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Quicksand:wght@400;500;600;700&display=swap');

/* 页面主体 */
body {
    font-family: 'Quicksand', 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--warm-beige) 0%, #FFF5E8 50%, var(--light-pink) 100%);
    min-height: 100vh;
    color: var(--elegant-gray);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container-wide {
    max-width: 900px;
    padding: 60px 40px;
}

/* ========================================
   标题设计 - 温暖字体 + 柔和粉
   ======================================== */

.title-warm {
    font-family: 'Quicksand', 'Nunito', Georgia, 'Songti SC', serif;
    color: var(--soft-pink);
    font-size: 36px;
    letter-spacing: 2px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    text-shadow: 1px 1px 2px rgba(255, 182, 193, 0.3);
}

.title-warm-sub {
    font-family: 'Quicksand', Georgia, serif;
    color: var(--rose-gold);
    font-size: 28px;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
}

.subtitle-warm {
    font-size: 14px;
    color: var(--elegant-gray);
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* ========================================
   卡片设计 - 奶油白背景 + 柔和阴影 + 圆角
   ======================================== */

.card-warm {
    background: var(--cream-white);
    border: 2px solid rgba(255, 182, 193, 0.3);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-warm::before {
    content: '💕';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.card-warm:hover {
    background: var(--light-pink);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.card-warm:hover::before {
    transform: scale(1.1);
    opacity: 0.8;
}

/* ========================================
   按钮设计 - 柔和粉渐变 + 圆角
   ======================================== */

.btn-warm {
    background: linear-gradient(135deg, var(--soft-pink), var(--deep-pink));
    color: var(--white);
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-family: 'Quicksand', 'Nunito', serif;
    font-size: 16px;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.btn-warm:hover {
    background: linear-gradient(135deg, var(--deep-pink), var(--soft-pink));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.5);
}

.btn-warm:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 182, 193, 0.3);
}

.btn-warm-secondary {
    background: transparent;
    color: var(--soft-pink);
    border: 2px solid var(--soft-pink);
    padding: 14px 38px;
    box-shadow: none;
}

.btn-warm-secondary:hover {
    background: rgba(255, 182, 193, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.25);
}

.btn-warm-rose {
    background: linear-gradient(135deg, var(--rose-gold), var(--deep-pink));
    box-shadow: 0 4px 15px rgba(183, 110, 121, 0.4);
}

.btn-warm-rose:hover {
    background: linear-gradient(135deg, var(--deep-pink), var(--rose-gold));
    box-shadow: 0 8px 25px rgba(183, 110, 121, 0.5);
}

/* ========================================
   首页评估卡片 - 奶油白 + 圆角 + 粉边
   ======================================== */

.assessment-card {
    display: block;
    background: var(--cream-white);
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 20px;
    padding: 32px 28px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.assessment-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--soft-pink), var(--deep-pink));
    transition: width 0.4s ease;
}

.assessment-card:hover {
    background: var(--light-pink);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 182, 193, 0.5);
}

.assessment-card:hover::after {
    width: 100%;
}

.assessment-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

.assessment-card-title {
    font-family: 'Quicksand', Georgia, serif;
    font-size: 22px;
    color: var(--rose-gold);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    text-align: center;
}

.assessment-card-desc {
    font-size: 14px;
    color: var(--elegant-gray);
    line-height: 1.7;
    font-weight: 400;
    text-align: center;
}

.assessment-card-arrow {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--soft-pink);
    opacity: 0;
    transition: all 0.4s ease;
}

.assessment-card:hover .assessment-card-arrow {
    right: 20px;
    opacity: 1;
}

/* ========================================
   表单元素
   ======================================== */

.form-group {
    margin-bottom: 28px;
}

.question-card {
    background: var(--cream-white);
    border: 2px solid rgba(255, 182, 193, 0.25);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: rgba(255, 182, 193, 0.5);
    box-shadow: var(--shadow-soft);
    background: var(--light-pink);
}

.question-number {
    display: inline-block;
    font-family: 'Quicksand', serif;
    font-size: 14px;
    color: var(--soft-pink);
    background: linear-gradient(135deg, var(--soft-pink), var(--deep-pink));
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.question-text {
    font-size: 16px;
    color: var(--rose-gold);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 600;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid rgba(255, 182, 193, 0.25);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    border-color: var(--soft-pink);
    background: rgba(255, 182, 193, 0.1);
    transform: translateX(5px);
}

.option-label input[type="radio"],
.option-label input[type="checkbox"] {
    margin-right: 12px;
    accent-color: var(--soft-pink);
    width: 20px;
    height: 20px;
}

.option-text {
    font-size: 14px;
    color: var(--elegant-gray);
    font-weight: 500;
}

.option-label:hover .option-text {
    color: var(--rose-gold);
}

/* ========================================
   进度条 - 粉色渐变
   ======================================== */

.progress-container {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-text {
    font-family: 'Quicksand', serif;
    font-size: 14px;
    color: var(--soft-pink);
    letter-spacing: 1px;
    font-weight: 600;
}

.progress-percentage {
    font-size: 13px;
    color: var(--elegant-gray);
    font-weight: 600;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 182, 193, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--soft-pink), var(--deep-pink));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(255, 182, 193, 0.4);
}

/* ========================================
   页脚
   ======================================== */

.footer-warm {
    margin-top: 60px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(255, 182, 193, 0.3);
}

.copyright-warm {
    font-size: 13px;
    color: var(--elegant-gray);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.disclaimer-warm {
    font-size: 12px;
    color: var(--elegant-gray);
    opacity: 0.7;
    font-style: italic;
}

/* ========================================
   装饰元素
   ======================================== */

.divider-warm {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--soft-pink), var(--deep-pink));
    margin: 30px auto;
    border-radius: 2px;
}

.divider-warm-thin {
    width: 60px;
    height: 2px;
    background: rgba(255, 182, 193, 0.4);
    margin: 20px auto;
    border-radius: 1px;
}

.decorative-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 182, 193, 0.3) 50%, 
        transparent 100%);
    margin: 40px 0;
    border-radius: 1px;
}

/* ========================================
   提示框
   ======================================== */

.notice-warm {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(255, 228, 225, 0.2));
    border-left: 4px solid var(--soft-pink);
    border-radius: 15px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.notice-warm-title {
    font-family: 'Quicksand', serif;
    font-size: 16px;
    color: var(--soft-pink);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-warm-content {
    font-size: 14px;
    color: var(--elegant-gray);
    line-height: 1.8;
}

/* ========================================
   结果卡片
   ======================================== */

.result-card {
    background: var(--cream-white);
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
}

.result-icon {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
}

.result-title {
    font-family: 'Quicksand', serif;
    font-size: 28px;
    color: var(--rose-gold);
    margin-bottom: 16px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.result-score {
    font-family: 'Quicksand', serif;
    font-size: 56px;
    color: var(--soft-pink);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.3);
}

.result-desc {
    font-size: 15px;
    color: var(--elegant-gray);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ========================================
   加载动画
   ======================================== */

.loading-warm {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 182, 193, 0.2);
    border-top-color: var(--soft-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   输入框 - 圆角 + 粉边
   ======================================== */

.input-warm {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    border-radius: 15px;
    font-family: 'Quicksand', 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--elegant-gray);
    background: var(--white);
    transition: all 0.3s ease;
}

.input-warm:focus {
    outline: none;
    border-color: var(--soft-pink);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.2);
    background: var(--light-pink);
}

.input-warm::placeholder {
    color: var(--elegant-gray);
    opacity: 0.6;
}

/* ========================================
   响应式设计
   ======================================== */

/* 小屏手机 */
@media screen and (max-width: 375px) {
    .container {
        padding: 30px 16px;
    }
    
    .title-warm {
        font-size: 28px;
        letter-spacing: 1.5px;
    }
    
    .title-warm-sub {
        font-size: 22px;
    }
    
    .card-warm {
        padding: 28px 20px;
    }
    
    .btn-warm {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    .assessment-card {
        padding: 24px 20px;
    }
    
    .question-card {
        padding: 20px;
    }
}

/* 中等屏幕 */
@media screen and (min-width: 415px) and (max-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .title-warm {
        font-size: 38px;
    }
}

/* 横屏模式 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 20px;
    }
    
    .card-warm {
        padding: 24px;
    }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --warm-beige: #2D2A26;
        --light-pink: #3D3A36;
        --cream-white: #3D3A36;
        --elegant-gray: #B0B0B0;
    }
    
    body {
        background: linear-gradient(135deg, #1A1816 0%, #2D2A26 100%);
    }
    
    .option-label {
        background: #3D3A36;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ========================================
   页面特定样式 - HPV
   ======================================== */

.hpv-accent {
    color: var(--soft-pink);
}

.hpv-gradient {
    background: linear-gradient(135deg, var(--soft-pink), var(--deep-pink));
}

/* ========================================
   页面特定样式 - Longevity
   ======================================== */

.longevity-accent {
    color: var(--rose-gold);
}

.longevity-gradient {
    background: linear-gradient(135deg, var(--rose-gold), var(--deep-pink));
}

/* ========================================
   页面特定样式 - Lymphedema
   ======================================== */

.lymph-accent {
    color: var(--deep-pink);
}

.lymph-gradient {
    background: linear-gradient(135deg, var(--deep-pink), var(--soft-pink));
}
