/* ============================================
   燃爱心理 - 情感咨询机构单页网站
   设计：温暖、专业、可信任
   ============================================ */

/* --- 变量 --- */
:root {
    --primary: #e85d75;
    --primary-dark: #d44a62;
    --primary-light: #fde8ec;
    --accent: #f0975c;
    --bg: #fff;
    --bg-light: #fdf8f8;
    --bg-warm: #faf5f2;
    --text: #3d2c2c;
    --text-light: #7a6a6a;
    --text-muted: #a89494;
    --border: #f0e4e4;
    --shadow: 0 4px 24px rgba(180, 120, 120, 0.12);
    --shadow-lg: 0 12px 48px rgba(180, 120, 120, 0.18);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --container: 1160px;
}

/* --- 基础重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

/* --- 导航 --- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: all var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }
.header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 20px; font-weight: 700; color: var(--primary);
}
.logo svg { flex-shrink: 0; }
.nav { display: flex; gap: 4px; }
.nav a {
    padding: 8px 18px; border-radius: 20px; font-size: 15px;
    color: var(--text-light); transition: all var(--transition);
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-light); }

/* 微信按钮 */
.nav-btn-wechat {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 22px; border-radius: 24px;
    font-size: 14px; font-weight: 600;
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: #fff !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.25);
    margin-left: 6px; white-space: nowrap;
}
.nav-btn-wechat svg { flex-shrink: 0; transition: color 0.3s ease; }
.nav-btn-wechat:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 93, 117, 0.35);
    color: var(--primary) !important;
    background: var(--primary-light);
}

