/* ===== Reset & Variables ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 中式色系 */
    --primary: #B8423A;
    --primary-dark: #8B2E28;
    --primary-light: #D4695F;
    --gold: #C9A84C;
    --gold-light: #E8D5A3;
    --gold-dark: #8B6914;

    /* 辅助色 */
    --green: #4A8B6F;
    --brown: #8B6F4A;
    --red: #C0392B;
    --blue: #4A708B;
    --purple: #7B5EA8;
    --teal: #3D8B7E;

    /* 中性色 */
    --bg: #F9F6F1;
    --bg-alt: #F2EDE4;
    --bg-card: #FFFFFF;
    --text: #2C2416;
    --text-secondary: #6B5E4A;
    --text-muted: #A8957A;
    --border: #E5DED3;
    --shadow: 0 2px 16px rgba(44, 36, 22, 0.06);
    --shadow-lg: 0 8px 40px rgba(44, 36, 22, 0.1);

    /* 圆角 */
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* 字体 */
    --font-heading: 'PingFang SC', 'Noto Serif SC', 'STSong', 'Songti SC', serif;
    --font-body: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

    /* 安全区域 */
    --safe-bottom: env(safe-area-inset-bottom, 16px);
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(72px + var(--safe-bottom));
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== 顶部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 100;
    background: rgba(249, 246, 241, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(44, 36, 22, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    height: 52px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 101;
}

.logo-icon {
    width: 180px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
}

.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 16px 40px;
    gap: 2px;
    transform: translateX(calc(100% + 20px));
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
    z-index: 100;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    display: flex;
    overflow-y: auto;
}

.nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

/* 顶部直达链接（首页） */
.nav-links > a {
    padding: 14px 12px;
    font-size: 16px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    font-weight: 500;
    display: block;
}

.nav-links > a.active,
.nav-links > a:hover {
    color: var(--primary);
    background: rgba(184, 66, 58, 0.06);
}

/* 导航分组 */
.nav-group {
    display: flex;
    flex-direction: column;
}

/* 父级菜单按钮 */
.nav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    font-family: inherit;
}

.nav-parent:hover,
.nav-parent.active {
    color: var(--primary);
    background: rgba(184, 66, 58, 0.06);
}

/* 展开箭头 */
.nav-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.nav-group.expanded .nav-chevron {
    transform: rotate(180deg);
}

.nav-group.expanded .nav-parent {
    color: var(--primary);
}

/* 子菜单 */
.nav-sub {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
}

.nav-group.expanded .nav-sub {
    grid-template-rows: 1fr;
}

.nav-sub-inner {
    min-height: 0;
}

.nav-sub-link {
    display: block;
    padding: 10px 12px 10px 32px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all 0.25s;
    font-weight: 400;
    position: relative;
}

.nav-sub-link::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.25s;
}

.nav-sub-link:hover,
.nav-sub-link.active {
    color: var(--primary);
    background: rgba(184, 66, 58, 0.04);
}

.nav-sub-link:hover::before,
.nav-sub-link.active::before {
    background: var(--primary);
}

/* 头部操作区 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 101;
}

/* 搜索按钮 */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.search-toggle:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.search-toggle.active {
    background: var(--primary);
    color: #fff;
}

/* 搜索面板 */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    z-index: 99;
}

.search-panel.open {
    max-height: 480px;
}

.search-panel-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 20px 28px;
}

/* 搜索输入框 */
.search-box {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 4px 4px 4px 18px;
    background: var(--bg);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 66, 58, 0.08);
}

.search-box-icon {
    flex-shrink: 0;
    color: var(--text-muted);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    flex-shrink: 0;
    padding: 9px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s;
    font-family: inherit;
}

.search-submit:hover {
    background: var(--primary-dark);
}

/* 热门搜索 */
.search-hot {
    margin-top: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
}

.search-hot-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.search-hot-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
}

.search-hot-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.search-hot-list li:hover {
    color: var(--primary);
}

.hot-icon {
    font-size: 14px;
    line-height: 1;
}

