/* ==========================================================
   锦州市建筑设计研究院有限公司招标采购公共平台
   样式表 - 专业建筑设计院风格
   ========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* 主色系 - 藏青 + 金 */
    --primary: #0f3a5f;
    --primary-light: #1a4d7a;
    --primary-dark: #082944;
    --primary-bg: #e8eef5;
    --accent: #c9a227;
    --accent-light: #d4a72c;
    --accent-dark: #a8861f;

    /* 状态色 */
    --success: #2d7a4e;
    --success-light: #e6f4ec;
    --warning: #b07c1d;
    --warning-light: #fdf4dc;
    --danger: #b32a2a;
    --danger-light: #fbe7e7;
    --info: #1e6091;
    --info-light: #e6f0f8;

    /* 中性色 */
    --bg: #f5f3ee;
    --bg-pattern: #efece5;
    --card-bg: #ffffff;
    --sidebar-bg: linear-gradient(180deg, #0a2a47 0%, #0f3a5f 100%);
    --text: #1a2733;
    --text-secondary: #5a6877;
    --text-muted: #8a96a3;
    --border: #e3ddd0;
    --border-light: #ede8dc;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(15, 58, 95, 0.04);
    --shadow: 0 2px 6px rgba(15, 58, 95, 0.06), 0 1px 3px rgba(15, 58, 95, 0.04);
    --shadow-lg: 0 8px 24px rgba(15, 58, 95, 0.10), 0 2px 6px rgba(15, 58, 95, 0.06);
    --shadow-xl: 0 16px 48px rgba(15, 58, 95, 0.15);

    /* 圆角 */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', 'Source Han Sans CN',
                 'Noto Sans CJK SC', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); text-decoration: none; }

/* ==========================================================
   整体布局
   ========================================================== */
.layout { display: flex; min-height: 100vh; }

/* 侧边栏 - 后台用 */
.sidebar {
    width: 232px;
    background: var(--sidebar-bg);
    color: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    box-shadow: 2px 0 12px rgba(15, 58, 95, 0.08);
    position: relative;
}
.sidebar::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(212,167,44,0.3) 20%, rgba(212,167,44,0.3) 80%, transparent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.brand::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,167,44,0.5), transparent);
}
.brand-icon {
    width: 42px; height: 42px;
    background: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
    padding: 4px;
}
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-title {
    font-size: 13px; font-weight: 600; color: #fff;
    line-height: 1.35;
    letter-spacing: 0.2px;
}
.brand-sub {
    font-size: 10.5px; color: var(--accent-light);
    margin-top: 3px; font-weight: 500; letter-spacing: 0.2px;
}