.hamburger {
    display: none; flex-direction: column; align-items: center;
    justify-content: center; gap: 5px;
    background: var(--primary-light); width: 40px; height: 40px;
    border-radius: 50%; padding: 0; border: none; cursor: pointer;
    z-index: 110; transition: all var(--transition);
}
.hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: all 0.3s ease; transform-origin: center;
}
/* 汉堡打开 → 变成 X */
.hamburger.open { background: var(--primary); }
.hamburger.open span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger { display: flex; }

    /* 遮罩层 */
    .nav-overlay {
        position: fixed; inset: 0; z-index: 98;
        background: rgba(0,0,0,0.35);
        opacity: 0; visibility: hidden;
        transition: all 0.35s ease;
    }
    .nav-overlay.show { opacity: 1; visibility: visible; }

    .nav {
        position: fixed; top: 0; right: 0;
        width: 280px; max-width: 80vw; height: 100vh; height: 100dvh;
        background: #fff;
        flex-direction: column;
        align-items: stretch; justify-content: flex-start;
        gap: 0; padding: 88px 0 32px;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 32px rgba(0,0,0,0.12);
        z-index: 99; overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav.open { transform: translateX(0); }

    /* 菜单标题 */
    .nav::before {
        content: '导航菜单';
        position: absolute; top: 28px; left: 28px;
        font-size: 13px; font-weight: 600; color: var(--text-muted);
        letter-spacing: 2px; text-transform: uppercase;
    }

    .nav a {
        font-size: 16px; padding: 14px 28px; border-radius: 0;
        color: var(--text); font-weight: 500;
        border-bottom: 1px solid var(--border);
        transition: all 0.2s ease;
    }
    .nav a:last-of-type { border-bottom: none; }
    .nav a:hover, .nav a.active {
        color: var(--primary); background: var(--bg-light);
        padding-left: 34px;
    }

    /* 微信按钮 - 移动端 */
    .nav-btn-wechat {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        margin: 20px 24px 0; padding: 14px 0; border-radius: 12px;
        font-size: 16px; font-weight: 600;
        background: linear-gradient(135deg, #07c160, #06ad56) !important;
        color: #fff !important;
        box-shadow: 0 4px 16px rgba(7, 193, 96, 0.3);
        border-bottom: none !important;
    }
    .nav-btn-wechat:hover {
        color: var(--primary) !important;
        background: var(--primary-light) !important;
        box-shadow: 0 4px 16px rgba(232, 93, 117, 0.3);
        padding-left: 0 !important;
    }
    .nav-btn-wechat svg { width: 22px; height: 22px; }
}

/* --- Hero --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #fff5f5 0%, #fdf0f3 30%, #fef8f6 60%, #fff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
}
.orb-1 { width: 400px; height: 400px; background: #fde0e6; top: -100px; right: -100px; }
.orb-2 { width: 300px; height: 300px; background: #ffe8d6; bottom: 10%; left: 5%; }
.orb-3 { width: 200px; height: 200px; background: #ffd4d4; top: 40%; left: 40%; }

.hero .container {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 60px; padding-top: 72px;
}
.hero-content { position: relative; z-index: 1; }
.hero-subtitle {
    display: inline-block; font-size: 14px; color: var(--primary);
    background: var(--primary-light); padding: 6px 16px;
    border-radius: 20px; margin-bottom: 20px; letter-spacing: 1px;
}
.hero-title {
    font-size: 48px; font-weight: 800; line-height: 1.25;
    color: #2d1a1a; margin-bottom: 20px; letter-spacing: -1px;
}
.hero-desc {
    font-size: 17px; color: var(--text-light); margin-bottom: 36px;
    line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 30px; font-size: 16px;
    font-weight: 600; transition: all var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 4px 16px rgba(232,93,117,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,93,117,0.45); }
.btn-outline {
    border: 2px solid var(--primary); color: var(--primary); background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

.hero-visual {
    position: relative; z-index: 1; display: flex;
    flex-direction: column; align-items: flex-end; gap: 16px;
}
.hero-card {
    width: 200px; height: 120px; background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px); border-radius: var(--radius);
    box-shadow: var(--shadow); display: flex;
    align-items: center; justify-content: center;
    transition: transform var(--transition);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card.offset { align-self: flex-start; }
.hero-card-inner {
    text-align: center; color: var(--primary);
}
.hero-card-inner svg { margin: 0 auto 8px; }
.hero-card-inner span { font-size: 13px; font-weight: 600; color: var(--text-light); }

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 50px; border: 2px solid var(--border);
    border-radius: 15px; display: flex; justify-content: center; padding-top: 10px;
}
.scroll-indicator span {
    width: 4px; height: 10px; background: var(--primary);
    border-radius: 2px; animation: scrollAnim 2s ease infinite;
}
@keyframes scrollAnim {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 15px; }
    .hero-btns { justify-content: center; }
    .hero-visual { flex-direction: row; justify-content: center; flex-wrap: wrap; }
    .hero-card { width: 140px; height: 100px; }
    .hero-card.offset { align-self: auto; }
}

/* --- 动画 --- */
.fade-up {
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- 区域标题 --- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; font-size: 12px; font-weight: 700;
    letter-spacing: 3px; color: var(--primary);
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: 36px; font-weight: 700; color: #2d1a1a; margin-bottom: 12px;
}
.section-desc { font-size: 16px; color: var(--text-light); max-width: 500px; margin: 0 auto; }
@media (max-width: 768px) { .section-header h2 { font-size: 28px; } }

/* --- 关于我们 --- */
.about { background: var(--bg-light); }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.about-text p {
    font-size: 15px; color: var(--text-light); margin-bottom: 16px; line-height: 1.9;
}
.about-text strong { color: var(--primary); font-weight: 600; }
.about-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.stat-item {
    background: #fff; border-radius: var(--radius); padding: 28px 20px;
    text-align: center; box-shadow: var(--shadow); transition: transform var(--transition);
}
.stat-item:hover { transform: translateY(-4px); }
.stat-num {
    display: block; font-size: 40px; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1.2;
}
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 4px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- 核心服务 --- */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
    background: #fff; border-radius: var(--radius); padding: 36px 28px;
    box-shadow: var(--shadow); transition: all var(--transition);
    border: 1px solid transparent; text-align: center; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0); transform-origin: center; transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg);
    border-color: #fde0e6;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    background: var(--primary-light); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.service-icon svg { width: 36px; height: 36px; }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #2d1a1a; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }

