/* ========== 基础重置 & 变量 ========== */
:root {
    --primary: #1a73e8; --primary-dark: #0d5bbd; --primary-light: #e8f0fe;
    --accent: #00b894; --accent-light: #e6f9f4;
    --text-dark: #1a1a2e; --text-gray: #555; --text-light: #777;
    --bg-white: #ffffff; --bg-light: #f8fafc; --bg-gray: #f0f4f8;
    --border: #e2e8f0; --shadow: 0 2px 12px rgba(0,0,0,0.08); --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 12px; --radius-sm: 8px; --max-width: 1200px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text-dark); line-height: 1.6; background: var(--bg-white); overflow-x: hidden; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
main { display: block; }
.section { padding:10px 0; }
.section-alt { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-title p { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-title .line { width: 50px; height: 3px; background: linear-gradient(to right, var(--primary), var(--accent)); margin: 15px auto 0; border-radius: 3px; }
.btn { display: inline-block; padding: 12px 28px; border-radius: 30px; font-size: 15px; font-weight: 600; transition: 0.3s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-white { background: white; color: var(--primary); }
.btn-outline { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.6); }

/* ========== 通用辅助类 (提取自内联样式) ========== */
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.mb-8 { margin-bottom: 8px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.pad-20 { padding: 20px; }
.text-gray-lh { color: var(--text-gray); line-height: 1.8; margin-bottom: 15px; }
.text-gray-sm { font-size: 14px; color: var(--text-gray); }
.text-light-sm { font-size: 14px; color: var(--text-light); }
.text-light-sm-m { font-size: 14px; color: var(--text-light); margin: 10px 0; }
.text-light-xs { font-size: 13px; color: var(--text-light); }
.text-opacity { opacity: 0.9; }
.price-text { color: #ee5a24; font-weight: bold; }
.read-more-link { font-size: 13px; color: var(--primary); font-weight: 500; }
.card-desc { color: var(--text-light); font-size: 14px; margin-top: 8px; }
.contact-text { color: var(--text-gray); font-size: 15px; }
.list-disc-gray { padding-left: 20px; list-style: disc; color: var(--text-gray); margin-bottom: 30px; }
.list-disc-gray li { margin-bottom: 8px; }
.icon-center { margin: 0 auto 15px; }
.icon-lg { font-size: 40px; margin-bottom: 10px; }
.img-placeholder-lg { height: 300px; background: var(--bg-gray); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.timeline-wrapper { max-width: 800px; margin: 0 auto; }
.promo-title { font-size: 26px; margin-bottom: 10px; }
.table-note { text-align: center; margin-top: 15px; font-size: 13px; color: var(--text-light); }
.widget-no-border { border: none; padding: 0; }
.widget-text { font-size: 14px; margin: 15px 0; }
.btn-block { width: 100%; text-align: center; display: block; }
.card-no-pad { padding: 0; overflow: hidden; }
.label-accent { background: var(--accent); }
.page-banner-sm { padding: 40px 0; }

/* ========== 顶部导航 ========== */
.header { position: fixed; top: 0; left: 0; right: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); z-index: 1000; transition: 0.3s; }
.header.scrolled { box-shadow: 0 2px 15px rgba(0,0,0,0.1); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; z-index: 1001; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: bold; }
.logo-text { font-size: 20px; font-weight: 700; } .logo-text span { color: var(--primary); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--text-gray); font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-phone { color: var(--primary); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 30px; height: 30px; cursor: pointer; z-index: 1001; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text-dark); border-radius: 2px; transition: 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========== 内页通用 Banner ========== */
.page-banner { margin-top: 70px; padding: 60px 0; background: linear-gradient(135deg, #1a73e8 0%, #0097a7 100%); color: white; text-align: center; position: relative; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.page-banner h1 { font-size: 36px; margin-bottom: 10px; position: relative; z-index: 1; }
.page-banner p { opacity: 0.9; position: relative; z-index: 1; }
.breadcrumb { padding: 15px 0; font-size: 14px; color: var(--text-light); border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ========== 首页 Hero ========== */
.hero { margin-top: 70px; background: linear-gradient(135deg, #1a73e8 0%, #0d5bbd 50%, #0097a7 100%); padding: 80px 0; position: relative; overflow: hidden; }
.hero-content { display: flex; align-items: center; gap: 40px; position: relative; z-index: 1; }
.hero-text { flex: 1; color: white; }
.hero-text h1 { font-size: 42px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.hero-text p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; }
.hero-tags { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-tags span { background: rgba(255,255,255,0.15); padding: 8px 18px; border-radius: 25px; font-size: 14px; border: 1px solid rgba(255,255,255,0.2); }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image { flex: 0 0 400px; height: 350px; background: rgba(255,255,255,0.1); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: white; font-size: 80px; border: 2px solid rgba(255,255,255,0.2); }

/* ========== 通用卡片 & 网格 ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: white; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card-icon { width: 60px; height: 60px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 15px; }

/* ========== 关于页 ========== */
.timeline { position: relative; padding-left: 30px; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--primary-light); }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 20px; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; border: 3px solid var(--primary-light); }
.timeline-item h4 { color: var(--primary); margin-bottom: 5px; }
.advantage-card { text-align: center; padding: 40px 20px; }
.advantage-card .num { font-size: 48px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }

/* ========== 项目页 ========== */
.service-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.service-sidebar { background: white; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; height: fit-content; position: sticky; top: 90px; }
.service-sidebar a { display: block; padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 5px; color: var(--text-gray); font-weight: 500; }
.service-sidebar a:hover, .service-sidebar a.active { background: var(--primary-light); color: var(--primary); }
.service-detail h2 { font-size: 28px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--primary); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.step { text-align: center; position: relative; }
.step-num { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-weight: bold; }

/* ========== 医生页 ========== */
.doctor-card { overflow: hidden; padding: 0; }
.doctor-photo { height: 260px; background: linear-gradient(135deg, var(--bg-gray), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; }
.doctor-photo .badge { position: absolute; top: 15px; right: 15px; background: var(--accent); color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.doctor-info { padding: 25px; }
.doctor-info h3 { font-size: 20px; margin-bottom: 5px; }
.doctor-info .title { color: var(--primary); font-size: 14px; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags span { background: var(--primary-light); color: var(--primary); padding: 4px 10px; border-radius: 4px; font-size: 12px; }

/* ========== 口碑页 & 评价详情 ========== */
.review-card-link { display: block; color: inherit; }
.review-card-link:hover { color: inherit; }
.review-card-link .card { height: 100%; display: flex; flex-direction: column; }
.review-card-link .card:hover { border-color: var(--primary); }
.review-card { position: relative; flex: 1; display: flex; flex-direction: column; }
.review-card::before { content: "\201C"; position: absolute; top: 10px; right: 20px; font-size: 60px; color: var(--primary-light); font-family: Georgia; line-height: 1; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.review-avatar { width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stars { color: #fbbf24; margin-bottom: 10px; }
.review-card-footer { margin-top: auto; padding-top: 15px; border-top: 1px dashed var(--border); }
.case-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 15px; }
.case-img { height: 160px; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; font-size: 14px; color: var(--text-light); }
.case-img .label { font-size: 12px; background: var(--primary); color: white; padding: 2px 10px; border-radius: 3px; }

/* 评价详情页 */
.review-detail-header { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.review-detail-avatar { width: 80px; height: 80px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
.review-detail-meta h2 { font-size: 24px; margin-bottom: 5px; }
.review-detail-content { font-size: 16px; line-height: 1.8; color: var(--text-gray); margin-bottom: 30px; }
.review-detail-content p { margin-bottom: 15px; }
.doctor-reply { background: var(--bg-light); border-left: 4px solid var(--primary); padding: 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-top: 30px; }
.doctor-reply h4 { color: var(--primary); margin-bottom: 10px; }
.doctor-reply p { color: var(--text-gray); font-size: 15px; line-height: 1.7; }

/* ========== 活动页 ========== */
.promo-banner { background: linear-gradient(135deg, #ff6b6b, #ee5a24); border-radius: var(--radius); padding: 40px; color: white; display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.promo-price .original { text-decoration: line-through; opacity: 0.7; }
.promo-price .current { font-size: 42px; font-weight: 800; }
.price-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table thead { background: var(--primary); color: white; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; font-size: 14px; }
.price-table tbody tr { border-bottom: 1px solid var(--border); background: white; }
.price-table tbody tr:nth-child(even) { background: var(--bg-light); }
.price-col { color: #ee5a24; font-weight: 700; }

/* ========== 科普页 ========== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.article-list { display: flex; flex-direction: column; gap: 24px; }
.article-item { display: flex; gap: 20px; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.article-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-item-thumb { width: 240px; min-height: 160px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
.article-item-body { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: white; border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow); }
.sidebar-widget h3 { font-size: 18px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.sidebar-widget ul li { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sidebar-widget ul li:last-child { border: none; }
.article-content { background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-content h1 { font-size: 28px; margin-bottom: 15px; line-height: 1.4; }
.article-meta { display: flex; gap: 20px; color: var(--text-light); font-size: 14px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.article-body { font-size: 16px; line-height: 2; color: var(--text-gray); }
.article-body h2 { font-size: 22px; color: var(--text-dark); margin: 30px 0 15px; padding-left: 12px; border-left: 4px solid var(--primary); }
.article-body p { margin-bottom: 18px; }
.article-body ul { padding-left: 20px; margin-bottom: 18px; list-style: disc; }

/* ========== 联系页 ========== */
.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.contact-card { display: flex; align-items: flex-start; gap: 15px; }
.contact-card .icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.map-placeholder { height: 450px; background: var(--bg-gray); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; border: 2px dashed var(--border); flex-direction: column; gap: 10px; color: var(--text-light); }
.map-icon { font-size: 48px; }
.map-title { font-size: 16px; }
.map-desc { font-size: 13px; }

/* ========== 底部 & 悬浮 ========== */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.8); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: white; font-size: 22px; margin-bottom: 14px; }
.footer-col h4 { color: white; font-size: 16px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; opacity: 0.7; }
.footer-col ul li a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; text-align: center; font-size: 13px; opacity: 0.6; }
.float-booking { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
.float-booking a { display: flex; align-items: center; gap: 8px; background: var(--primary); color: white; padding: 14px 24px; border-radius: 30px; font-weight: 600; box-shadow: 0 4px 20px rgba(26,115,232,0.4); transition: 0.3s; }
.float-booking a:hover { transform: translateY(-3px); box-shadow: 0 6px 25px rgba(26,115,232,0.5); }

/* ========== 响应式：平板 (768px - 1024px) ========== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-image { display: none; }
    .service-layout { grid-template-columns: 1fr; }
    .service-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 10px; padding: 15px; }
    .service-sidebar a { flex: 1 1 auto; text-align: center; margin: 0; }
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { flex-direction: row; flex-wrap: wrap; }
    .sidebar-widget { flex: 1 1 250px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== 响应式：手机 (<768px) ========== */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh; 
        background: white; flex-direction: column; justify-content: center; align-items: center; 
        gap: 20px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 1000;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 20px; padding: 10px 0; border-bottom: none; }
    .nav-links a.active { color: var(--primary); font-weight: bold; }
    .nav-phone { display: none; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; }
    
    .hero { padding: 50px 0; }
    .hero-text h1 { font-size: 28px; }
    .hero-text p { font-size: 15px; }
    .section { padding:10px 0; }
    .section-title h2 { font-size: 24px; }
    
    .page-banner { padding: 40px 0; }
    .page-banner h1 { font-size: 26px; }
    
    .article-item { flex-direction: column; }
    .article-item-thumb { width: 100%; height: 180px; }
    
    .promo-banner { flex-direction: column; text-align: center; gap: 20px; padding: 30px 20px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .float-booking { bottom: 20px; right: 20px; }
    .float-booking a { padding: 12px 20px; font-size: 14px; }
    
    .article-content { padding: 20px; }
    .article-content h1 { font-size: 22px; }
    
    .price-table { display: block; overflow-x: auto; }
    
    .review-detail-header { flex-direction: column; text-align: center; }
}