/* ========== 如意健康之约 - 专业O2O上门服务平台 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; }
body { font-family: "PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif; color: #333; background: #f5f5f5; line-height: 1.5; }
a { color: #c93543; text-decoration: none; } a:hover { color: #a82a37; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { list-style: none; padding: 0; }

/* ========== 顶部导航栏 ========== */
.top-bar { background: #c93543; height: 40px; line-height: 40px; color: #fff; font-size: 12px; }
.top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,.85); font-size: 12px; margin-left: 15px; }
.top-bar a:hover { color: #fff; }
.top-bar .phone { font-size: 16px; font-weight: bold; color: #FFD54F; letter-spacing: 1px; }

/* ========== Header ========== */
.site-header { background: #fff; border-bottom: 2px solid #c93543; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 8px 15px; display: flex; align-items: center; gap: 20px; }
.header-left .logo { color: #c93543; font-size: 22px; font-weight: bold; white-space: nowrap; letter-spacing: 1px; }
.header-left .logo-sub { font-size: 11px; color: #999; display: block; margin-top: -2px; letter-spacing: 0; }
.header-nav { flex: 1; display: flex; gap: 0; }
.header-nav .nav-cat { color: #333; font-size: 14px; white-space: nowrap; padding: 6px 14px; transition: all .15s; position: relative; }
.header-nav .nav-cat:hover { color: #c93543; background: #fcf2f3; text-decoration: none; }
.header-nav .nav-cat.active { color: #c93543; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.city-select { color: #c93543; cursor: pointer; font-size: 13px; font-weight: 500; }
.city-select small { color: #fff; background: #c93543; padding: 1px 5px; border-radius: 2px; font-size: 10px; margin-left: 3px; font-weight: 400; }
.btn-ruzhu { background: #FF9F43; color: #fff; padding: 5px 14px; border-radius: 3px; font-size: 12px; font-weight: bold; transition: background .2s; }
.btn-ruzhu:hover { background: #E8922D; color: #fff; text-decoration: none; }

/* ========== 搜索栏 ========== */
.search-bar { background: #fff; padding: 12px 0; border-bottom: 1px solid #eee; }
.search-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; align-items: center; gap: 15px; }
.search-box { display: flex; flex: 1; max-width: 560px; border: 2px solid #c93543; border-radius: 4px; overflow: hidden; }
.search-box input { flex: 1; padding: 8px 12px; border: none; font-size: 14px; outline: none; }
.search-box button { background: #c93543; color: #fff; border: none; padding: 8px 24px; font-size: 14px; font-weight: 500; cursor: pointer; }
.search-box button:hover { background: #a82a37; }
.hot-keywords { font-size: 12px; color: #999; }
.hot-keywords a { color: #666; margin: 0 4px; font-size: 12px; }
.hot-keywords a:hover { color: #c93543; }

/* ========== Banner ========== */
.hero { background: linear-gradient(135deg, #c93543 0%, #d9596a 55%, #e07a88 100%); color: #fff; padding: 40px 15px; text-align: center; }
.hero h1 { font-size: 26px; font-weight: 600; margin-bottom: 8px; text-shadow: 0 1px 3px rgba(0,0,0,.1); }
.hero p { font-size: 14px; opacity: .92; margin-bottom: 0; letter-spacing: 2px; }

/* ========== 分类导航+服务卡片（到位核心布局） ========== */
.cat-section { max-width: 1200px; margin: 10px auto; background: #fff; overflow: hidden; }
.cat-section { background: #fff; border-radius: 10px; margin: 14px 0; box-shadow: 0 1px 3px rgba(0,0,0,.05); overflow: hidden; }
.cat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.cat-header h2 { font-size: 18px; }
.cat-header h2 { font-size: 18px; font-weight: 600; color: #333; }
.cat-header h2 .cat-icon { margin-right: 6px; }
.cat-header .more-link { font-size: 13px; color: #999; }
.cat-header .more-link:hover { color: #c93543; }
.sub-cats { padding: 10px 18px 2px; display: flex; flex-wrap: wrap; gap: 8px; }
.sub-cat { display: inline-block; padding: 3px 12px; font-size: 13px; color: #555; border-right: 1px solid #e0e0e0; transition: color .15s; }
.sub-cat:last-child { border-right: none; }
.sub-cat:hover { color: #c93543; text-decoration: none; }

/* 服务卡片网格 - 到位4列风格 */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 0 4px; }
.service-card { display: flex; flex-direction: column; background: #fff; border-radius: 6px; overflow: hidden; transition: box-shadow .15s; border: 1px solid #eee; }
.service-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); text-decoration: none; }
.card-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.service-card .price .unit { font-size: 11px; color: #999; margin-right: 8px; }
.service-card .card-img { width: 56px; height: 56px; min-width: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 14px 0 14px 14px; align-self: flex-start; }
.service-card .card-icon { font-size: 28px; }
.service-card h3 { font-size: 15px; font-weight: 600; color: #333; margin: 14px 14px 3px; }
.service-card .desc { font-size: 12px; color: #999; line-height: 1.4; margin: 0 14px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-card .price { font-size: 11px; color: #c93543; margin: auto 14px 14px; display: flex; align-items: baseline; gap: 2px; }
.service-card .price .price-num { font-size: 22px; font-weight: 700; line-height: 1; }
.service-card .btn-book { margin-left: auto; padding: 5px 14px; background: #fff; color: #c93543; border: 1px solid #c93543; border-radius: 4px; font-size: 12px; transition: all .15s; }
.service-card .btn-book:hover { background: #c93543; color: #fff; }
/* 各大类图区渐变底色 */
.cat-baojie { background: #faf6f7; }
.cat-weixiu { background: #f6f9fc; }
.cat-anmo { background: #faf8fb; }
.cat-xiyi { background: #f5fafb; }
.cat-banjia { background: #fcfaf6; }
.cat-jiadian-qingxi { background: #f7faf7; }
.cat-anzhuang { background: #faf9fc; }
.cat-meiye { background: #faf6f7; }
.cat-baomu { background: #f5fafa; }
.cat-kangyang { background: #fbf9f2; }

/* ========== 保障条 ========== */
.trust-bar { max-width: 1200px; margin: 10px auto; background: #fff; padding: 16px 15px; display: flex; justify-content: center; gap: 40px; text-align: center; }
.trust-bar h2 { font-size: 16px; font-weight: 600; text-align: center; margin-bottom: 12px; color: #333; width: 100%; }
.trust-item { }
.trust-item strong { display: block; font-size: 14px; color: #c93543; margin-bottom: 2px; }
.trust-item p { font-size: 12px; color: #999; }

/* ========== 城市栏 ========== */
.city-bar { max-width: 1200px; margin: 10px auto; padding: 12px 15px; background: #fff; }
.city-bar h2 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.city-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.city-tag { display: inline-block; padding: 3px 10px; background: #f8f8f8; border: 1px solid #e8e8e8; border-radius: 2px; font-size: 12px; color: #555; transition: all .15s; }
.city-tag:hover { border-color: #c93543; color: #c93543; text-decoration: none; }
.city-tag.hot { background: #c93543; color: #fff; border-color: #c93543; }

/* ========== 文章列表 ========== */
.news-section { max-width: 1200px; margin: 10px auto; background: #fff; padding: 0; }
.news-section h2 { font-size: 16px; font-weight: 600; padding: 10px 15px; border-bottom: 1px solid #f0f0f0; }
.article-list { }
.article-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; border-bottom: 1px dashed #f0f0f0; transition: background .1s; font-size: 13px; }
.article-item:hover { background: #fff7f8; text-decoration: none; }
.article-item h3 { font-size: 13px; color: #333; flex: 1; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-item time { font-size: 11px; color: #ccc; white-space: nowrap; margin-left: 12px; }

/* ========== 服务详情页 ========== */
.service-detail { max-width: 900px; margin: 15px auto; padding: 0 15px; }
.breadcrumb { font-size: 12px; color: #999; margin-bottom: 12px; padding: 8px 0; }
.breadcrumb a { color: #c93543; }
.price-box { background: linear-gradient(135deg, #c93543, #d9596a); color: #fff; padding: 16px 20px; border-radius: 4px; margin: 0 0 15px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price-label { font-size: 13px; opacity: .8; }
.price-value { font-size: 26px; font-weight: bold; }
.price-note { font-size: 12px; opacity: .7; }
.service-content { background: #fff; padding: 20px; margin-bottom: 15px; }
.service-content h2 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 2px solid #c93543; color: #333; }
.service-content h2:first-child { margin-top: 0; }
.service-content p { margin-bottom: 8px; font-size: 14px; line-height: 1.7; }
.service-content ol, .service-content ul { padding-left: 20px; margin-bottom: 8px; font-size: 14px; line-height: 1.7; }
.related-links { line-height: 2; font-size: 13px; }

/* ========== FAQ ========== */
.faq-item { margin-bottom: 6px; padding: 10px 14px; background: #fafafa; border-left: 3px solid #c93543; }
.faq-item h3 { font-size: 14px; color: #333; margin-bottom: 3px; font-weight: 500; }
.faq-item p { font-size: 13px; color: #666; }

/* ========== 预约表单 ========== */
.booking-box { background: #fff; padding: 20px; margin-bottom: 15px; }
.booking-box h2 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.booking-form, .ruzhu-form, .contact-form { display: flex; flex-direction: column; gap: 8px; }
.booking-form input, .ruzhu-form input, .contact-form input,
.booking-form textarea, .ruzhu-form textarea, .contact-form textarea { padding: 8px 10px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; outline: none; }
.booking-form input:focus, .ruzhu-form input:focus, .contact-form input:focus { border-color: #c93543; }
.btn-submit { background: #c93543; color: #fff; border: none; padding: 10px; border-radius: 3px; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn-submit:hover { background: #a82a37; }
.booking-note { text-align: center; margin-top: 8px; font-size: 13px; color: #999; }

/* ========== 入驻/关于/联系 ========== */
.ruzhu-page, .about-page, .contact-page, .city-page { max-width: 900px; margin: 15px auto; padding: 0 15px; }
.ruzhu-page h1, .about-page h1, .contact-page h1, .city-page h1 { font-size: 20px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #c93543; }
.ruzhu-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.benefit { padding: 14px; background: #fff; text-align: center; border: 1px solid #f0f0f0; }
.benefit h3 { font-size: 14px; margin-bottom: 4px; color: #c93543; }
.benefit p { font-size: 12px; color: #999; }
.about-stats { display: flex; justify-content: center; gap: 30px; margin: 20px 0; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 30px; color: #E67E22; }
.stat p { font-size: 12px; color: #999; }
.contact-info { background: #fff; padding: 16px; margin-bottom: 12px; }
.contact-info p { margin-bottom: 6px; font-size: 14px; }
.hot-cities, .all-cities { background: #fff; padding: 15px; margin-bottom: 12px; }
.prov-group { margin-bottom: 12px; }
.prov-group h3 { font-size: 14px; color: #c93543; margin-bottom: 6px; border-bottom: 1px solid #eee; padding-bottom: 4px; }

/* ========== Footer ========== */
.site-footer { background: #2c2c2c; color: #aaa; padding: 0; margin-top: 10px; font-size: 13px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-cities { padding: 15px; border-bottom: 1px solid #3a3a3a; }
.footer-cities h3 { font-size: 14px; color: #ccc; margin-bottom: 8px; }
.footer-cities a { color: #888; font-size: 12px; margin-right: 10px; line-height: 2; }
.footer-cities a:hover { color: #fff; }
.footer-bottom { padding: 12px 15px; text-align: center; }
.footer-links { margin-bottom: 6px; }
.footer-links a { color: #aaa; margin: 0 12px; font-size: 12px; }
.footer-links a:hover { color: #fff; }
.footer-info p { font-size: 11px; color: #666; margin-bottom: 2px; }
.footer-copy { font-size: 11px; color: #555; margin-top: 4px; }

/* ========== 404 ========== */
.not-found { text-align: center; padding: 60px 15px; }
.not-found h1 { font-size: 60px; color: #c93543; }

/* ========== 手机端 ========== */
/* ========== 文章详情页 ========== */
.article-page { background: #fff; border-radius: 10px; padding: 28px 32px; margin: 16px auto; max-width: 900px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.article-page h1 { font-size: 22px; line-height: 1.5; color: #1a1a1a; margin: 0 0 10px; }
.article-meta { display: flex; gap: 14px; color: #999; font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.article-body { font-size: 16px; line-height: 1.9; color: #333; }
.article-body p { margin: 0 0 18px; text-align: justify; }
.article-body h2 { font-size: 19px; color: #1a1a1a; margin: 32px 0 14px; padding: 8px 0 8px 14px; border-left: 4px solid #c93543; background: linear-gradient(90deg, #fcf2f3, #fff); border-radius: 0 6px 6px 0; }
.article-body h2:first-child { margin-top: 0; }
.article-body ol, .article-body ul { margin: 0 0 18px; padding-left: 24px; }
.article-body ol li, .article-body ul li { margin: 8px 0; padding-left: 4px; }
.article-body ol li::marker { color: #c93543; font-weight: 700; }
.article-body strong { color: #e65100; }
.article-body strong:only-child { display: inline-block; }
/* FAQ问答块（新结构） */
.article-body .qa { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 8px; padding: 14px 16px; margin: 0 0 14px; }
.article-body .qa .q { font-weight: 600; color: #1a1a1a; margin-bottom: 8px; font-size: 15px; }
.article-body .qa .q::before { content: "问 "; background: #c93543; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-right: 8px; vertical-align: 2px; font-weight: 400; }
.article-body .qa .a { color: #555; font-size: 15px; }
.article-body .qa .a::before { content: "答 "; background: #FF9F43; color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-right: 8px; vertical-align: 2px; }
/* 电话高亮 */
.article-tel { display: block; text-align: center; background: linear-gradient(135deg, #c93543, #a82a37); color: #fff; font-size: 17px; font-weight: 700; padding: 13px; border-radius: 8px; margin: 24px 0 8px; text-decoration: none; letter-spacing: 1px; }
.article-tel small { display: block; font-size: 12px; font-weight: 400; opacity: .85; margin-top: 2px; letter-spacing: 0; }

/* 关键词矩阵组件 */
.kw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 20px; }
.kw-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 14px; transition: box-shadow .15s; }
.kw-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); text-decoration: none; }
.kw-card h3 { font-size: 15px; color: #333; margin: 0 0 2px; }
.kw-card p { font-size: 12px; color: #999; margin: 0; }
.kw-icon { font-size: 28px; }
.kw-group { margin: 0 0 18px; }
.kw-group h2 { font-size: 17px; margin: 0 0 10px; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-chip { background: #fff; border: 1px solid #eee; color: #555; font-size: 13px; padding: 5px 14px; border-radius: 16px; transition: all .15s; }
.kw-chip:hover { border-color: #c93543; color: #c93543; text-decoration: none; }
.city-intro { color: #666; line-height: 1.8; margin: 0 0 24px; }
@media (max-width: 768px) { .kw-grid { grid-template-columns: 1fr; } }

/* 用户评价区 */
.reviews { display: grid; gap: 10px; margin: 0 0 18px; }
.review-item { background: #fff; border: 1px solid #f0f0f0; border-radius: 8px; padding: 14px 16px; }
.review-item p { margin: 8px 0 0; color: #444; font-size: 14px; line-height: 1.7; }
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review-name { font-weight: 600; font-size: 14px; color: #333; }
.review-stars { color: #FF9F43; font-size: 13px; letter-spacing: 2px; }

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-inner { padding: 6px 10px; gap: 8px; }
  .header-left .logo { font-size: 18px; }
  .header-left .logo-sub { display: none; }
  /* 手机端导航：5列×2行网格，全部可见 */
  .header-inner { flex-wrap: wrap; }
  .header-nav { order: 3; width: 100%; flex-wrap: wrap; display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; }
  .header-nav .nav-cat { font-size: 13px; padding: 5px 0; text-align: center; border-bottom: 2px solid transparent; }
  .header-nav .nav-cat.active { border-bottom-color: #c93543; }
  .search-bar { display: block; padding: 10px 12px; }
  .search-bar-inner { padding: 0; gap: 0; }
  .search-box { max-width: none; }
  .hero { padding: 24px 10px 20px; }
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 12px; letter-spacing: 1px; }
  .cat-header h2 { font-size: 16px; }
  .sub-cats { padding: 6px 10px; }
  .sub-cat { font-size: 12px; padding: 2px 8px; }
  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  /* 手机端：横向卡片 */
  .service-card { flex-direction: row; align-items: center; padding: 12px; gap: 12px; }
  .service-card .card-img { width: 64px; height: 64px; min-width: 64px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0; }
  .service-card .card-icon { font-size: 32px; }
  .service-card h3 { font-size: 16px; margin: 0 0 3px; }
  .service-card .desc { font-size: 12px; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .service-card .price { margin: 0; }
  .service-card .price .price-num { font-size: 20px; }
  .service-card .btn-book { padding: 5px 14px; }
  .service-card { padding: 10px; }
  .service-card h3 { font-size: 14px; }
  .service-card .price .price-num { font-size: 17px; }
  .service-card .desc { display: none; }
  .trust-bar { gap: 16px; padding: 12px 10px; flex-wrap: wrap; }
  .trust-item strong { font-size: 13px; }
  .ruzhu-benefits { grid-template-columns: repeat(2, 1fr); }
  .about-stats { gap: 16px; }
  .stat strong { font-size: 24px; }
  .footer-cities { display: none; }
  .article-page { padding: 18px 14px; margin: 10px; }
  .article-page h1 { font-size: 19px; }
  .article-body { font-size: 15px; }
  .article-body h2 { font-size: 17px; margin: 26px 0 12px; }
}