.nav-menu { flex: 1; padding: 14px 10px; overflow-y: auto; }
.nav-menu::-webkit-scrollbar { width: 4px; }
.nav-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.nav-section {
    padding: 12px 14px 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    color: rgba(255,255,255,0.75);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    position: relative;
    margin-bottom: 2px;
}
.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
}
.nav-item.active {
    background: linear-gradient(90deg, rgba(212,167,44,0.18), rgba(212,167,44,0.05));
    color: #fff;
    font-weight: 500;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    background: var(--accent-light);
    border-radius: 0 2px 2px 0;
}
.nav-icon { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; }
.nav-item .badge-count {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 11px; padding: 1px 7px; border-radius: 10px;
    font-weight: 600;
    min-width: 18px; text-align: center;
}

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    flex-shrink: 0;
}
.user-name { font-size: 13px; color: #fff; font-weight: 500; }
.user-role { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.version { font-size: 11px; color: rgba(255,255,255,0.3); text-align: center; }

/* 主区域 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: #fff;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.page-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-left: 12px;
}
.page-title::before {
    content: '';
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--accent-light));
    border-radius: 2px;
}
.topbar-actions { display: flex; gap: 8px; align-items: center; }

.content { flex: 1; padding: 20px 24px; }

/* Flash 消息 */
.flash-container { padding: 0 24px; margin-top: 16px; }
.flash {
    padding: 11px 16px;
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 13px;
    border-left: 3px solid;
    display: flex; align-items: center; gap: 8px;
}
.flash::before { font-size: 16px; }
.flash-success { background: var(--success-light); color: #1a5a36; border-color: var(--success); }
.flash-success::before { content: '✓'; color: var(--success); font-weight: 700; }
.flash-error { background: var(--danger-light); color: #8b1f1f; border-color: var(--danger); }
.flash-error::before { content: '✕'; color: var(--danger); font-weight: 700; }
.flash-info { background: var(--info-light); color: #144a73; border-color: var(--info); }
.flash-info::before { content: 'ℹ'; color: var(--info); }
.flash-warning { background: var(--warning-light); color: #7a5512; border-color: var(--warning); }
.flash-warning::before { content: '⚠'; color: var(--warning); }

/* ==========================================================
   卡片
   ========================================================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.card h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 14px;
    font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}
.card h3 .icon { color: var(--primary); }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.card-header h3 { margin: 0; }
.link-arrow { font-size: 13px; color: var(--primary); }

/* ==========================================================
   按钮
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }

.btn-secondary { background: #f1ede4; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #e8e2d3; color: var(--text); }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #245f3e; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #922222; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-warning:hover { background: #8a5e15; color: #fff; }

.btn-link { background: transparent; color: var(--primary); border: none; padding: 4px 8px; }
.btn-link:hover { color: var(--accent); background: var(--primary-bg); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================
   表格
   ========================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.data-table thead th {
    background: linear-gradient(180deg, #f8f5ed 0%, #f0ebde 100%);
    color: var(--text);
    font-weight: 600;
    text-align: left;
    padding: 11px 12px;
    border-bottom: 2px solid var(--accent-light);
    font-size: 12.5px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.data-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #faf8f2; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.empty-cell { text-align: center; color: var(--text-muted); padding: 30px 12px !important; }

/* 链接 */
.link { color: var(--primary); font-weight: 500; }
.link:hover { color: var(--accent); }

/* 文本 */
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.required { color: var(--danger); }

/* ==========================================================
   徽章 / 状态
   ========================================================== */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 500;
    background: #ecf0f4;
    color: var(--text-secondary);
    border: 1px solid transparent;
    white-space: nowrap;
}
.status-草稿 { background: #f0eee8; color: #786c54; border-color: #d8d1bf; }
.status-报名中 { background: #e3f0e9; color: #1a5a36; border-color: #b3d8c2; }
.status-评审中 { background: #e6eef7; color: #1c4f7c; border-color: #b5cce4; }
.status-已定标 { background: #fdf2d9; color: #7a5512; border-color: #ecd793; }
.status-已完成 { background: #e2e8ee; color: #475569; border-color: #c8d2de; }
.status-已取消 { background: #f5e0e0; color: #8b1f1f; border-color: #e6b5b5; }
.status-已报名 { background: #e6eef7; color: #1c4f7c; border-color: #b5cce4; }
.status-已投标 { background: #e3f0e9; color: #1a5a36; border-color: #b3d8c2; }
.status-中标 { background: #fdf2d9; color: #7a5512; border-color: #ecd793; }
.status-未中标 { background: #f0eee8; color: #786c54; border-color: #d8d1bf; }
.status-已撤回 { background: #f5e0e0; color: #8b1f1f; border-color: #e6b5b5; }

/* 类别标签 */
.category-tag {
    display: inline-block;
    padding: 1px 8px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #c8d6e5;
}
.category-tag.small { padding: 0 6px; font-size: 11px; }
.category-tag.large { padding: 3px 12px; font-size: 13px; }
.category-tag[data-cat="工程设计委托"] { background: #e8eef5; color: #0f3a5f; border-color: #c8d6e5; }
.category-tag[data-cat="效果图制作"] { background: #f5e8ee; color: #8a2658; border-color: #e0c4d2; }
.category-tag[data-cat="工程概预算"] { background: #e8f3ee; color: #1a5a3e; border-color: #b9d8c5; }
.category-tag[data-cat="可研编制"] { background: #f5efe6; color: #7a5512; border-color: #d8c8a8; }
.category-tag[data-cat="办公用品"] { background: #f0e8f5; color: #5a2a7a; border-color: #d0b8e0; }
.category-tag[data-cat="咨询服务"] { background: #e8f0f5; color: #1c4f7c; border-color: #b8cce0; }
.category-tag[data-cat="其他"] { background: #f0eee8; color: #786c54; border-color: #d8d1bf; }

/* 编号标签 */
.code-tag {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11.5px;
    background: #f4f1e8;
    color: var(--text);
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid var(--border);
    letter-spacing: 0.3px;
}
.code-tag.large { padding: 4px 12px; font-size: 13px; }

/* 操作单元格 */
.op-cell { display: flex; gap: 4px; flex-wrap: wrap; }
.op {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: 12px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    background: #fff;
}
.op:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.op.danger:hover { border-color: var(--danger); color: var(--danger); }
.op.success:hover { border-color: var(--success); color: var(--success); }
.op.warning:hover { border-color: var(--warning); color: var(--warning); }

/* ==========================================================
   表单
   ========================================================== */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.form-section { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px dashed var(--border-light); }
.form-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.form-section h3 { font-size: 14px; color: var(--primary); margin-bottom: 14px; font-weight: 600; padding-left: 10px; border-left: 3px solid var(--accent-light); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}
.form-item label .required { color: var(--danger); margin-left: 2px; }
.form-item input,
.form-item select,
.form-item textarea {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
    color: var(--text);
}
.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 58, 95, 0.08);
}
.form-item textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-item .help { font-size: 12px; color: var(--text-muted); }

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    margin-top: 16px;
    border-top: 1px solid var(--border-light);
}

/* 筛选条 */
.filter-bar {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item label { font-size: 12px; color: var(--text-secondary); }
.filter-item input, .filter-item select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    min-width: 180px;
}
.filter-actions { display: flex; gap: 6px; }

/* ==========================================================
   统计卡片
   ========================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-light));
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.stat-extra {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.stat-blue .stat-value { color: #1c4f7c; }
.stat-orange .stat-value { color: #8a5512; }
.stat-orange::before { background: linear-gradient(90deg, #b07c1d, #d4a72c); }
.stat-green .stat-value { color: #1a5a3e; }
.stat-green::before { background: linear-gradient(90deg, #2d7a4e, #4d9a6e); }
.stat-purple .stat-value { color: #5a2a7a; }
.stat-purple::before { background: linear-gradient(90deg, #5a2a7a, #8a4aaa); }

/* ==========================================================
   Hero 横幅（公共首页）
   ========================================================== */
.hero {
    position: relative;
    background:
        linear-gradient(135deg, rgba(10, 42, 71, 0.92) 0%, rgba(15, 58, 95, 0.88) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, 30px 30px;
    border-radius: var(--radius-xl);
    padding: 56px 48px;
    margin-bottom: 16px;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212,167,44,0.2);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(212,167,44,0.18), transparent 45%),
        radial-gradient(circle at 15% 85%, rgba(26,77,122,0.4), transparent 50%);
    pointer-events: none;
}
.hero-bg::after {
    content: '';
    position: absolute;
    right: -20px; bottom: -40px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(212,167,44,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(212,167,44,0.18);
    color: var(--accent-light);
    border: 1px solid rgba(212,167,44,0.4);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.hero h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.25;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero h1 .accent { color: var(--accent-light); }
.hero p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 8px;
    font-size: 14.5px; font-weight: 500;
    text-decoration: none; transition: all 0.25s;
    letter-spacing: 0.5px;
}
.btn-hero-primary {
    background: var(--accent-light); color: #1a2733;
    box-shadow: 0 4px 12px rgba(212,167,44,0.35);
}
.btn-hero-primary:hover {
    background: var(--accent); color: #1a2733; text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212,167,44,0.5);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.1); color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.18); color: white; text-decoration: none;
    border-color: rgba(255,255,255,0.5);
}

.public-stats { margin-top: -48px; position: relative; z-index: 2; }

/* ==========================================================
   公告列表
   ========================================================== */
.announcement-list { display: flex; flex-direction: column; }
.ann-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 12px; border-bottom: 1px solid var(--border-light);
    color: var(--text); transition: all 0.2s;
    border-radius: 4px;
}
.ann-item:hover {
    background: #faf8f2; text-decoration: none;
    transform: translateX(2px);
}
.ann-item:last-child { border-bottom: none; }
.ann-main { flex: 1; min-width: 0; }
.ann-title {
    font-size: 15px; font-weight: 600; color: var(--text);
    margin-bottom: 6px; line-height: 1.5;
}
.ann-item:hover .ann-title { color: var(--primary); }
.ann-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ann-budget { text-align: right; padding-left: 16px; flex-shrink: 0; }
.ann-budget-label { font-size: 12px; color: var(--text-muted); }
.ann-budget-value { font-size: 18px; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }

.award-winner {
    background: linear-gradient(135deg, #fdf2d9, #f9e9be);
    color: #7a5512; padding: 2px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 500;
    border: 1px solid #ecd793;
}

/* 中标公示侧栏 */
.award-item {
    display: block; padding: 12px 14px; margin-bottom: 8px;
    background: linear-gradient(135deg, #fdf6e0, #fef9ec);
    border: 1px solid #ecd793; border-radius: 8px;
    color: var(--text); transition: all 0.2s;
}
.award-item:hover {
    transform: translateX(2px);
    box-shadow: var(--shadow);
    text-decoration: none;
    border-color: var(--accent-light);
}
.award-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.award-supplier { font-size: 12px; color: #7a5512; margin-bottom: 4px; }
.award-amount { font-size: 16px; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }
.award-date { margin-top: 2px; font-size: 11.5px; }

/* 流程步骤 */
.flow-steps { }
.flow-step { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.flow-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(15,58,95,0.25);
}
.flow-text { font-size: 14px; color: var(--text); }

/* 公共通知 */
.public-notice {
    margin-top: 20px; padding: 14px 18px;
    background: linear-gradient(135deg, #f0f6fb, #e6eef7);
    border: 1px solid #b5cce4; border-radius: 8px;
    font-size: 13px; color: #1c4f7c; line-height: 1.7;
    border-left: 3px solid var(--info);
}

/* ==========================================================
   项目详情 / 公告详情
   ========================================================== */
.project-header {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}
.project-header > div:first-child { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.project-header h2 {
    font-size: 22px;
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 20px;
    background: #faf8f2;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--border-light);
}
.info-item { display: flex; flex-direction: column; gap: 2px; }
.info-item .label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.info-item .value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}
.info-item .value.highlight {
    color: var(--danger);
    font-size: 16px;
    font-weight: 700;
}

.info-block {
    margin-bottom: 16px;
    padding: 14px 18px;
    background: #faf8f2;
    border-radius: 8px;
    border-left: 3px solid var(--accent-light);
    border: 1px solid var(--border-light);
    border-left-width: 3px;
}
.info-block-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.info-block-content {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 中标盒 */
.award-box {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #fdf6e0 0%, #fef9ec 100%);
    border: 1px solid #ecd793;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}
.award-icon { font-size: 40px; }
.award-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.award-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.award-value.amount {
    color: var(--danger);
    font-size: 22px;
    font-variant-numeric: tabular-nums;
}

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 4px; bottom: 4px;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-bottom: 18px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -20px; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--border);
    z-index: 1;
}
.timeline-item.done .timeline-dot { background: var(--success); border-color: var(--success); }
.timeline-item.active .timeline-dot { background: var(--accent-light); border-color: var(--accent-light); box-shadow: 0 0 0 3px rgba(212,167,44,0.2); }
.timeline-content { font-size: 13.5px; color: var(--text); }

/* ==========================================================
   登录 / 注册
   ========================================================== */
.auth-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(10, 42, 71, 0.95) 0%, rgba(15, 58, 95, 0.92) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.04)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-size: cover, 30px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,167,44,0.15) 0%, transparent 60%);
    border-radius: 50%;
}
.auth-page::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(26,77,122,0.3) 0%, transparent 60%);
    border-radius: 50%;
}
.auth-container {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}
.auth-container.large { max-width: 560px; }
.auth-header {
    background: linear-gradient(135deg, #0a2a47 0%, #0f3a5f 100%);
    color: white;
    padding: 24px 28px;
    text-align: center;
    position: relative;
}
.auth-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 20%; right: 20%;
    height: 3px;
    background: var(--accent-light);
    border-radius: 2px 2px 0 0;
}
.auth-logo {
    width: 64px; height: 64px;
    background: white;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 7px;
}
.auth-logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}
.auth-subtitle {
    font-size: 12px;
    color: var(--accent-light);
    letter-spacing: 1px;
}
.auth-body { padding: 28px; }
.auth-footer {
    padding: 14px 28px;
    background: #faf8f2;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 12.5px;
    color: var(--text-secondary);
}
.auth-footer a { color: var(--primary); font-weight: 500; }

.auth-form .form-item { margin-bottom: 14px; }
.auth-form .form-item label {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}
.auth-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}
.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 58, 95, 0.08);
}
.auth-form .btn { width: 100%; justify-content: center; padding: 11px; font-size: 14px; margin-top: 6px; }

/* 注册专用 */
.reg-tips {
    background: #faf8f2;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--info);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.reg-tips strong { color: var(--primary); }
.category-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.category-checkboxes label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    background: #fff;
}
.category-checkboxes label:hover { border-color: var(--primary); }
.category-checkboxes input:checked + span { color: var(--primary); font-weight: 500; }
.category-checkboxes input { width: 14px; height: 14px; accent-color: var(--primary); }

/* ==========================================================
   标签页
   ========================================================== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin: -20px -20px 16px;
    padding: 0 20px;
    background: #faf8f2;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.tab {
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent-light);
    background: #fff;
}
.tab-count {
    display: inline-block;
    background: #e8e2d3; color: var(--text-secondary);
    padding: 1px 8px; border-radius: 10px;
    font-size: 12px; margin-left: 4px; font-weight: 500;
}
.tab.active .tab-count { background: var(--primary-bg); color: var(--primary); }

/* ==========================================================
   Row 布局
   ========================================================== */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > [class*="col-"] { min-width: 0; }
.col-2 { width: calc(16.66% - 14px); }
.col-3 { width: calc(25% - 12px); }
.col-4 { width: calc(33.33% - 11px); }
.col-5 { width: calc(41.66% - 10px); }
.col-6 { width: calc(50% - 8px); }
.col-7 { width: calc(58.33% - 7px); }
.col-8 { width: calc(66.66% - 6px); }
.col-9 { width: calc(75% - 4px); }
.col-12 { width: 100%; }

@media (max-width: 1024px) {
    .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .public-stats { margin-top: 0; }
    .hero { padding: 36px 24px; }
    .hero h1 { font-size: 24px; }
}

/* ==========================================================
   空状态
   ========================================================== */
.empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 13.5px;
}
.empty::before {
    content: '📋';
    display: block;
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ==========================================================
   供应商门户
   ========================================================== */
.supplier-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border-light);
}
.supplier-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(15,58,95,0.2);
}
.supplier-meta { display: flex; gap: 8px; align-items: center; margin-top: 4px; }

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

/* ==========================================================
   公共站点布局（顶部导航 + 内容 + 页脚）
   ========================================================== */
.public-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.public-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 58, 95, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.public-topbar::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -3px; height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-light) 20%, var(--accent-light) 80%, transparent 100%);
}
.public-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.public-brand:hover { text-decoration: none; }
.public-brand-icon {
    width: 50px; height: 50px;
    background: #fff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 58, 95, 0.12);
    border: 1px solid var(--border);
    padding: 4px;
}
.public-brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.public-brand-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    letter-spacing: 0.3px;
}
.public-brand-sub {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.4px;
}

.public-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}
.public-nav a {
    padding: 8px 18px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
    position: relative;
}
.public-nav a:hover {
    color: var(--primary);
    background: var(--primary-bg);
    text-decoration: none;
}
.public-nav a.active {
    color: var(--primary);
    font-weight: 600;
}
.public-nav a.active::after {
    content: '';
    position: absolute;
    left: 50%; right: 50%; bottom: -4px;
    height: 2px;
    background: var(--accent-light);
    transition: all 0.2s;
    border-radius: 1px;
}
.public-nav a.active:hover::after,
.public-nav a.active::after {
    left: 18px; right: 18px;
}

.btn-mini {
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-mini-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(15, 58, 95, 0.25);
}
.btn-mini-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 58, 95, 0.35);
}

.public-flash { padding: 16px 24px 0; max-width: 1280px; margin: 0 auto; width: 100%; }
.public-flash .flash { margin-bottom: 0; }

.public-content {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

/* ==========================================================
   公共页脚（对齐建研院官网 https://www.jzadri.cn 风格）
   ========================================================== */
.public-footer {
    --ft-accent: #4facfe;
    --ft-accent2: #00f2fe;
    background: linear-gradient(135deg, #1a1f3a 0%, #2c3e50 50%, #1a1f3a 100%);
    color: rgba(255,255,255,0.85);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.public-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--ft-accent) 0%, var(--ft-accent2) 50%, var(--ft-accent) 100%);
}
.public-footer::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79,172,254,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.public-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.public-footer-section h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
}
.footer-title-bar {
    display: inline-block;
    width: 4px; height: 16px;
    background: linear-gradient(180deg, var(--ft-accent) 0%, var(--ft-accent2) 100%);
    border-radius: 2px;
}
.public-footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.public-footer-section a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s, padding-left 0.25s;
}
.public-footer-section a:hover { color: var(--ft-accent); text-decoration: none; padding-left: 3px; }

/* 品牌区 */
.footer-brand { position: relative; }
.public-footer-logo {
    width: 60px; height: 60px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    display: flex; align-items: center; justify-content: center;
}
.public-footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-org {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 8px;
}
.footer-slogan {
    color: var(--ft-accent);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0 0 6px !important;
}
.footer-en {
    color: #6c7a89;
    font-size: 11px;
    letter-spacing: 1px;
    line-height: 1.5;
    margin: 0 0 20px !important;
}

/* 社交/二维码 */
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-item { position: relative; }
.social-link {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
    background: linear-gradient(135deg, var(--ft-accent) 0%, var(--ft-accent2) 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79,172,254,0.4);
}
.social-qrcode {
    position: absolute;
    bottom: 52px; left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    text-align: center;
    z-index: 5;
}
.social-qrcode img { width: 120px; height: 120px; display: block; object-fit: contain; border-radius: 4px; }
.social-qrcode span { display: block; font-size: 11px; color: #555; margin-top: 5px; }
.social-item:hover .social-qrcode { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* 快速链接 */
.footer-links li { padding: 5px 0; }

/* 联系方式 */
.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}
.fc-icon { color: var(--ft-accent); flex-shrink: 0; margin-top: 2px; }
.fc-icon svg { width: 15px; height: 15px; display: block; }

/* 资质认证 */
.footer-cert {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.cert-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    transition: all 0.3s ease;
    color: #ccc;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.cert-icon { color: var(--ft-accent); }
.cert-icon svg { width: 20px; height: 20px; display: block; }
.cert-item:hover {
    background: rgba(79,172,254,0.10);
    border-color: var(--ft-accent);
    transform: translateY(-2px);
}

/* 底部版权 + 备案 */
.public-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 24px;
    position: relative;
    z-index: 1;
}
.footer-bottom-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom-content p {
    color: #888;
    font-size: 13px;
    margin: 0;
    letter-spacing: 0.3px;
}
.footer-bottom-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-bottom-right a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}
.footer-bottom-right a:hover { color: var(--ft-accent); text-decoration: none; }
.footer-bottom-right a svg { width: 14px; height: 14px; color: var(--ft-accent); }
.footer-bottom-right a img { height: 16px; vertical-align: middle; }

@media (max-width: 900px) {
    .public-footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
    .public-topbar-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
    .public-nav { flex-wrap: wrap; }
}
@media (max-width: 576px) {
    .public-footer-inner { grid-template-columns: 1fr; }
    .footer-bottom-content { flex-direction: column; text-align: center; }
}
