/* ===================================================
   上门按摩 · 精致主题 CSS
   响应式设计 · 手机/电脑端自适应
=================================================== */

:root {
  --primary:    #b5804a;
  --primary-dk: #8a5f30;
  --primary-lt: #f5e6d0;
  --accent:     #c9963f;
  --dark:       #1a1209;
  --dark2:      #2d200e;
  --light:      #fdf8f2;
  --text:       #3d2d1a;
  --text-muted: #8a7565;
  --border:     #e8d9c5;
  --white:      #ffffff;
  --shadow:     0 4px 20px rgba(181,128,74,.18);
  --shadow-lg:  0 8px 40px rgba(181,128,74,.24);
  --radius:     10px;
  --radius-lg:  18px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC","Microsoft YaHei","Noto Serif SC",serif;
  background: #f0e8dc url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="%23f0e8dc"/><path d="M30 5 L35 20 L50 20 L38 30 L43 45 L30 36 L17 45 L22 30 L10 20 L25 20Z" fill="%23e8d5ba" opacity=".25"/></svg>');
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
body, html, ul, ol, dl, dd, li, p, h1, h2, h3, h4, h5, h6, form, input, button {
  margin: 0; padding: 0;
}
h1,h2,h3,h4,h5,h6 { font-weight: 600; }
ul, li { list-style: none; }
a { text-decoration: none; color: var(--text); outline: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { vertical-align: middle; border: none; max-width: 100%; display: block; }
input { outline: none; border: none; }

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== 顶部通栏 ===== */
.site-topbar {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 1px;
}
.site-topbar span { color: var(--accent); font-weight: bold; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: linear-gradient(135deg, var(--dark2) 0%, #3d1f00 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  box-shadow: 0 2px 10px rgba(181,128,74,.5);
  flex-shrink: 0;
}
.site-logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1;
}
.site-logo .logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: 3px;
  margin-top: 2px;
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  border-radius: var(--radius);
  transition: all .25s;
  white-space: nowrap;
  letter-spacing: .5px;
}
.site-nav a:hover {
  background: rgba(181,128,74,.25);
  color: var(--accent);
}
.site-nav a.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  box-shadow: 0 2px 8px rgba(181,128,74,.45);
}

/* 汉堡菜单（手机） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px; height: 38px;
  cursor: pointer;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: all .3s;
}

/* 电话浮窗 */
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(181,128,74,.5);
  transition: transform .2s, box-shadow .2s;
}
.header-phone:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181,128,74,.65);
  color: var(--white);
}
.header-phone::before { content: '📞'; font-size: 16px; }

/* ===== 主容器 ===== */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ===== Hero 轮播 ===== */
.hero-swipe {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark2);
  margin-bottom: 24px;
}
.swipe { position: relative; overflow: hidden; width: 100%; }
.swipe-wrap {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.swipe-wrap > div {
  float: left;
  width: 100%;
  position: relative;
  display: none;
}
.swipe-wrap > div:first-child { display: block; }
.swipe-wrap > div img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
.carousel_abs {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  padding: 28px 20px 14px;
  display: flex; align-items: flex-end;
}
.carousel_abs em {
  font-style: normal;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* 轮播指示点 */
.swipe-point {
  position: absolute;
  bottom: 14px; right: 16px;
  z-index: 10;
}
.swipe-point ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
.swipe-point li {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
  transition: all .3s;
}
.swipe-point li.on {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

/* ===== 服务特色横幅 ===== */
.features-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.feature-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-item .fi-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.feature-item .fi-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.feature-item .fi-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== 推荐区块 ===== */
.rec-news {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
.rec-top {
  background: linear-gradient(135deg, var(--primary-lt), #fdf8f2);
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.rec-top h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.rec-top h2 a { color: inherit; }
.rec-top h2 a:hover { color: var(--primary); }
.rec-top p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== 模块标题 ===== */
.mod-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.mod-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mod-title-icon {
  width: 4px;
  height: 22px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}
.mod-title h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .5px;
}
.mod-title .more {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--primary-lt);
  padding: 4px 12px;
  border-radius: 14px;
  transition: all .2s;
}
.mod-title .more:hover {
  background: var(--primary);
  color: var(--white);
}

/* 区块容器 */
.mod-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
/* 兼容原有class */
.mod.NewsAll { 
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}
.title.TitA {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.title.TitA em { display: none; }
.title.TitA h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.title.TitA h3::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 18px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 2px;
}
.title.TitA .more {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--primary-lt);
  padding: 4px 12px;
  border-radius: 14px;
  transition: all .2s;
}
.title.TitA .more:hover { background: var(--primary); color: var(--white); }

/* ===== 文章列表 ===== */
.feeds { padding: 0; }
.feeds-item {
  border-bottom: 1px solid var(--border);
  transition: background .2s;
}
.feeds-item:last-child { border-bottom: none; }
.feeds-item:hover { background: var(--light); }
.feeds-item-detail {
  padding: 14px 20px;
}
.feeds-item-detail.hasImg {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feeds-item-pic {
  flex-shrink: 0;
  width: 90px; height: 68px;
  border-radius: 8px;
  overflow: hidden;
}
.feeds-item-pic img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.feeds-item:hover .feeds-item-pic img {
  transform: scale(1.06);
}
.feeds-item-detail h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feeds-item-detail h3 a { color: inherit; }
.feeds-item-detail h3 a:hover { color: var(--primary); }
.feeds-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feeds-item-info .time {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--primary-lt);
  padding: 2px 8px;
  border-radius: 10px;
}

/* 查看更多 */
.loadmore {
  padding: 14px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--light);
}
.loadmore a {
  display: inline-block;
  padding: 8px 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(181,128,74,.4);
  transition: transform .2s, box-shadow .2s;
}
.loadmore a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(181,128,74,.55);
  color: var(--white);
}

/* ===== 面包屑 ===== */
.crumbs {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.crumbs a {
  color: var(--primary);
  transition: color .2s;
}
.crumbs a:hover { color: var(--primary-dk); }

/* ===== 文章详情 ===== */
.article {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
  padding: 24px 24px 28px;
}
.article .title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
  position: static;
  left: auto; bottom: auto; width: auto; height: auto;
  background: none;
  margin-left: 0;
}
.article .detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 20px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 20px;
}
.article .detail .time, .article .detail .source {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--primary-lt);
  padding: 3px 10px;
  border-radius: 10px;
}
.article .content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}
.article .content p { margin-bottom: 14px; }
.article .content img {
  border-radius: 8px;
  max-width: 100%;
  margin: 12px auto;
}

