/* 匠与财税官网 · 简约大气风格 · 移动端自适应 */
:root {
  --primary: #16437e;
  --primary-dark: #0e2f5c;
  --accent: #c9a24b;
  --text: #22262b;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e5e9ef;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(22, 67, 126, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.75; font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.container.narrow { width: min(860px, 92%); }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 24px; }
code { background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* 按钮 */
.btn { display: inline-block; padding: 12px 28px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; font-size: 15px; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-danger { background: #b23b3b; color: #fff; border: none; }
.text-link { font-weight: 600; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 46px; height: 46px; background: linear-gradient(135deg, #1a4d94, var(--primary)); color: #fff; font-size: 17px; font-weight: 700; border-radius: 10px; letter-spacing: 1px; white-space: nowrap; line-height: 1; padding-bottom: 2px; }
.logo-text strong { display: block; font-size: 19px; color: var(--text); letter-spacing: 1px; }
.logo-text em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 8px 13px; font-size: 15px; color: var(--text); border-radius: 6px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--bg-alt); text-decoration: none; }
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 4px; }
.drop-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); min-width: 180px; padding: 6px 0; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; padding: 9px 18px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* 首页 Hero */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #1e5aa8 100%); color: #fff; padding: 90px 0 80px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 5px 14px; border-radius: 20px; font-size: 13px; margin-bottom: 22px; }
.hero h1 { font-size: 38px; line-height: 1.4; margin-bottom: 18px; max-width: 820px; }
.hero-sub { font-size: 17px; opacity: .92; max-width: 780px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.hero-actions .btn-ghost:hover { background: #fff; color: var(--primary); }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; }
.hero-points li { position: relative; padding-left: 22px; font-size: 14px; opacity: .95; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* 通用区块 */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 28px; text-align: center; margin-bottom: 12px; color: var(--text); }
.section-desc { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 40px; }
.section-gap { margin-top: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.article-split { grid-template-columns: 1fr 300px; }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(22,67,126,.13); }
.section-alt .card { background: #fff; }
.service-card h3 { font-size: 20px; margin-bottom: 6px; }
.card-tag { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.card-body { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.card-price { font-size: 14px; color: var(--primary); font-weight: 600; background: var(--bg-alt); border-radius: 6px; padding: 6px 10px; margin-bottom: 14px; }
.card-more { font-size: 14px; font-weight: 600; }
.case-card h3 { font-size: 17px; line-height: 1.6; margin-bottom: 10px; }
.case-industry { display: inline-block; font-size: 13px; color: var(--accent); border: 1px solid var(--accent); border-radius: 14px; padding: 2px 12px; margin-bottom: 12px; }

/* 优势 */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { background: #fff; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; box-shadow: var(--shadow); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

/* 餐饮专题 */
.catering-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.catering-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.catering-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.catering-item p { font-size: 14px; color: var(--muted); }

/* 新闻列表 */
.news-list { list-style: none; }
.news-list li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.news-date { color: var(--muted); font-size: 14px; white-space: nowrap; }
.news-list a { color: var(--text); flex: 1; }
.news-list a:hover { color: var(--primary); }
.news-big-list { list-style: none; }
.news-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.news-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.news-item h2 { font-size: 20px; }
.news-item h2 a { color: var(--text); }
.news-item h2 a:hover { color: var(--primary); }
.news-item time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.news-item p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* FAQ */
.faq-mini details, .faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.faq-mini summary, .faq-item summary { padding: 14px 18px; cursor: pointer; font-weight: 600; list-style-position: inside; }
.faq-mini details[open] summary, .faq-item[open] summary { border-bottom: 1px dashed var(--border); }
.faq-mini p, .faq-item p { padding: 14px 18px; color: var(--muted); }
.faq-item summary h2 { font-size: 17px; display: inline; font-weight: 600; }
.faq-full details { margin-bottom: 16px; }

/* 列表清单 */
.check-list, .cross-list, .flow-list { margin: 0 0 24px; padding-left: 0; list-style: none; }
.check-list li, .cross-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: #2e8b57; font-weight: 700; }
.cross-list li::before { content: "✕"; position: absolute; left: 4px; color: #b23b3b; font-weight: 700; }
.flow-list { counter-reset: flow; }
.flow-list li { counter-increment: flow; position: relative; padding: 8px 0 8px 36px; }
.flow-list li::before { content: counter(flow); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* 页头 */
.page-head { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 56px 0 48px; }
.page-head h1 { font-size: 32px; margin-bottom: 10px; }
.breadcrumb { font-size: 13px; opacity: .85; }
.breadcrumb a { color: #fff; opacity: .85; }
.page-desc { margin-top: 14px; max-width: 780px; opacity: .92; font-size: 15px; }
.product-price-big { margin-top: 10px; color: var(--accent); font-weight: 600; }
.product-price-big a { color: var(--accent); text-decoration: underline; }

/* 产品页 */
.product-list { display: grid; gap: 26px; }
.product-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); background: #fff; }
.product-item h2 { font-size: 22px; margin-bottom: 4px; }
.product-tagline { color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 12px; }
.product-price { color: var(--primary); font-weight: 600; background: var(--bg-alt); padding: 6px 12px; border-radius: 6px; font-size: 14px; }

/* 案例 */
.case-list { display: grid; gap: 26px; }
.case-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; background: #fff; box-shadow: var(--shadow); }
.case-item h2 { font-size: 20px; margin-bottom: 16px; line-height: 1.5; }
.case-detail dt { font-weight: 700; color: var(--primary); margin-top: 12px; }
.case-detail dt::before { content: "▪ "; color: var(--accent); }
.case-detail dd { color: var(--muted); margin-top: 4px; }
.case-link { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* 报价表 */
.table-wrap { overflow-x: auto; margin-bottom: 32px; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); }
.price-table th, .price-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 15px; }
.price-table th { background: var(--primary); color: #fff; }
.price-table tr:nth-child(even) { background: var(--bg-alt); }

/* 文章页 */
.article-meta { font-size: 14px; color: var(--muted); }
.article-content { background: #fff; }
.article-content h2 { font-size: 22px; margin: 28px 0 12px; }
.article-content h3 { font-size: 18px; margin: 20px 0 10px; }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { margin: 0 0 14px 24px; }
.article-content blockquote { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 12px 18px; margin: 16px 0; color: var(--muted); }
.article-content img { border-radius: 8px; margin: 10px 0; }
.article-content a { text-decoration: underline; }
.article-tags { margin-top: 26px; }
.article-tags span { display: inline-block; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); font-size: 13px; border-radius: 14px; padding: 3px 12px; margin: 0 8px 8px 0; }
.article-nav { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; font-size: 14px; }
.article-side { display: grid; gap: 20px; align-content: start; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.side-card h3 { font-size: 16px; margin-bottom: 12px; }
.side-list { list-style: none; }
.side-list li { padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.side-list li:last-child { border-bottom: none; }
.qr-card { text-align: center; }
.qr-card img { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.qr-card p { font-size: 13px; color: var(--muted); }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: #fff; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 20px; margin-bottom: 14px; }
.contact-big { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.contact-qr { text-align: center; }
.contact-qr img { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; }

/* 关于页 CTA / 页内二维码块 */
.about-cta { display: flex; gap: 26px; align-items: center; background: var(--bg-alt); border-radius: var(--radius); padding: 26px 30px; margin-top: 36px; }
.about-cta img { border-radius: 8px; border: 1px solid var(--border); flex-shrink: 0; }
.about-cta h3 { margin-bottom: 8px; font-size: 19px; }

/* 底部 */
.cta-band { background: var(--primary-dark); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { font-size: 26px; margin-bottom: 8px; }
.cta-qr { display: flex; align-items: center; gap: 14px; }
.cta-qr img { border-radius: 8px; background: #fff; padding: 4px; }
.site-footer { background: #0c1f3d; color: #c7d1e0; font-size: 14px; padding: 54px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 30px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c7d1e0; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-bottom: 10px; }
.footer-contact strong a { color: var(--accent); font-size: 16px; }
.footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.footer-qr img { background: #fff; padding: 3px; border-radius: 6px; }
.districts { line-height: 1.9; }
.footer-links { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; }
.footer-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }

/* 悬浮条 */
.float-bar { position: fixed; right: 16px; bottom: 90px; z-index: 90; display: grid; gap: 8px; }
.float-item { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 64px; padding: 10px 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; color: var(--text); text-align: center; }
.float-item:hover { color: var(--primary); text-decoration: none; }
.float-wechat { position: relative; cursor: pointer; }
.qr-pop { display: none; position: absolute; right: 74px; top: -20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.15); padding: 14px; width: 178px; text-align: center; }
.qr-pop p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.float-wechat:hover .qr-pop, .float-wechat:focus-within .qr-pop { display: block; }
.float-top { display: none; }

/* 区域标签 */
.district-tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.district-tags span { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 6px 16px; font-size: 14px; color: var(--muted); }
.section-alt .district-tags span { background: var(--bg); }

/* ---------------- 后台 ---------------- */
.admin-body { background: var(--bg-alt); }
.login-box { width: min(380px, 92%); margin: 12vh auto; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 40px 36px; }
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 24px; }
.login-box label { display: block; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.login-box input { width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; }
.login-error { background: #fdecec; color: #b23b3b; border-radius: 6px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.login-error.ok { background: #e8f6ee; color: #2e8b57; }
.login-tip { margin-top: 18px; text-align: center; font-size: 13px; }
.admin-topbar { background: var(--primary-dark); color: #fff; }
.admin-topbar .admin-wrap { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.admin-topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-topbar nav a { color: #c7d1e0; padding: 6px 12px; border-radius: 6px; font-size: 14px; }
.admin-topbar nav a.on, .admin-topbar nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.admin-wrap { width: min(1180px, 94%); margin: 0 auto; }
.admin-main { padding: 28px 0 40px; }
.admin-main h1 { font-size: 22px; margin-bottom: 18px; }
.admin-panel { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 26px; margin-bottom: 24px; }
.narrow-panel { width: min(520px, 100%); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 4px; }
.stat-card strong { font-size: 32px; color: var(--primary); }
.stat-card span { color: var(--muted); font-size: 14px; }
.stat-card a { font-size: 13px; }
.admin-panel label { display: block; margin: 14px 0; font-size: 14px; color: var(--muted); }
.admin-panel input[type="text"], .admin-panel input[type="url"], .admin-panel input[type="password"], .admin-panel input[type="datetime-local"], .admin-panel textarea, .admin-panel select { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: inherit; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-table th { background: var(--bg-alt); }
.admin-table .ops { display: flex; gap: 8px; align-items: center; }
.admin-table form { display: inline; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.badge-on { background: #e8f6ee; color: #2e8b57; }
.badge-off { background: #fdf3e4; color: #b07b1c; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.inline-form input { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 10px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px 8px 0 0; }
.editor-toolbar button { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--primary); color: var(--primary); }
.editor-area { min-height: 340px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; padding: 18px 20px; font-size: 16px; line-height: 1.9; outline: none; background: #fff; }
.editor-area:focus { border-color: var(--primary); }
.editor-area h2 { font-size: 21px; margin: 18px 0 10px; }
.editor-area h3 { font-size: 17px; margin: 14px 0 8px; }
.editor-area p { margin-bottom: 10px; }
.editor-area:empty::before { content: attr(data-placeholder); color: var(--muted); }
.admin-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 16px 0 26px; }

/* ---------------- 移动端自适应 ---------------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .catering-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .article-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 5%; border-bottom: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  body.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px; }
  .drop-menu { display: block; position: static; border: none; box-shadow: none; padding-left: 18px; }
  .header-cta .btn { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .hero-points { gap: 10px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 22px; }
  .card-grid, .card-grid.two, .feature-grid, .catering-grid, .split, .stat-grid, .footer-grid { grid-template-columns: 1fr; }
  .page-head { padding: 36px 0 30px; }
  .page-head h1 { font-size: 24px; }
  .about-cta { flex-direction: column; text-align: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .float-bar { bottom: 16px; right: 10px; }
  .qr-pop { display: none !important; }
  .news-item-head { flex-direction: column; gap: 4px; }
  .admin-topbar .admin-wrap { flex-direction: column; height: auto; padding: 10px 0; gap: 8px; }
  .admin-table { font-size: 13px; }
  .admin-table .ops { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  .catering-grid { grid-template-columns: 1fr; }
}
