/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根字体大小变量 */
:root {
    --base-font-size: 18px;
    --primary-color: #FF8C42;
    --secondary-color: #7FB069;
    --accent-color: #FFB347;
    --background-color: #FFF8F0;
    --text-color: #333333;
    --light-text: #666666;
    --border-color: #E5E5E5;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--base-font-size);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

/* 字体大小控制类 */
.font-small {
    --base-font-size: 16px;
}

.font-large {
    --base-font-size: 22px;
}

.font-extra-large {
    --base-font-size: 26px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.font-size-controls {
    display: flex;
    gap: 10px;
}

.font-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: var(--transition);
}

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

/* 首页区域样式 */
.hero-section {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE4B5 100%);
    padding: 120px 0 80px;
    margin-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.hero-description {
    font-size: 20px;
    color: var(--light-text);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

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

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 16px;
    color: var(--light-text);
    margin-top: 8px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #E67A35;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 140, 66, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* 区域标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 22px;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* 基础知识区域样式 */
.knowledge-section {
    padding: 80px 0;
    background: white;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.knowledge-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-content {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.8;
}

/* 常见问题区域样式 */
.problems-section {
    padding: 80px 0;
    background: var(--background-color);
}

.problems-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-panel {
    display: none;
    padding: 40px;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.problem-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.problem-text h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.problem-text p {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.problem-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.problem-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* 调适方法区域样式 */
.methods-section {
    padding: 80px 0;
    background: white;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.method-card {
    background: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.method-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.method-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.method-description {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 20px;
}

.method-steps h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.method-steps ol {
    padding-left: 20px;
}

.method-steps li {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 互动练习区域样式 */
.interactive-section {
    background: var(--background-color);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.interactive-title {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.breathing-exercise {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.breathing-circle {
    width: 200px;
    height: 200px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 4s ease-in-out;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(255, 179, 71, 0.1));
}

.breathing-circle.inhale {
    transform: scale(1.3);
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.3), rgba(255, 179, 71, 0.3));
}

.breathing-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.breathing-btn {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.breathing-btn:hover {
    background: #E67A35;
    transform: translateY(-2px);
}

.breathing-instruction {
    font-size: 16px;
    color: var(--light-text);
    max-width: 400px;
}

/* 家庭支持区域样式 */
.family-section {
    padding: 80px 0;
    background: var(--background-color);
}

.family-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.family-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tip-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tip-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.tip-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tip-content {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.7;
}

.family-checklist {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
}

.checklist-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.checklist-item label {
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1.5;
}

/* 专业资源区域样式 */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    font-size: 32px;
    margin-top: 5px;
}

.contact-details h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-details p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-details span {
    font-size: 16px;
    color: var(--light-text);
}

.professional-products {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 40px;
    border-radius: var(--border-radius);
    color: white;
    text-align: center;
}

.products-title {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.products-description {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
    opacity: 0.95;
}

.products-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
}

.feature-icon {
    font-size: 18px;
}

.products-btn {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    transition: var(--transition);
}

.products-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #333333, #555555);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-description {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-contact li {
    font-size: 16px;
    opacity: 0.9;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 16px;
    opacity: 0.8;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #E67A35;
    transform: translateY(-3px);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .problem-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .family-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .family-tips {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .breathing-circle {
        width: 150px;
        height: 150px;
    }
    
    .breathing-text {
        font-size: 16px;
    }
}

