/* 国际建材有限公司 — 全站样式（简约大气，浅色调） */
:root {
  --primary: #1f5fbf;
  --primary-dark: #16427f;
  --ink: #1f2937;
  --ink-soft: #5b6472;
  --bg: #f7f9fc;
  --card: #ffffff;
  --line: #e4e9f0;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* 顶部导航 */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { background: var(--primary); color: #fff; font-weight: 800; border-radius: 10px; padding: 8px 10px; letter-spacing: 1px; }
.brand-text strong { display: block; font-size: 16px; }
.brand-text small { color: var(--ink-soft); font-size: 11px; letter-spacing: 2px; }
.main-nav { display: flex; gap: 8px; flex: 1; }
.main-nav a { padding: 8px 16px; border-radius: 8px; color: var(--ink-soft); font-weight: 500; }
.main-nav a:hover { background: #eef2f9; color: var(--primary); }
.main-nav a.active { color: var(--primary); background: #e8f0fe; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.user-chip .role-tag { background: var(--primary); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.user-chip .role-tag.admin { background: var(--warn); }

/* 按钮 */
.btn { display: inline-block; padding: 10px 22px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; cursor: pointer; transition: .15s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: #e8f0fe; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: var(--err); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 首页 Hero */
.hero { background: linear-gradient(135deg, #10233f 0%, #1f5fbf 65%, #3b82c4 100%); color: #fff; padding: 96px 0 104px; }
.hero-eyebrow { letter-spacing: 3px; font-size: 13px; opacity: .85; margin-bottom: 16px; }
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; }
.hero-sub { font-size: 17px; opacity: .9; max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* 区块 */
.section { padding: 72px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 28px; text-align: center; margin-bottom: 8px; }
.section-desc { text-align: center; color: var(--ink-soft); margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,95,191,.1); }
.feature-icon { font-size: 30px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { color: var(--ink-soft); font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.category-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px; text-align: center; font-weight: 600; font-size: 16px; }

/* 页脚 */
.site-footer { background: #10233f; color: #cbd5e1; padding: 40px 0; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.copyright { align-self: flex-end; font-size: 13px; }

/* 表单 */
.form-card { max-width: 460px; margin: 64px auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 36px; box-shadow: 0 8px 30px rgba(16,35,63,.06); }
.form-card h2 { margin-bottom: 4px; }
.form-card .form-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,95,191,.12); }
.form-links { margin-top: 16px; font-size: 14px; color: var(--ink-soft); display: flex; justify-content: space-between; }
.form-links a { color: var(--primary); }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; display: none; }
.alert.show { display: block; }
.alert-error { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }
.alert-ok { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; }

/* 控制台 */
.console-layout { display: flex; min-height: calc(100vh - 68px); }
.console-aside { width: 220px; background: #10233f; color: #cbd5e1; padding: 24px 0; flex-shrink: 0; }
.console-aside .aside-title { padding: 0 24px 18px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.console-aside a { display: block; padding: 12px 24px; color: #cbd5e1; font-size: 14px; border-left: 3px solid transparent; }
.console-aside a:hover, .console-aside a.active { background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--primary); }
.console-main { flex: 1; padding: 32px; min-width: 0; }
.console-main h2 { font-size: 22px; margin-bottom: 6px; }
.console-main .page-sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.panel h3 { font-size: 16px; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; padding: 10px 12px; background: #f1f5fb; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tag-ok { background: #f0fdf4; color: var(--ok); }
.tag-warn { background: #fffbeb; color: var(--warn); }
.tag-err { background: #fef2f2; color: var(--err); }
.tag-info { background: #eff6ff; color: var(--primary); }
.tag-muted { background: #f1f5f9; color: var(--ink-soft); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.pager button { padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* 时间线 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 10px 0 16px; }
.timeline-item::before { content: ""; position: absolute; left: -21px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.timeline-item.failed::before { background: var(--err); box-shadow: 0 0 0 2px var(--err); }
.timeline-item .t-time { font-size: 12px; color: var(--ink-soft); }
.timeline-item .t-title { font-size: 14px; font-weight: 600; }
.timeline-item .t-detail { font-size: 13px; color: var(--ink-soft); }

/* 步骤条 */
.steps { display: flex; gap: 0; margin-bottom: 26px; }
.step { flex: 1; text-align: center; position: relative; font-size: 14px; color: var(--ink-soft); padding-bottom: 10px; }
.step::after { content: ""; position: absolute; left: 50%; right: -50%; top: 14px; height: 2px; background: var(--line); z-index: 0; }
.step:last-child::after { display: none; }
.step .dot { width: 30px; height: 30px; border-radius: 50%; background: #e5eaf1; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; position: relative; z-index: 1; }
.step.active { color: var(--primary); font-weight: 600; }
.step.active .dot { background: var(--primary); color: #fff; }
.step.done .dot { background: var(--ok); color: #fff; }

.progress-bar { height: 10px; background: #e5eaf1; border-radius: 999px; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--primary); transition: width .4s; }

/* 门户产品 */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: linear-gradient(135deg, #e8f0fe, #dbeafe); }
.product-body { padding: 16px; }
.product-body h3 { font-size: 16px; margin-bottom: 4px; }
.product-body .meta { font-size: 13px; color: var(--ink-soft); }
.empty-tip { text-align: center; color: var(--ink-soft); padding: 48px 0; }

@media (max-width: 860px) {
  .console-layout { flex-direction: column; }
  .console-aside { width: 100%; display: flex; overflow-x: auto; padding: 0; }
  .console-aside .aside-title { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
