/* =========================================================
   远辰智联·版权提交声明系统 - 全站统一样式
   设计规范：方形为主 / 商务沉稳色系 / 不对称布局 / 无 emoji
   ========================================================= */

:root {
    --navy:        #1f3a5f;
    --navy-dark:   #15293f;
    --navy-deep:   #0f1f33;
    --steel:       #2f6db0;
    --steel-dark:  #245587;
    --ink:         #1c2330;
    --gray-dark:   #2b2f36;
    --gray:        #5b6370;
    --gray-light:  #eef1f5;
    --gray-lighter:#f6f8fa;
    --white:       #ffffff;
    --border:      #d4dae3;
    --border-light:#e4e8ee;
    --ok:          #2f7d4f;
    --ok-bg:       #e7f1ea;
    --warn:        #b0821f;
    --warn-bg:     #f6efdd;
    --bad:         #b23b3b;
    --bad-bg:      #f5e7e7;
    --draft:       #5b6370;
    --draft-bg:    #eceef1;
    --radius:      2px;
    --shadow:      0 1px 3px rgba(15,31,51,.10), 0 6px 18px rgba(15,31,51,.06);
    --font:        "Microsoft YaHei", "PingFang SC", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--gray-lighter);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-dark); text-decoration: underline; }

img { max-width: 100%; }

h1, h2, h3, h4 { font-weight: 700; color: var(--navy-dark); margin: 0 0 14px; letter-spacing: .5px; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }

/* ===================== 顶部导航 ===================== */
.site-header {
    background: var(--navy-deep);
    color: #fff;
    border-bottom: 3px solid var(--steel);
}
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}
.brand .mark {
    width: 26px; height: 26px;
    background: var(--steel);
    display: inline-block;
    position: relative;
}
.brand .mark::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 2px solid #fff;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.header-nav a {
    color: #cdd7e3;
    padding: 8px 14px;
    font-size: 13.5px;
    border-left: 2px solid transparent;
}
.header-nav a:hover, .header-nav a.active {
    color: #fff;
    background: rgba(255,255,255,.06);
    border-left-color: var(--steel);
    text-decoration: none;
}
.header-user {
    color: #9fb0c4;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.header-user .uname { color: #fff; font-weight: 600; }

/* ===================== 布局（不对称） ===================== */
.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 28px 60px;
}
.layout-asym {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
}
.layout-asym .col-main { min-width: 0; }
.layout-asym .col-side { min-width: 0; }

/* 左侧装饰条，强化不对称视觉 */
.asym-rail {
    border-left: 4px solid var(--steel);
    padding-left: 18px;
}

