/* 远辰智联·全国达运单系统 - 主样式 */
/* 设计规范：方形为主，深色科技风，禁止紫色 */

:root {
    --primary: #1a6fba;
    --primary-hover: #1e88e5;
    --primary-dark: #1255a0;
    --accent: #0d9de8;
    --accent2: #00c4ff;
    --bg-main: #0b1520;
    --bg-card: #111e2e;
    --bg-card2: #162436;
    --bg-input: #0e1c2d;
    --border: #1b3558;
    --border-light: #244870;
    --text-primary: #d8eaf8;
    --text-secondary: #7ba3c8;
    --text-muted: #4a6d8e;
    --text-white: #f0f8ff;
    --red: #e53935;
    --red-dark: #c0392b;
    --green: #00c18b;
    --green-dark: #00a87a;
    --orange: #f5a623;
    --yellow: #ffc107;
    --shadow: 0 4px 24px rgba(0,0,0,0.45);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.3);
    --radius: 2px;
    --header-h: 64px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #1e4070; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #2960a8; }

/* ===== 头部导航 ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: rgba(10,18,30,0.97);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    z-index: 900;
    backdrop-filter: blur(10px);
}

.header-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    flex-shrink: 0;
    clip-path: polygon(0 0,calc(100% - 8px) 0,100% 8px,100% 100%,8px 100%,0 calc(100% - 8px));
}

.logo-text { font-size: 17px; font-weight: 700; color: var(--text-white); letter-spacing: .5px; }
.logo-text span { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all .2s;
    border: 1px solid transparent;
}
.nav-link:hover, .nav-link.active {
    color: var(--text-white);
    background: rgba(26,111,186,0.15);
    border-color: rgba(26,111,186,0.35);
}
.nav-link.active { color: var(--accent); }

.nav-btn {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all .2s;
    margin-left: 8px;
}
.nav-btn:hover { background: var(--primary-hover); color: #fff; }

/* ===== 主体布局 ===== */
.page-wrap { padding-top: var(--header-h); min-height: 100vh; display: flex; flex-direction: column; }

.main-content { flex: 1; }

/* ===== 不对称Hero区域 ===== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.hero-left {
    background: linear-gradient(135deg, #0d1e35 0%, #0b2040 60%, #091828 100%);
    padding: 72px 64px 72px 48px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-left::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: -40px;
    width: 80px;
    background: inherit;
    transform: skewX(-4deg);
    z-index: 1;
}

.hero-left::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(26,111,186,0.2);
    border: 1px solid rgba(26,111,186,0.4);
    padding: 6px 14px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    width: fit-content;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    display: inline-block;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.hero-title span { color: var(--accent); }

.hero-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.8; max-width: 520px; }

.hero-right {
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-stats { display: flex; flex-direction: column; gap: 20px; }

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
}
.stat-item:nth-child(2) { border-left-color: var(--green); }
.stat-item:nth-child(3) { border-left-color: var(--accent); }

.stat-num { font-size: 28px; font-weight: 800; color: var(--text-white); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ===== 区块标题 ===== */
.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.section-line {
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    flex-shrink: 0;
}

.section-title { font-size: 20px; font-weight: 700; color: var(--text-white); }
.section-sub { font-size: 13px; color: var(--text-muted); margin-left: auto; }

