/* 个人开票自助指引页。
   注意：门户下发 `Content-Security-Policy: default-src 'self'`（无 style-src 'unsafe-inline'），
   任何 `<style>` 块与 `style="..."` 行内样式都会被浏览器丢弃 —— 因此本页样式必须放在这个外部文件里。 */

:root {
  --inv-line: rgba(0, 0, 0, .10);
  --inv-soft: #f6f7f9;
  --inv-text: #1f2329;
  --inv-muted: #667085;
}

body { margin: 0; }

.inv-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.inv-header { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.inv-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.inv-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--inv-text); font-weight: 700; }
.inv-brand img { height: 30px; }
.inv-nav { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; }
.inv-nav a { text-decoration: none; color: var(--inv-muted); }
.inv-nav a.active { color: var(--inv-text); font-weight: 600; }

/* Hero */
.inv-hero { background: linear-gradient(135deg, #eef4ff 0%, #f7fbef 100%); padding: 56px 0 44px; }
.inv-hero .en { font-size: 22px; color: #5b6b8c; margin: 0 0 6px; font-weight: 600; }
.inv-hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 10px; color: var(--inv-text); }
.inv-hero p { color: var(--inv-muted); margin: 6px 0; font-size: 15px; line-height: 1.8; }
.inv-hero .btns { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.inv-btn { display: inline-block; padding: 11px 22px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 600; }
.inv-btn.primary { background: #2f6bff; color: #fff; }
.inv-btn.ghost { background: #fff; color: #2f6bff; border: 1px solid #cddcff; }

/* 区块 */
.inv-section { padding: 48px 0; }
.inv-section.alt { background: var(--inv-soft); }
.inv-title { font-size: 26px; margin: 0 0 8px; color: var(--inv-text); text-align: center; }
.inv-sub { color: var(--inv-muted); text-align: center; margin: 0 0 26px; font-size: 15px; }

/* 资料卡 */
.inv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.inv-card { background: #fff; border: 1px solid var(--inv-line); border-radius: 16px; padding: 20px 22px; }
.inv-card h3 { margin: 0 0 10px; font-size: 17px; color: var(--inv-text); }
.inv-card p { margin: 0; color: #344054; line-height: 1.75; font-size: 14.5px; }
.inv-card ul { margin: 0; padding-left: 20px; }
.inv-card li { margin: 8px 0; line-height: 1.7; color: #344054; }
.inv-card.no { border-left: 4px solid #f0a020; }
.inv-hint { margin-top: 18px; color: var(--inv-muted); font-size: 14px; line-height: 1.8; }

/* 步骤 */
/* 桌面上 2 列（420px 起）：发票/税局截图是 16:9，3 列会把正文压到看不清 */
.inv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 18px; }
.inv-step { background: #fff; border: 1px solid var(--inv-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; }
.inv-step .badge { width: 30px; height: 30px; border-radius: 50%; background: #2f6bff; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.inv-step h4 { margin: 0 0 8px; font-size: 15px; color: var(--inv-text); }
.inv-step p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #475467; }
/* 步骤截图：手机长图与桌面截图混用 ⇒ 用 contain + 统一最大高度，避免手机图把卡片撑到两屏 */
.inv-shot { margin: 12px 0 10px; }
.inv-shot a { display: block; }
.inv-shot img {
  display: block;
  /* 手机长图（710×1538）与桌面截图（16:9）混用：用 width:auto + max-height 让它按自身比例缩放，
     不要 width:100%（那会把手机图缩成 193px 宽、两侧留大片白） */
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  border: 1px solid var(--inv-line);
  border-radius: 12px;
  background: #fff;
}
.inv-foot { text-align: center; color: var(--inv-muted); font-size: 14px; margin-top: 26px; line-height: 1.8; }

/* 页脚 */
.inv-footer { background: #0f172a; color: #cbd5e1; padding: 26px 0; font-size: 13px; }
.inv-footer .inv-wrap { display: flex; flex-direction: column; gap: 6px; }
.inv-footer a { color: #93c5fd; text-decoration: none; }

/* ── 手机（≤640px）─────────────────────────────────────────────────────
   真机问题（2026-10-31 用户截图 + 390×844 模拟复核）：
   ① `.inv-header-inner` 用 `padding: 12px 0` 覆盖了 `.inv-wrap` 的左右 20px ⇒ 导航贴左被裁；
   ② Hero 56px 上下留白在手机上过高，首屏只见标题；
   ③ 卡片 20/22px 内边距 + 17px 标题在 390px 宽度下显拥挤。
   这里逐项收窄，并禁止横向溢出。 */
@media (max-width: 640px) {
  body { overflow-x: hidden; }

  .inv-header-inner {
    height: auto;
    /* 只改上下，保留 .inv-wrap 的左右 20px */
    padding-top: 12px;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .inv-brand img { height: 26px; }
  .inv-brand { font-size: 15px; }
  .inv-nav { gap: 14px; font-size: 13.5px; }

  .inv-hero { padding: 30px 0 26px; }
  .inv-hero .en { font-size: 17px; margin-bottom: 4px; }
  .inv-hero h1 { font-size: 23px; line-height: 1.3; margin-bottom: 8px; }
  .inv-hero p { font-size: 14px; line-height: 1.75; }
  .inv-hero .btns { margin-top: 16px; gap: 10px; }
  .inv-btn { padding: 10px 18px; font-size: 14px; }

  .inv-section { padding: 30px 0; }
  .inv-title { font-size: 19px; margin-bottom: 6px; }
  .inv-sub { font-size: 13.5px; margin-bottom: 18px; padding: 0 4px; }

  .inv-cards { grid-template-columns: 1fr; gap: 12px; }
  .inv-card { padding: 16px 16px; border-radius: 14px; }
  .inv-card h3 { font-size: 15.5px; margin-bottom: 8px; }
  .inv-card p, .inv-card li { font-size: 13.5px; line-height: 1.75; }
  .inv-card ul { padding-left: 18px; }
  .inv-card li { margin: 6px 0; }

  .inv-steps { grid-template-columns: 1fr; gap: 12px; }
  .inv-step { padding: 14px 16px; border-radius: 14px; }
  .inv-step .badge { width: 26px; height: 26px; font-size: 13px; margin-bottom: 8px; }
  .inv-step h4 { font-size: 14.5px; }
  .inv-step p { font-size: 13px; }
  .inv-shot { padding: 16px 8px; margin: 10px 0 8px; }

  .inv-hint { font-size: 13px; }
  .inv-foot { font-size: 13px; margin-top: 18px; }
  .inv-footer { padding: 20px 0; font-size: 12.5px; }
}
