/* ========== 乾甲丁家政便民信息发布平台 公共样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font: 14px/1.7 "Microsoft YaHei", "PingFang SC", sans-serif; color: #333; background: #f7f8fa; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; vertical-align: middle; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }
.container { width: 1200px; max-width: 94%; margin: 0 auto; }

/* ---------- 头部 ---------- */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; height: 66px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: #ff6a2b; }
.logo img { height: 40px; }
.logo small { font-size: 12px; color: #999; font-weight: 400; display: block; line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > .nav-item { position: relative; }
.nav a.nav-link { display: block; padding: 8px 15px; border-radius: 6px; font-size: 15px; color: #444; }
.nav a.nav-link:hover, .nav a.nav-link.active { color: #ff6a2b; background: #fff4ee; font-weight: 600; }
.nav .dropdown { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); border-radius: 8px; padding: 8px 0; min-width: 170px; display: none; z-index: 99; }
.nav .nav-item:hover .dropdown { display: block; }
.nav .dropdown a { display: block; padding: 8px 18px; font-size: 14px; color: #555; }
.nav .dropdown a:hover { color: #ff6a2b; background: #fff7f2; }
.header-btns { display: flex; align-items: center; gap: 12px; }
.btn-publish { background: linear-gradient(90deg, #ff7a3c, #ff5722); color: #fff !important; font-weight: 700; padding: 10px 22px; border-radius: 22px; font-size: 15px; box-shadow: 0 4px 12px rgba(255,87,34,.35); }
.btn-publish:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,87,34,.45); }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; border: none; border-radius: 8px; padding: 10px 26px; font-size: 15px; text-align: center; transition: all .15s; }
.btn-primary { background: #ff6a2b; color: #fff; }
.btn-primary:hover { background: #f55a1a; }
.btn-outline { border: 1px solid #ff6a2b; color: #ff6a2b; background: #fff; }
.btn-outline:hover { background: #fff4ee; }
.btn-ghost { border: 1px solid #ddd; color: #666; background: #fff; }
.btn-ghost:hover { border-color: #ff6a2b; color: #ff6a2b; }
.btn-big { padding: 14px 40px; font-size: 17px; border-radius: 10px; }
.btn-sm { padding: 5px 14px; font-size: 13px; border-radius: 6px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 面包屑 / 页面标题 ---------- */
.page-head { background: #fff; border-bottom: 1px solid #eee; padding: 14px 0; }
.crumbs { font-size: 13px; color: #999; }
.crumbs a { color: #666; margin: 0 3px; }
.crumbs a:hover { color: #ff6a2b; }

/* ---------- 卡片 / 面板 ---------- */
.panel { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.panel-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid #ff6a2b; }

/* ---------- 服务卡片 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); transition: all .2s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.service-card .cover { height: 160px; background: linear-gradient(135deg, #ffe8dc, #ffd2b8); display: flex; align-items: center; justify-content: center; font-size: 44px; color: #ff8a50; overflow: hidden; }
.service-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.service-card .info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.service-card .cate-tag { display: inline-block; font-size: 12px; color: #ff6a2b; background: #fff0e8; border-radius: 4px; padding: 1px 8px; margin-bottom: 8px; width: fit-content; }
.service-card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .desc { font-size: 13px; color: #888; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: #999; }
.service-card .price { color: #ff5722; font-size: 17px; font-weight: 700; }
.service-card .price small { font-size: 12px; font-weight: 400; }

/* ---------- 分类入口 ---------- */
.cate-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cate-item { background: #fff; border-radius: 12px; text-align: center; padding: 22px 8px; cursor: pointer; transition: all .2s; border: 1px solid transparent; }
.cate-item:hover { border-color: #ffcfb5; box-shadow: 0 6px 16px rgba(255,106,43,.12); }
.cate-item .ico { font-size: 34px; }
.cate-item .name { font-weight: 600; margin-top: 8px; }
.cate-item .cnt { font-size: 12px; color: #aaa; }

/* ---------- 表单 ---------- */
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-item label .req { color: #f43; margin-left: 2px; }
.form-item input[type=text], .form-item input[type=tel], .form-item input[type=password],
.form-item input[type=datetime-local], .form-item select, .form-item textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; transition: border .15s; background: #fff;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: #ff6a2b; }
.form-item textarea { min-height: 90px; resize: vertical; }
.form-tip { font-size: 12px; color: #aaa; margin-top: 4px; }
.upload-box { border: 1.5px dashed #d9d9d9; border-radius: 8px; padding: 12px; text-align: center; color: #999; cursor: pointer; transition: all .15s; background: #fafafa; }
.upload-box:hover { border-color: #ff6a2b; color: #ff6a2b; }
.upload-box img.preview { max-height: 120px; margin-top: 8px; border-radius: 6px; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.detail-banner { height: 260px; border-radius: 12px 12px 0 0; background: linear-gradient(135deg, #ffe8dc, #ffd2b8); display: flex; align-items: center; justify-content: center; font-size: 60px; color: #ff8a50; overflow: hidden; }
.detail-banner img { width: 100%; height: 100%; object-fit: cover; }
.price-big { color: #ff5722; font-size: 26px; font-weight: 700; }
.info-rows div { padding: 6px 0; border-bottom: 1px dashed #f0f0f0; font-size: 14px; }
.info-rows div b { color: #999; font-weight: 400; margin-right: 10px; }
.review-item { border-bottom: 1px solid #f5f5f5; padding: 14px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .stars { color: #ffb400; }
.review-item .who { color: #999; font-size: 12px; margin-top: 2px; }
.stars-pick { font-size: 26px; color: #ddd; cursor: pointer; letter-spacing: 4px; }
.stars-pick .on { color: #ffb400; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: #faf7f4; text-align: left; padding: 10px 12px; color: #666; }
.table td { padding: 12px; border-bottom: 1px solid #f2f2f2; vertical-align: top; }
.tag { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 12px; }
.tag-orange { background: #fff0e8; color: #ff6a2b; }
.tag-green { background: #e8f7ee; color: #18a058; }
.tag-gray { background: #f2f2f2; color: #999; }
.tag-blue { background: #e8f3fd; color: #2080f0; }
.tag-red { background: #fdecec; color: #d03050; }

/* ---------- 提示 / 弹窗 ---------- */
.toast { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.78); color: #fff; padding: 11px 26px; border-radius: 8px; z-index: 999; font-size: 14px; max-width: 80%; display: none; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal { background: #fff; border-radius: 12px; width: 460px; max-width: 92%; max-height: 86vh; overflow: auto; padding: 24px; }
.modal h3 { margin-bottom: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #2b2f36; color: #9aa0a8; margin-top: 40px; padding: 34px 0 20px; font-size: 13px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid #3a3f47; }
.footer-cols h4 { color: #d8dce2; font-size: 15px; margin-bottom: 10px; }
.footer-cols a { display: block; margin: 5px 0; color: #9aa0a8; }
.footer-cols a:hover { color: #ff8a50; }
.footer-bottom { text-align: center; padding-top: 16px; line-height: 2; }
.footer-bottom a { color: #9aa0a8; }
.footer-bottom a:hover { color: #ff8a50; }
.footer-bottom .beian { color: #d8dce2; }

/* ---------- 协议页正文 ---------- */
.doc-body h2 { font-size: 18px; margin: 22px 0 10px; }
.doc-body h3 { font-size: 15px; margin: 16px 0 8px; }
.doc-body p, .doc-body li { color: #555; margin-bottom: 8px; }
.doc-body ul { padding-left: 20px; list-style: disc; }
.doc-body ol { padding-left: 22px; list-style: decimal; }

/* ---------- 个人中心布局 ---------- */
.side-layout { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.side-menu { background: #fff; border-radius: 12px; padding: 14px; }
.side-menu a { display: block; padding: 11px 14px; border-radius: 8px; color: #555; margin-bottom: 4px; }
.side-menu a.active, .side-menu a:hover { background: #fff0e8; color: #ff6a2b; font-weight: 600; }

.empty { text-align: center; color: #bbb; padding: 50px 0; font-size: 14px; }
.empty .ico { font-size: 46px; margin-bottom: 8px; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; gap: 8px; margin: 26px 0 6px; }
.pager button { min-width: 36px; padding: 7px 12px; border: 1px solid #ddd; background: #fff; border-radius: 6px; }
.pager button.cur { background: #ff6a2b; color: #fff; border-color: #ff6a2b; }
.pager button:disabled { color: #ccc; cursor: not-allowed; }

/* ---------- Hero(首页顶部) ---------- */
.hero { background: linear-gradient(120deg, #ff7a3c 0%, #ff5722 60%, #f4633a 100%); color: #fff; padding: 52px 0 64px; position: relative; overflow: hidden; }
.hero h1 { font-size: 34px; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: .92; }
.search-bar { margin-top: 26px; background: #fff; border-radius: 30px; padding: 7px; display: flex; max-width: 640px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.search-bar input { flex: 1; border: none; padding: 10px 20px; font-size: 15px; background: transparent; }
.search-bar button { border: none; background: #ff5722; color: #fff; border-radius: 22px; padding: 10px 34px; font-size: 15px; font-weight: 600; }
.hero-badges { margin-top: 20px; display: flex; gap: 20px; font-size: 13px; opacity: .9; flex-wrap: wrap; }

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .cate-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-wrap, .side-layout { grid-template-columns: 1fr; }
  .nav { display: none; }
}
