/* ============================================
 * 蓝海智慧诊疗系统 · 官网样式
 * 主色：薄荷绿 #1bc488
 * 辅色：主蓝 #2b6df0
 * ============================================ */

:root {
    --lh-primary: #1bc488;
    --lh-primary-dark: #15a878;
    --lh-primary-light: #d5f4e3;
    --lh-blue: #2b6df0;
    --lh-blue-dark: #1f5cd0;
    --lh-text: #2c3e50;
    --lh-text-muted: #6b7c8c;
    --lh-bg: #ffffff;
    --lh-bg-soft: #eafaf2;
    --lh-border: #e5eef0;
    --lh-shadow: 0 8px 24px rgba(27, 196, 136, 0.08);
    --lh-radius: 10px;
    --lh-container: 1200px;
    --lh-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--lh-font);
    color: var(--lh-text);
    background: var(--lh-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

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

a:hover {
    color: var(--lh-primary);
}

ul {
    list-style: none;
}

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

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

/* ============================================
 * 顶部导航
 * ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--lh-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.brand-logo {
    width: 32px;
    height: 32px;
}

.brand-text {
    font-size: 18px;
    color: var(--lh-text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    color: var(--lh-text-muted);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--lh-primary);
}

.nav-link.active {
    color: var(--lh-primary);
    font-weight: 500;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--lh-primary);
    border-radius: 2px;
}

/* 汉堡菜单按钮（仅移动端可见） */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--lh-text);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle .bar + .bar {
    margin-top: 5px;
}

/* 汉堡打开时变成 X */
.nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
 * Hero 区
 * ============================================ */
.hero {
    position: relative;
    background: linear-gradient(180deg, #eafaf2 0%, #f7fcf9 35%, #ffffff 100%);
    padding: 90px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

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

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 40px;
    font-weight: 600;
    color: var(--lh-text);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--lh-text-muted);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 90px;
}

/* ============================================
 * 按钮
 * ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    height: 56px;
    padding: 0 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

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

.btn-ios {
    background: var(--lh-primary);
}

.btn-ios:hover {
    background: var(--lh-primary-dark);
}

.btn-android {
    background: var(--lh-blue);
}

.btn-android:hover {
    background: var(--lh-blue-dark);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
 * 特性卡片
 * ============================================ */
.feature-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--lh-border);
    border-radius: var(--lh-radius);
    padding: 26px 22px;
    text-align: center;
    box-shadow: var(--lh-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(27, 196, 136, 0.15);
}

.feature-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--lh-primary);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 13px;
    color: var(--lh-text-muted);
    line-height: 1.7;
}

/* ============================================
 * 页脚
 * ============================================ */
.site-footer {
    border-top: 1px solid var(--lh-border);
    background: #ffffff;
    padding: 28px 0 30px;
}

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

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--lh-text-muted);
    font-size: 13px;
}

.footer-nav a {
    color: var(--lh-text-muted);
    padding: 0 6px;
}

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

.footer-sep {
    color: #c8d3dc;
}

.footer-icp {
    font-size: 12px;
    color: var(--lh-text-muted);
}

.footer-icp a {
    color: var(--lh-text-muted);
}

.footer-icp a:hover {
    color: var(--lh-primary);
}

/* ============================================
 * 次级页面（解决方案/商务合作/帮助中心/关于等）通用样式
 * ============================================ */
.page-main {
    min-height: calc(100vh - 64px - 130px);
    background: linear-gradient(180deg, #eafaf2 0%, #ffffff 100%);
    padding: 60px 0 80px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--lh-text);
    text-align: center;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 15px;
    color: var(--lh-text-muted);
    text-align: center;
    margin-bottom: 50px;
}

.page-content {
    max-width: 920px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    padding: 40px 48px;
    color: var(--lh-text);
    font-size: 15px;
    line-height: 1.9;
}

.page-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--lh-primary);
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 3px solid var(--lh-primary);
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    color: var(--lh-text);
    margin-bottom: 12px;
}

.page-content ul {
    padding-left: 22px;
    list-style: disc;
    margin-bottom: 14px;
}

.page-content ul li {
    margin-bottom: 6px;
    color: var(--lh-text);
}

