/* =========================================================
   《中国民政》杂志订阅 仿站 - 响应式主题样式（仿 shophome 设计）
   设计要点：
   - 公开页：灰色顶栏 + 白色 logo 行，左侧杂志图右侧登录框
   - 会员页：红色渐变导航条 + 白色标题行（杂志订阅 / 订单管理）
   - 步骤条（伪元素旋转方块箭头）、表单容器、支付选项、弹窗
   - flex 布局为主；桌面 / 移动端自适应（max-width:900px 断点）
   仅依赖 HTML5 + CSS + jQuery，不引入其它 UI 框架
   ========================================================= */
:root {
    --red: #d81e0b;            /* 主红（激活步骤 / 按钮） */
    --red-deep: #c40d11;       /* 标题红 */
    --red-grad-top: #cf0211;   /* 导航渐变起点 */
    --red-grad-bot: #ff2507;   /* 导航渐变终点 */
    --red-btn: #de4c4c;        /* 首页大按钮红 */
    --blue: #409eff;           /* 链接蓝 */
    --btn-blue: #003366;       /* 登录按钮深蓝 */
    --ink: #333;
    --ink-light: #666;
    --line: #e0e0e0;
    --bg: #f5f5f5;
}

/* ---------- 基础 reset ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, li, dl, dd, figure, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
table { border-collapse: collapse; border-spacing: 0; }
input, button, select, textarea { font-family: inherit; font-size: 100%; outline: none; border: none; background: transparent; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    min-height: 100vh;
}

.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.content-col { flex: 1; display: flex; flex-direction: column; align-items: center; }

/* ---------- 通用表单控件 ---------- */
.input, .picker {
    height: 42px;
    padding: 0 12px;
    margin: 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    color: var(--ink);
    transition: all .3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.picker { appearance: none; -webkit-appearance: none; padding-right: 32px; }
.input:hover, .picker:hover, textarea.input-area:hover { border-color: var(--blue); }
.input:focus, .picker:focus, textarea.input-area:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(64,158,255,.2);
}
textarea.input-area {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    resize: vertical;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* =========================================================
   一、公开页头部（登录 / 注册）：灰条 + logo 行
   ========================================================= */
.pub-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    background: var(--bg);
    padding: 8px 170px;
}
.pub-menu .right { display: flex; gap: 20px; color: var(--ink); }

.pub-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 170px 10px;
    background: #fff;
}
.pub-sub .mag { display: flex; align-items: center; gap: 10px; }
.pub-sub .mag img { width: 66px; height: 66px; border-radius: 5px; }
.pub-sub .mag .name { font-size: 20px; font-weight: bold; color: var(--ink); }
.pub-sub .login-info { font-size: 16px; color: var(--ink); }
.pub-sub .mag:hover .name, .pub-sub .login-info:hover { color: #6eb92b; }

/* ---------- 登录页：左杂志右登录框 ---------- */
.login-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1220px;
    margin: 60px auto 40px;
}
.magazine-section { flex: 1; }
.magazine-section .cover { width: 100%; height: 296px; border: 2px solid #fff; }
.login-section { width: 450px; flex-shrink: 0; }
.login-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 20px;
}
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.login-header .login-type { font-size: 18px; font-weight: bold; color: var(--ink); }
.toggle-area { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.orange-tip {
    background: #ff7f24;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 2px;
    white-space: nowrap;
}
.toggle-img {
    width: 40px; height: 40px;
    background: url("/static/img/login_type_q.png") no-repeat;
    background-size: 80px 40px;
}
.toggle-img.qr-img { background-position: 2px 0; }        /* 精灵图左：二维码 */
.toggle-img.computer-img { background-position: -40px 0; } /* 精灵图右：小电脑 */

.account-login-content .input-item { margin-bottom: 15px; }
.account-login-content .input { width: 100%; }
.login-btn, .reg-btn {
    width: 100%;
    height: 40px;
    background: var(--btn-blue);
    color: #fff;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 16px;
    transition: background .3s;
}
.login-btn:hover, .reg-btn:hover { background: #004080; }
.register-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: var(--blue);
    text-decoration: underline;
    font-size: 14px;
    cursor: pointer;
}
.qr-login-content { display: flex; flex-direction: column; align-items: center; }
.qr-login-content .qr-code {
    width: 160px; height: 160px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    cursor: pointer;
}
.qr-login-content .qr-tip { font-size: 14px; color: var(--ink-light); }
.form-msg { display: block; min-height: 18px; margin-top: 8px; font-size: 13px; color: #c4161c; }

/* ---------- 注册页：居中注册框 ---------- */
.reg-content { display: flex; justify-content: center; margin: 76px auto 40px; padding: 0 20px; }
.register-section { width: 476px; max-width: 100%; }
.register-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 20px;
}
.register-header { margin-bottom: 20px; }
.register-header .register-type { font-size: 18px; font-weight: bold; color: var(--ink); }
.register-form-content .input-item { margin-bottom: 15px; }
.register-form-content .input { width: 100%; }
.login-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 14px;
    color: var(--ink-light);
}
.login-link .login-link-text { color: var(--blue); text-decoration: underline; cursor: pointer; }

