﻿/* =====================================================
   显智单招升学网站 — 全站公共样式
   文件：/css/common.css
   说明：Header、Footer、导航、通用栏目、列表、表单、FAQ、广告位、通用按钮
   ===================================================== */

:root {
  /* 活力配色（面向高中毕业生，年轻鲜亮） */
  --coral-50: #FFEDE6; --coral-100: #FFDACE; --coral-200: #FFB59E; --coral-300: #FF8F6D; --coral-400: #FF6A3D; --coral-800: #E04E22;
  --green-50: #E7FBF1; --green-100: #C9F4E1; --green-200: #8DE5C2; --green-300: #52D6A3; --green-400: #16C784; --green-800: #0E9E68;
  --blue-50: #E8F3FF; --blue-100: #CFE7FF; --blue-200: #9ECFFF; --blue-300: #6CB6FF; --blue-400: #3B9EFF; --blue-800: #1A78D8;
  --amber-50: #FFF4E0; --amber-100: #FEE9C5; --amber-200: #FBD38F; --amber-300: #F8BC59; --amber-400: #F5A623; --amber-800: #B97A0B;
  --gray-50: #F5F6F7; --gray-100: #E5E6E6; --gray-200: #C6C6C4; --gray-300: #A7A7A2; --gray-400: #888780; --gray-800: #5F5E5A;
  --bg: #fff; --bg-secondary: #FAFBFC;
  --text: #1a1a1a; --text-secondary: #666; --text-hint: #999;
  --border: rgba(0,0,0,0.08); --border-light: rgba(0,0,0,0.05);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; } /* 平滑滚动 + 吸顶 header(64px+边框)让位 */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--text); background: #fff; line-height: 1.6; font-size: 14px; }
.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; }