/* ===== 卡片 ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title { font-size: 15px; font-weight: 700; color: var(--text-white); }
.card-body { padding: 28px; }

/* ===== 表单 ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 28px;
}
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.cols-1 { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: .3px;
}
label .required { color: var(--red); margin-left: 3px; }
label .opt { color: var(--text-muted); font-weight: 400; font-size: 12px; margin-left: 4px; }

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    border-radius: var(--radius);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    width: 100%;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,111,186,0.18);
}

input::placeholder, textarea::placeholder { color: var(--text-muted); }

select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a6d8e' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

textarea { resize: vertical; min-height: 90px; }

.form-divider {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 0;
    position: relative;
}
.form-divider::after {
    content: attr(data-label);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--bg-card);
    padding: 0 12px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
    letter-spacing: .3px;
}

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-accent { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; }
.btn-accent:hover { opacity: .9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,111,186,0.45); }

.btn-outline { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-outline:hover { color: var(--text-white); border-color: var(--border-light); background: rgba(255,255,255,0.04); }

.btn-danger { background: var(--red-dark); color: #fff; border-color: var(--red-dark); }
.btn-danger:hover { background: var(--red); }

.btn-success { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.btn-success:hover { background: var(--green); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 15px; }
.btn-block { width: 100%; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead tr { background: rgba(26,111,186,0.12); border-bottom: 2px solid var(--primary); }
thead th {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: left;
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid rgba(27,53,88,0.6);
    transition: background .15s;
}
tbody tr:hover { background: rgba(26,111,186,0.06); }

tbody td {
    padding: 13px 16px;
    font-size: 13px;
    color: var(--text-primary);
    vertical-align: middle;
}

/* ===== 标签/徽章 ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius);
    letter-spacing: .5px;
}
.badge-sf { background: rgba(229,57,53,0.18); color: #f44336; border: 1px solid rgba(229,57,53,0.35); }
.badge-yt { background: rgba(245,166,35,0.18); color: #f5a623; border: 1px solid rgba(245,166,35,0.35); }
.badge-zt { background: rgba(0,193,139,0.18); color: #00c18b; border: 1px solid rgba(0,193,139,0.35); }
.badge-jt { background: rgba(30,136,229,0.18); color: #1e88e5; border: 1px solid rgba(30,136,229,0.35); }
.badge-jd { background: rgba(255,193,7,0.18); color: #ffc107; border: 1px solid rgba(255,193,7,0.35); }

/* ===== 分隔线 ===== */
.section-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 40px 0;
}

/* ===== 内容区 ===== */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 32px;
}

.content-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

