/* ===================================================
   北京市运骥峰哗信息科技有限公司 - 主样式文件
   设计规范: 方形元素、不对称布局、深蓝色系、现代化
   =================================================== */

/* --- 基础重置 --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:      #1a3c6e;
    --color-primary-light:#2756a0;
    --color-accent:       #0e7fc2;
    --color-accent-dark:  #0a5f92;
    --color-bg:           #f4f6f9;
    --color-bg-dark:      #0d1b2a;
    --color-bg-card:      #ffffff;
    --color-text:         #1c2b3a;
    --color-text-muted:   #5a7080;
    --color-border:       #d4dde8;
    --color-success:      #1d8348;
    --color-warning:      #b7770d;
    --color-danger:       #922b21;
    --color-info:         #1a5276;
    --color-nav-bg:       #0d1b2a;
    --color-nav-text:     #c8d8e8;
    --shadow-sm:          0 1px 4px rgba(0,0,0,.08);
    --shadow-md:          0 4px 16px rgba(0,0,0,.12);
    --shadow-lg:          0 8px 32px rgba(0,0,0,.16);
    --radius:             0px;
    --transition:         .22s ease;
    --font-main:          "Microsoft YaHei","PingFang SC","Segoe UI",Arial,sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

img { max-width: 100%; display: block; }

/* 防止未设置尺寸的 SVG 撑爆容器 */
svg:not([width]):not([height]) { width: 1em; height: 1em; }

ul, ol { list-style: none; }

