/* ============================================
   OKR项目管理系统 · 世界级UI设计系统
   品牌色: 深藏青 #0F2744 · CAT黄 #FFCD11 · 古铜金 #B68D4C
   ============================================ */

:root {
    /* 品牌主色 */
    --brand-navy: #0F2744;
    --brand-navy-dark: #081a2e;
    --brand-navy-light: #1a3a5c;
    --brand-gold: #FFCD11;
    --brand-gold-soft: #FFE07A;
    --brand-copper: #B68D4C;

    /* 语义色 */
    --primary: var(--brand-navy);
    --primary-dark: var(--brand-navy-dark);
    --accent: var(--brand-gold);
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0891b2;

    /* 文字 */
    --text: #0F2744;
    --text-2: #334155;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    /* 背景 */
    --bg: #f5f6f8;
    --bg-2: #eef0f4;
    --card: #ffffff;
    --border: #e5e7eb;
    --border-light: #f1f3f5;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(15,39,68,0.05);
    --shadow-md: 0 4px 12px rgba(15,39,68,0.07), 0 1px 3px rgba(15,39,68,0.05);
    --shadow-lg: 0 12px 32px rgba(15,39,68,0.1), 0 4px 12px rgba(15,39,68,0.06);

    /* 圆角 */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    /* 字体 */
    --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

    /* 过渡 */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv11", "ss01";
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--brand-copper); text-decoration: none; }

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

/* ============ 侧边栏 · 深藏青+金色 ============ */
.sidebar {
    width: 240px;
    background: linear-gradient(180deg, #0F2744 0%, #081a2e 100%);
    color: #cbd5e1;
    padding: 0 0 110px;
    flex-shrink: 0;
    position: relative;
    box-shadow: 2px 0 12px rgba(0,0,0,0.04);
}
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-copper) 100%);
    z-index: 2;
}
.sidebar .brand {
    padding: 24px 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,205,17,0.25);
    padding: 4px;
}
.sidebar .brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sidebar .brand-text { flex: 1; min-width: 0; }
.sidebar .brand-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    white-space: nowrap;
}
.sidebar .brand-sub {
    color: var(--brand-gold);
    font-size: 9.5px;
    letter-spacing: 1.8px;
    margin-top: 4px;
    font-weight: 500;
    opacity: 0.85;
    white-space: nowrap;
}

.sidebar nav { padding: 10px 10px 0; }
.sidebar .nav-group-label {
    font-size: 10px;
    letter-spacing: 3px;
    color: rgba(203,213,225,0.42);
    padding: 14px 14px 6px;
    font-weight: 600;
    text-transform: uppercase;
}
.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(203,213,225,0.82);
    font-size: 13.5px;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: all 0.2s var(--ease);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.sidebar nav a .nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.9;
    transition: stroke 0.2s;
}
.sidebar nav a:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
}
.sidebar nav a.active {
    background: linear-gradient(135deg, rgba(255,205,17,0.18) 0%, rgba(255,205,17,0.04) 100%);
    color: #fff;
    box-shadow: inset 2px 0 0 var(--brand-gold);
}
.sidebar nav a.active .nav-icon {
    stroke: var(--brand-gold);
    opacity: 1;
}

.sidebar .user-box {
    position: fixed;
    bottom: 0;
    width: 240px;
    padding: 16px 22px 18px;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,205,17,0.18);
    font-size: 13px;
}
.sidebar .user-box .name {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.sidebar .user-box .role {
    color: rgba(255,205,17,0.72);
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: 1.2px;
}
.sidebar .user-box a {
    color: rgba(203,213,225,0.68);
    font-size: 12px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
    letter-spacing: 1px;
}
.sidebar .user-box a:hover { color: var(--brand-gold); text-decoration: none; }

/* ============ 主区域 ============ */
.main {
    flex: 1;
    min-width: 0;
    background: var(--bg);
}
.topbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 18px 36px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--brand-navy);
    display: flex;
    align-items: center;
    gap: 14px;
}
.topbar h1::before {
    content: '';
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, var(--brand-gold) 0%, var(--brand-copper) 100%);
    border-radius: 2px;
}
.content {
    padding: 28px 36px;
    max-width: 1400px;
}

/* ============ 卡片 ============ */
.card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--brand-navy);
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}
.card-header::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-copper) 100%);
    border-radius: 2px;
}