/* ===== 侧栏 ===== */
.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.sidebar-nav {
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.sidebar-nav-title {
    padding: 16px 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: rgba(26,111,186,0.08);
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .18s;
    cursor: pointer;
    border-bottom: 1px solid rgba(27,53,88,0.4);
}
.sidebar-nav-item:last-child { border-bottom: none; }
.sidebar-nav-item:hover {
    color: var(--text-white);
    background: rgba(26,111,186,0.1);
    border-left-color: rgba(26,111,186,0.5);
}
.sidebar-nav-item.active {
    color: var(--accent);
    background: rgba(26,111,186,0.15);
    border-left-color: var(--primary);
    font-weight: 700;
}

.sidebar-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== 提示消息 ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.alert-success { background: rgba(0,193,139,0.12); border: 1px solid rgba(0,193,139,0.3); color: #00e6a8; }
.alert-error { background: rgba(229,57,53,0.12); border: 1px solid rgba(229,57,53,0.3); color: #ff5252; }
.alert-info { background: rgba(26,111,186,0.12); border: 1px solid rgba(26,111,186,0.3); color: #64b3f4; }
.alert-warn { background: rgba(255,193,7,0.12); border: 1px solid rgba(255,193,7,0.3); color: #ffd54f; }

/* ===== 底部 ===== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 32px 28px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

.footer-brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo { display: flex; align-items: center; gap: 10px; }

.footer-logo-mark {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 900; color: #fff;
    clip-path: polygon(0 0,calc(100% - 6px) 0,100% 6px,100% 100%,6px 100%,0 calc(100% - 6px));
}

.footer-logo-name { font-size: 15px; font-weight: 700; color: var(--text-white); }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 480px; }

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links-title { font-size: 12px; font-weight: 700; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 32px;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.footer-copy a { color: var(--text-muted); border-bottom: 1px solid rgba(74,109,142,0.4); transition: all .2s; }
.footer-copy a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.footer-tech { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 16px; }
.footer-tech span { display: flex; align-items: center; gap: 4px; }
.footer-tech-dot { width: 6px; height: 6px; background: var(--green); display: inline-block; }

/* ===== 分页 ===== */
.pagination { display: flex; align-items: center; gap: 6px; margin-top: 24px; }
.page-btn {
    min-width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all .18s;
    border-radius: var(--radius);
    font-family: inherit;
}
.page-btn:hover { border-color: var(--primary); color: var(--text-white); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700; }

/* ===== 快递单预览 ===== */
.waybill-preview {
    background: #fff;
    color: #111;
    padding: 0;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border: 1px solid #d0d0d0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

.waybill-header {
    background: #1a1a2e;
    color: #fff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 4px solid var(--primary);
}

.waybill-company { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.waybill-no { font-size: 13px; opacity: .7; margin-top: 4px; }

.waybill-express-badge {
    font-size: 28px;
    font-weight: 900;
    padding: 8px 20px;
    border-radius: 2px;
    letter-spacing: 2px;
}

.waybill-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid #1a1a2e;
}

.waybill-from,
.waybill-to {
    padding: 20px 24px;
}

.waybill-from { border-right: 1px dashed #bbb; }

.waybill-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    border-bottom: 2px solid #1a1a2e;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.waybill-name { font-size: 20px; font-weight: 800; color: #111; margin-bottom: 4px; }
.waybill-phone { font-size: 16px; font-weight: 700; color: #1a6fba; margin-bottom: 8px; }
.waybill-addr { font-size: 13px; color: #333; line-height: 1.6; }
.waybill-company-name { font-size: 12px; color: #666; margin-top: 6px; }

.waybill-barcode {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.barcode-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1px;
    height: 50px;
    margin-bottom: 8px;
}

.barcode-bar {
    background: #111;
    width: 2px;
}

.waybill-no-big {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #111;
    font-family: 'Courier New', monospace;
}

.waybill-footer {
    padding: 12px 24px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    border-top: 1px solid #ddd;
}

.waybill-remark { font-size: 12px; color: #c0392b; font-weight: 600; }

/* ===== 搜索区 ===== */
.search-bar {
    display: flex;
    gap: 0;
    max-width: 600px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-input);
}

.search-bar input {
    flex: 1;
    border: none;
    border-radius: 0;
    background: transparent;
}
.search-bar input:focus { box-shadow: none; }

.search-bar button {
    padding: 11px 22px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    border-radius: 0;
    white-space: nowrap;
}
.search-bar button:hover { background: var(--primary-hover); }

/* ===== 筛选栏 ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 20px;
    margin-bottom: 20px;
}

.filter-label { font-size: 12px; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

.filter-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--primary); color: var(--text-white); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 统计卡片 ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
}
.stat-card:nth-child(1)::after { background: var(--primary); }
.stat-card:nth-child(2)::after { background: #e53935; }
.stat-card:nth-child(3)::after { background: var(--orange); }
.stat-card:nth-child(4)::after { background: var(--green); }
.stat-card:nth-child(5)::after { background: var(--accent); }

.stat-card-num { font-size: 32px; font-weight: 800; color: var(--text-white); line-height: 1; }
.stat-card-label { font-size: 12px; color: var(--text-muted); margin-top: 8px; font-weight: 600; letter-spacing: .5px; }
.stat-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== 操作区 ===== */
.actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: .4; }
.empty-state-text { font-size: 15px; }

/* ===== 模态框 ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--bg-card2);
    border: 1px solid var(--border-light);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.modal-header {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card2);
    z-index: 1;
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--text-white); }

.modal-close {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
    border-radius: var(--radius);
}
.modal-close:hover { background: rgba(229,57,53,0.15); color: var(--red); border-color: var(--red); }

.modal-body { padding: 28px; }

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ===== 打印样式 ===== */
@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    body { background: #fff; color: #000; }
    .waybill-preview { box-shadow: none; border: 1px solid #ccc; }
}

/* ===== 响应式 ===== */
@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-section { grid-template-columns: 1fr; }
    .hero-right { border-left: none; border-top: 1px solid var(--border); }
    .hero-left::before { display: none; }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .header-inner { padding: 0 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid.cols-3 { grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-main { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-left { padding: 48px 24px; }
    .hero-title { font-size: 26px; }
}
