/* ========================================
   移动端优化 - 特别浅粉背景统一风格
   Mobile-Optimized Pink Style
   设计风格：特别浅粉背景、大字体、大按钮、底部固定
   ======================================== */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 统一配色方案 */
:root {
    --bg-pink: #FFF5F7;              /* 特别浅的粉背景 */
    --card-white: #FFFFFF;           /* 纯白卡片 */
    --primary-pink: #FF6B8A;         /* 主粉色 */
    --gradient-start: #FF8FA3;       /* 渐变起点 */
    --gradient-end: #FFB3C1;         /* 渐变终点 */
    --text-dark: #2C2C2C;            /* 深色文字 */
    --text-gray: #666666;            /* 灰色文字 */
    --border-radius: 16px;           /* 统一圆角 */
    --shadow-soft: 0 4px 20px rgba(255, 107, 138, 0.12);
    --shadow-hover: 0 8px 30px rgba(255, 107, 138, 0.2);
}

/* 字体引入 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

/* 页面主体 */
body {
    font-family: 'Poppins', 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-pink);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: 80px; /* 为底部固定按钮留空间 */
}

/* 容器 - 满屏设计 */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
}

.container-wide {
    max-width: 100%;
    padding: 20px 16px;
}

/* ========================================
   标题设计 - 大字体易读
   ======================================== */

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 10px;
}

.title-pink {
    font-family: 'Poppins', 'Noto Sans SC', serif;
    color: var(--primary-pink);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.subtitle-pink {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 400;
    text-align: center;
    opacity: 0.9;
}

/* ========================================
   卡片设计 - 纯白背景 + 统一圆角
   ======================================== */

.card-pink {
    background: var(--card-white);
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card-pink:active {
    transform: scale(0.98);
}

/* ========================================
   按钮设计 - 大按钮、大圆角、底部固定
   ======================================== */

.btn-pink {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--card-white);
    border: none;
    padding: 0;
    height: 50px;
    width: 100%;
    border-radius: 25px;
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 107, 138, 0.3);
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-pink:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 138, 0.4);
}

.btn-pink:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(255, 107, 138, 0.2);
}

/* 底部固定按钮容器 */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-white);
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(255, 107, 138, 0.1);
    z-index: 100;
}

.fixed-bottom .btn-pink {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   首页评估卡片 - 纯白 + 大圆角
   ======================================== */

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.assessment-card {
    display: block;
    background: var(--card-white);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.assessment-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-hover);
}

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

.assessment-card-title {
    font-family: 'Poppins', 'Noto Sans SC', serif;
    font-size: 20px;
    color: var(--primary-pink);
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

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

/* ========================================
   表单元素 - 移动端优化
   ======================================== */

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

.question-card {
    background: var(--card-white);
    border-radius: var(--border-radius);
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-soft);
}

.question-number {
    display: inline-block;
    font-size: 13px;
    color: var(--card-white);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 5px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.question-text {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 500;
}

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

.option-label {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--card-white);
    border: 2px solid rgba(255, 107, 138, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px; /* 确保触控区域 > 44px */
}

.option-label:active {
    background: rgba(255, 107, 138, 0.08);
    border-color: var(--primary-pink);
}

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

.option-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 400;
    flex: 1;
}

/* ========================================
   进度条 - 顶部显示
   ======================================== */

.progress-container {
    margin-bottom: 20px;
    padding: 0 4px;
}

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

.progress-text {
    font-size: 14px;
    color: var(--primary-pink);
    font-weight: 600;
}

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

.progress-bar {
    height: 6px;
    background: rgba(255, 107, 138, 0.15);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    transition: width 0.4s ease;
}

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

.footer-pink {
    margin-top: 40px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 107, 138, 0.1);
}

.copyright-pink {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.disclaimer-pink {
    font-size: 11px;
    color: var(--text-gray);
    opacity: 0.7;
}

/* ========================================
   返回按钮 - 顶部简化导航
   ======================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--card-white);
    border-radius: 25px;
    text-decoration: none;
    color: var(--primary-pink);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-button:active {
    transform: scale(0.95);
}

.back-button::before {
    content: '←';
    margin-right: 6px;
    font-size: 16px;
}

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

.notice-pink {
    background: rgba(255, 107, 138, 0.08);
    border-left: 3px solid var(--primary-pink);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

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

.notice-pink-content {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.result-card {
    background: var(--card-white);
    border-radius: var(--border-radius);
    padding: 32px 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.result-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.result-title {
    font-family: 'Poppins', 'Noto Sans SC', serif;
    font-size: 24px;
    color: var(--primary-pink);
    margin-bottom: 12px;
    font-weight: 700;
}

.result-score {
    font-family: 'Poppins', 'Noto Sans SC', serif;
    font-size: 48px;
    color: var(--primary-pink);
    margin-bottom: 16px;
    font-weight: 700;
}

.result-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* ========================================
   输入框 - 大输入框
   ======================================== */

.input-pink {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 107, 138, 0.2);
    border-radius: 12px;
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    background: var(--card-white);
    transition: all 0.3s ease;
    -webkit-appearance: none;
}

.input-pink:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(255, 107, 138, 0.1);
}

.input-pink::placeholder {
    color: var(--text-gray);
    opacity: 0.6;
}

/* ========================================
   管理端特定样式
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--card-white);
    border-radius: var(--border-radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-number {
    font-size: 32px;
    color: var(--primary-pink);
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

.data-list {
    background: var(--card-white);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 107, 138, 0.1);
}

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

.data-title {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.data-value {
    font-size: 14px;
    color: var(--primary-pink);
    font-weight: 600;
}

/* ========================================
   登录页特定样式
   ======================================== */

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 20px 16px;
}

.login-card {
    background: var(--card-white);
    border-radius: var(--border-radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-soft);
}

.login-title {
    font-size: 24px;
    color: var(--primary-pink);
    text-align: center;
    margin-bottom: 8px;
    font-weight: 700;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 32px;
}

.form-group-login {
    margin-bottom: 20px;
}

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

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

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

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

/* ========================================
   响应式优化
   ======================================== */

/* 小屏手机 */
@media screen and (max-width: 375px) {
    .title-pink {
        font-size: 22px;
    }
    
    .assessment-card-title {
        font-size: 18px;
    }
    
    .btn-pink {
        font-size: 16px;
        height: 48px;
    }
    
    .question-text {
        font-size: 15px;
    }
    
    .option-text {
        font-size: 15px;
    }
}

/* 中等屏幕 */
@media screen and (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 30px 24px;
    }
    
    .main-content {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* 横屏模式 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    body {
        padding-bottom: 60px;
    }
    
    .fixed-bottom {
        padding: 10px 16px;
    }
    
    .btn-pink {
        height: 44px;
    }
}

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

/* ========================================
   工具类
   ======================================== */

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

/* 卡片入场动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}
