/* 国考网 · 全站视觉增强层（theme.css）
   在 app.css 之上叠加：不改主色（#2563EB 蓝白），不引渐变；
   通过背景装饰、图标系统、阴影层次、区块节奏与动效整体提升观感。
   加载顺序：app.css -> admin.css(后台) -> theme.css（最后，负责覆盖增强）。 */

:root {
  --primary-050: #F3F7FF;
  --primary-100: #E4EDFF;
  --primary-200: #C7D9FF;
  --ink: #0F172A;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 20px 48px rgba(37, 99, 235, .13);
  --ring: 0 0 0 3px rgba(37, 99, 235, .12);
  --sep: #EDF1F7;
}

body { background: #F5F8FD; }

/* 页面主区最小高度：短页面也把页脚推到视口底部，消除下半部大片空白 */
main { display: block; min-height: calc(100vh - 68px - 220px); }

/* ============ 顶栏增强 ============ */
.site-header { box-shadow: 0 1px 0 rgba(15, 23, 42, .05); }
.site-header .header-inner { height: 72px; }
.nav-cta {
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, .36); background: var(--primary-dark); }

/* ============ Hero 大改 ============ */
.hero {
  position: relative;
  padding: 96px 0 44px;
  overflow: hidden;
  isolation: isolate;
}
/* 背景网格 + 顶部柔光晕（无渐变主色块，仅极淡氛围） */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M0 0h44M0 0v44' stroke='%232563EB' stroke-opacity='.08' fill='none'/%3E%3C/svg%3E");
  background-position: center top;
}
.hero::after {
  content: "";
  position: absolute; z-index: -1;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 460px;
  background: #EBF2FF; opacity: .72; border-radius: 50%; filter: blur(36px);
  pointer-events: none;
}

.hero .container { position: relative; }
.hero h1 { font-size: 54px; letter-spacing: 3px; line-height: 1.18; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 12px;
  background: var(--primary-100); border-radius: 6px; z-index: -1;
}
.hero-sub { max-width: 860px; margin-left: auto; margin-right: auto; font-size: 17.5px; }

/* Hero 顶部小标签（模板可选加入 .hero-badge） */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 6px 16px; font-size: 13.5px; color: var(--text-sub);
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-badge b { color: var(--primary); font-weight: 700; }
.hero-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #16A34A; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}

.hero-stats {
  gap: 26px; padding: 15px 38px; box-shadow: var(--shadow-md);
  border-color: #E6EDF9;
}
.hero-stats b { font-size: 20px; }

/* ============ 卡片氛围统一提升 ============ */
.card { box-shadow: var(--shadow-sm); }
.card:hover { box-shadow: var(--shadow-lg); }
.form-card { box-shadow: var(--shadow-md); }
.form-card:hover { transform: none; box-shadow: var(--shadow-md); border-color: var(--border); }

/* 表单卡标题：加左侧蓝条与副标 */
.form-card > h2 {
  position: relative; padding-left: 15px; font-size: 22px; margin-bottom: 6px;
}
.form-card > h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  border-radius: 3px; background: var(--primary);
}
.form-card .form-hint { line-height: 1.9; }

/* 生成按钮：更醒目 */
.btn-primary.btn-lg { box-shadow: 0 6px 18px rgba(37, 99, 235, .32); }
.btn-primary.btn-lg:hover { box-shadow: 0 10px 26px rgba(37, 99, 235, .42); }

/* ============ 特性区：加图标 ============ */
.features { gap: 22px; margin-top: 64px; }
/* 首页 4 张特性卡在宽屏铺满一行（覆盖 app.css 的 ≥1600 三列规则）；
   定价页 .pricing .features 排除在外（套餐数不定，保持自适应） */
@media (min-width: 1100px) {
  .features.features-4 { grid-template-columns: repeat(4, 1fr); }
}
.features .card {
  padding: 30px 28px 26px;
  position: relative;
}
.features .card::before {
  content: "";
  display: block; width: 46px; height: 46px; border-radius: 13px;
  background: var(--primary-050); border: 1px solid var(--primary-100);
  background-repeat: no-repeat; background-position: center; background-size: 24px 24px;
  margin-bottom: 16px;
  transition: background-color .2s ease, border-color .2s ease;
}
.features .card:hover::before { background-color: var(--primary-100); }
.features .card h3 { font-size: 18.5px; }
.features .card p:not(.price):not(.pack-each) { color: var(--text-sub); font-size: 14px; line-height: 1.85; }

/* 四个特性各自图标（线性、蓝色描边 SVG，data-uri） */
.features .card:nth-child(1)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h9l5 5v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/%3E%3Cpath d='M14 3v6h6'/%3E%3Cpath d='M8 13h8M8 17h5'/%3E%3C/svg%3E");
}
.features .card:nth-child(2)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 4.1L18 9l-4.1 1.9L12 15l-1.9-4.1L6 9l4.1-1.9z'/%3E%3Cpath d='M5 17l.8 1.8L8 19.6l-2.2.8L5 22l-.8-1.6L2 19.6l2.2-.8z'/%3E%3C/svg%3E");
}
.features .card:nth-child(3)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2'/%3E%3Cpath d='M9 7h6M9 11h6M9 15h4'/%3E%3C/svg%3E");
}
.features .card:nth-child(4)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}

