/* ============================================
   愈见 - 全局样式
   ============================================ */

/* CSS Variables */
:root {
    --primary: #4A7C8F;
    --primary-dark: #3A6270;
    --primary-light: #E8F4F8;
    --accent: #7CB7C9;
    --accent-warm: #E8A87C;
    --text-dark: #2D3748;
    --text-body: #4A5568;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-section: #EDF2F7;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: color 0.2s ease, background-color 0.2s ease;
    --max-width: 1200px;
}

/* Brand Icon Base Style */
.brand-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Feature Icon Base */
.feature-icon svg,
.value-icon svg,
.adv-icon svg,
.svc-icon svg,
.contact-info-icon svg {
    display: block;
}

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

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-body);
    line-height: 1.7;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    /* Prevent layout shift while loading */
    background: transparent;
}

ul, ol {
    list-style: none;
}

/* Accessibility: Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Accessibility: Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   Global Page Transition Animation
   ============================================ */
/* 页面加载 - 已禁用动画，直接显示 */
main,
.page-content,
.page-wrapper {
    /* 无动画，消除页面切换卡顿 */
}

/* Accessibility: Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation - 清爽版
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(226,232,240,0.5);
    transition: background 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-color: rgba(226,232,240,0.8);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px; /* 稍微降低高度，更轻巧 */
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.2s ease;
}

.nav-logo:hover .logo-icon {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px; /* 稍微紧凑 */
}

.nav-links a {
    font-size: 0.92rem;
    color: var(--text-body);
    font-weight: 500;
    position: relative;
    padding: 10px 4px;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* CTA 按钮 - 统一样式，与其他链接一致 */
.nav-cta {
    position: relative;
    background: transparent !important;
    color: var(--text-body) !important;
    padding: 6px 0 !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    font-size: 0.92rem !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
}

/* 按钮上的下划线动画 - 与其他链接完全一致 */
.nav-cta::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
    color: var(--primary) !important;
}

.nav-cta:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

/* 移动端菜单按钮 */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(74,124,143,0.1);
    border: 1.5px solid rgba(74,124,143,0.3);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease, opacity 0.2s ease;
    /* 确保按钮在移动端可见 */
    min-width: 40px;
    min-height: 40px;
}

.mobile-toggle:hover {
    background: rgba(74,124,143,0.15);
    border-color: var(--primary);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: opacity 0.2s ease, width 0.2s ease;
}

.mobile-toggle.active span:nth-child(1) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-toggle.active span:nth-child(3) {
    opacity: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 80px 0 100px;
    background: linear-gradient(170deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74,124,143,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232,168,124,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), rgba(124,183,201,0.15));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-illustration .inner-circle {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(74,124,143,0.25);
}

.hero-illustration .inner-circle svg {
    width: 120px;
    height: 120px;
    color: white;
}

/* Floating elements - 禁用动画 */
.float-element {
    position: absolute;
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    /* 无动画 - 消除持续的GPU重绘 */
}

.float-element:nth-child(2) {
    top: 20px;
    right: -20px;
    animation-delay: 0.5s;
}

.float-element:nth-child(3) {
    bottom: 40px;
    left: -30px;
    animation-delay: 1s;
}

.float-element .float-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.float-element .float-icon.green {
    background: #E6F9EE;
}

.float-element .float-icon.blue {
    background: var(--primary-light);
}

@keyframes float {
    /* 保留定义但不使用 */
}

/* Subtle pulse animation for online status - 已禁用持续动画 */
@keyframes pulse {
    /* 保留定义但不使用 */
}

.pulse-dot {
    /* 无动画，用静态样式代替 */
}

/* Smooth page transitions - 已禁用 */
.page-transition {
    /* 无动画 */
}

/* Card hover lift effect - 禁用transform，仅保留阴影变化 */
.card-lift {
    transition: box-shadow 0.2s ease;
}

.card-lift:hover {
    box-shadow: var(--shadow-lg);
}

/* Button press effect - 已禁用transform */
.btn:active {
    opacity: 0.9;
}

/* Loading skeleton - 已禁用动画 */
@keyframes shimmer {
    /* 保留定义但不使用 */
}