.placeholder-banner {
    background: linear-gradient(135deg, #d5f4e3 0%, #eafaf2 100%);
    border-radius: var(--lh-radius);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lh-primary);
    font-size: 14px;
    margin-bottom: 24px;
    /* 临时使用网络占位图，详见 ASSETS.md */
    background-image: url("https://placehold.co/920x200/d5f4e3/1bc488?text=Banner+Placeholder");
    background-size: cover;
    background-position: center;
}

/* ============================================
 * 响应式 · 平板端 ≤ 960px
 * ============================================ */
@media (max-width: 960px) {
    .hero {
        padding: 60px 0 60px;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        max-width: 520px;
        margin-bottom: 38px;
    }

    .feature-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 620px;
    }

    .hero-actions {
        margin-bottom: 60px;
    }

    .page-content {
        padding: 32px 28px;
    }
}

/* ============================================
 * 响应式 · 小平板 / 大手机 ≤ 768px（汉堡菜单介入）
 * ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* --- 导航变汉堡 --- */
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        background: #ffffff;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s;
        z-index: 100;
    }

    .site-nav.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 18px;
        font-weight: 500;
        padding: 8px 0;
    }

    .nav-link.active::after {
        bottom: -2px;
        width: 28px;
    }

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

    .hero-title {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 14px;
        max-width: 100%;
        padding: 0 8px;
        margin-bottom: 32px;
    }

    .hero-actions {
        margin-bottom: 48px;
    }

    /* --- 特性卡片 --- */
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-title {
        font-size: 16px;
    }

    /* --- 次级页面 --- */
    .page-main {
        padding: 40px 0 60px;
    }

    .page-title {
        font-size: 26px;
    }

    .page-content {
        padding: 24px 20px;
        font-size: 14px;
    }

    .placeholder-banner {
        height: 140px;
    }
}

/* ============================================
 * 响应式 · 手机端 ≤ 640px
 * ============================================ */
@media (max-width: 640px) {
    .brand-text {
        font-size: 16px;
    }

    .hero {
        padding: 36px 0 44px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-bottom: 40px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        height: 52px;
        font-size: 15px;
        padding: 0 24px;
    }

    .feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 16px 12px;
    }

    .feature-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .feature-desc {
        font-size: 12px;
    }

    /* --- 页脚 --- */
    .site-footer {
        padding: 22px 0 24px;
    }

    .footer-nav {
        font-size: 12px;
        gap: 4px;
    }

    .footer-nav a {
        padding: 0 4px;
    }

    .footer-sep {
        display: none;
    }

    .footer-icp {
        font-size: 11px;
    }

    /* --- 次级页 --- */
    .page-main {
        padding: 30px 0 50px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .page-content {
        padding: 20px 16px;
        border-radius: 8px;
        font-size: 14px;
    }

    .page-content h2 {
        font-size: 17px;
    }

    .placeholder-banner {
        height: 120px;
        border-radius: 8px;
    }
}

/* ============================================
 * 响应式 · 小手机 ≤ 480px
 * ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header-inner {
        height: 56px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .brand-text {
        font-size: 15px;
    }

    .hero {
        padding: 28px 0 36px;
    }

    .hero-title {
        font-size: 22px;
        letter-spacing: 0;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 1.65;
        margin-bottom: 24px;
    }

    .hero-actions {
        gap: 12px;
        margin-bottom: 32px;
    }

    .btn {
        max-width: 260px;
        height: 50px;
        font-size: 15px;
        border-radius: 10px;
    }

    .feature-list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 14px 10px;
        border-radius: 8px;
    }

    .feature-title {
        font-size: 14px;
    }

    .feature-desc {
        font-size: 11px;
        line-height: 1.5;
    }

    /* 次级页 */
    .page-content {
        padding: 16px 14px;
        font-size: 13px;
        line-height: 1.7;
    }

    .page-content h2 {
        font-size: 16px;
        padding-left: 8px;
    }

    .placeholder-banner {
        height: 100px;
    }
}

/* ============================================
 * 响应式 · 极小屏 ≤ 375px
 * ============================================ */
@media (max-width: 375px) {
    .brand-text {
        font-size: 14px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 12px;
        padding: 0 4px;
    }

    .btn {
        max-width: 240px;
        height: 48px;
        font-size: 14px;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 14px 16px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-content h2 {
        font-size: 15px;
    }
}