/* ===================== 卡片 ===================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.card-head h2, .card-head h3 { margin: 0; }
.card-head .accent-bar {
    width: 4px; height: 18px; background: var(--steel); display: inline-block; margin-right: 10px; vertical-align: -3px;
}
.card-body { padding: 20px; }
.card-plain { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--radius); }

/* 统计块（不对称排列） */
.stat-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.stat-cell {
    padding: 22px 24px;
    border-right: 1px solid var(--border-light);
}
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-cell .lbl { margin-top: 8px; color: var(--gray); font-size: 13px; }
.stat-cell.alt { background: var(--navy-deep); color: #fff; }
.stat-cell.alt .num { color: #fff; }
.stat-cell.alt .lbl { color: #aebccd; }

/* ===================== 按钮（方形） ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .05s;
    letter-spacing: .5px;
}
.btn:hover { background: var(--navy-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--steel); border-color: var(--steel); }
.btn-primary:hover { background: var(--steel-dark); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--gray-lighter); color: var(--navy-dark); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #972f2f; }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===================== 表单 ===================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 6px;
    font-size: 13px;
}
.field label .req { color: var(--bad); margin-left: 3px; }
.field .hint { font-size: 12px; color: var(--gray); margin-top: 4px; }

.input, .select, .textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--steel);
    box-shadow: 0 0 0 3px rgba(47,109,176,.15);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235b6370'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }

.field-error { border-color: var(--bad) !important; box-shadow: 0 0 0 3px rgba(178,59,59,.12) !important; }
.err-msg { color: var(--bad); font-size: 12px; margin-top: 4px; }

/* ===================== 表格 ===================== */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: #fff;
}
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.table thead th {
    background: var(--navy-deep);
    color: #fff;
    font-weight: 600;
    letter-spacing: .5px;
    font-size: 12.5px;
    border-bottom: none;
}
.table tbody tr:hover { background: var(--gray-lighter); }
.table .empty { text-align: center; color: var(--gray); padding: 34px; }

/* ===================== 状态标签 ===================== */
.tag {
    display: inline-block;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1px solid transparent;
    letter-spacing: .5px;
}
.st-draft     { background: var(--draft-bg);  color: var(--draft);     border-color: #d3d7dd; }
.st-pending   { background: var(--warn-bg);   color: var(--warn);      border-color: #e6d9b0; }
.st-approved  { background: var(--ok-bg);     color: var(--ok);        border-color: #bfe0cb; }
.st-rejected  { background: var(--bad-bg);    color: var(--bad);       border-color: #e7c2c2; }
.st-unknown   { background: #eef1f5;          color: var(--gray);      border-color: var(--border); }
.tag-step     { background: #e8f0f7;          color: var(--steel);    border-color: #bcd2e6; }

/* ===================== 提示 ===================== */
.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 13.5px;
    border-left: 4px solid;
}
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.flash-error   { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }

/* ===================== 过滤条 ===================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 16px 20px;
    background: var(--gray-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.filter-bar .field { margin-bottom: 0; }
.filter-bar .input, .filter-bar .select { min-width: 150px; }

/* ===================== 详情展示 ===================== */
.detail-list { display: grid; grid-template-columns: 180px 1fr; gap: 0; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.detail-list dt { background: var(--gray-lighter); padding: 11px 16px; font-weight: 600; color: var(--gray-dark); border-bottom: 1px solid var(--border-light); font-size: 13px; }
.detail-list dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--border-light); color: var(--ink); }
.detail-list dt:last-of-type, .detail-list dd:last-of-type { border-bottom: none; }

/* ===================== 底部 ===================== */
.site-footer {
    background: var(--navy-deep);
    color: #aebccd;
    border-top: 3px solid var(--steel);
    margin-top: 50px;
}
.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
}
.footer-badges { display: flex; gap: 12px; align-items: center; }
.beian-badge { display: block; line-height: 0; }
.beian-badge img { height: 24px; width: auto; display: block; }
.footer-text { margin: 0; font-size: 12.5px; color: #9fb0c4; line-height: 1.8; }

/* ===================== 登录页（方形 / 不对称） ===================== */
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--navy-deep);
}
.login-aside {
    background:
        linear-gradient(135deg, rgba(15,31,51,.2), rgba(15,31,51,.6)),
        repeating-linear-gradient(135deg, #15293f 0 24px, #16293f 24px 48px);
    color: #fff;
    padding: 64px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.login-aside::before {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 320px; height: 320px;
    border: 40px solid rgba(47,109,176,.18);
}
.login-aside .a-title { font-size: 30px; font-weight: 800; letter-spacing: 1px; max-width: 420px; }
.login-aside .a-sub { margin-top: 18px; color: #9fb0c4; font-size: 14px; line-height: 1.9; max-width: 380px; }
.login-aside .a-marks { display: flex; gap: 10px; margin-top: 30px; }
.login-aside .a-marks span { width: 42px; height: 8px; background: var(--steel); display: inline-block; }
.login-aside .a-foot { font-size: 12px; color: #7f93a8; }
.login-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}
.login-box { width: 100%; max-width: 380px; }
.login-box .lb-title { font-size: 22px; color: var(--navy-dark); margin-bottom: 4px; }
.login-box .lb-sub { color: var(--gray); font-size: 13px; margin-bottom: 26px; }
.login-box .remember { display: flex; align-items: center; gap: 8px; margin: 4px 0 22px; font-size: 13px; color: var(--gray-dark); }
.login-box .remember input { width: 16px; height: 16px; accent-color: var(--steel); }
.login-err { background: var(--bad-bg); color: var(--bad); border-left: 4px solid var(--bad); padding: 11px 14px; margin-bottom: 18px; font-size: 13px; border-radius: var(--radius); }
.login-foot { margin-top: 22px; font-size: 12px; color: var(--gray); text-align: center; }
.back-home { display: inline-block; margin-top: 14px; font-size: 12.5px; }

/* ===================== 进度步骤 ===================== */
.steps { display: flex; gap: 0; margin-bottom: 26px; border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.steps .step { flex: 1; padding: 12px 16px; background: var(--gray-lighter); font-size: 13px; color: var(--gray); border-right: 1px solid var(--border-light); position: relative; }
.steps .step:last-child { border-right: none; }
.steps .step.on { background: var(--navy); color: #fff; font-weight: 600; }
.steps .step .n { font-weight: 800; margin-right: 8px; }

/* ===================== 工具类 ===================== */
.muted { color: var(--gray); }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; }
.between { justify-content: space-between; }
.gap10 { gap: 10px; }
.mt10 { margin-top: 10px; } .mt20 { margin-top: 20px; } .mb0 { margin-bottom: 0; }
.page-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.divider { height: 1px; background: var(--border-light); margin: 18px 0; }

/* ===================== 加载态 ===================== */
.loading-mask { position: fixed; inset: 0; background: rgba(15,31,51,.35); display: none; align-items: center; justify-content: center; z-index: 99; }
.loading-mask.show { display: flex; }
.spinner { width: 46px; height: 46px; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================== 弹窗（方形） ===================== */
.modal-mask { position: fixed; inset: 0; background: rgba(15,31,51,.45); display: none; align-items: center; justify-content: center; z-index: 90; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; width: 100%; max-width: 520px; border-radius: var(--radius); border-top: 3px solid var(--steel); box-shadow: var(--shadow); }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border-light); font-weight: 700; color: var(--navy-dark); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 10px; }

/* ===================== 响应式 ===================== */
@media (max-width: 980px) {
    .layout-asym { grid-template-columns: 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-aside { display: none; }
    .stat-grid { grid-template-columns: 1fr; }
    .stat-cell { border-right: none; border-bottom: 1px solid var(--border-light); }
    .form-row { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 120px 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}