/* --- 通用工具类 --- */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.d-flex   { display: flex; }
.d-grid   { display: grid; }
.flex-1   { flex: 1; }
.gap-8    { gap: 8px; }
.gap-16   { gap: 16px; }
.gap-24   { gap: 24px; }
.gap-32   { gap: 32px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* --- 颜色徽章 --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .4px;
    border-radius: 2px;
    line-height: 1.6;
}
.badge-success { background: #d5f0e0; color: var(--color-success); }
.badge-warning { background: #fef3d0; color: var(--color-warning); }
.badge-danger  { background: #fde8e7; color: var(--color-danger);  }
.badge-info    { background: #d6eaf8; color: var(--color-info);    }
.badge-primary { background: #d4e6f1; color: var(--color-primary); }

/* ===================================================
   导航栏
   =================================================== */
.navbar {
    background: var(--color-nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-brand .brand-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .3px;
    white-space: nowrap;
}

.brand-sub {
    font-size: 11px;
    color: #7a9ab8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-menu a {
    color: var(--color-nav-text);
    font-size: 14px;
    padding: 8px 14px;
    display: block;
    transition: background var(--transition), color var(--transition);
    position: relative;
    letter-spacing: .2px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--color-accent);
}

.nav-menu .nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #162433;
    min-width: 160px;
    border-top: 2px solid var(--color-accent);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #b0c4d8;
    border-bottom: 1px solid #1e3248;
}

.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-login {
    background: var(--color-accent);
    color: #fff !important;
    padding: 7px 18px !important;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: .3px;
}

.btn-nav-login:hover { background: var(--color-accent-dark) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #c8d8e8;
    display: block;
    transition: var(--transition);
}

/* ===================================================
   按钮
   =================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: .3px;
    line-height: 1;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--color-primary);       color: #fff; }
.btn-primary:hover { background: var(--color-primary-light); color: #fff; }

.btn-accent    { background: var(--color-accent);        color: #fff; }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); }

.btn-danger  { background: var(--color-danger);  color: #fff; }
.btn-success { background: var(--color-success); color: #fff; }
.btn-warning { background: var(--color-warning); color: #fff; }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

.btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ===================================================
   英雄区 / Banner
   =================================================== */
.hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3c6e 60%, #0e4f8a 100%);
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -80px;
    width: 500px;
    height: 500px;
    background: rgba(14,127,194,.15);
    clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: -60px;
    bottom: -80px;
    width: 300px;
    height: 300px;
    background: rgba(26,92,160,.12);
    clip-path: polygon(0 0, 100% 20%, 80% 100%, 0 80%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-block;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #9cc8f0;
    padding: 4px 14px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: .5px;
}

.hero h1 span {
    color: #5ab4f0;
}

.hero-desc {
    color: #8ab4d0;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    padding: 32px;
}

.hero-card-title {
    font-size: 13px;
    color: #7a9ab8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.hero-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 13px;
}

.hero-stat:last-child { border-bottom: none; }

.hero-stat-label { color: #7a9ab8; }
.hero-stat-value { color: #e0eaf5; font-weight: 600; }
.hero-stat-ok    { color: #4ade80; font-weight: 600; }

/* ===================================================
   卡片
   =================================================== */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-header {
    padding: 18px 24px;
    border-bottom: 2px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

.card-header-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header-title svg { width: 18px; height: 18px; fill: var(--color-accent); }

.card-body { padding: 24px; }

.card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--color-border);
    background: #f8fafc;
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ===================================================
   表格
   =================================================== */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    vertical-align: middle;
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #f0f5fa; }

.table-striped tr:nth-child(even) td { background: #f7fafc; }

/* ===================================================
   表单
   =================================================== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
    letter-spacing: .2px;
}

.form-label .required { color: var(--color-danger); margin-left: 3px; }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    background: #fff;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    border-radius: var(--radius);
    appearance: none;
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(14,127,194,.12);
}

.form-control::placeholder { color: #b0bec5; }
.form-control:disabled { background: #f4f6f9; color: #90a4ae; cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
    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='%235a7080' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-hint {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--color-danger);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
}

/* ===================================================
   提醒/Alert
   =================================================== */
.alert {
    padding: 14px 18px;
    border-left: 4px solid;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #eafaf1; border-color: var(--color-success); color: #145a32; }
.alert-success svg { fill: var(--color-success); }
.alert-warning { background: #fef9e7; border-color: var(--color-warning); color: #6e4f0a; }
.alert-warning svg { fill: var(--color-warning); }
.alert-danger  { background: #fdedec; border-color: var(--color-danger);  color: #6b1a16; }
.alert-danger svg { fill: var(--color-danger); }
.alert-info    { background: #eaf2fb; border-color: var(--color-accent);  color: #154360; }
.alert-info svg { fill: var(--color-accent); }

/* ===================================================
   分页
   =================================================== */
.pagination {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text);
    transition: var(--transition);
    background: #fff;
}

.pagination a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination .active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); font-weight: 700; }
.pagination .disabled { color: #b0bec5; cursor: not-allowed; pointer-events: none; }

/* ===================================================
   页面头部（内页）
   =================================================== */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0e4f8a 100%);
    color: #fff;
    padding: 48px 0 40px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background: rgba(255,255,255,.04);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.page-header-inner { position: relative; z-index: 1; }

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}

.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { color: rgba(255,255,255,.3); }

/* ===================================================
   特性网格（首页）
   =================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.feature-item {
    padding: 40px 32px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-bottom: none;
    background: #fff;
    transition: background var(--transition);
    position: relative;
}

.features-grid .feature-item:nth-child(3n) { border-right: 1px solid var(--color-border); }
.features-grid .feature-item:nth-child(n+4) { border-bottom: 1px solid var(--color-border); }

.feature-item:hover { background: #f0f5fa; }

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; fill: #fff; }

.feature-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===================================================
   公告列表
   =================================================== */
.announcement-list { }

.announcement-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.announcement-item:last-child { border-bottom: none; }

.ann-date {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    padding: 8px 4px;
}

.ann-date .day   { font-size: 22px; font-weight: 800; line-height: 1; }
.ann-date .month { font-size: 11px; margin-top: 2px; opacity: .8; }

.ann-content { flex: 1; }
.ann-content h4 { font-size: 15px; font-weight: 600; color: var(--color-text); margin-bottom: 6px; }
.ann-content h4 a { color: inherit; }
.ann-content h4 a:hover { color: var(--color-accent); }
.ann-content p  { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; }

.ann-top-badge {
    background: var(--color-danger);
    color: #fff;
    font-size: 11px;
    padding: 1px 7px;
    margin-right: 6px;
    font-weight: 600;
}

/* ===================================================
   状态指示器
   =================================================== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.status-dot.online  { background: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.2); }
.status-dot.offline { background: #e74c3c; box-shadow: 0 0 0 3px rgba(231,76,60,.2); }
.status-dot.warning { background: #f39c12; box-shadow: 0 0 0 3px rgba(243,156,18,.2); }

/* ===================================================
   侧边栏布局
   =================================================== */
.sidebar-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.sidebar {
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 80px;
}

.sidebar-header {
    background: var(--color-primary);
    color: #fff;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.sidebar-nav a svg { width: 16px; height: 16px; fill: var(--color-text-muted); flex-shrink: 0; }
.sidebar-nav a:hover { background: #f0f5fa; color: var(--color-primary); padding-left: 24px; }
.sidebar-nav a:hover svg { fill: var(--color-accent); }
.sidebar-nav a.active { background: #ebf3fb; color: var(--color-primary); font-weight: 600; border-left: 3px solid var(--color-accent); }
.sidebar-nav a.active svg { fill: var(--color-accent); }

/* ===================================================
   统计卡片（后台）
   =================================================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-icon svg { width: 28px; height: 28px; fill: #fff; }
.stat-card-icon.blue   { background: var(--color-primary); }
.stat-card-icon.cyan   { background: var(--color-accent); }
.stat-card-icon.green  { background: var(--color-success); }
.stat-card-icon.orange { background: #c0680d; }

.stat-card-info .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.stat-card-info .label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ===================================================
   后台侧边栏
   =================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 240px;
    background: var(--color-nav-bg);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1a2d42;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-brand {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #1a2d42;
}

.admin-sidebar-brand .brand-name {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    line-height: 1.3;
}

.admin-sidebar-brand .brand-sub {
    font-size: 11px;
    color: #4a6a8a;
    margin-top: 2px;
}

.admin-nav-group { padding: 16px 0 8px; }

.admin-nav-group-label {
    padding: 0 20px 8px;
    font-size: 10px;
    color: #3d5870;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    color: #7a9ab8;
    transition: var(--transition);
}

.admin-nav a svg { width: 16px; height: 16px; fill: #4a6a8a; flex-shrink: 0; }
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #c8d8e8; }
.admin-nav a:hover svg { fill: #7ab0d4; }
.admin-nav a.active { background: rgba(14,127,194,.15); color: #5ab4f0; border-left: 3px solid var(--color-accent); }
.admin-nav a.active svg { fill: #5ab4f0; }

.admin-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.admin-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.admin-topbar-right a { color: var(--color-text-muted); }
.admin-topbar-right a:hover { color: var(--color-primary); }

.admin-content {
    flex: 1;
    padding: 28px;
    background: var(--color-bg);
}

/* ===================================================
   登录页
   =================================================== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #0d1b2a 0%, #1a3c6e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(14,127,194,.08);
    left: -200px;
    top: -200px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.login-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    max-width: 900px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.login-left {
    background: var(--color-primary);
    padding: 60px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::after {
    content: '';
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,.06);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.login-left h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.login-left p {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 32px;
}

.login-left-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255,255,255,.75);
}

.login-left-feat-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    flex-shrink: 0;
}

.login-right {
    background: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.login-right-sub {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* ===================================================
   业务审批系统
   =================================================== */
.app-system-layout {
    min-height: 100vh;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
}

.app-topnav {
    background: var(--color-nav-bg);
    padding: 0 28px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-topnav-brand-icon {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-topnav-brand-icon svg { width: 18px; height: 18px; fill: #fff; }

.app-topnav-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.app-topnav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-topnav-right a {
    font-size: 13px;
    color: #8ab4d0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-topnav-right a:hover { color: #fff; }
.app-topnav-right a svg { width: 16px; height: 16px; fill: currentColor; }

.app-body {
    display: flex;
    flex: 1;
}

.app-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
    padding: 20px 0;
    position: sticky;
    top: 58px;
    height: calc(100vh - 58px);
    overflow-y: auto;
}

.app-sidebar-section {
    margin-bottom: 8px;
}

.app-sidebar-label {
    padding: 6px 20px;
    font-size: 10px;
    color: #90a4ae;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.app-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

.app-sidebar-nav a svg { width: 16px; height: 16px; fill: #90a4ae; flex-shrink: 0; }
.app-sidebar-nav a:hover { background: #f0f5fa; color: var(--color-primary); }
.app-sidebar-nav a:hover svg { fill: var(--color-accent); }
.app-sidebar-nav a.active {
    background: #ebf3fb;
    color: var(--color-primary);
    font-weight: 600;
    border-left: 3px solid var(--color-accent);
}
.app-sidebar-nav a.active svg { fill: var(--color-accent); }

.badge-count {
    background: var(--color-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.app-content {
    flex: 1;
    padding: 28px;
    min-width: 0;
}

/* ===================================================
   申请状态步骤条
   =================================================== */
.status-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 24px 0;
}

.status-step {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.status-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.status-step:last-child::after { display: none; }

.status-step-dot {
    width: 32px;
    height: 32px;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.status-step.done .status-step-dot   { background: var(--color-success); }
.status-step.active .status-step-dot { background: var(--color-accent);  }
.status-step.done::after { background: var(--color-success); }

.status-step-label {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
}

.status-step.done .status-step-label,
.status-step.active .status-step-label { color: var(--color-text); font-weight: 600; }

/* ===================================================
   页脚
   =================================================== */
.footer {
    background: #0d1b2a;
    color: #7a9ab8;
    margin-top: auto;
}

.footer-top {
    padding: 56px 0 40px;
    border-bottom: 1px solid #1a2d42;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about {}

.footer-about .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg { width: 18px; height: 18px; fill: #fff; }

.footer-logo-text {
    font-size: 14px;
    font-weight: 700;
    color: #c8d8e8;
}

.footer-about p {
    font-size: 13px;
    line-height: 1.75;
    color: #5a7a90;
    margin-top: 12px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #c8d8e8;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a2d42;
    letter-spacing: .3px;
}

.footer-col ul { }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: #5a7a90; transition: var(--transition); }
.footer-col ul li a:hover { color: #9cc8f0; padding-left: 4px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #5a7a90;
    margin-bottom: 8px;
}

.footer-contact-item svg { width: 14px; height: 14px; fill: #3d5870; flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-copyright {
    font-size: 12px;
    color: #3d5870;
    line-height: 1.8;
}

.footer-copyright a {
    color: #4a7a9e;
    transition: color var(--transition);
}

.footer-copyright a:hover { color: #7ab0d4; }

.footer-icp-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    font-size: 12px;
    color: #3d5870;
}

.footer-icp-line a {
    color: #4a7a9e;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-icp-line a:hover { color: #7ab0d4; }
.footer-icp-sep { color: #2a3f52; }
.footer-beian-icon { width: 14px; height: 14px; }

/* ===================================================
   详情页
   =================================================== */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.detail-meta-item svg { width: 14px; height: 14px; fill: #b0bec5; }

.detail-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text);
}

.detail-content p  { margin-bottom: 16px; }
.detail-content h2 { font-size: 20px; color: var(--color-primary); margin: 28px 0 12px; }
.detail-content h3 { font-size: 17px; color: var(--color-primary); margin: 24px 0 10px; }
.detail-content ul,
.detail-content ol { padding-left: 24px; margin-bottom: 16px; }
.detail-content li { margin-bottom: 6px; list-style: disc; }
.detail-content table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.detail-content th,
.detail-content td { padding: 10px 14px; border: 1px solid var(--color-border); font-size: 14px; }
.detail-content th { background: #f4f6f9; font-weight: 700; color: var(--color-primary); }

/* ===================================================
   通知徽章
   =================================================== */
.notification-badge {
    position: relative;
    display: inline-flex;
}

.notification-badge .dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    background: var(--color-danger);
    border-radius: 50%;
    border: 1.5px solid var(--color-nav-bg);
}

/* ===================================================
   SSL证书状态
   =================================================== */
.ssl-card {
    background: #fff;
    border: 1px solid var(--color-border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.ssl-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border);
}

.ssl-domain {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Courier New', monospace;
}

.ssl-info-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f5fa;
    font-size: 13px;
}

.ssl-info-row:last-child { border-bottom: none; }
.ssl-info-label { width: 120px; color: var(--color-text-muted); flex-shrink: 0; }
.ssl-info-value { color: var(--color-text); font-weight: 500; }

/* ===================================================
   响应式布局
   =================================================== */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card  { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid .feature-item:nth-child(2n)  { border-right: 1px solid var(--color-border); }
    .features-grid .feature-item:nth-child(2n+1){ border-right: none; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-menu     { display: none; }
    .hamburger    { display: flex; }
    .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-nav-bg); z-index: 999; padding: 12px 0; border-top: 1px solid #1a2d42; }
    .sidebar-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .login-wrap { grid-template-columns: 1fr; }
    .login-left { display: none; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 26px; }
    .section { padding: 48px 0; }
    .app-sidebar { display: none; }
    .app-body { flex-direction: column; }
    .app-content { padding: 16px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .stat-cards { grid-template-columns: 1fr; }
    .btn-lg { padding: 12px 24px; font-size: 14px; }
}
