/* ==========================================================================
   丽颜医美网 - SEO 权重站 样式文件
   配色：玫红/粉系 + 白底灰区，符合医美行业调性
   ========================================================================== */

:root {
  --primary: #e8559a;
  --primary-dark: #cf3f82;
  --primary-deep: #b52f6e;
  --primary-light: #fdeef5;
  --primary-soft: #fdf6fa;
  --accent: #ff7a59;
  --accent-dark: #ef633f;
  --text: #2b2b2b;
  --text-sub: #555;
  --text-light: #8a8a8a;
  --bg: #ffffff;
  --bg-gray: #f8f7fa;
  --border: #ececf0;
  --border-light: #f3f3f6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-gray);
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. 顶部工具条
   ========================================================================== */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-light);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { margin-left: 16px; }
.topbar a:hover { color: var(--primary); }
.topbar .top-welcome b { color: var(--primary); font-weight: 600; }

/* ==========================================================================
   2. Header：Logo + 搜索
   ========================================================================== */
.site-header {
  background: #fff;
  padding: 22px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo .logo-mark {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #ff9bc0 0%, var(--primary) 60%, var(--primary-deep) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(232, 85, 154, .32);
}
.logo .logo-text h1 { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--text); }
.logo .logo-text h1 span { color: var(--primary); }
.logo .logo-text p { font-size: 12px; color: var(--text-light); letter-spacing: 2px; margin-top: 1px; }