/* ============ 步骤区：编号连线 ============ */
.how { margin-top: 76px; margin-bottom: 96px; }
.how h2 {
  text-align: center; font-size: 28px; margin-bottom: 8px;
}
.how::after { content: none; }
.how-lead { text-align: center; color: var(--text-sub); margin: -2px 0 34px; font-size: 15px; }
.steps { gap: 22px; position: relative; }
.steps li {
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.steps li::before {
  width: 38px; height: 38px; font-size: 17px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .30); margin-bottom: 12px;
}
.steps b { display: block; font-size: 17px; margin: 4px 0 6px; }
.steps span { font-size: 14px; line-height: 1.8; }
/* 桌面端步骤之间的虚线连接 */
@media (min-width: 1000px) {
  .steps { counter-reset: step; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 48px; left: 100%;
    width: 22px; height: 2px;
    border-top: 2px dashed var(--primary-200);
  }
}

/* ============ 通用区块标题（供各页复用） ============ */
.sec-head { text-align: center; margin: 0 auto 34px; max-width: 760px; }
.sec-head h2 { font-size: 28px; margin-bottom: 8px; }
.sec-head p { color: var(--text-sub); font-size: 15px; }

/* ============ 首页新增：信任区 / FAQ（填补下半部空旷） ============ */
.trust { margin: 8px 0 12px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.trust-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 26px 24px; box-shadow: var(--shadow-sm); text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trust-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-200); }
.trust-item .ico {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px;
  background: var(--primary-050); border: 1px solid var(--primary-100);
  background-repeat: no-repeat; background-position: center; background-size: 26px 26px;
}
.trust-item:nth-child(1) .ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.4-3 8-7 10-4-2-7-5.6-7-10V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}
.trust-item:nth-child(2) .ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
}
.trust-item:nth-child(3) .ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}
.trust-item:nth-child(4) .ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='9' width='18' height='7' rx='1'/%3E%3Cpath d='M7 9V4h10v5M7 16v4h10v-4'/%3E%3Ccircle cx='17' cy='12.5' r='.6' fill='%232563EB'/%3E%3C/svg%3E");
}
.trust-item b { display: block; font-size: 17px; margin-bottom: 6px; }
.trust-item p { color: var(--text-sub); font-size: 13.5px; line-height: 1.8; margin: 0; }

