/* ───── 全局样式重置 ───── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a56db;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-soft: #eff6ff;
    --accent-color: #f59e0b;
    --accent-light: #fef3c7;
    --success-color: #059669;
    --success-light: #d1fae5;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray-50: #f9fafb;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ───── 按钮样式 ───── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: none;
    text-decoration: none;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(26,86,219,0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.btn-block { width: 100%; }

/* ───── 头部导航 ───── */
.header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.25s ease;
    position: relative;
    padding: 8px 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-primary);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
}

/* ───── 移动端菜单 ───── */
.mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 16px 24px;
}

.mobile-menu.show { display: block; }

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
    padding-left: 6px;
}

.mobile-nav-link:last-child { border-bottom: none; }

/* ───── Hero 区域 ───── */
.hero {
    background: url('../assets/bg.jpg') center/cover no-repeat;
    padding: 60px 0;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.hero .container {
    position: relative;
}

.hero-content { text-align: center; }

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 34px;
    opacity: 0.9;
    margin-bottom: 36px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.75;
}

/* ───── 主内容区布局 ───── */
.main-content { padding: 36px 0 48px; }

.content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ───── 内容块通用样式 ───── */
.content-block {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.block-header h2 {
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.block-header h2 i {
    color: var(--primary-color);
    font-size: 17px;
    width: 20px;
    text-align: center;
}

.block-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.2s;
}

.more-link:hover {
    color: var(--primary-dark);
}

.more-link i {
    font-size: 11px;
}

/* ───── 牙齿资讯列表 ───── */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    background-color: var(--bg-gray-50);
    border-radius: var(--radius-md);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    border: 1px solid transparent;
}

.news-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
    background-color: var(--bg-white);
}

.news-image {
    width: 120px;
    height: 88px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.news-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.news-meta-logo {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    object-fit: contain;
    flex-shrink: 0;
}

.news-source {
    color: var(--text-secondary);
    font-weight: 500;
}

.news-sep {
    color: var(--text-muted);
    font-weight: 300;
}

/* ───── 优惠活动网格 ───── */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.promotion-card {
    background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%);
    border-radius: var(--radius-md);
    padding: 22px;
    color: white;
    cursor: pointer;
    transition: box-shadow 0.25s;
    box-shadow: var(--shadow-sm);
}

.promotion-card:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.promotion-card:nth-child(3) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.promotion-card:nth-child(4) {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.promotion-card:nth-child(5) {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.promotion-card:nth-child(6) {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.promotion-card:hover {
    box-shadow: var(--shadow-md);
}

.promotion-clinic {
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.promotion-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.promotion-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-original {
    font-size: 13px;
    text-decoration: line-through;
    opacity: 0.6;
}

.price-current {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.price-unit {
    font-size: 13px;
    opacity: 0.8;
}

/* ───── 报价模块 ───── */
.pricing-section .price-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.pricing-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--bg-gray-50);
    border-radius: var(--radius-md);
    align-items: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid transparent;
}

.pricing-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
    background: var(--bg-white);
}

.pricing-img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.pricing-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pricing-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pricing-clinic {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.pricing-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* ───── 推荐门诊 ───── */
.recommend-clinics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-clinic-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-gray-50);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid transparent;
}

.recommend-clinic-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
    background: var(--bg-white);
}

.clinic-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

.clinic-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.clinic-name-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.clinic-rating-small {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--accent-color);
}

.clinic-rating-small i {
    font-size: 11px;
}

.clinic-location-small {
    font-size: 11px;
    color: var(--text-muted);
}

.clinic-location-small i {
    margin-right: 3px;
}

/* ───── 推荐医生 ───── */
.recommend-doctors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-doctor-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-gray-50);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid transparent;
}

.recommend-doctor-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
    background: var(--bg-white);
}

.doctor-thumb {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 2.5px solid var(--primary-soft);
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.3s;
}

.recommend-doctor-item:hover .doctor-thumb {
    border-color: var(--primary-color);
}

.doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.doctor-name-small {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.doctor-title-small {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.doctor-clinic-small {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2px;
}

/* ───── 行业问答 ───── */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-item {
    padding: 14px 16px;
    background-color: var(--bg-gray-50);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    border: 1px solid transparent;
}

.qa-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border-color);
    background: var(--bg-white);
}

.qa-question {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: start;
    gap: 8px;
    line-height: 1.45;
}

.qa-question::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.qa-answer-preview {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: 30px;
    line-height: 1.6;
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.35s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.qa-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-left: 30px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ───── 页脚 ───── */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255,255,255,0.85);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-column h4 {
    font-size: 17px;
    margin-bottom: 16px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.3px;
}

