/* 基础变量 */
:root { --blue: #0054ac; --blue-light: #eaf3ff; --border: #e2e2e2; --text-main: #222; --text-sub: #666; --bg: #f7f7f9; --danger: #e44c4c; }
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text-main); }
a { color: #0b63d8; text-decoration: none; } a:hover { text-decoration: underline; }

/* 头部 */
.global-header { background: var(--blue); color: #fff; padding: 8px 0; }
.global-header-inner { max-width: 960px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; }
.global-logo-mark { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.global-logo-text { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.global-subtitle { font-size: 12px; opacity: 0.9; margin-left: auto; }
.global-breadcrumb { background: #f3f6fb; border-bottom: 1px solid #dde3ef; }
.global-breadcrumb-inner { max-width: 960px; margin: 0 auto; padding: 6px 16px; font-size: 12px; color: #666; display: flex; align-items: center; gap: 4px; }
.breadcrumb-arrow { color: #999; }
.page-wrapper { max-width: 960px; margin: 24px auto 40px; padding: 0 16px; }

/* 导航条 */
.step-header { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #555; margin-bottom: 16px; }
.step-header-center { text-align: center; flex: 1; font-weight: 600; font-size: 13px; color: #333; }
.step-header-side { width: 120px; }
.step-header-center small { display: block; font-weight: 400; font-size: 12px; color: #888; margin-top: 2px; }
.substep-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 28px; }
.substep-item { flex: 1; min-width: 120px; border-radius: 999px; border: 1px solid var(--border); background: #fff; padding: 6px 10px; font-size: 13px; text-align: center; cursor: default; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #999; }
.substep-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--border); background: #fff; }

/* 状态控制 */
.substep-item.active { border-color: var(--blue); background: var(--blue-light); color: var(--blue); }
.substep-item.active .substep-dot { border-color: var(--blue); background: var(--blue); }
.substep-item.done { color: var(--blue); cursor: pointer; border-color: #ddd; }
.substep-item.done .substep-dot { border-color: var(--blue); background: var(--blue); }

/* SPA 切换动画 */
.step-section { display: none; animation: fadeIn 0.3s ease; }
.step-section.active-section { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* 卡片 */
.card { background: #fff; border-radius: 10px; border: 1px solid #eee; padding: 28px 32px 32px; margin-bottom: 20px; }
h1 { font-size: 26px; text-align: center; margin: 4px 0 8px; }
.page-description { text-align: center; font-size: 14px; color: var(--text-sub); margin-bottom: 28px; }
.section-title { font-size: 18px; margin: 28px 0 12px; font-weight: 600; }
.divider { border-top: 1px solid #eee; margin: 16px 0 20px; }
.info-box { background: #f8fafc; border-radius: 8px; border: 1px solid #e5e7eb; padding: 16px 18px; font-size: 13px; color: #555; margin-bottom: 20px; }
.info-box-title { font-weight: 600; margin-bottom: 6px; font-size: 14px; }

/* 表单通用 */
.form-group { margin-bottom: 20px; font-size: 14px; }
.form-label { display: inline-block; font-weight: 600; margin-bottom: 6px; }
.required { color: #d60000; font-size: 12px; margin-left: 4px; }
.form-control, select { width: 100%; padding: 9px 12px; border-radius: 6px; border: 1px solid #ccc; font-size: 14px; outline: none; transition: border-color 0.15s ease; background: #fff; }
.form-control:focus, select:focus { border-color: var(--blue); }
.radio-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.radio-row label { font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; }
.radio-row input { margin-right: 4px; transform: scale(1.1); }
.note, .help-text { font-size: 12px; color: #777; margin-top: 6px; line-height: 1.5; }
.note-danger { color: var(--danger); font-size: 12px; }

/* Step 1 特有 */
.name-row { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.name-label-inline { font-size: 12px; color: #555; margin-bottom: 4px; display: block; }
.company-name-sample { margin-top: 8px; background: #f5f7ff; padding: 8px 12px; border-radius: 4px; color: #444; font-weight: 600; font-size: 14px; min-height: 24px; display: flex; align-items: center; }

/* Step 2 特有 */
.member-block { border: 1px dashed #ddd; border-radius: 8px; padding: 14px 12px 10px; margin-bottom: 24px; position: relative; background: #fafafa; }
.member-tag { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 8px; }
.member-remove { font-size: 12px; color: var(--danger); cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.inline-options { display: flex; gap: 15px; margin-top: 8px; }
.capital-row { display: flex; align-items: center; gap: 6px; max-width: 260px; }
.add-member-wrap { text-align: center; margin-top: 10px; }
.btn-outline { display: inline-flex; align-items: center; gap: 4px; padding: 7px 16px; border-radius: 999px; border: 1px dashed var(--blue); background: #fff; font-size: 13px; color: var(--blue); cursor: pointer; }

/* Step 3 特有 */
.selected-area { background: var(--blue-light); border: 1px solid #cce0ff; border-radius: 8px; padding: 16px; margin-bottom: 30px; }
.selected-item { background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; display: flex; justify-content: space-between; font-size: 13px; }
.btn-remove { color: var(--danger); border: 1px solid var(--danger); padding: 2px 6px; border-radius: 4px; cursor: pointer; background:#fff; }
.category-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom:8px; border-bottom:1px solid #eee; }
.cat-btn { white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; background: #f0f0f0; color: #555; border: none; }
.cat-btn.active { background: #222; color: #fff; font-weight: 600; }
.options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 20px; }
.option-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px; cursor: pointer; background: #fff; position: relative; }
.option-card:hover { border-color: var(--blue); box-shadow: 0 4px 12px rgba(0,84,172,0.1); }
.opt-cn { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.opt-jp { font-size: 12px; color: #777; }
.opt-add-icon { position: absolute; top: 12px; right: 12px; color: var(--blue); font-weight: bold; }
.manual-input-box { display: flex; gap: 10px; margin-top: 10px; }
.manual-textarea { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; resize: vertical; min-height: 40px; }
.btn-add-manual { background: #222; color: #fff; border: none; padding: 0 20px; border-radius: 6px; cursor: pointer; font-size: 13px; }

/* Step 4 特有 */
.radio-box { border: 1px solid var(--border); border-radius: 8px; padding: 16px; cursor: pointer; margin-bottom: 10px; display: block; }
.radio-box:hover { background: var(--blue-light); border-color: var(--blue); }
.radio-header { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.radio-desc { font-size: 13px; color: #666; margin-left: 24px; margin-top: 4px; }
.fee-tag { background: #fff; border: 1px solid var(--blue); color: var(--blue); font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.fiscal-year-box { background: #f9f9f9; border-radius: 8px; padding: 16px; margin-top: 10px; border: 1px solid #eee; }
.year-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.year-val { font-weight: 600; color: #333; }

/* Step 5 特有 */
.summary-section { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.summary-title { font-size: 16px; font-weight: bold; color: var(--blue); border-left: 4px solid var(--blue); padding-left: 10px; display: flex; justify-content: space-between; align-items: center; }
.info-row { display: flex; font-size: 14px; margin-top: 10px; }
.info-label { width: 140px; color: #666; font-weight: 500; }
.info-value { color: #222; font-weight: 600; flex: 1; }
.btn-edit { font-size: 12px; border: 1px solid var(--blue); color: var(--blue); padding: 4px 12px; border-radius: 4px; background: #fff; cursor: pointer; }

/* 按钮通用 */
.button-row { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 28px; }
.btn { border-radius: 6px; padding: 10px 18px; font-size: 14px; cursor: pointer; border: none; text-decoration: none; display: inline-block; }
.btn-secondary { background: #efefef; color: #333; }
.btn-primary { background: #ffd54a; color: #744c00; font-weight: 600; }
.btn-submit { background: #ffd54a; color: #744c00; font-weight: 600; padding: 10px 40px; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }