/* Star Momcare PC Website Stylesheet - Redesigned Design System */

/* ==========================================
   1. Design System & CSS Variables
   ========================================== */
:root {
    /* Brand Palette */
    --primary: #c81042;            /* 品牌红 */
    --primary-hover: #aa0c36;      /* 深红悬停 */
    --primary-light: #e01a4f;      /* 高亮红 */
    
    --secondary: #FFB6C1;          /* 浅粉红 */
    --secondary-soft: #FADADD;     /* 更柔和粉 */
    --secondary-container: #FADADD;/* 辅助色容器 */
    
    --background: #FFF5F0;         /* 米白色背景 */
    --surface: #FFF5F0;            /* 页面表面 */
    --surface-card: #ffffff;       /* 卡片纯白背景 */
    --surface-low: #FFF0EB;        /* 柔和米粉背景 */
    --surface-high: #F8E8E2;       /* 底部与高亮区域背景 */
    
    --on-surface: #2b181d;         /* 主文字 (深红灰) */
    --on-surface-variant: #665257; /* 次要文字 */
    --outline: #FFB6C1;            /* 边框色 */
    --outline-light: rgba(200, 16, 66, 0.08); /* 极轻边框 */
    
    /* Typography */
    --font-primary: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-serif: 'Noto Serif SC', serif;
    
    /* Border Radius: 卡片 16px (12-16px范围), 按钮 胶囊型圆角 9999px */
    --radius-card: 16px;
    --radius-badge: 9999px;
    --radius-btn: 9999px;
    
    --container-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows - 极轻，接近平面 */
    --shadow-soft: 0 2px 8px rgba(200, 16, 66, 0.04);
    --shadow-medium: 0 4px 14px rgba(200, 16, 66, 0.06);
    --shadow-flat: 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* ==========================================
   2. Base Styles
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
    outline: none;
}

ul {
    list-style: none;
}

/* 线性扁平图标 */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

/* ==========================================
   3. Common Layout & Utilities
   ========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    width: 100%;
}

/* 模块之间留白充足 */
.py-section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .py-section {
        padding: 60px 0;
    }
}

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

.max-w-md {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Badge 标签 */
.badge {
    display: inline-block;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    border-radius: var(--radius-badge);
    text-transform: uppercase;
}

.badge-secondary {
    background-color: var(--secondary-soft);
    color: var(--primary);
    border: 1px solid var(--outline);
}

/* Section Header 标题系统 (加粗) */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--on-surface-variant);
    font-weight: 400;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 20px auto;
    border-radius: var(--radius-badge);
}

.link-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.link-more:hover {
    border-color: var(--primary);
}

.icon-arrow {
    font-size: 18px;
    transition: var(--transition-smooth);
}

.link-more:hover .icon-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 40px;
    }
    .section-title {
        font-size: 28px;
    }
}

/* ==========================================
   4. Buttons - 胶囊型圆角，红底白字
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--radius-btn); /* 胶囊型圆角 */
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-smooth);
    white-space: nowrap;
    border: none;
}

.btn-primary {
    background-color: var(--primary); /* 红底 */
    color: #ffffff;                   /* 白字 */
    box-shadow: 0 2px 10px rgba(200, 16, 66, 0.18);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(200, 16, 66, 0.28);
}

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

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

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-alt {
    background-color: var(--primary); /* 红底 */
    color: #ffffff;                   /* 白字 */
    border: 1.5px solid var(--primary);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-outline-alt:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-light {
    background-color: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--secondary-soft);
}

.btn-light:hover {
    background-color: var(--secondary-soft);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 38px;
    font-size: 16px;
}

.flex-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   5. Header & Navigation
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 245, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--outline-light);
    transition: var(--transition-smooth);
    padding: 16px 0;
}

.header.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 245, 240, 0.98);
    box-shadow: var(--shadow-soft);
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
}

.header.scrolled .logo img {
    height: 40px;
}

.nav-list {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--on-surface-variant);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
    border-radius: var(--radius-badge);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-menu {
    display: none;
    color: var(--primary);
}

.btn-menu span {
    font-size: 32px;
}

/* Responsive Nav styles */
@media (max-width: 768px) {
    .btn-appointment {
        display: none;
    }
    
    .btn-menu {
        display: block;
    }
    
    .nav-bar {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        box-shadow: var(--shadow-medium);
        padding: 24px;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--outline);
    }
    
    .header.scrolled .nav-bar {
        top: 64px;
    }
    
    .nav-bar.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-link::after {
        display: none;
    }
}