/* ===== 列表页 ===== */
.list-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 24px;
}

/* 翻页 */
#loadmore a {
  display: inline-block;
  padding: 6px 14px;
  margin: 0 3px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-size: 13px;
  transition: all .2s;
}
#loadmore a:hover,
#loadmore a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== 友情链接 ===== */
.mod.NewsAll .feeds-item-detail h3 a { font-size: 13px; }

/* ===== Footer ===== */
.footer-min {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 20px 16px 24px;
  border-top: 3px solid var(--primary);
  margin-top: 12px;
}
.footer-min .app {
  margin-bottom: 8px;
  font-size: 13px;
}
.footer-min .app a {
  color: var(--accent);
  padding: 0 8px;
  transition: color .2s;
}
.footer-min .app a:hover { color: var(--white); }
.footer-min .copyright {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255,255,255,.45);
}
.footer-min .copyright a { color: rgba(255,255,255,.55); }

/* 回顶部 */
.back-to-top {
  position: fixed;
  right: 18px; bottom: 80px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 20px;
  box-shadow: 0 4px 14px rgba(181,128,74,.5);
  cursor: pointer;
  z-index: 900;
  transition: transform .25s, box-shadow .25s;
  opacity: 0;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top::after {
  content: '↑';
  font-weight: bold;
  font-size: 18px;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(181,128,74,.65);
}

/* 浮动预约按钮 */
.float-cta {
  position: fixed;
  bottom: 20px; right: 18px;
  z-index: 910;
}
.float-cta a {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 12px 18px;
  border-radius: 28px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(181,128,74,.65);
  letter-spacing: .5px;
  transition: transform .2s, box-shadow .2s;
  animation: pulse 2.5s infinite;
}
.float-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(181,128,74,.8);
  color: var(--white);
}
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 18px rgba(181,128,74,.65); }
  50%      { box-shadow: 0 6px 26px rgba(181,128,74,.9); }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .features-bar { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 0 14px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--dark2);
    padding: 12px 16px;
    gap: 4px;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .site-nav.open a { padding: 10px 14px; font-size: 15px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .header-phone { padding: 6px 12px; font-size: 13px; }
  .header-phone span { display: none; }
}

@media (max-width: 600px) {
  .features-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .swipe-wrap > div img { height: 200px; }
  .article { padding: 16px; }
  .article .title { font-size: 18px; }
  .feeds-item-pic { width: 74px; height: 56px; }
  .feeds-item-detail h3 { font-size: 13px; }
  .page-wrap { padding: 12px 12px 30px; }
  .back-to-top { right: 14px; bottom: 72px; width: 38px; height: 38px; font-size: 16px; }
  .float-cta { bottom: 16px; right: 14px; }
  .float-cta a { padding: 10px 14px; font-size: 13px; }
}

@media (min-width: 1200px) {
  .swipe-wrap > div img { height: 420px; }
  .features-bar { gap: 16px; }
}