/* --- 优势 --- */
.advantages { background: var(--bg-warm); }
.advantages-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.advantage-item {
    background: #fff; border-radius: var(--radius); padding: 32px 28px;
    box-shadow: var(--shadow); transition: transform var(--transition);
}
.advantage-item:hover { transform: translateY(-4px); }
.advantage-num {
    font-size: 40px; font-weight: 800; color: var(--primary);
    opacity: 0.2; line-height: 1; margin-bottom: 8px;
}
.advantage-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #2d1a1a; }
.advantage-item p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
@media (max-width: 768px) { .advantages-grid { grid-template-columns: 1fr; } }

/* --- 流程 --- */
.process { background: var(--bg-light); }
.process-steps {
    display: flex; align-items: flex-start; justify-content: center; gap: 0;
    position: relative;
}
.process-steps::before {
    content: ''; position: absolute; top: 38px; left: 10%; right: 10%;
    height: 2px; background: var(--border); z-index: 0;
}
.step {
    flex: 1; text-align: center; position: relative; z-index: 1;
    padding: 0 12px;
}
.step-circle {
    width: 76px; height: 76px; border-radius: 50%;
    background: #fff; border: 3px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 28px; font-weight: 800;
    color: var(--primary); box-shadow: 0 0 0 8px var(--primary-light);
}
.step h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: #2d1a1a; }
.step p { font-size: 13px; color: var(--text-light); }
.step-arrow {
    font-size: 28px; color: var(--primary); padding: 22px 8px 0;
    font-weight: 300; flex-shrink: 0;
}
.process-note {
    margin-top: 40px; text-align: center; display: flex;
    align-items: center; justify-content: center; gap: 8px;
    color: var(--primary); font-size: 14px; font-weight: 500;
}
@media (max-width: 768px) {
    .process-steps { flex-direction: column; align-items: center; gap: 24px; }
    .process-steps::before { display: none; }
    .step-arrow { transform: rotate(90deg); padding: 0; }
}

/* --- 联系我们 --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex; align-items: flex-start; gap: 16px;
    background: var(--bg-warm); border-radius: var(--radius);
    padding: 20px 24px; transition: transform var(--transition);
}
.contact-item:hover { transform: translateX(4px); }
.contact-icon {
    flex-shrink: 0; width: 48px; height: 48px;
    background: var(--primary-light); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.contact-label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.contact-value {
    font-size: 16px; font-weight: 600; color: var(--text);
    word-break: break-all;
}
a.contact-value:hover { color: var(--primary); }

.contact-form {
    background: #fff; border-radius: var(--radius);
    padding: 36px 32px; box-shadow: var(--shadow-lg);
}
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #2d1a1a; }
.contact-form > p { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 14px;
    font-size: 15px; outline: none; transition: border-color var(--transition);
    background: var(--bg-light);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--primary); background: #fff; }
.contact-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a89494' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form button { margin-top: 6px; }

@media (max-width: 768px) { .contact-wrapper { grid-template-columns: 1fr; } }

/* --- 底部 --- */
.footer { background: #2d1a1a; color: rgba(255,255,255,0.75); padding: 60px 0 24px; }
.footer-top {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-links a {
    display: block; font-size: 14px; padding: 4px 0;
    color: rgba(255,255,255,0.6); transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-contact p { font-size: 14px; line-height: 2; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
    text-align: center; font-size: 13px;
}
.footer-bottom p { margin-bottom: 4px; }
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* --- 表单提交反馈 --- */
.form-success {
    text-align: center; padding: 40px 20px; display: none;
}
.form-success.show { display: block; }
.form-success svg { width: 60px; height: 60px; margin: 0 auto 16px; color: #4caf50; }
.form-success h3 { font-size: 20px; color: #2d1a1a; margin-bottom: 6px; }
.form-success p { color: var(--text-light); font-size: 14px; }
