:root {
  --ink: #202c3e;
  --muted: #758094;
  --orange: #ed7529;
  --line: #e8edf3;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fb; color: var(--ink); font: 15px/1.7 system-ui, -apple-system, "Microsoft YaHei", sans-serif; }
header { background: #fff; border-bottom: 1px solid var(--line); padding: 20px max(5vw, 20px); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; width: 258px; max-width: 100%; height: 44px; object-fit: contain; }
@media (max-width: 700px) { .brand img { width: 206px; height: auto; } }
nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { color: #4d596d; font-weight: 500; }
a { color: #bd5415; text-decoration: none; transition: color .18s; }
a:hover { color: #ed7529; text-decoration: underline; }
main { max-width: 1120px; margin: 44px auto; padding: 0 24px; min-height: 65vh; }
.eyebrow { color: var(--orange); letter-spacing: 3px; font-size: 12px; font-weight: 700; }
h1 { font-size: 30px; margin: 10px 0 28px; line-height: 1.4; }
h2 { font-size: 20px; margin: 0 0 18px; }
h3 { font-size: 18px; }
.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 22px; overflow-wrap: anywhere; box-shadow: 0 4px 20px rgba(27, 43, 69, .035); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.grid .card { margin: 0; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wide { grid-column: 1/-1; }
label { display: block; font-size: 14px; color: #526076; margin-bottom: 17px; font-weight: 500; }
input, select, textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #dce3ed; border-radius: 9px; background: #fff; font: inherit; color: var(--ink); margin: 8px 0; outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237, 117, 41, .12); }
input[type=checkbox] { display: inline; width: auto; accent-color: var(--orange); vertical-align: middle; margin-right: 5px; }
textarea { min-height: 150px; resize: vertical; }
button, .button { border: 0; display: inline-block; background: var(--orange); color: #fff; padding: 11px 20px; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; margin: 3px 5px 3px 0; transition: background .18s, box-shadow .18s; }
button:hover, .button:hover { background: #d9611c; color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(237, 117, 41, .2); }
button:focus-visible, a:focus-visible { outline: 3px solid #efad70; outline-offset: 3px; }
.secondary { background: #eaf0f5; color: var(--ink); }
.secondary:hover { background: #dfe7ef; color: var(--ink); }
.danger { background: #b53636; }
.notice { background: #eaf7f0; border: 1px solid #cfe9db; border-radius: 9px; padding: 13px 16px; margin: 15px 0; }
.error { background: #fff2ee; border-color: #f5d2c9; color: #b34130; }
.muted, small { color: var(--muted); }
.badge { display: inline-block; padding: 4px 10px; background: #eef2f7; border-radius: 20px; font-size: 12px; }
.price { font-size: 25px; color: #c65b1a; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
td, th { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #647188; font-size: 13px; background: #f8fafc; }
.tablewrap { overflow-x: auto; }
form.inline { display: inline-block; }
form.inline input, form.inline select { width: auto; display: inline-block; max-width: 190px; }
.cover { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; }
.details { white-space: pre-wrap; line-height: 1.95; }
.gallery img { max-width: 100%; display: block; margin: 18px auto; border-radius: 8px; }
footer { text-align: center; color: var(--muted); padding: 26px 16px; border-top: 1px solid var(--line); font-size: 13px; }
.split { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
/* 登录、注册页独立居中，不影响会员及管理后台布局。 */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 15% 18%, #fff1e5 0, transparent 45%), radial-gradient(ellipse at 90% 85%, #eaf0fa 0, transparent 45%), #f7f8fc; }
.auth-page header { flex-shrink: 0; }
.auth-page main { width: 100%; max-width: none; margin: 0; padding: 48px 20px; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-page .eyebrow { font-size: 11px; letter-spacing: 2.5px; }
.auth-page h1 { margin: 10px 0 26px; font-size: 29px; text-align: center; letter-spacing: 2px; }
.auth-page main > .card, .auth-page main > .notice { width: 100%; max-width: 460px; }
.auth-page .auth-card { padding: 32px 36px; border: 1px solid #fff; box-shadow: 0 16px 50px rgba(31, 47, 76, .08); margin-bottom: 0; border-radius: 20px; }
.auth-card input:not([type=checkbox]) { min-height: 48px; background: #fafbfd; }
.auth-card form > button { width: 100%; min-height: 48px; margin: 8px 0 15px; background: linear-gradient(110deg, #f68b3d, #ed6e24); box-shadow: 0 6px 16px rgba(237, 117, 41, .18); }
.auth-card form > a { display: block; text-align: center; font-size: 14px; }
.auth-card > p { text-align: center; font-size: 14px; margin: 5px 0 0; }
.auth-card label:has(input[type=checkbox]) { font-size: 12px; line-height: 1.9; font-weight: 400; }
.auth-page footer { border: 0; background: transparent; }
@media (max-width: 700px) {
  .split, .formgrid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  main { margin-top: 25px; padding: 0 15px; }
  h1 { font-size: 25px; }
  header { padding: 15px; gap: 12px; }
  .brand { font-size: 21px; }
  nav { gap: 10px 16px; font-size: 13px; }
  .card { padding: 20px; }
  .auth-page main { padding: 32px 16px; }
  .auth-page .auth-card { padding: 25px 22px; }
  .auth-page h1 { font-size: 26px; margin-bottom: 22px; }
  footer { font-size: 12px; }
}
/* 首页与内容栏目共用会员中心视觉规范。 */
header { row-gap: 18px; }
header nav { flex: 1; justify-content: flex-end; column-gap: 18px; row-gap: 9px; font-size: 14px; }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center; padding: 42px; background: linear-gradient(120deg, #fff, #fff5eb); }
.hero-intro { font-size: 19px; line-height: 1.9; color: #59677a; margin: 22px 0; }
.hero-aside { border-left: 1px solid #f2d9c3; padding-left: 35px; color: #ad5926; }
.hero-aside strong { display: block; font-size: 40px; line-height: 1.45; margin: 15px 0; letter-spacing: 3px; }
.searchbar { display: flex; align-items: center; gap: 12px; }
.hero .searchbar { margin-top: 23px; }
.searchbar input { flex: 1; min-width: 0; }
.searchbar button { flex-shrink: 0; margin-right: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 36px 0 18px; gap: 16px; }
.section-title h2 { margin: 0; }
.category-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.category-links .card { margin: 0; color: var(--ink); }
.category-links .card:hover { text-decoration: none; border-color: #edb58d; }
.category-links h3 { margin-top: 0; }
.category-links span { color: #bd5415; }
.service-card h3 { min-height: 60px; }
.article-list h2 { margin-top: 15px; }
.prose { max-width: 900px; margin-left: auto; margin-right: auto; }
.prose .lead { font-size: 18px; color: #68758a; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.home-cta { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.member-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bd5415; }
@media (max-width: 700px) {
  header nav { justify-content: flex-start; flex-basis: 100%; font-size: 13px; gap: 10px 16px; }
  .hero { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .hero-intro { font-size: 16px; }
  .hero-aside { display: none; }
  .searchbar { gap: 8px; }
  .searchbar button { padding-left: 13px; padding-right: 13px; }
  .home-cta { align-items: flex-start; flex-direction: column; }
}
.detail-overview { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.detail-overview h2 { margin-top: 15px; line-height: 1.7; }
.detail-cover { width: 100%; border-radius: 12px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span { background: #f0f4f9; border-radius: 6px; padding: 5px 10px; font-size: 13px; }
.member-badge { background: #fff0df; color: #ba6b20; }
.provider-card { background: linear-gradient(145deg,#fff,#fff8ef); }
.provider-card h2 { font-size: 18px; line-height: 1.7; }
.related-service { border-bottom: 1px solid var(--line); padding: 15px 0; }
.related-service .price { font-size: 17px; margin: 5px 0; }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.pagination a { display: block; background: #fff; padding: 8px 15px; border: 1px solid var(--line); border-radius: 8px; }
.pagination a.active { background: var(--orange); color: #fff; }
@media(max-width:700px){.detail-overview{grid-template-columns:1fr}.detail-cover{max-height:250px;object-fit:cover}}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
