/* 有机/自然简约美学风格 - 言语治疗网站 */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Nunito:wght@300;400;600;700&display=swap');

:root {
    /* 自然色系调色板 */
    --primary: #6B8E78;           /* 鼠尾草绿 - 平静、治愈 */
    --primary-dark: #3A5A48;      /* 森林绿 - 专业、稳重 (优化更深) */
    --primary-light: #E8F3E8;     /* 浅绿 - 生机 */
    
    --secondary: #E8DCC4;         /* 暖沙色 - 温暖、包容 */
    --secondary-light: #FDF6E3;   /* 米白 - 柔和 */
    
    --accent: #D48C70;            /* 陶土红 - 活力、行动 */
    --accent-hover: #B56E55;
    
    --bg-body: #F9F7F2;           /* 纸张白 - 舒适 */
    --bg-white: #FFFFFF;
    
    --text-primary: #2D3A3A;      /* 深岩灰 - 清晰 */
    --text-secondary: #667070;    /* 灰绿 - 辅助 */
    --text-light: #8A9A9A;
    
    --shadow-sm: 0 4px 12px rgba(107, 142, 120, 0.08);
    --shadow-md: 0 12px 24px rgba(107, 142, 120, 0.12);
    --shadow-lg: 0 20px 40px rgba(107, 142, 120, 0.15);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-organic: 60% 40% 30% 70% / 60% 30% 70% 40%; /* 有机圆角 */
}

/* 纸张纹理效果 */
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    line-height: 1.8;
    padding-top: 80px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

/* 优化排版层级 */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
p.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 400; color: var(--text-secondary); }

/* 导航栏 - 磨砂玻璃质感升级 */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-dark) !important;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary) !important;
    margin: 0 0.8rem;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color 0.3s ease;
}

/* 链接下划线动效 - 生长效果 */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover { color: var(--primary-dark) !important; }
.nav-link:hover::after { width: 100%; }

/* 通用版块间距 - 增加呼吸感 */
.section-padding {
    padding: 5rem 0;
}

/* 英雄区域 - 增强有机感 */
.hero {
    background: radial-gradient(circle at top right, var(--primary-light) 0%, var(--bg-body) 60%);
    padding: 7rem 0 5rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative;
    overflow: hidden;
}

/* 装饰性背景元素 */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--secondary-light) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
    filter: blur(60px);
}

.hero .container { position: relative; z-index: 1; }

.hero-image {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border-radius: var(--radius-organic);
    box-shadow: var(--shadow-lg);
    border: 8px solid rgba(255, 255, 255, 0.8);
    animation: organic-float 10s ease-in-out infinite;
    transition: border-radius 0.5s ease;
}

@keyframes organic-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% { 
        transform: translateY(-15px) rotate(2deg); 
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    }
}

/* 按钮样式 - 磁性吸附感 */
.btn {
    border-radius: 50px;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(107, 142, 120, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 108, 88, 0.4);
}

.btn-primary:hover::before { transform: translateX(100%); }

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

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(212, 140, 112, 0.4);
}

/* 标题装饰 */
.section-title {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 2rem auto 0;
    border-radius: 2px;
    opacity: 0.8;
}

/* 卡片样式 - 玻璃拟态与深度 */
.card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1rem; /* 增加额外的内边距 */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background: #fff;
    border-color: transparent;
}

.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    color: var(--primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 2rem;
    transition: all 0.5s ease;
    box-shadow: inset 0 0 20px rgba(107, 142, 120, 0.1);
}

.card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotate(10deg) scale(1.1);
    border-radius: 50%;
}

.highlight-box {
    background: rgba(232, 243, 232, 0.6);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2.5rem 0;
    backdrop-filter: blur(5px);
}

.highlight-text {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-dark);
    line-height: 1.8;
}

/* 治疗方法 - 连接感 */
.method-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-top: 5px solid var(--primary);
}

.method-card:hover { transform: translateY(-5px); }

.method-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* 价格标签 */
.price-tag {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--accent);
    display: block;
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

/* 表单优化 */
.contact-form {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.form-control, .form-select {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    background-color: #fafafa;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(107, 142, 120, 0.1);
}

/* 轮播组件 - 沉浸式 */
.carousel {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 4rem;
    border: 8px solid #fff;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(20, 30, 25, 0.9), transparent);
    padding: 4rem 2rem 2rem;
}

/* 页脚 - 极简主义 */
.footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    font-weight: 300;
}

.footer h5 { color: #fff; font-weight: 600; letter-spacing: 0.05em; }
.footer a { color: var(--secondary); transition: opacity 0.3s; }
.footer a:hover { color: #fff; opacity: 1; text-decoration: none; }

/* 响应式微调 */
@media (max-width: 768px) {
    .section-padding { padding: 6rem 0; }
    .hero { padding: 8rem 0 5rem; }
    .hero-image { width: 260px; height: 260px; }
    .contact-form { padding: 2.5rem 2rem; }
    .price-tag { font-size: 2.2rem; }
}

/* --- 动画与视觉增强 (Added by Frontend Design) --- */

/* 滚动揭示动画 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 错峰显示 */
.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* 波浪分隔符 - 柔和过渡 */
.wave-separator {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-separator svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-separator.top {
    top: -1px; /* 消除缝隙 */
    transform: rotate(180deg);
}

.wave-separator.bottom {
    bottom: -1px;
}

.wave-fill {
    fill: var(--bg-body);
}

/* 强调文字的高亮笔触效果 */
.highlight-marker {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-marker::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -2px;
    width: 100%;
    height: 8px;
    background-color: rgba(232, 220, 196, 0.6); /* secondary color transparent */
    z-index: -1;
    transform: skewX(-10deg) rotate(-1deg);
    border-radius: 4px;
}