/* =========================================================
   二、会员页头部：红色渐变条 + 白色标题行
   ========================================================= */
.m-menubar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    background: linear-gradient(to bottom, var(--red-grad-top), var(--red-grad-bot));
    height: 40px;
    padding: 0 200px;
    color: #fff;
}
.m-menubar .right { display: flex; align-items: center; gap: 16px; }
.m-menubar .line { color: rgba(255,255,255,.6); }
.m-menubar a.opbutton { color: #fff; }
.m-menubar a.opbutton:hover { opacity: .8; }

.m-subrow {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--red-deep);
    font-size: 26px;
    padding: 0 20px;
}
.op_button {
    display: inline-block;
    color: var(--ink);
    min-width: 130px;
    height: 30px;
    line-height: 28px;
    padding: 0 20px;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
    text-align: center;
}
.op_button:hover { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }

/* ---------- 步骤条（对齐目标站：圆角胶囊 + 伸出式箭头尖角 + 通高白色雪佛龙） ---------- */
.steps-bar {
    display: flex;
    height: 42px;
    margin: 20px 0;
    min-width: 980px;
    border-radius: 21px;
    overflow: hidden;
}
.step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    position: relative;
}
/* 前面的段压在后面的段之上，尖角才能盖住下一段背景 */
.step:nth-child(1) { z-index: 6; }
.step:nth-child(2) { z-index: 5; }
.step:nth-child(3) { z-index: 4; }
.step:nth-child(4) { z-index: 3; }
.step:nth-child(5) { z-index: 2; }
.step.active {
    color: red;
}
/* 已走过的步骤：保留品牌红但弱化，与「当前步」区分。
   不加这一层时，第四步点亮会让前三步全灰，视觉上像流程断层。 */
.step.done {
    color: #cf0211;
    opacity: .55;
}
/* 段右端的箭头尖角：三角形伸出本段右缘 18px，压在下一段上；
   颜色取自该段背景的末端色，保证与段身无缝衔接 */