.faq { margin: 68px 0 96px; }
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 26px; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item:hover { border-color: var(--primary-200); box-shadow: var(--shadow-md); }
.faq-item h3 {
  font-size: 16px; margin: 0 0 8px; position: relative; padding-left: 26px; color: var(--ink);
}
.faq-item h3::before {
  content: "Q"; position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 6px; background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.faq-item p { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.85; padding-left: 26px; }

/* 首页底部行动条（CTA banner） */
.cta-band {
  margin: 0 0 90px; border-radius: var(--radius-xl);
  background: var(--primary); color: #fff; padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(37, 99, 235, .30); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 0h40M0 0v40' stroke='%23FFFFFF' stroke-opacity='.1' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-band .cta-txt { position: relative; }
.cta-band h2 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 15px; }
.cta-band .btn {
  position: relative; background: #fff; color: var(--primary);
  font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}
.cta-band .btn:hover { background: #fff; color: var(--primary-dark); transform: translateY(-2px); }

/* ============ 定价页增强 ============ */
.pricing { padding-top: 56px; }
.pricing > h1 { font-size: 34px; text-align: center; }
.pricing > .hero-sub { text-align: center; }
.pricing-info-head { margin-top: 72px; }
.pricing-group { font-size: 20px; text-align: center; }
.pricing .price-note::before { content: none; }
.pricing .price-note { text-align: center; }
.pricing .price-note h3 { font-size: 17px; }
.pricing .price-note p { color: var(--text-sub); font-size: 14px; line-height: 1.85; margin: 0; }
.features.features-3 { margin-top: 20px; }
@media (min-width: 1100px) { .features.features-3 { grid-template-columns: repeat(3, 1fr); } }
.pricing .features .card { padding: 30px 30px 28px; }
.pricing .features .card::before { content: none; }   /* 定价卡不用特性图标 */
.pricing .price { font-size: 34px; }
.pricing .card.featured { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing .card.featured::before { padding: 3px 14px; box-shadow: 0 4px 10px rgba(37, 99, 235, .3); }
.pricing .card ul li { padding: 7px 0; font-size: 14px; }
.pricing .card ul li::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px;
  vertical-align: -3px; background-repeat: no-repeat; background-position: center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ============ 教师工具页增强 ============ */
.teacher-page { padding-top: 8px; }
.teacher-page > h1 { font-size: 32px; margin-top: 34px; text-align: center; }
.teacher-page > .hero-sub { text-align: center; }
/* “登录后可用”提示卡：精化为浅蓝提示块 */
.teacher-page > .card.center {
  background: var(--primary-050); border-color: var(--primary-100);
  box-shadow: none; color: var(--text);
}
.teacher-page > .card.center:hover { transform: none; box-shadow: none; border-color: var(--primary-100); }
.teacher-page .card > h2 {
  position: relative; padding-left: 15px; font-size: 20px;
}
.teacher-page .card > h2::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px;
  border-radius: 3px; background: var(--primary);
}

/* ============ 关于页增强 ============ */
.about-page { padding-top: 48px; }
.about-page > h1 { font-size: 32px; }
.about-page .card h3 {
  position: relative; padding-left: 14px; margin-top: 18px;
}
.about-page .card h3::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 2px; background: var(--primary);
}

/* ============ 登录/注册增强 ============ */
.login-box { box-shadow: var(--shadow-lg); border-color: #E6EDF9; }
.login-box .btn-primary { box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }

/* ============ 用户控制台增强 ============ */
.account-page { padding-top: 8px; }
.acct-side { box-shadow: var(--shadow-md); border-color: #E6EDF9; }
.acct-side-id .acct-avatar {
  width: 42px; height: 42px; border-radius: 12px; font-size: 19px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .30);
}
.acct-bar { box-shadow: var(--shadow-md); border-color: #E6EDF9; }
.acct-bar .acct-id h2 { font-size: 19px; }
.ustat { box-shadow: var(--shadow-sm); }
.ustat:hover { box-shadow: var(--shadow-md); }
.panel { box-shadow: var(--shadow-sm); border-color: #E6EDF9; }
.panel-head { background: #FBFCFE; }
.panel-head h3 { position: relative; padding-left: 13px; }
.panel-head h3::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px;
  border-radius: 2px; background: var(--primary);
}
.buy-card { box-shadow: var(--shadow-sm); }
.buy-card h3 { position: relative; padding-left: 13px; }
.buy-card h3::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px;
  border-radius: 2px; background: var(--primary);
}

/* ============ 结果页增强 ============ */
.paper-info h1 { font-size: 26px; }
.paper-preview img { border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.spinner { border-width: 4px; }

/* 公开网盘下载：只渲染后台已填写的地址；品牌字标避免依赖第三方图标字体 */
.pan-downloads {
  margin-top: 22px;
  padding: 17px 18px 18px;
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-lg);
  background: var(--primary-050);
}
.pan-downloads-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.pan-downloads-head strong { font-size: 16px; color: var(--ink); }
.pan-downloads-head span { color: var(--text-sub); font-size: 12.5px; }
.pan-link-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pan-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #DCE7FA;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pan-link:hover {
  color: var(--primary);
  border-color: var(--primary-200);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.pan-link > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pan-link > b { margin-left: auto; color: var(--primary); font-size: 16px; line-height: 1; }
.pan-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -1px;
}
.pan-icon-quark { background: #1677FF; }
.pan-icon-baidu { background: #2932E1; }
.pan-icon-uc { background: #F97316; font-size: 10px; }
.pan-icon-thunder { background: #0EA5E9; }
.share-pan-links { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.share-pan-label { display: block; color: var(--text-sub); font-size: 12px; margin-bottom: 7px; }
.share-pan-links .pan-link-list { grid-template-columns: 1fr; gap: 6px; }
.share-pan-links .pan-link { padding: 7px 9px; font-size: 12.5px; }

/* ============ 页脚增强 ============ */
.site-footer { margin-top: 0; }
.footer-brand .logo { font-size: 19px; }

/* ============ 表单 select 统一箭头（补全 form-grid 下拉缺箭头） ============ */
.form-grid select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 34px; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-grid select:hover { border-color: #9FB3D1; }

/* ============ 响应式（保持 1800px 自适应体系） ============ */
@media (max-width: 1000px) {
  .cta-band { flex-direction: column; text-align: center; align-items: center; padding: 34px 28px; }
}
@media (max-width: 768px) {
  main { min-height: auto; }
  .hero { padding: 48px 0 20px; }
  .hero h1 { font-size: 32px; letter-spacing: 1px; }
  .hero-sub { font-size: 15px; }
  .features { grid-template-columns: 1fr; margin-top: 44px; }
  .how { margin-top: 52px; margin-bottom: 60px; }
  .how h2, .sec-head h2, .faq h2 { font-size: 23px; }
  .cta-band h2 { font-size: 22px; }
  .trust-grid { grid-template-columns: 1fr; }
  .faq { margin: 48px 0 64px; }
  .cta-band { margin-bottom: 64px; }
  .pan-link-list { grid-template-columns: 1fr; }
}