/* 通用按钮 */
.btn-primary { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: 24px; background: var(--coral-400); color: #fff; font-size: 14px; font-weight: 500; }
.btn-primary:hover { background: var(--coral-800); }
.btn-outline { display: inline-flex; align-items: center; padding: 10px 24px; border-radius: 24px; background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); font-size: 14px; font-weight: 500; }
.btn-outline:hover { background: #fff; color: var(--green-800); }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; }
.logo img { height: 46px; width: auto; margin-right: 10px; }
.logo-text { font-size: 22px; font-weight: 700; color: var(--text); }
.logo-text span { color: var(--green-400); }
/* 菜单间距用相邻兄弟 margin 实现（flex gap 在搜狗等老内核 Chromium<84 下不生效，会导致菜单挤成一串） */
.nav, .nav-menu { display: flex; align-items: center; }
.nav > * + *, .nav-menu > li + li { margin-left: 22px; }
.nav-menu { list-style: none; }
.nav a, .nav-menu a { color: var(--text); font-size: 16px; }
.nav a:hover, .nav a.active, .nav-menu a:hover, .nav-menu a.active { color: var(--green-400); }
.nav-cta { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 20px; background: var(--coral-400); color: #fff !important; font-size: 13px; font-weight: 500; }
.nav-cta:hover { background: var(--coral-800); }

/* 下拉子菜单 */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; }
.nav-item > a:hover, .nav-item > a.active { color: var(--green-400); }
.nav-item .caret { font-size: 12px; color: var(--green-400); margin-left: 3px; }
.sub-nav, .dropdown { position: absolute; top: 100%; left: 0; min-width: 140px; /* padding-top: 8px; */ background: transparent; border: none; box-shadow: none; display: none; z-index: 200; }
.nav-item:hover .sub-nav, .nav-item:hover .dropdown { display: block; }
.sub-nav ul { list-style: none; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.10); padding: 6px 0; }
.sub-nav a, .dropdown a { display: block; padding: 8px 16px; font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
.sub-nav a:hover, .dropdown a:hover { background: var(--green-50); color: var(--green-800); }

/* 通用栏目 */
.section { padding: 26px 0; border-bottom: 1px solid var(--border-light); }
.section:last-of-type { border-bottom: none; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; border-left: 4px solid var(--green-400); padding-left: 12px; }
.col-head h2 { font-size: 18px; font-weight: 600; }
.col-head .more { font-size: 13px; color: var(--green-800); }
.col-head .more:hover { color: var(--coral-400); }

/* 单列列表栏目 */
.list-1col { list-style: none; }
.list-1col li { display: flex; align-items: center; padding: 11px 4px; border-bottom: 1px dashed var(--border-light); }
.list-1col li:last-child { border-bottom: none; }
.list-1col .l-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-400); margin-right: 12px; flex-shrink: 0; }
.list-1col .l-title { flex: 1; font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-1col .l-title:hover { color: var(--green-400); }
.list-1col .l-sub { font-size: 12px; color: var(--text-hint); margin-left: 12px; white-space: nowrap; }
.list-1col .l-date { font-size: 12px; color: var(--text-hint); margin-left: 12px; white-space: nowrap; }

/* 广告位（通栏促销 banner） */
.promo-band { max-width: 1260px; margin: 0 auto; padding: 8px 20px; }
.promo { width: 100%; border-radius: 14px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.promo-text h3 { font-size: 17px; font-weight: 700; }
.promo-text p { font-size: 13px; opacity: .92; margin-top: 4px; }
.promo-btn { flex-shrink: 0; padding: 10px 24px; border-radius: 22px; background: #fff; color: var(--green-800); font-size: 14px; font-weight: 600; white-space: nowrap; }
.promo-btn:hover { background: rgba(255,255,255,.85); }
.promo--coral { background: linear-gradient(120deg, #FF8A5B 0%, var(--coral-400) 100%); color: #fff; }
.promo--green { background: linear-gradient(120deg, #2BD68F 0%, var(--green-800) 100%); color: #fff; }
.promo--amber { background: linear-gradient(120deg, #FFC15E 0%, var(--amber-400) 100%); color: #fff; }
.promo--coral .promo-btn { color: var(--coral-800); }
.promo--green .promo-btn { color: var(--green-800); }
.promo--amber .promo-btn { color: var(--amber-800); }
.promo--blue { background: linear-gradient(120deg, #4F8CFF 0%, #2456E0 100%); color: #fff; }
.promo--purple { background: linear-gradient(120deg, #9B6BFF 0%, #6C3EE8 100%); color: #fff; }
.promo--dark { background: linear-gradient(120deg, #3A4656 0%, #1F2733 100%); color: #fff; }
.promo--blue .promo-btn { color: #2456E0; }
.promo--purple .promo-btn { color: #6C3EE8; }
.promo--dark .promo-btn { color: #1F2733; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
.faq-item .q { font-size: 15px; font-weight: 600; }
.faq-item .a { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* FAQ + 联系我们 布局 */
.faq-contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
.fc-left, .fc-right { min-width: 0; }
.fc-right .contact-wrap { grid-template-columns: 1fr; gap: 16px; max-width: none; margin: 0; }
.fc-right .contact-qr { text-align: center; }

/* 联系 */
.contact-wrap { display: grid; grid-template-columns: 1fr 220px; gap: 24px; max-width: 720px; }
.contact-form { border: 1px solid var(--coral-200); border-radius: var(--radius); padding: 20px; background: #fff; }
.contact-form h3 { font-size: 15px; margin-bottom: 12px; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; outline: none; }
.form-input:focus { border-color: var(--coral-400); }
.form-submit { width: 100%; padding: 10px; background: var(--coral-400); color: #fff; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.form-submit:hover { background: var(--coral-800); }
.form-submit[disabled] { opacity: .6; cursor: not-allowed; }
.form-msg { margin-top: 10px; font-size: 12px; line-height: 1.5; text-align: center; }
.contact-qr { text-align: center; background: linear-gradient(120deg, #A7E4C8, #D8F6E8); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 28px rgba(167,228,200,.28); }
.contact-qr .qr-img { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; background: #fff; padding: 6px; box-sizing: border-box; margin: 0 auto 10px; display: block; }
.contact-qr .qr-label { font-size: 14px; color: var(--green-800); font-weight: 600; margin-top: 4px; line-height: 1.6; }

/* Footer */
.footer { background: var(--green-800); padding: 32px 0 18px; font-size: 13px; color: #fff; margin-top: 0; border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 28px; }
.f-logo { font-size: 26px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.f-logo span { color: #fff; }
.f-desc { font-size: 14px; line-height: 1.7; color: #fff; }
.f-col h4 { font-size: 16px; color: #fff; margin-bottom: 10px; }
.f-col p { font-size: 14px; line-height: 1.9; color: #fff; }
.f-col a { color: #fff; }
.f-col a:hover { color: var(--coral-400); }
.f-qr { width: 92px; height: 92px; object-fit: contain; border-radius: var(--radius); margin-top: 6px; background: #fff; padding: 4px; border: 1px solid var(--border-light); }
.f-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.f-qr-tip { font-size: 12px; color: inherit; opacity: .85; }
.footer-bottom { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / 60%); font-size: 12px; color: #fff; text-align: center; line-height: 1.8; }
.footer-bottom a { color: #fff; }

/* ===== 网站地图页 sitemap.html ===== */
.sitemap-section {
    padding: 36px 0 48px;
}
.sitemap-title { font-size: 26px; font-weight: 600; margin-bottom: 20px; padding-left: 12px; border-left: 4px solid var(--green-800, #166534); }
.sitemap-home { font-size: 15px; margin-bottom: 18px; }
.sitemap-home a { color: var(--green-800, #166534); font-weight: 600; }
.sitemap-home a:hover { color: var(--coral-400); }
/* 层级卡片横向网格：auto-fill 自适应列数，窄屏自动单列 */
.sitemap-grid { display: block; }
.sitemap-group { background: #fff; border: 1px solid var(--border-light, #e5e7eb); border-radius: 8px; padding: 18px 22px; margin-bottom: 14px; }
.sitemap-group h2 { font-size: 16px; margin-bottom: 12px; }
.sitemap-group h2 a { color: var(--green-800, #166534); }
.sitemap-group ul { display: flex; flex-wrap: wrap; gap: 8px 38px; list-style: none; }
.sitemap-group ul li { font-size: 13px; line-height: 1.9; position: relative; padding-left: 12px; }
.sitemap-group ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 5px; height: 5px; border-radius: 50%; background: var(--gray-400, #888780); }
.sitemap-group ul a { color: var(--text-secondary, #4b5563); }
.sitemap-group ul a:hover { color: var(--green-800, #166534); }

/* 专题卡：卡内按分组分行，行内横向平铺 */
.sitemap-topic .topic-row { display: flex; align-items: baseline; gap: 16px; padding: 6px 0; }
.sitemap-topic .topic-row + .topic-row { border-top: 1px dashed var(--border-light, #e5e7eb); }
.sitemap-topic .t-label { flex: 0 0 3.5em; font-size: 13px; font-weight: 600; color: var(--green-800, #166534); }
/* 无子栏目的薄卡片：仅标题链接 */
.sitemap-group.solo h2 { margin-bottom: 0; }

/* 响应式公共部分 */
@media (max-width: 768px) {
  .nav { display: none; }
  .list-1col { padding: 0 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .f-col:first-child { grid-column: 1 / -1; }
  .faq-contact { grid-template-columns: 1fr; gap: 24px; }
  .contact-wrap { grid-template-columns: 1fr; }
  /* 留资表单小屏适配：双列并排改单列堆叠，防输入框固有宽度撑爆容器 */
  .contact-form { padding: 16px; }
  .contact-qr { padding: 16px; }
  .form-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .form-input { width: 100%; flex: none; }
  .promo { flex-direction: column; align-items: flex-start; }
  .promo-btn { width: 100%; text-align: center; }
}

/* ===== 面包屑导航（样式对齐设计稿 news-detail.html） ===== */
.crumb { font-size: 13px; color: var(--text-hint); padding: 14px 0 4px; }
.crumb a { color: var(--text-secondary); text-decoration: none; }
.crumb a:hover { color: var(--green-800); }
.crumb span { margin: 0 6px; }
.crumb .crumb-current { color: var(--text); margin-left: 0; }

/* ===== 顶部通栏广告（自 channel.css 上移 20260930，channel/article/topic/topic_group/about 共用） ===== */
.headline { background: linear-gradient(120deg, var(--green-800) 0%, var(--green-400) 100%); color: #fff; padding: 28px 0; }
.headline-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.headline-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.headline-text p { font-size: 14px; color: rgba(255,255,255,.92); }
.headline-cta { flex-shrink: 0; }
.headline-cta a { display: inline-flex; align-items: center; background: #fff; color: var(--green-800); font-size: 14px; font-weight: 700; padding: 10px 24px; border-radius: 24px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.headline-cta a:hover { background: var(--green-50); }

@media (max-width: 768px) {
  .headline-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .headline-text h2 { font-size: 20px; }
}