/* ==========================================
   6. Hero Section
   ========================================== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 560px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right, 
        rgba(255, 245, 240, 1) 0%, 
        rgba(255, 245, 240, 0.85) 40%, 
        rgba(255, 245, 240, 0.25) 70%, 
        rgba(255, 245, 240, 0) 100%
    );
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero-content {
    max-width: 620px;
}

.hero-content .badge {
    margin-bottom: 24px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800; /* 标题加粗 */
    line-height: 1.18;
    color: var(--on-surface);
    margin-bottom: 24px;
    font-family: var(--font-primary);
}

.hero-desc {
    font-size: 18px;
    color: var(--on-surface-variant);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.7;
}

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

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 110px 0 70px 0;
    }
    
    .hero-bg img {
        opacity: 0.25;
    }
    
    .hero-overlay {
        background: var(--background);
        opacity: 0.9;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 14px;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

/* ==========================================
   7. Brand Values Section - 极轻阴影与圆角卡片
   ========================================== */
.values-section {
    background-color: var(--background);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px; /* 留白充足 */
}

.value-card {
    background-color: var(--surface-card);
    padding: 44px 32px;
    border-radius: var(--radius-card); /* 16px圆角 */
    text-align: center;
    box-shadow: var(--shadow-soft); /* 极轻阴影 */
    border: 1px solid var(--outline-light);
    transition: var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-soft);
}

/* 线性扁平图标包裹器 */
.value-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-badge);
    background-color: var(--secondary-soft); /* 柔和浅粉底色 */
    color: var(--primary);                   /* 品牌红图标 */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    transition: var(--transition-smooth);
    border: 1px solid var(--secondary);
}

.value-card:hover .value-icon-wrapper {
    transform: scale(1.05);
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.text-icon {
    font-size: 30px;
}

.value-card-title {
    font-size: 20px;
    font-weight: 700; /* 标题加粗 */
    margin-bottom: 12px;
    color: var(--on-surface);
}

.value-card-desc {
    font-size: 14px;
    color: var(--on-surface-variant);
    line-height: 1.65;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .values-section {
        margin-top: 0;
    }
}

/* ==========================================
   8. Core Services Section
   ========================================== */
.services-section {
    background-color: var(--surface-low);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.service-card {
    background-color: var(--surface-card);
    border-radius: var(--radius-card); /* 16px圆角 */
    overflow: hidden;
    box-shadow: var(--shadow-soft);    /* 极轻阴影 */
    border: 1px solid var(--outline-light);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--secondary-soft);
}

.service-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 32px;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.accent-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 0 0 0 4px;
}

.service-card-title {
    font-size: 22px;
    font-weight: 700; /* 标题加粗 */
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card-desc {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
    line-height: 1.65;
    flex-grow: 1;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================
   9. CTA Section - 红底白字胶囊按钮
   ========================================== */
.cta-section {
    padding: 40px 24px;
}

.cta-banner {
    background-color: var(--primary); /* 品牌红 */
    border-radius: var(--radius-card);/* 统一 16px 圆角 */
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    gap: 40px;
    box-shadow: 0 4px 20px rgba(200, 16, 66, 0.2);
}

.cta-pattern {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(12deg) scale(1.5);
    width: 60%;
    height: 120%;
    opacity: 0.08;
    pointer-events: none;
}

.cta-pattern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-content {
    max-width: 580px;
    position: relative;
    z-index: 10;
}

.cta-title {
    font-size: 38px;
    font-weight: 700; /* 标题加粗 */
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.25;
}

.cta-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-action {
    position: relative;
    z-index: 10;
}

@media (max-width: 992px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-pattern {
        right: -20%;
        width: 100%;
    }
}

/* ==========================================
   10. Footer Section
   ========================================== */
.footer {
    background-color: var(--surface-high);
    padding: 80px 0 40px 0;
    border-top: 1px solid var(--outline);
}

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

.col-main {
    max-width: 400px;
}

.footer-logo {
    height: 44px;
    margin-bottom: 24px;
}

.footer-about {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin-bottom: 24px;
    line-height: 1.7;
}

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

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-badge);
    background-color: var(--surface-card);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--outline-light);
    box-shadow: var(--shadow-flat);
}

.social-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-col-title {
    font-size: 16px;
    font-weight: 700; /* 标题加粗 */
    color: var(--primary);
    margin-bottom: 24px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    font-size: 14px;
    color: var(--on-surface-variant);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--on-surface-variant);
    align-items: flex-start;
}

.contact-icon {
    color: var(--primary);
    font-size: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--outline);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 13px;
    color: var(--on-surface-variant);
}

.icp-links {
    font-size: 12px;
    color: var(--on-surface-variant);
    display: flex;
    gap: 16px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================
   11. Entrance Animations
   ========================================== */
.scroll-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0ms);
}

.scroll-anim.active {
    opacity: 1;
    transform: translateY(0);
}