/* 汉堡菜单 */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero 主视觉 ===== */
.hero {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 70px 0 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, #FAF7F0 0%, #F2EDE2 40%, #EDE4D3 100%);
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.c1 {
    width: 340px;
    height: 340px;
    background: var(--primary);
    top: -80px;
    right: -100px;
    animation: floatCircle 8s ease-in-out infinite;
}

.c2 {
    width: 220px;
    height: 220px;
    background: var(--gold);
    bottom: 10%;
    left: -60px;
    animation: floatCircle 10s ease-in-out infinite reverse;
}

.c3 {
    width: 160px;
    height: 160px;
    background: var(--green);
    top: 40%;
    left: 50%;
    animation: floatCircle 12s ease-in-out infinite;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

.ink-wash {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 60% at 20% 80%, rgba(74, 139, 111, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 380px;
    padding: 20px 0 60px;
}

.hero-badge {
    display: inline-block;
    background: rgba(184, 66, 58, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.text-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #D4AF37 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Hero 幻灯 ===== */
.hero-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}

.hero-slides {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* 指示点 */
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(184, 66, 58, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.hero-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* 左右箭头 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    color: var(--text-secondary);
    transition: all 0.25s;
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.hero-arrow-left {
    left: 10px;
}

.hero-arrow-right {
    right: 10px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(184, 66, 58, 0.3);
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 16px rgba(184, 66, 58, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:active {
    background: rgba(184, 66, 58, 0.06);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    border-radius: var(--radius);
}

/* 动画 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 快捷服务入口（2×4 网格） ===== */
.quick-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 12px 12px;
    flex-shrink: 0;
}

.quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    border: 1px solid rgba(229, 222, 211, 0.5);
}

.quick-tile:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.quick-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-tile-icon svg {
    width: 24px;
    height: 24px;
}

/* 不同色系的图标底色（与图片风格对应） */
.qs-orange       { background: rgba(232, 138, 89, 0.18); color: #E07A3C; }
.qs-green        { background: rgba(74, 186, 130, 0.18); color: #2E9E66; }
.qs-red          { background: rgba(224, 90, 90, 0.18); color: #D84A4A; }
.qs-blue         { background: rgba(90, 138, 200, 0.18); color: #4A82C8; }
.qs-green-soft   { background: rgba(74, 186, 130, 0.15); color: #4ABA82; }
.qs-red-soft     { background: rgba(224, 90, 90, 0.15);  color: #E05A5A; }
.qs-blue-soft    { background: rgba(90, 138, 200, 0.15); color: #5A8AC8; }
.qs-orange-soft  { background: rgba(232, 138, 89, 0.15); color: #E08A4C; }

.quick-tile span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* ===== 公告滚动条 ===== */
.notice-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 12px 16px;
    margin: 4px 12px 14px;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229, 222, 211, 0.5);
}

.notice-bar .notice-icon {
    flex-shrink: 0;
    color: var(--primary);
    animation: pulse 1.6s ease-in-out infinite;
}

.notice-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.notice-marquee span {
    display: inline-block;
    color: var(--text);
    font-weight: 500;
    padding-left: 100%;
    animation: marquee 14s linear infinite;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== 通用 Section ===== */
.section {
    padding: 56px 16px 40px;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: rgba(184, 66, 58, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== 服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    border-radius: 0 0 3px 3px;
}

.service-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.service-card:active::after {
    transform: scaleX(1);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.icon-green  { background: rgba(74, 139, 111, 0.1); color: var(--green); }
.icon-brown  { background: rgba(139, 111, 74, 0.1); color: var(--brown); }
.icon-red    { background: rgba(192, 57, 43, 0.1); color: var(--red); }
.icon-blue   { background: rgba(74, 112, 139, 0.1); color: var(--blue); }
.icon-purple { background: rgba(123, 94, 168, 0.1); color: var(--purple); }
.icon-teal   { background: rgba(61, 139, 126, 0.1); color: var(--teal); }

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.service-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.card-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.25s;
}

.service-card:active .card-link {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 医生风采 — 名医团队 swiper ===== */
.doctors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    margin-bottom: 14px;
}

.doctors-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctors-title-wrap .title-bar {
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.doctors-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.04em;
}

.doctors-more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.doctors-more:active {
    color: var(--primary);
}

/* 药丸 tab */
.doctor-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.doctor-tabs::-webkit-scrollbar {
    display: none;
}

.doctor-tab {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-body);
    white-space: nowrap;
}

.doctor-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(184, 66, 58, 0.25);
}

.doctor-tab:active {
    transform: scale(0.96);
}

/* swiper 容器 */
.doctor-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}

.doctor-slides {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.doctor-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

/* 头像区域 */
.doctor-photo {
    position: relative;
    width: 100%;
    height: 410px;
    overflow: hidden;
    background: #f0ebe0;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder svg {
    width: 200px;
    height: 200px;
}

.photo-placeholder.d1 { background: linear-gradient(135deg, #F5EEE0, #EDE1CC); color: var(--brown); }
.photo-placeholder.d2 { background: linear-gradient(135deg, #F5EDED, #E8DADA); color: var(--red); }
.photo-placeholder.d3 { background: linear-gradient(135deg, #EEF3F5, #D8E3E8); color: var(--blue); }
.photo-placeholder.d4 { background: linear-gradient(135deg, #F2EDF7, #E2D7EE); color: var(--purple); }

/* 头像底部叠加层（医生姓名+职称） */
.doctor-name-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 20px 18px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: baseline;
    gap: 10px;
    pointer-events: none;
}

.doctor-name-overlay .name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.doctor-name-overlay .title-text {
    font-size: 13px;
    color: rgba(255,255,255,0.92);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* 左右箭头 */
.doctor-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s;
    z-index: 2;
}

.doctor-arrow:active {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(0.92);
}

.doctor-arrow-left {
    left: 10px;
}

.doctor-arrow-right {
    right: 10px;
}

/* 简介 + 专长 */
.doctor-desc {
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-card);
}

.doctor-desc p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.doctor-desc .desc-label {
    color: var(--text);
    font-weight: 700;
    margin-right: 2px;
}

/* 出诊时间表 */
.doctor-schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 14px;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-alt);
}

.schedule-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    flex-shrink: 0;
}

.schedule-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}

.schedule-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 11px;
}

.schedule-item .day {
    color: var(--text-muted);
    font-size: 10px;
}

.schedule-item .mark {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.schedule-item.on .mark {
    color: #E05A5A;
    font-size: 16px;
}

.time-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    border: 1px solid #E05A5A;
    border-radius: 3px;
    color: #E05A5A;
    font-size: 12px;
    line-height: 1.4;
}

/* 底部按钮 */
.doctor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-alt);
}

.doc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 42px;
    border-radius: 21px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    transition: all 0.2s;
}

.doc-btn-consult {
    background: linear-gradient(135deg, #4ABA82, #2E9E66);
    box-shadow: 0 3px 10px rgba(74, 186, 130, 0.3);
}

.doc-btn-book {
    background: linear-gradient(135deg, #E89259, #D87A3C);
    box-shadow: 0 3px 10px rgba(232, 138, 89, 0.3);
}

.doc-btn:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

/* ===== 预约表单 ===== */
.appointment-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 15px;
    font-family: var(--font-body);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: all 0.25s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 66, 58, 0.08);
    background: #fff;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border: 2px solid var(--text-muted);
    border-top: none;
    border-left: none;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

textarea {
    resize: vertical;
    min-height: 72px;
}

.btn-primary.btn-block svg {
    transition: transform 0.3s;
}

.btn-primary.btn-block:active svg {
    transform: translateX(4px);
}

/* ===== 养生知识 ===== */
.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tip-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tip-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tip-card.hidden {
    display: none;
}

.tip-img {
    height: 160px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px;
}

.tip-img-1 { background: linear-gradient(135deg, #7AC5A0, #4A8B6F); }
.tip-img-2 { background: linear-gradient(135deg, #E8B871, #C9A84C); }
.tip-img-3 { background: linear-gradient(135deg, #A8B8D0, #4A708B); }
.tip-img-4 { background: linear-gradient(135deg, #C4A4D0, #7B5EA7); }
.tip-img-5 { background: linear-gradient(135deg, #68C4AF, #3A7D6B); }
.tip-img-6 { background: linear-gradient(135deg, #F0B87A, #D4952B); }
.tip-img-7 { background: linear-gradient(135deg, #8EAFD0, #3A608B); }
.tip-img-8 { background: linear-gradient(135deg, #D4888E, #A34852); }
.tip-img-9 { background: linear-gradient(135deg, #F5D98E, #D4A838); }
.tip-img-10 { background: linear-gradient(135deg, #8EC8D4, #3A7582); }

.tip-category {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.25);
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.tip-body {
    padding: 16px;
}

.tip-body h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
    line-height: 1.4;
}

.tip-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.tip-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.center-btn {
    text-align: center;
    margin-top: 24px;
}

/* ===== 联系我们 ===== */
.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.contact-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.contact-row strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.contact-row p {
    font-size: 13px;
    color: var(--text-secondary);
}

.contact-map {
    height: 180px;
    background: var(--bg-alt);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #F0EBE0 0%, #E8E0D0 100%);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.map-placeholder:active {
    background: linear-gradient(135deg, #E8E0D0, #DDD3C0);
}

.map-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

/* ===== 底部 ===== */
.footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 28px 16px 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: var(--gold-light);
    font-size: 20px;
    display: block;
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 12px;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.qr-placeholder {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    overflow: hidden;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer-qr span {
    font-size: 11px;
}

.footer-bottom {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 11px;
}

/* ===== 底部导航栏 ===== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: calc(60px + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.2s;
}

.tab-item.active {
    color: var(--primary);
}

.tab-item svg {
    width: 22px;
    height: 22px;
}

.tab-center {
    position: relative;
}

.tab-center-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -20px;
    box-shadow: 0 4px 16px rgba(184, 66, 58, 0.35);
    transition: all 0.3s;
}

.tab-center-btn:active {
    transform: scale(0.92);
}

.tab-center-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    background: #fff;
    color: var(--green);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ===== 遮罩层 ===== */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ===== 回到顶部 ===== */
.back-to-top-wrap {
    position: fixed;
    bottom: calc(60px + var(--safe-bottom) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    pointer-events: none;
    z-index: 90;
}

.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.25s;
    box-shadow: 0 2px 12px rgba(184, 66, 58, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #a33a32;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184, 66, 58, 0.4);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ===== 响应式优化 ===== */
@media (max-width: 380px) {
    .hero-title { font-size: 30px; }
    .section-title { font-size: 22px; }
    .services-grid,
    .doctors-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .service-card { padding: 16px 12px; }

}

@media (min-width: 481px) {
    html {
        background: #E8E2D5;
    }
    body {
        box-shadow: 0 0 60px rgba(0,0,0,0.1);
    }
}



/* ===== 滚动进入动画 ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 脉冲点 ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ================================================================ */
/*  一、科室介绍 — 科室卡片                                        */
/* ================================================================ */
.dept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dept-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 14px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid transparent;
}

.dept-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.dept-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.dept-icon svg {
    width: 30px;
    height: 30px;
}

.dept-body h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.dept-body p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dept-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(184, 66, 58, 0.08);
    padding: 3px 10px;
    border-radius: 10px;
}

/* ================================================================ */
/*  三、诊疗项目 — 价格标签                                        */
/* ================================================================ */
.price-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(184, 66, 58, 0.08);
    padding: 2px 10px;
    border-radius: 10px;
}

/* ================================================================ */
/*  四、就医指南 — 流程步骤 + 实用卡片                            */
/* ================================================================ */
.guide-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.guide-step {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 14px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-step:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    position: absolute;
    top: 8px;
    right: 12px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: rgba(44, 36, 22, 0.06);
    line-height: 1;
}

.step-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 12px;
    background: rgba(184, 66, 58, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon svg {
    width: 26px;
    height: 26px;
}

.guide-step h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.guide-step p {
    font-size: 12px;
    color: var(--text-muted);
}

.guide-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guide-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
}

.guide-card:active {
    box-shadow: var(--shadow-lg);
}

.guide-card svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.guide-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.guide-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ================================================================ */
/*  五、健康资讯 — 分类标签                                        */
/* ================================================================ */
.news-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 0 16px;
}

.news-tab {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s;
    font-family: var(--font-body);
    white-space: nowrap;
}

.news-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.news-tab:active {
    transform: scale(0.96);
}

/* ================================================================ */
/*  六、患者服务 — 快捷入口 + 卡片标题                             */
/* ================================================================ */
.service-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.quick-item:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.quick-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-icon svg {
    width: 24px;
    height: 24px;
}

.q1 { background: rgba(184, 66, 58, 0.1); color: var(--primary); }
.q2 { background: rgba(74, 139, 111, 0.1); color: var(--green); }
.q3 { background: rgba(74, 112, 139, 0.1); color: var(--blue); }
.q4 { background: rgba(139, 111, 74, 0.1); color: var(--brown); }
.q5 { background: rgba(123, 94, 168, 0.1); color: var(--purple); }
.q6 { background: rgba(201, 168, 76, 0.1); color: var(--gold-dark); }

.quick-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.card-heading {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-alt);
}

/* ===== 响应式微调 ===== */
@media (max-width: 380px) {
    .dept-grid,
    .services-grid,
    .doctors-grid,
    .guide-steps {
        gap: 10px;
    }
    .dept-card {
        padding: 14px 10px;
    }
    .service-quick {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .quick-item {
        padding: 12px 6px;
    }
}