/* ============ 统计卡 ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card);
    padding: 22px 24px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: all 0.25s var(--ease);
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-gold) 0%, var(--brand-copper) 100%);
    opacity: 0.9;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,205,17,0.3);
}
.stat-card .stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.stat-card .stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,205,17,0.15) 0%, rgba(182,141,76,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-copper);
}
.stat-card .stat-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.stat-card .label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 2px;
    font-weight: 500;
}
.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* ============ 表单 ============ */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 7px;
    letter-spacing: 1.5px;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--text);
    transition: all 0.18s;
}
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--brand-copper);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(255,205,17,0.18);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
.form-group .help {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    font-family: inherit;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15,39,68,0.22);
}
.btn-primary:hover {
    box-shadow: 0 8px 18px rgba(15,39,68,0.32);
    background: linear-gradient(135deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
}
.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(5,150,105,0.25);
}
.btn-success:hover { box-shadow: 0 8px 18px rgba(5,150,105,0.35); }
.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220,38,38,0.25);
}
.btn-danger:hover { box-shadow: 0 8px 18px rgba(220,38,38,0.35); }
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-2);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
}
.btn-gold {
    background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-copper) 100%);
    color: var(--brand-navy);
    box-shadow: 0 4px 12px rgba(255,205,17,0.3);
}
.btn-gold:hover { box-shadow: 0 8px 18px rgba(255,205,17,0.4); }
.btn-sm { padding: 6px 14px; font-size: 12.5px; letter-spacing: 1px; }

/* AI 辅导填写按钮（独立设计 —— 主界面内的增值功能入口） */
.btn-ai-coach {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: #fff;
    color: var(--brand-navy);
    border: 1px solid var(--brand-copper);
    border-radius: 8px;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    box-shadow: 0 1px 3px rgba(15,39,68,0.06);
}
.btn-ai-coach .ai-icon {
    width: 14px; height: 14px;
    color: var(--brand-copper);
    transition: color 0.2s var(--ease);
}
.btn-ai-coach:hover {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    color: var(--brand-gold);
    border-color: var(--brand-navy);
    box-shadow: 0 4px 12px rgba(15,39,68,0.22);
    transform: translateY(-1px);
}
.btn-ai-coach:hover .ai-icon { color: var(--brand-gold); }
.btn-ai-coach:active { transform: translateY(0); }
.btn-block { width: 100%; }

/* ============ 消息提示 ============ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13.5px;
    border-left: 3px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #059669; }
.alert-danger, .alert-error { background: #fef2f2; color: #991b1b; border-color: #dc2626; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #d97706; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #0891b2; }

/* ============ 徽章 ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid transparent;
}
.badge-ongoing { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.badge-completed { background: #fffbeb; color: #78350f; border-color: #fcd34d; }
.badge-audited_pass { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.badge-audited_fail { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.badge-rewarded {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--brand-copper);
    border-color: #fcd34d;
    font-weight: 700;
}

/* ============ 表格 ============ */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
table th {
    text-align: left;
    padding: 12px 14px;
    background: var(--bg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-2);
}
table td:first-child { font-weight: 500; }
table tr { transition: background 0.15s; }
table tr:hover { background: #fafbfc; }
table tr:last-child td { border-bottom: none; }

/* ============ OKR样式 ============ */
.okr-block {
    background: white;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.okr-block .obj {
    font-size: 15px;
    font-weight: 600;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    color: white;
    border-radius: var(--radius);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(15,39,68,0.18);
}
.okr-block .obj .label {
    font-size: 11px;
    letter-spacing: 2px;
    margin-right: 10px;
    background: var(--brand-gold);
    color: var(--brand-navy);
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
}
.okr-block .kr-list { padding-left: 0; list-style: none; }
.okr-block .kr-item {
    display: flex;
    align-items: start;
    padding: 11px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    margin-bottom: 8px;
    font-size: 14px;
    border-left: 3px solid var(--brand-gold);
}
.okr-block .kr-item .kr-num {
    display: inline-block;
    background: var(--brand-navy);
    color: var(--brand-gold);
    padding: 2px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
    letter-spacing: 1px;
}

/* ============ 项目卡 ============ */
.project-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s var(--ease);
}
.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: rgba(255,205,17,0.5);
}
.project-card .title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.project-card .title h3 {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    color: var(--brand-navy);
}
.project-card .code {
    font-family: var(--font-mono);
    background: var(--brand-navy);
    color: var(--brand-gold);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.project-card .meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============ 时间线 ============ */
.timeline {
    border-left: 2px solid var(--brand-gold);
    padding-left: 26px;
    margin-left: 8px;
}
.timeline-item {
    position: relative;
    margin-bottom: 22px;
    background: white;
    padding: 18px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--brand-gold);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--brand-gold);
}
.timeline-item .week-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}
.timeline-item .week-num {
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: 0.5px;
}
.timeline-item .date {
    font-size: 13px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.timeline-item .section { margin-bottom: 10px; }
.timeline-item .section .label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.timeline-item .photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}
.timeline-item .photos img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
}
.timeline-item .photos .photo-box { position: relative; }
.timeline-item .photos .photo-box .label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15,39,68,0.85);
    color: white;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ============ 登录页 · 世界级 ============ */