.footer-column p {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-column ul { list-style: none; }

.footer-column ul li {
    margin-bottom: 10px;
    font-size: 13px;
    opacity: 0.75;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li i {
    width: 16px;
    color: var(--primary-light);
    font-size: 13px;
}

.footer-disclaimer {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    opacity: 0.55;
    line-height: 1.8;
}

.footer-disclaimer p {
    margin-bottom: 4px;
    font-weight: 600;
    opacity: 0.9;
}

.footer-disclaimer ol {
    padding-left: 18px;
}

.footer-disclaimer ol li {
    margin-bottom: 2px;
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    opacity: 0.5;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: rgba(255,255,255,0.8);
}

/* ───── 响应式设计 ───── */
@media (max-width: 1200px) {
    .content-layout { grid-template-columns: 1fr; }
    .right-column { order: -1; }
}

@media (max-width: 768px) {
    .nav-menu, .header-actions { display: none; }
    .mobile-menu-toggle { display: block; }

    .hero { padding: 56px 0; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 28px; }
    .hero-stats { gap: 32px; }
    .stat-number { font-size: 28px; }

    .promotions-grid { grid-template-columns: 1fr; }
    .news-image { width: 100px; height: 72px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .stat-number { font-size: 26px; }
}

/* ───── 加载/空状态 ───── */
.news-loading, .news-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.news-empty i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    color: var(--border-color);
}

/* ───── 骨架屏 ───── */
.skeleton { pointer-events: none; }

.skeleton-block {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0%  { background-position: 200% 0; }
    100%{ background-position: -200% 0; }
}

.skeleton-news {
    display: flex; gap: 14px; padding: 14px;
    background: var(--bg-gray-50); border-radius: var(--radius-md);
}
.skeleton-news .sk-img  { width: 120px; height: 88px; flex-shrink: 0; }
.skeleton-news .sk-body { flex:1; display:flex; flex-direction:column; gap:10px; justify-content:center; }
.skeleton-news .sk-line { height: 14px; width: 100%; }
.skeleton-news .sk-line.short { width: 55%; }

.skeleton-promo {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: var(--radius-md); padding: 22px;
}
.skeleton-promo .sk-line {
    height: 14px; width:75%; background:rgba(148,163,184,0.25);
    margin-bottom:8px; border-radius:4px;
}
.skeleton-promo .sk-line.short { width:45%; }

.skeleton-card {
    display: flex; gap: 12px; padding: 12px;
    background: var(--bg-gray-50); border-radius: var(--radius-md);
}
.skeleton-card .sk-img  {
    width: 80px; height: 60px; flex-shrink: 0; border-radius: var(--radius-sm);
}
.skeleton-card .sk-body { flex:1; display:flex; flex-direction:column; gap:8px; justify-content:center; }
.skeleton-card .sk-line { height: 13px; width: 100%; }
.skeleton-card .sk-line.short { width: 45%; }

.skeleton-qa {
    padding: 14px 16px; background: var(--bg-gray-50); border-radius: var(--radius-md);
}
.skeleton-qa .sk-line { height: 13px; width:85%; margin-bottom:8px; }
.skeleton-qa .sk-line.short { width:50%; }

/* ───── 图片加载失败 ───── */
.img-error {
    opacity: 0.15;
    min-width: 60px;
    min-height: 60px;
    background: var(--border-color);
    border-radius: var(--radius-sm);
}

/* ───── 医生展开 ───── */
.doctor-avatar-wrap { flex-shrink: 0; }
.doctor-intro {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    max-height: 34px;
    overflow: hidden;
    line-height: 1.5;
    transition: max-height 0.35s ease;
}
.doctor-intro-expanded { max-height: none !important; }
.doctor-intro-action { margin-top: 4px; }
.doc-expand-btn {
    font-size: 11px;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary-soft);
    transition: all 0.2s;
}
.doc-expand-btn:hover { background: var(--primary-color); color: white; }

/* ───── 问答展开状态 ───── */
.qa-answer-expanded {
    max-height: 2000px !important;
    -webkit-line-clamp: unset;
    display: block;
}

.qa-answer-action { padding-left: 30px; margin-top: 4px; }

.qa-expand-btn {
    font-size: 11px;
    color: var(--primary-color);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary-soft);
    transition: all 0.2s;
}
.qa-expand-btn:hover { background: var(--primary-color); color: white; }

/* ───── 图片懒加载 & 防黑闪 ───── */
img {
  background-color: #e2e8f0;
}
.lazy-img {
  opacity: 0;
  transition: opacity 0.4s ease;
  background-color: #e2e8f0;
}
.lazy-img.loaded {
  opacity: 1;
}

/* ───── 滚动入场动画 ───── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* 延迟交错 */
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.10s; }
.reveal-delay-3 { transition-delay: 0.15s; }
.reveal-delay-4 { transition-delay: 0.20s; }
.reveal-delay-5 { transition-delay: 0.25s; }