.header-search {
  flex: 1; max-width: 460px; display: flex;
  border: 2px solid var(--primary); border-radius: 30px; overflow: hidden;
  background: #fff;
}
.header-search input {
  flex: 1; border: none; outline: none; padding: 10px 18px;
  font-size: 14px; color: var(--text); background: transparent;
}
.header-search input::placeholder { color: #bbb; }
.header-search button {
  border: none; background: var(--primary); color: #fff;
  padding: 0 26px; font-size: 15px; cursor: pointer; letter-spacing: 2px;
}
.header-search button:hover { background: var(--primary-dark); }

.header-tel { text-align: right; flex-shrink: 0; }
.header-tel .tel-num { font-size: 22px; font-weight: 800; color: var(--primary); display: block; }
.header-tel .tel-num::before { content: "☎ "; font-size: 18px; }
.header-tel small { color: var(--text-light); font-size: 12px; }

/* ==========================================================================
   3. 主导航
   ========================================================================== */
.main-nav {
  background: linear-gradient(90deg, var(--primary-deep) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 3px 12px rgba(181, 47, 110, .25);
}
.main-nav .container { position: relative; }
.nav-list { display: flex; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: 15px 22px; color: #fff;
  font-size: 16px; font-weight: 500; letter-spacing: 1px; position: relative;
}
.nav-list > li > a:hover, .nav-list > li.active > a { background: rgba(255, 255, 255, .16); }
.nav-list > li.active > a::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0;
  height: 3px; background: #fff; border-radius: 3px 3px 0 0;
}

/* 下拉菜单 */
.nav-list li .dropdown {
  position: absolute; left: 0; top: 100%; min-width: 180px;
  background: #fff; border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .25s; z-index: 200;
  padding: 6px 0; border-top: 3px solid var(--primary);
}
.nav-list li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-list .dropdown a {
  display: block; padding: 9px 20px; color: var(--text-sub);
  font-size: 14px; border-left: 3px solid transparent;
}
.nav-list .dropdown a:hover { color: var(--primary); background: var(--primary-soft); border-left-color: var(--primary); }

/* 汉堡按钮 */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 46px; height: 46px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: #fff;
  position: absolute; left: 12px; transition: all .3s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   4. 面包屑
   ========================================================================== */
.crumbs {
  background: #fff; border-bottom: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-light); padding: 10px 0;
}
.crumbs .container { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: #ccc; margin: 0 4px; }
.crumbs .cur { color: var(--text-sub); }

/* ==========================================================================
   5. Hero 轮播
   ========================================================================== */
.hero { margin: 20px auto 0; }
.hero .container { padding: 0 20px; }
.hero-inner {
  position: relative; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); min-height: 360px;
}
.hero-slides { position: relative; height: 360px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s;
  display: flex; align-items: center; padding: 0 60px;
  background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(40, 8, 26, .62) 0%, rgba(40, 8, 26, .18) 60%, transparent 100%);
}
.hero-slide .slide-txt { position: relative; z-index: 2; color: #fff; max-width: 520px; }
.hero-slide .slide-tag {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 3px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 14px;
}
.hero-slide h2 { font-size: 32px; line-height: 1.35; margin-bottom: 12px; font-weight: 800; }
.hero-slide p { font-size: 15px; opacity: .92; margin-bottom: 22px; }
.hero-slide .slide-btn {
  display: inline-block; background: #fff; color: var(--primary-deep);
  padding: 10px 28px; border-radius: 30px; font-size: 15px; font-weight: 600;
}
.hero-slide .slide-btn:hover { background: var(--accent); color: #fff; }

.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots span { width: 26px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: all .3s; }
.hero-dots span.active { background: #fff; width: 40px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .25); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .45); }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

/* ==========================================================================
   6. 信任背书带
   ========================================================================== */
.trust { margin: 24px auto 0; }
.trust .container { padding: 0 20px; }
.trust-inner {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden;
}
.trust-item {
  padding: 22px 18px; display: flex; align-items: center; gap: 14px;
  border-right: 1px solid var(--border-light);
}
.trust-item:last-child { border-right: none; }
.trust-item .t-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.trust-item h4 { font-size: 15px; font-weight: 700; }
.trust-item p { font-size: 12px; color: var(--text-light); }

/* ==========================================================================
   7. 通用区块标题
   ========================================================================== */
.section { margin-top: 32px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.section-head .s-title { display: flex; align-items: center; gap: 10px; }
.section-head .s-title::before {
  content: ""; width: 5px; height: 24px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--primary-deep));
}
.section-head h2 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.section-head h2 .en { font-size: 13px; color: #c4c4c4; font-weight: 400; letter-spacing: 2px; margin-left: 8px; text-transform: uppercase; }
.section-head .more { font-size: 14px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--primary); }

/* ==========================================================================
   8. 热门项目入口
   ========================================================================== */
.hot-projects .container { padding: 0 20px; }
.projects-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.project-card {
  background: #fff; border-radius: 12px; padding: 22px 16px;
  text-align: center; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card .p-icon {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #ffeef5);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.project-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.project-card p { font-size: 12px; color: var(--text-light); }
.project-card .p-hot {
  position: absolute; top: 10px; right: 10px; background: var(--accent);
  color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 12px;
}

/* ==========================================================================
   9. 最新资讯（左大图 + 右列表）
   ========================================================================== */
.news { }
.news .container { padding: 0 20px; }
.news-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.news-featured {
  position: relative; border-radius: 12px; overflow: hidden;
  min-height: 320px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-sm); background-size: cover; background-position: center;
}
.news-featured::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(20, 5, 13, .82) 100%);
}
.news-featured .f-txt { position: relative; z-index: 2; padding: 24px; color: #fff; }
.news-featured .f-txt .tag { background: var(--primary); padding: 2px 12px; border-radius: 14px; font-size: 12px; }
.news-featured .f-txt h3 { font-size: 20px; margin: 10px 0 6px; line-height: 1.45; }
.news-featured .f-txt h3 a:hover { color: #fff; text-decoration: underline; }
.news-featured .f-txt .meta { font-size: 12px; opacity: .8; }

.news-list { display: flex; flex-direction: column; gap: 0; }
.news-list .news-item {
  display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--border-light);
  align-items: center;
}
.news-list .news-item:first-child { padding-top: 0; }
.news-list .news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-list .news-item .n-thumb {
  width: 96px; height: 68px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.news-list .news-item .n-body { flex: 1; min-width: 0; }
.news-list .news-item .n-body h4 { font-size: 15px; font-weight: 600; line-height: 1.5; }
.news-list .news-item .n-body h4 a {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list .news-item .n-body .meta { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.news-list .news-item .n-body .meta span { margin-right: 10px; }

/* ==========================================================================
   10. Tab 内容区块（整形项目 / 皮肤美容）
   ========================================================================== */
.tab-section .container { padding: 0 20px; }
.tab-section .s-inner { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.tab-nav { display: flex; background: var(--primary-soft); border-bottom: 2px solid var(--primary-light); }
.tab-nav button {
  flex: 1; padding: 16px 10px; border: none; background: none; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--text-sub); position: relative;
  letter-spacing: 1px; transition: color .2s;
}
.tab-nav button.active { color: var(--primary); }
.tab-nav button.active::after {
  content: ""; position: absolute; left: 30%; right: 30%; bottom: -2px;
  height: 3px; background: var(--primary); border-radius: 3px 3px 0 0;
}
.tab-panel { display: none; padding: 20px; }
.tab-panel.active { display: block; }
.tab-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tab-cats a {
  padding: 6px 16px; border-radius: 20px; background: var(--bg-gray);
  color: var(--text-sub); font-size: 13px; border: 1px solid var(--border-light);
}
.tab-cats a:hover, .tab-cats a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.article-card {
  display: flex; flex-direction: column; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border-light); transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.article-card .a-thumb {
  height: 150px; background-size: cover; background-position: center; position: relative;
}
.article-card .a-thumb .a-cat {
  position: absolute; top: 10px; left: 10px; background: rgba(232, 85, 154, .9);
  color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 4px;
}
.article-card .a-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.article-card .a-body h4 { font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.article-card .a-body h4 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .a-body .a-desc {
  font-size: 13px; color: var(--text-light); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.article-card .a-body .a-meta { margin-top: auto; font-size: 12px; color: #b0b0b0; display: flex; justify-content: space-between; }

/* ==========================================================================
   11. 热门文章排行
   ========================================================================== */
.rank { }
.rank .container { padding: 0 20px; }
.rank-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rank-box { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.rank-box .r-head {
  padding: 14px 20px; background: linear-gradient(90deg, var(--primary-light), var(--primary-soft));
  display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: var(--primary-deep);
}
.rank-box .r-head::before { content: "♨"; font-size: 18px; }
.rank-box ul { padding: 8px 16px 14px; }
.rank-box li {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
}
.rank-box li:last-child { border-bottom: none; }
.rank-box li .num {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff; background: #c9c9cf;
  font-style: normal;
}
.rank-box li:nth-child(1) .num { background: var(--accent); }
.rank-box li:nth-child(2) .num { background: var(--primary); }
.rank-box li:nth-child(3) .num { background: #f7a1c4; }
.rank-box li .r-txt { flex: 1; min-width: 0; }
.rank-box li .r-txt a {
  font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.rank-box li .r-views { font-size: 12px; color: #b0b0b0; flex-shrink: 0; }

/* ==========================================================================
   12. 医院推荐
   ========================================================================== */
.hospitals .container { padding: 0 20px; }
.hosp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hosp-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.hosp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hosp-card .h-thumb { height: 130px; background-size: cover; background-position: center; position: relative; }
.hosp-card .h-thumb .h-level {
  position: absolute; top: 10px; right: 10px; background: var(--accent);
  color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.hosp-card .h-body { padding: 14px; }
.hosp-card .h-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.hosp-card .h-body p { font-size: 12px; color: var(--text-light); line-height: 1.6; }
.hosp-card .h-body .h-btn {
  display: inline-block; margin-top: 10px; padding: 5px 18px;
  background: var(--primary-light); color: var(--primary); border-radius: 20px;
  font-size: 13px; font-weight: 600;
}
.hosp-card .h-body .h-btn:hover { background: var(--primary); color: #fff; }

/* ==========================================================================
   13. 友情链接 + 底部
   ========================================================================== */
.friend-links { margin-top: 32px; background: #fff; border-top: 1px solid var(--border-light); padding: 20px 0; }
.friend-links .fl-title { font-size: 14px; color: var(--text-light); margin-bottom: 10px; font-weight: 600; }
.friend-links .fl-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.friend-links .fl-list ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.friend-links .fl-list li { display: inline; }
.friend-links .fl-list a { font-size: 13px; color: var(--text-sub); }
.friend-links .fl-list a:hover { color: var(--primary); }

.site-footer {
  background: #2c1220; color: #cfc3c9; margin-top: 32px; padding-top: 40px;
}
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 28px; }
.site-footer .f-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-left: 12px; }
.site-footer .f-col h4::before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 16px; background: var(--primary); border-radius: 2px; }
.site-footer .f-col p { font-size: 13px; line-height: 1.8; }
.site-footer .f-col .f-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-footer .f-col .f-links a { font-size: 13px; color: #cfc3c9; }
.site-footer .f-col .f-links a:hover { color: #fff; }
.site-footer .f-col .f-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .f-col .f-tags a {
  font-size: 12px; padding: 4px 12px; border: 1px solid #4a2c3a; border-radius: 16px; color: #cfc3c9;
}
.site-footer .f-col .f-tags a:hover { border-color: var(--primary); color: #fff; }
.site-footer .f-contact span { display: block; font-size: 13px; margin-bottom: 6px; }
.site-footer .copyright {
  border-top: 1px solid #4a2c3a; padding: 16px 0; text-align: center; font-size: 12px; color: #9c8791;
}
.site-footer .copyright a { color: #cfc3c9; }
.site-footer .copyright a:hover { color: #fff; }

/* 回到顶部 */
.back-top {
  position: fixed; right: 24px; bottom: 60px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--primary); color: #fff; border: none; cursor: pointer;
  font-size: 20px; box-shadow: 0 4px 14px rgba(232, 85, 154, .4);
  opacity: 0; visibility: hidden; transition: all .3s; z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); }

/* ==========================================================================
   14. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .hosp-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-list > li > a { padding: 15px 14px; font-size: 15px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr; }
  .rank-layout { grid-template-columns: 1fr; }
  .hosp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-tel { display: none; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--primary-deep); flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow); max-height: 70vh; overflow-y: auto;
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a { padding: 13px 20px; }
  .nav-list li .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: rgba(0, 0, 0, .12); box-shadow: none; border-top: none; min-width: 0;
  }
  .nav-list .dropdown a { color: #f3d7e4; }
  .hero-inner, .hero-slides { height: 260px; }
  .hero-slide { padding: 0 28px; }
  .hero-slide h2 { font-size: 22px; }
  .article-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .project-card { padding: 16px 10px; }
  .hosp-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .trust-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-search { order: 3; width: 100%; max-width: none; flex: none; margin-top: 12px; }
  .site-header .container { flex-wrap: wrap; }
}

/* ==========================================================================
   内页样式：列表页 / 文章页 / 侧栏 / 评论 / 分页 / 404
   ========================================================================== */
.main-body {
  margin: 24px auto 0;
}
.main-body .container { padding: 0 20px; }
/* ===== 二级栏目专题页 ===== */
.topic-hero {
  background: linear-gradient(120deg, #ff9bc0 0%, var(--primary) 50%, var(--primary-deep) 100%);
  padding: 40px 0;
  color: #fff;
  text-align: center;
}
.topic-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: 2px; }
.topic-hero .topic-sub { font-size: 15px; margin-top: 12px; opacity: .95; }
.topic-hero .topic-tags { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.topic-hero .topic-tags span { background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.4); padding: 4px 14px; border-radius: 16px; font-size: 13px; }

.topic-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.topic-main { display: flex; flex-direction: column; gap: 20px; }
.topic-block { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); padding: 24px 26px; }
.topic-h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--primary); color: var(--text); }
.topic-p { font-size: 14px; color: var(--text-sub); line-height: 1.9; margin-bottom: 10px; }
.topic-p:last-child { margin-bottom: 0; }

.price-table { border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.price-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.price-row:last-child { border-bottom: none; }
.price-row:nth-child(odd) { background: var(--primary-soft); }
.price-row .pr-name { font-size: 14px; color: var(--text-sub); }
.price-row .pr-range { font-size: 15px; font-weight: 700; color: var(--primary); }
.price-note { margin-top: 12px; font-size: 12px; color: var(--text-light); line-height: 1.6; }

.topic-empty { padding: 40px 20px; text-align: center; color: var(--text-light); background: var(--primary-soft); border-radius: 8px; }

.faq-item { padding: 14px 0; border-bottom: 1px dashed var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.faq-q::before { content: "Q "; color: var(--primary); font-weight: 800; }
.faq-a { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.faq-a::before { content: "A "; color: var(--primary-deep); font-weight: 800; }

.topic-side { display: flex; flex-direction: column; gap: 20px; }
.side-block { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.side-title { padding: 13px 18px; background: linear-gradient(90deg, var(--primary-light), var(--primary-soft)); font-size: 16px; font-weight: 700; color: var(--primary-deep); }
.side-list { padding: 8px 18px 14px; list-style: none; }
.side-list li { border-bottom: 1px dashed var(--border-light); }
.side-list li:last-child { border-bottom: none; }
.side-list li a { display: block; padding: 10px 0; font-size: 14px; color: var(--text-sub); }
.side-list li a:hover { color: var(--primary); }
.side-list li a.cur { color: var(--primary); font-weight: 600; }

@media (max-width: 900px) {
  .topic-layout { grid-template-columns: 1fr; }
  .topic-hero h1 { font-size: 26px; }
  .topic-block { padding: 20px 18px; }
}

.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

/* 列表页 */
.list-block { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.list-block .list-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700;
}
.list-block .list-head::before { content: ""; width: 4px; height: 20px; background: var(--primary); border-radius: 2px; }
.post-item { display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border-light); }
.post-item:last-child { border-bottom: none; }
.post-item .p-thumb {
  width: 180px; height: 120px; border-radius: 8px; flex-shrink: 0;
  background-size: cover; background-position: center;
}
.post-item .p-body { flex: 1; min-width: 0; }
.post-item .p-body h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.post-item .p-body h3 a:hover { color: var(--primary); }
.post-item .p-body .p-desc {
  font-size: 13px; color: var(--text-light); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.post-item .p-body .p-meta { font-size: 12px; color: #b0b0b0; display: flex; flex-wrap: wrap; gap: 12px; }
.post-item .p-body .p-meta .p-cat {
  background: var(--primary-light); color: var(--primary); padding: 1px 10px; border-radius: 4px;
}

/* 分页 */
.pagebar { display: flex; justify-content: center; gap: 8px; padding: 20px; flex-wrap: wrap; }
.pagebar a, .pagebar span {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); font-size: 14px; color: var(--text-sub); background: #fff;
}
.pagebar a:hover { border-color: var(--primary); color: var(--primary); }
.pagebar .page-now, .pagebar span.page-now { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 文章页 */
.article-page { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); padding: 30px; }
.article-page .art-title { font-size: 26px; line-height: 1.4; font-weight: 800; margin-bottom: 14px; }
.article-page .art-meta {
  display: flex; flex-wrap: wrap; gap: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light); margin-bottom: 20px;
  font-size: 13px; color: var(--text-light);
}
.article-page .art-meta a { color: var(--primary); }
.art-content { font-size: 16px; line-height: 1.9; color: #333; }
.art-content p { margin-bottom: 16px; }
.art-content h2 { font-size: 20px; margin: 24px 0 12px; padding-left: 12px; border-left: 4px solid var(--primary); }
.art-content h3 { font-size: 17px; margin: 20px 0 10px; }
.art-content img { border-radius: 8px; margin: 12px auto; }
.art-content ul, .art-content ol { padding-left: 24px; margin-bottom: 16px; }
.art-content ul li { list-style: disc; margin-bottom: 6px; }
.art-content ol li { list-style: decimal; margin-bottom: 6px; }
.art-content blockquote {
  background: var(--primary-soft); border-left: 4px solid var(--primary);
  padding: 12px 16px; margin: 16px 0; color: var(--text-sub); border-radius: 0 8px 8px 0;
}
.art-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.art-content th, .art-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.art-content th { background: var(--primary-light); color: var(--primary-deep); font-weight: 600; }

.art-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.art-tags a {
  display: inline-block; margin: 0 8px 8px 0; padding: 4px 14px;
  background: var(--bg-gray); border: 1px solid var(--border-light);
  border-radius: 16px; font-size: 13px; color: var(--text-sub);
}
.art-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.art-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px;
}
.art-nav a {
  display: block; padding: 14px 16px; background: var(--bg-gray);
  border-radius: 8px; font-size: 14px; color: var(--text-sub); line-height: 1.5;
}
.art-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.art-nav a.next { text-align: right; }

/* 相关文章 */
.related { margin-top: 24px; }
.related h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.related .rel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related .rel-item {
  display: flex; gap: 10px; align-items: center; padding: 10px;
  background: var(--bg-gray); border-radius: 8px;
}
.related .rel-item .r-thumb { width: 72px; height: 52px; border-radius: 6px; flex-shrink: 0; background-size: cover; background-position: center; }
.related .rel-item a { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 侧栏 */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 64px; }
.side-widget { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.side-widget .w-title {
  padding: 13px 18px; background: linear-gradient(90deg, var(--primary-light), var(--primary-soft));
  font-size: 16px; font-weight: 700; color: var(--primary-deep);
  display: flex; align-items: center; gap: 8px;
}
.side-widget .w-title::before { content: ""; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.side-widget .w-body { padding: 14px 18px; }
.side-widget .w-body ul li { padding: 8px 0; border-bottom: 1px dashed var(--border-light); }
.side-widget .w-body ul li:last-child { border-bottom: none; }
.side-widget .w-body ul li a {
  font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.side-widget .w-body ul li a:hover { color: var(--primary); }
.side-widget .w-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.side-widget .w-tags a {
  font-size: 13px; padding: 4px 12px; border: 1px solid var(--border-light);
  background: var(--bg-gray); border-radius: 16px; color: var(--text-sub);
}
.side-widget .w-tags a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.side-widget .w-cats a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed var(--border-light); font-size: 14px;
}
.side-widget .w-cats a:last-child { border-bottom: none; }
.side-widget .w-cats a .cnt { background: var(--bg-gray); color: var(--text-light); font-size: 12px; padding: 0 8px; border-radius: 10px; }

/* 评论 */
.comments { background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); padding: 24px; margin-top: 20px; }
.comments h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--primary); }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.comment-item .c-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-item .c-head .c-name { font-weight: 600; font-size: 14px; }
.comment-item .c-head .c-time { font-size: 12px; color: #b0b0b0; }
.comment-item .c-body { font-size: 14px; color: var(--text-sub); line-height: 1.7; }
.comment-form textarea {
  width: 100%; min-height: 100px; border: 1px solid var(--border);
  border-radius: 8px; padding: 12px; font-size: 14px; font-family: inherit; resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--primary); }
.comment-form .c-submit {
  margin-top: 12px; padding: 10px 28px; background: var(--primary); color: #fff;
  border: none; border-radius: 6px; font-size: 14px; cursor: pointer;
}
.comment-form .c-submit:hover { background: var(--primary-dark); }

/* 404 */
.notfound { text-align: center; padding: 80px 20px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); }
.notfound .nf-code { font-size: 90px; font-weight: 800; color: var(--primary); line-height: 1; }
.notfound h2 { font-size: 22px; margin: 16px 0 10px; }
.notfound p { color: var(--text-light); margin-bottom: 24px; }
.notfound .nf-btn {
  display: inline-block; padding: 12px 30px; background: var(--primary); color: #fff;
  border-radius: 30px; font-size: 15px;
}
.notfound .nf-btn:hover { background: var(--primary-dark); }

@media (max-width: 900px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-item .p-thumb { width: 120px; height: 90px; }
  .related .rel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .post-item { flex-direction: column; }
  .post-item .p-thumb { width: 100%; height: 160px; }
  .article-page { padding: 20px 16px; }
  .article-page .art-title { font-size: 20px; }
  .art-nav { grid-template-columns: 1fr; }
}

/* 缩略图默认渐变兜底（文章未设置缩略图时自动使用） */
.a-thumb, .n-thumb, .p-thumb, .h-thumb, .r-thumb {
  background-color: var(--primary-light);
  background-image: linear-gradient(135deg, #f6a5c0, #e8559a);
}
.news-featured { background-image: linear-gradient(135deg, #f6a5c0, #e8559a); }
/* 不同位置卡片轻微区分渐变色 */
.tab-panel .article-card:nth-child(3n+2) .a-thumb { background-image: linear-gradient(135deg, #d8c7f5, #8b5cf6); }
.tab-panel .article-card:nth-child(3n+3) .a-thumb { background-image: linear-gradient(135deg, #ffd9c2, #ff7a59); }
.hosp-grid .hosp-card:nth-child(2n) .h-thumb { background-image: linear-gradient(135deg, #d8c7f5, #8b5cf6); }