.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: var(--font-sans);
}
.auth-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #0f2744;
    filter: brightness(0.7) saturate(1.05);
    transform: scale(1.05);
    animation: authZoom 30s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes authZoom {
    from { transform: scale(1.05) translateX(0); }
    to   { transform: scale(1.12) translateX(-1.5%); }
}
.auth-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(115deg, rgba(15,39,68,0.78) 0%, rgba(15,39,68,0.55) 42%, rgba(15,39,68,0.25) 70%, rgba(15,39,68,0.55) 100%),
        radial-gradient(circle at 85% 90%, rgba(255,205,17,0.12), transparent 55%);
    z-index: 1;
}
.auth-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 72px;
    align-items: center;
}
.auth-brand { color: #fff; padding-right: 20px; }
.brand-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--brand-gold);
    padding: 6px 14px;
    border: 1px solid rgba(255,205,17,0.55);
    border-radius: 2px;
    margin-bottom: 28px;
    font-weight: 500;
}
.brand-title {
    font-size: 68px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 18px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.brand-title span {
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 8px;
    color: rgba(255,255,255,0.92);
}
.brand-divider {
    width: 60px;
    height: 3px;
    background: var(--brand-gold);
    margin: 18px 0 22px;
    border-radius: 2px;
}
.brand-company {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.95);
    margin: 0 0 20px;
}
.brand-values {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 14px;
}
.brand-values .dot {
    width: 4px;
    height: 4px;
    background: var(--brand-gold);
    border-radius: 50%;
    display: inline-block;
}
.brand-slogan {
    font-size: 12px;
    letter-spacing: 5px;
    color: rgba(255,205,17,0.85);
    margin: 0;
    font-weight: 400;
}
.auth-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 18px;
    padding: 44px 42px 32px;
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.35),
        0 12px 30px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.9);
}
.auth-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}
.auth-accent {
    width: 4px;
    height: 44px;
    background: linear-gradient(180deg, var(--brand-gold) 0%, var(--brand-copper) 100%);
    border-radius: 2px;
}
.auth-card-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-navy);
    letter-spacing: 1px;
}
.auth-card-head .auth-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.5px;
}
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-navy);
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.auth-card .form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-size: 15px;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(15,39,68,0.12);
    border-radius: 10px;
    color: var(--brand-navy);
    transition: all 0.2s ease;
    font-family: inherit;
}
.auth-card .form-group input::placeholder {
    color: #9ca3af;
    font-weight: 300;
}
.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--brand-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,205,17,0.18);
}
.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    letter-spacing: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(15,39,68,0.35);
    transition: all 0.25s ease;
}
.auth-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15,39,68,0.45);
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-gold) 220%);
}
.auth-card .alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    border-left: none;
}
.auth-foot {
    text-align: center;
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(15,39,68,0.08);
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .auth-stage {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 20px;
        max-width: 480px;
    }
    .auth-brand { text-align: center; padding-right: 0; }
    .brand-title { font-size: 48px; }
    .brand-title span { font-size: 22px; letter-spacing: 4px; }
    .brand-divider { margin: 14px auto 18px; }
    .brand-values { justify-content: center; }
    .auth-card { margin: 0 auto; padding: 32px 26px 24px; }
}

/* ============ 空状态 ============ */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-secondary);
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 14px;
    opacity: 0.4;
}
.empty-state p {
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ============ 动作栏 ============ */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}
.action-bar .filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.action-bar select {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: white;
    color: var(--text-2);
    transition: all 0.15s;
}
.action-bar select:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(255,205,17,0.15);
}

/* ============ 详情列表 ============ */
.detail-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px 24px;
    font-size: 14px;
}
.detail-list dt {
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.detail-list dd { color: var(--text); }

/* ============ KR编辑 ============ */
.kr-edit-list .kr-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}
.kr-edit-list .kr-row .kr-idx {
    background: var(--brand-navy);
    color: var(--brand-gold);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 1px;
}
.kr-edit-list .kr-row input,
.kr-edit-list .kr-row textarea { flex: 1; }
.kr-edit-list .kr-row form {
    display: flex;
    gap: 8px;
    flex: 1;
}

/* ============ 签名预览 ============ */
.signature-preview {
    max-width: 400px;
    padding: 20px;
    background: white;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.signature-preview img { max-width: 100%; max-height: 150px; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; padding: 12px 0 0; }
    .sidebar .user-box { position: static; width: 100%; }
    .sidebar nav {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        gap: 4px;
    }
    .sidebar .nav-group-label { display: none; }
    .sidebar nav a {
        white-space: nowrap;
        margin-bottom: 0;
    }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 1fr; }
    .content { padding: 16px 18px; }
    .topbar { padding: 14px 18px; }
}