.skeleton {
    background: var(--bg-light);
    /* 无动画 */
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 25px rgba(74,124,143,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
    padding: 40px 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* 心理健康小课堂网格 */
.knowledge-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ============================================
   Feature / Service Cards
   ============================================ */
.features-grid {
    display: grid;
    gap: 28px;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-icon.blue {
    background: var(--primary-light);
}

.feature-icon.blue svg {
    color: var(--primary);
}

.feature-icon.warm {
    background: #FFF3E8;
}

.feature-icon.warm svg {
    color: #E8A87C;
}

.feature-icon.green {
    background: #E6F9EE;
}

.feature-icon.green svg {
    color: #48BB78;
}

.feature-icon.purple {
    background: #F0E6FF;
}

.feature-icon.purple svg {
    color: #9F7AEA;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   Service Detail Cards
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card-header {
    padding: 32px 28px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.service-card-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.service-card-info .service-tag {
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.service-card-body {
    padding: 0 28px 28px;
}

.service-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card-body ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card-body ul li {
    font-size: 0.88rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card-body ul li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   About / Team
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-light), rgba(124,183,201,0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74,124,143,0.1), transparent);
}

.about-image svg {
    width: 120px;
    height: 120px;
    color: var(--primary);
    opacity: 0.3;
}

.about-content .section-label {
    text-align: left;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 16px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    text-align: center;
    padding: 32px 20px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.value-card .value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 4px var(--primary-light);
    z-index: 1;
}

.timeline-content {
    width: 44%;
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-content h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Need Cards (问题分类卡片)
   ============================================ */
.need-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.need-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    padding: 28px 22px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.need-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.need-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.need-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.need-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}

.need-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.need-tag {
    font-size: 0.72rem;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
}

.need-service {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.need-service::before {
    content: '→';
    font-weight: 700;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
}

.cta-section .btn:hover {
    background: var(--bg-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-info-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Form */
.contact-form-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
}

.contact-form-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(74,124,143,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============================================
   Map Section
   ============================================ */
.map-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.map-placeholder {
    width: 100%;
    height: 300px;
    background: var(--bg-section);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    border: 1px solid var(--border);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question .faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-answer {
    padding: 0 24px 20px;
    display: none;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle {
    opacity: 0.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

/* ============================================
   Page Hero (Inner pages)
   ============================================ */
.page-hero {
    padding: 80px 0 50px;
    background: linear-gradient(170deg, var(--primary-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   Process Steps
   ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-step .step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 auto 16px;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(74,124,143,0.2);
}

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Emergency Banner
   ============================================ */
.emergency-banner {
    background: linear-gradient(135deg, #FFF5F5, #FED7D7);
    border: 1px solid #FEB2B2;
    border-radius: var(--radius);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.emergency-banner .emergency-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.emergency-banner h4 {
    font-size: 1rem;
    color: #C53030;
    font-weight: 700;
    margin-bottom: 4px;
}

.emergency-banner p {
    font-size: 0.88rem;
    color: #9B2C2C;
    line-height: 1.5;
}

/* ============================================
   Responsive Design
   ============================================ */

/* 分屏模式优化（900px-1024px） */
@media (max-width: 1024px) and (min-width: 901px) {
    .hero-content {
        padding-right: 0;
    }
    
    .hero-visual {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .quick-entry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .services-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-item {
        flex: 0 0 calc(50% - 16px);
        max-width: calc(50% - 16px);
    }
}

/* 平板横屏（768px-900px） */
@media (max-width: 900px) {
    /* 标语条响应式 */
    #taglineBar {
        padding: 8px 16px !important;
        font-size: 0.85rem !important;
    }
    
    #taglineBar span:first-child {
        font-size: 0.88rem !important;
        letter-spacing: 2px !important;
    }
    
    /* Hero区域优化 */
    .hero {
        padding: 72px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    /* 快速入口优化 */
    .quick-entry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .quick-entry-card h3 {
        font-size: 0.95rem;
    }
    
    .quick-entry-card p {
        font-size: 0.8rem;
    }
    
    /* 服务卡片优化 */
    .services-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .service-item {
        flex: 0 0 calc(50% - 6px);
        padding: 16px;
    }
    
    .service-item h3 {
        font-size: 0.95rem;
    }
    
    .service-item p {
        font-size: 0.82rem;
    }
    
    /* 科普文章优化 */
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ优化 */
    .faq-item {
        padding: 16px;
    }
    
    .faq-question {
        font-size: 0.95rem;
    }
    
    /* 页脚优化 */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* 平板竖屏与手机横屏（768px） */
@media (max-width: 768px) {
    /* 科普卡片移动端适配 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    /* 修复文字换行问题 */
    .hero-title,
    .hero-desc,
    .feature-card h3,
    .feature-card p {
        word-break: normal !important;
        overflow-wrap: normal !important;
        white-space: normal !important;
    }
    
    /* Navigation on mobile - 更流畅的动画 */
    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(226,232,240,0.6);
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    /* 用 visibility + opacity 实现动画（display:none 无法触发过渡） */
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s ease,
                    visibility 0s 0.2s;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.2s ease,
                    visibility 0s 0s;
    }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(226,232,240,0.4);
        font-size: 1rem;
        color: var(--text-dark);
        transition: color 0.2s ease;
    }

    .nav-links a:hover {
        color: var(--primary);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* 移动端下划线动画 - 与桌面端一致 */
    .nav-links a::after {
        display: block;
        content: '';
        position: absolute;
        bottom: 14px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links a:hover::after {
        opacity: 1;
        transform: scaleX(1);
    }

    /* 移动端 AI 心理咨询按钮样式 - 与其他链接一致 */
    .nav-links .nav-cta {
        background: transparent !important;
        color: var(--text-dark) !important;
        padding: 14px 0 !important;
        border-radius: 0 !important;
        font-weight: 500 !important;
        text-align: left !important;
        border-bottom: 1px solid rgba(226,232,240,0.4);
        margin-top: 0;
        position: relative;
    }

    .nav-links .nav-cta::after {
        content: '';
        position: absolute;
        bottom: 14px;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links .nav-cta:hover {
        color: var(--primary) !important;
    }

    .nav-links .nav-cta:hover::after {
        opacity: 1;
        transform: scaleX(1);
    }

    /* Hero Section - Mobile */
    .hero {
        padding: 72px 0 48px;
    }

    .hero .container {
        flex-direction: column;
        gap: 32px;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-badge {
        font-size: 0.78rem;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-illustration {
        max-width: 160px;
        margin: 0 auto;
    }

    .hero-illustration .inner-circle {
        width: 140px;
        height: 140px;
    }

    .hero-illustration .inner-circle svg {
        width: 64px;
        height: 64px;
    }

    .float-element {
        display: none;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: left;
        padding-left: 48px;
    }

    .timeline-content {
        width: 100%;
    }

    /* Mobile toggle - show on small screens */
    .mobile-toggle {
        display: flex !important;
        min-height: 44px;
        min-width: 44px;
    }

    /* Improved mobile scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Better focus states for accessibility */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    /* Prevent text size adjustment on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-title br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    /* 紧急求助热线区域手机适配 */
    .emergency-bar {
        padding: 16px;
        border-radius: 12px;
    }

    .emergency-header {
        flex-direction: column;
        gap: 12px;
    }

    .em-content {
        min-width: 100%;
    }

    .em-phones {
        width: 100%;
        justify-content: flex-start;
    }

    .em-phone {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .hotline-toggle {
        font-size: 0.82rem;
        padding: 12px 16px;
    }

    .hotline-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hotline-item {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
}

/* ============================================
   首页紧急求助热线区域（emergency-bar）
   ============================================ */
.emergency-bar {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f6 100%);
    border: 1px solid rgba(225,29,72,0.12);
    border-radius: 16px;
    padding: 24px;
}

.emergency-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.emergency-header svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.em-content {
    flex: 1;
    min-width: 200px;
}

.em-content h4 {
    font-size: 0.95rem;
    color: #C53030;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.em-content p {
    font-size: 0.8rem;
    color: #9B2C2C;
    margin: 0;
    line-height: 1.5;
}

.em-phones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.em-phone {
    font-size: 0.8rem;
    color: #C53030;
    text-decoration: none;
    padding: 4px 10px;
    background: rgba(225,29,72,0.08);
    border-radius: 6px;
    white-space: nowrap;
}

.em-phone:hover {
    background: rgba(225,29,72,0.15);
}

/* 热线列表展开按钮 */
.hotline-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    margin-top: 8px;
}

.hotline-toggle:hover {
    background: linear-gradient(135deg, #be123c, #9f1239);
    box-shadow: 0 4px 12px rgba(225,29,72,0.3);
}

.hotline-toggle svg {
    width: 18px;
    height: 18px;
    transition: opacity 0.2s ease;
}

.hotline-toggle.active svg {
    opacity: 0.7;
}

/* 热线列表 - 默认隐藏，checkbox选中时显示 */
.hotline-list {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(225,29,72,0.1);
}

/* checkbox被选中时显示热线列表 */
#hotlineToggle:checked ~ .hotline-list {
    display: block;
}

/* checkbox被选中时按钮高亮 */
#hotlineToggle:checked + label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#hotlineToggle:checked + label svg {
    opacity: 0.7;
}
