/* ========================================
   女性健康评估中心 - 样式表
   设计风格：专业、简洁、现代医疗风格
   ======================================== */

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

/* 根变量定义 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hpv-color: #FF6B95;
    --ai-color: #667eea;
    --lymph-color: #C471ED;
    --text-dark: #2D3748;
    --text-light: #718096;
    --bg-light: #F7FAFC;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 页面主体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-dark);
}

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

/* 头部区域 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* 页面标题 */
.title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 1px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 副标题 */
.subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
    letter-spacing: 2px;
}

/* 主内容区域 */
.main-content {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* 按钮组 */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

/* 评估按钮样式 */
.assessment-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    background: var(--white);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.assessment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s ease;
}

.hpv-btn::before {
    background: var(--hpv-color);
}

.ai-btn::before {
    background: var(--ai-color);
}

.lymph-btn::before {
    background: var(--lymph-color);
}

/* 按钮内容 */
.btn-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

/* 按钮图标 */
.btn-icon {
    font-size: 32px;
    flex-shrink: 0;
}

/* 按钮信息 */
.btn-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* 按钮标题 */
.btn-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 按钮描述 */
.btn-desc {
    font-size: 13px;
    color: var(--text-light);
}

/* 按钮箭头 */
.btn-arrow {
    font-size: 20px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.assessment-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.assessment-btn:hover::before {
    width: 6px;
}

.assessment-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* 点击效果 */
.assessment-btn:active,
.assessment-btn.clicked {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

/* 触摸效果 */
.assessment-btn.touched {
    background: #f8f9fa;
}

/* 淋巴水肿按钮特殊样式 */
.lymph-btn {
    opacity: 0.85;
}

.lymph-btn .btn-desc {
    color: #A0AEC0;
    font-style: italic;
}

/* 页脚 */
.footer {
    margin-top: 40px;
    width: 100%;
    text-align: center;
}

/* 管理端链接 */
.admin-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.admin-icon {
    font-size: 16px;
}

/* 版权信息 */
.copyright {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.8;
}

/* ========================================
   弹窗样式
   ======================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.modal-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-btn {
    padding: 12px 32px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

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

/* 小屏手机 (375px - 414px) */
@media screen and (max-width: 375px) {
    .title {
        font-size: 24px;
    }

    .assessment-btn {
        padding: 16px 20px;
    }

    .btn-title {
        font-size: 16px;
    }

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

    .btn-icon {
        font-size: 28px;
    }
}

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

    .button-group {
        max-width: 420px;
    }

    .assessment-btn {
        padding: 22px 26px;
    }

    .btn-title {
        font-size: 19px;
    }
}

/* 横屏模式优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .header {
        margin-bottom: 20px;
    }

    .button-group {
        gap: 12px;
    }

    .footer {
        margin-top: 20px;
    }

    .assessment-btn {
        padding: 14px 20px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    }

    .assessment-btn {
        background: #2d3748;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .btn-title {
        color: var(--white);
    }

    .btn-desc {
        color: #a0aec0;
    }

    .admin-link {
        background: #2d3748;
        border-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }

    .modal-content {
        background: #2d3748;
    }

    .modal-content h3 {
        color: var(--white);
    }

    .modal-content p {
        color: #a0aec0;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .assessment-btn,
    .btn-arrow,
    .modal,
    .modal-content,
    .modal-btn,
    .admin-link {
        transition: none;
    }

    .assessment-btn:hover,
    .assessment-btn:active {
        transform: none;
    }
}