.step:not(.last-step)::before {
    content: "";
    position: absolute;
    top: 0; right: -18px;
    width: 18px; height: 100%;
    background: #d8d8d8;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.step.active:not(.last-step)::before { background: #cf0211; }
/* 分段之间的通高白色雪佛龙（❯）：顶点恰好落在尖角顶点上（段右缘外 18px 处） */
.step:not(.active):not(.last-step)::after { background: #efefef; }
.step-text { padding: 0 14px; z-index: 2; white-space: nowrap; }

/* ---------- 会员内容容器 ---------- */
.m-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.form-container {
    width: 100%;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.form-section { margin-bottom: 20px; }
.section-title {
    display: block;
    background: #f2f2f2;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 3px solid var(--red);
    font-weight: bold;
    font-size: 16px;
}
.description { margin-bottom: 10px; color: var(--ink-light); }

/* 订刊信息行 */
.form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.form-row .picker { min-width: 90px; max-width: 130px; }
.form-row .input { min-width: 80px; max-width: 120px; }
.amount { color: #ff4d4f; font-weight: bold; font-size: 16px; }
.total {
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.total-amount { color: #ff4d4f; font-size: 18px; }

/* 收刊信息（盒状标签 + 输入框） */
.form-group { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 15px; }
.f-label {
    width: 110px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: #ff4d4f;
    font-size: 14px;
    white-space: nowrap;
    margin-right: 10px;
}
.form-group .input { flex: 1; min-width: 220px; }

/* 底部按钮 */
.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.next-btn, .back-btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all .3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}
.next-btn { background: linear-gradient(135deg, #1890ff, #40a9ff); color: #fff; }
.next-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(24,144,255,.3); }
.back-btn { background: linear-gradient(135deg, #fff, #f5f5f5); color: var(--ink); border: 1px solid #d9d9d9; }
.back-btn:hover { transform: translateY(-2px); }

/* =========================================================
   三、首页（杂志订阅落地页）
   ========================================================= */
/* 未登录：欢迎语（登录门户） */
.home-welcome {
    width: 100%;
    max-width: 1220px;
    margin: 30px auto 0;
    padding: 0 20px;
    text-align: center;
}
.home-welcome-title { font-size: 30px; color: var(--red-deep); font-weight: bold; }
.home-welcome-sub { margin-top: 10px; font-size: 15px; color: var(--ink-light); }

.home-title-row {
    display: flex;
    width: 700px;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}
.home-title-row .title { font-size: 30px; color: var(--ink); }
.home-title-row .button_group { display: flex; gap: 12px; }
.nav-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 14px;
    color: var(--ink);
}
.nav-btn:hover { background: var(--red-deep); color: #fff; border-color: var(--red-deep); }

.process {
    display: flex;
    flex-direction: column;
    width: 700px;
    max-width: 100%;
    align-items: center;
    padding: 40px 10px 30px;
}
.process img { width: 100%; }
.process .info {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: #eee;
    border: 1px solid #eaeaea;
    padding: 18px;
    margin-top: 16px;
    line-height: 1.9;
    width: 100%;
}
.subscribe_button { display: flex; gap: 200px; margin-top: 20px; }
.subscribe_button button {
    background: var(--red-btn);
    font-size: 22px;
    color: #fff;
    width: 240px;
    height: 88px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    transition: opacity .2s;
}
.subscribe_button button:hover { opacity: .88; }

.home-footer {
    display: flex;
    color: #43322e;
    align-items: center;
    justify-content: space-between;
    padding: 0px 170px;
    background: #fff;
}
.home-footer .logo img { width: 175px; height: 75px; object-fit: contain; }
.home-footer .consult { display: flex; flex-direction: column; }
.home-footer .icp, .home-footer .security { font-size: 12px; color: #999; }

/* =========================================================
   四、订单列表（flex 表格）
   ========================================================= */
.table-scroll { width: 100%; overflow-x: auto; }
.order-table {
    width: 100%;
    min-width: 1040px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.order-table .table-header { display: flex; background: var(--bg); border-bottom: 1px solid var(--line); }
.order-table .table-cell {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    color: var(--ink);
    border-right: 1px solid var(--line);
}
.order-table .table-cell:last-child { border-right: none; }
.order-table .table-row { display: flex; border-bottom: 1px solid var(--line); }
.order-table .table-row:nth-child(even) { background: #fafafa; }
.order-table .table-row:last-child { border-bottom: none; }
.order-table .table-row .table-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    color: var(--ink-light);
    min-height: 60px;
}
.order-actions { display: flex; gap: 10px; margin-top: 5px; }
/* 订单号较长，给多一点宽度；其余列均分 */
.order-table .table-cell.cell-sn { flex: 1.7; word-break: break-all; }
/* 行内辅助说明（如"3 天后自动确认收货"） */
.order-table .cell-tip { display: block; margin-top: 4px; font-size: 12px; color: #999; }
.action-link { color: var(--blue); font-size: 12px; text-decoration: underline; }
.action-link:hover { color: #1890ff; }
.page-nav { margin-top: 14px; width: 100%; text-align: center; }
.page-nav a { color: var(--blue); margin: 0 4px; }

/* ---------- 订单详情 ---------- */
.detail-rows { display: flex; flex-direction: column; }
.detail-rows .drow { display: flex; padding: 8px 0; border-bottom: 1px dashed #eee; }
.detail-rows .drow:last-child { border-bottom: none; }
.detail-rows .dlabel { width: 120px; flex-shrink: 0; color: var(--ink-light); }
.detail-rows .dvalue { flex: 1; color: var(--ink); }

/* ---------- 订单详情：分区标题行（含修改按钮）+ 内联编辑表单 ---------- */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.section-head .section-title { margin-bottom: 0; }
.detail-edit {
    margin-top: 10px;
    padding: 12px 15px;
    background: #fafafa;
    border: 1px solid var(--line);
    border-radius: 5px;
}
.detail-edit .form-item-h { margin-bottom: 10px; }
.detail-edit .edit-actions { display: flex; gap: 10px; margin-top: 5px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.badge-ok { background: #e8f7e8; color: #1a9c54; }
.badge-no { background: #fdeced; color: #c4161c; }
.badge-wait { background: #fff7e8; color: #d48806; }

/* =========================================================
   五、支付页（在线 / 线下）
   ========================================================= */
.order-info {
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 16px;
}
.payment-option-wrapper { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; width: 100%; }
.payment-item { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.payment-item:last-child { border-bottom: none; }
.payment-label {
    width: 220px;
    flex-shrink: 0;
    background: var(--bg);
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
}
.payment-content { flex: 1; padding: 15px; display: flex; flex-direction: column; justify-content: center; }
.option-item { display: flex; align-items: center; font-size: 16px; margin-bottom: 10px; cursor: pointer; }
.pay-radio { transform: scale(0.9); margin-right: 12px; }
/* 微信支付横版图（159x40，图标+文字一体）：只限高，宽度按比例自适应 */
.pay-icon { height: 28px; width: auto; display: block; }
.pay-text { font-size: 16px; margin-left: 8px; }
.offline-info { font-size: 14px; line-height: 1.8; width: 100%; padding-left: 34px; }
.bank-item { margin-bottom: 6px; color: var(--ink); }
.tip-text {
    color: var(--red-deep);
    font-weight: bold;
    padding: 10px 15px;
    border: 1px dashed var(--red-deep);
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
    background: #fef6f6;
}
/* 支付方式不可用：整行置灰 + 右侧提示（提示文案同样由控制器算好） */
.option-item.is-disabled { color: #bbb; cursor: not-allowed; }
.channel-tip { font-size: 13px; color: #ff4d4f; margin-left: 10px; }
.channel-tip.hide { display: none; }
/* 在线支付与线下汇款两块之间的间距 */
.payment-option-gap { margin-top: 15px; }
/* 支付操作反馈区（失败原因 / 汇款提示） */
.pay-msg { margin-top: 12px; font-size: 14px; min-height: 20px; text-align: right; }
.pay-msg.ok { color: var(--ink); }
.pay-msg.err { color: #ff4d4f; }

/* ---------- 弹窗 ---------- */
.popup-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-container { background: #fff; border-radius: 8px; width: 80%; max-width: 500px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.popup-header { padding: 20px; border-bottom: 1px solid #eee; text-align: center; }
.popup-title { font-size: 18px; font-weight: bold; }
.popup-title-image { width: 120px; height: 30px; object-fit: contain; vertical-align: middle; }
.popup-content {
    padding: 20px;
    font-size: 16px;
    color: var(--ink-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.payment-amount { font-size: 18px; font-weight: bold; margin-bottom: 20px; color: var(--ink); }
.popup-content .qr-code { width: 200px; height: 200px; margin: 10px 0 16px; }
.qr-tip { font-size: 14px; color: #999; margin-top: 6px; }
.popup-footer { padding: 20px; border-top: 1px solid #eee; display: flex; justify-content: center; gap: 15px; }
.confirm-btn {
    padding: 10px 30px;
    background: var(--red);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
}
.confirm-btn:hover { background: var(--red-deep); }
.cancel-btn {
    padding: 10px 30px;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 16px;
}
.cancel-btn:hover { background: #e8e8e8; }

/* 支付成功（绿色对勾） */
.success-box { display: flex; flex-direction: column; align-items: center; }
.check-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #4caf50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.check-mark { font-size: 46px; color: #fff; font-weight: bold; line-height: 1; }
.success-title { font-size: 20px; font-weight: bold; color: var(--ink); margin-bottom: 8px; }
.order-no-text { font-size: 15px; color: var(--ink-light); margin-bottom: 8px; }

/* =========================================================
   六、发票页（左表单 + 右样张）
   ========================================================= */
.invoice-wrap { display: flex; gap: 20px; width: 100%; }
.form-left { flex: 1; }
.invoice-info-row { margin-bottom: 15px; }
.order-amount-red { color: #ff4d4f; font-weight: bold; }
.form-item-h { display: flex; align-items: center; margin-bottom: 15px; }
.form-item-h .f-label-v {
    width: 150px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 15px;
    color: var(--ink);
    font-size: 14px;
}
.form-item-h .input { flex: 1; min-width: 0; }
.radio-inline { display: inline-flex; align-items: center; gap: 5px; margin-right: 20px; font-size: 14px; }
.sample-right { width: 380px; flex-shrink: 0; }
.invoice-sample-container {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.sample-title { font-weight: bold; margin-bottom: 10px; }
.invoice-sample-box { position: relative; container-type: inline-size; }
.invoice-sample-img { width: 100%; border: 1px solid #eee; display: block; }
/* 发票样张实时预览覆盖层：left/top 为样张图上对应栏位的百分比位置 */
.ipv {
    position: absolute;
    transform: translateY(-50%);
    font-size: 11px;
    font-size: 2.2cqw; /* 随样张宽度等比缩放；不超过票面行距，避免溢出遮挡相邻行 */
    line-height: 1;
    color: #333;
    font-family: "SimSun", "宋体", serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
/* 坐标基于 fp_example.jpg(560x375) 实测：
   left 对齐各印刷标签冒号之后的空白填写区，top 取所在行的垂直中心；
   购买方区各行标签止于：名 称:≈16.5% / 纳税人识别号:≈18%，密码区左界≈58.5% */
.ipv-no    { left: 79%;   top: 10.4%; max-width: 19%; }   /* 发票号码行（标签「发票号码:」止于76.6%，留足余量） */
.ipv-title { left: 17%; top: 23.7%; max-width: 39%; }   /* 购买方「名 称」行（标签止于约16%，填写区右侧止于57.5%不压密码区） */
.ipv-tax   { left: 17%;   top: 27.3%; max-width: 38.5%; } /* 购买方「纳税人识别号」行（标签止于约16%） */
.ipv-item  { left: 12%;   top: 47%;   max-width: 15%; }   /* 明细首行（表头「项目名称」在39.5%，勿压表头） */
.ipv-total { left: 80%;   top: 70.5%; max-width: 18%; }   /* 「价税合计(小写)」填写区（标签止于约77%） */
.sample-desc { font-size: 12px; color: #999; margin-top: 8px; line-height: 1.6; }
.operation-note {
    margin-top: 20px;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.9;
}
.note-title { font-weight: bold; color: var(--ink); }

/* ---------- 全局轻提示 ---------- */
#globalToast {
    position: fixed;
    left: 50%;
    bottom: 15%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 6px;
    display: none;
    z-index: 10000;
}

/* =========================================================
   响应式：≤ 900px（平板 / 手机）
   ========================================================= */
@media (max-width: 900px) {
    .pub-menu, .pub-sub { padding-left: 16px; padding-right: 16px; }
    .m-menubar { padding: 0 16px; font-size: 14px; }
    .m-menubar .right { gap: 8px; }
    .m-subrow { font-size: 20px; padding: 0 16px; }
    .op_button { min-width: 100px; font-size: 15px; }

    /* 登录页改上下堆叠 */
    .login-content { flex-direction: column; margin-top: 20px; }
    .magazine-section .cover { height: 180px; object-fit: cover; }
    .login-section { width: 100%; }

    .reg-content { margin-top: 30px; }

    /* 首页 */
    .home-title-row { padding: 16px; }
    .home-title-row .title { font-size: 24px; }
    .process { padding-top: 20px; }
    .subscribe_button { gap: 20px; width: 100%; justify-content: center; }
    .subscribe_button button { width: 45%; max-width: 240px; height: 70px; font-size: 18px; }
    .home-footer { flex-direction: column; gap: 10px; padding: 16px; text-align: center; }
    .home-footer .logo img { width: 130px; height: 56px; }

    /* 步骤条 */
    .steps-bar { min-width: 0; width: 100%; margin: 14px 0; height: 36px; border-radius: 18px; }
    .step:not(.last-step)::before { right: -12px; width: 12px; }
    .step:not(.last-step)::after { right: -18px; width: 12px; height: 22px; }
    .step-text { padding: 0 10px 0 12px; font-size: 12px; white-space: nowrap; }

    /* 支付页 */
    .payment-item { flex-direction: column; }
    .payment-label { width: 100%; border-right: none; border-bottom: 1px solid var(--line); padding: 10px 0; }
    .offline-info { padding-left: 0; }

    /* 发票页 */
    .invoice-wrap { flex-direction: column; }
    .sample-right { width: 100%; }
    .form-item-h { flex-wrap: wrap; }
    .form-item-h .f-label-v { width: 100%; text-align: left; padding: 0 0 6px; }

    /* 收刊信息标签 */
    .form-group .f-label { width: 90px; }
    .form-group .input { min-width: 0; }
}
