/* ============================================================
   珠声传媒人事系统 · 极简日系 · 樱青风格
   和纸米白 #faf7f2 / 樱粉 #a87878 / 青磁绿 #4f6b58
   ============================================================ */
:root {
    --washi: #faf7f2;        /* 和纸米白 */
    --washi-deep: #f3ede3;
    --ink: #3d3a36;          /* 墨色 */
    --ink-soft: #6b655d;
    --ink-muted: #9a938a;
    --sakura: #a87878;       /* 樱粉 */
    --sakura-soft: #f3e8e6;
    --seiji: #4f6b58;        /* 青磁绿 */
    --seiji-dark: #42594a;
    --seiji-soft: #e9efe9;
    --line: #e7e0d5;         /* 描边 */
    --white: #ffffff;
    --danger: #b15f5f;
    --warn: #b98a4f;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(90, 78, 60, .07);
    --serif: "Songti SC", "Noto Serif SC", "SimSun", serif;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--sans);
    background: var(--washi);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.7;
}

a { color: var(--sakura); text-decoration: none; }
a:hover { color: var(--seiji); }

h1, h2, h3 { font-weight: 600; color: var(--ink); }

/* ---------------- 认证页（登录/注册/找回） ---------------- */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background:
        radial-gradient(circle at 12% 18%, rgba(168,120,120,.10) 0, transparent 26%),
        radial-gradient(circle at 88% 82%, rgba(79,107,88,.10) 0, transparent 28%),
        var(--washi);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 38px 32px;
    position: relative;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 28px; right: 28px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--sakura) 0%, var(--seiji) 100%);
}

.auth-brand {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--seiji);
    text-align: center;
    margin-bottom: 18px;
}

.auth-title {
    font-family: var(--serif);
    font-size: 24px;
    text-align: center;
    margin-bottom: 8px;
}

.auth-sub {
    text-align: center;
    color: var(--ink-muted);
    font-size: 13px;
    margin-bottom: 26px;
}

.auth-foot {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
    color: var(--ink-soft);
}
.auth-foot a { margin: 0 6px; }

.auth-tip {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 12px;
    color: var(--ink-muted);
    text-align: center;
    line-height: 1.9;
}

/* ---------------- 表单 ---------------- */
.form-stack .form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 7px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fdfcfa;
    font-size: 14px;
    color: var(--ink);
    font-family: var(--sans);
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--seiji);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(79,107,88,.10);
}

.form-group textarea { min-height: 96px; resize: vertical; line-height: 1.8; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.form-hint { font-size: 12px; color: var(--ink-muted); margin-top: 5px; }

.form-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-inline .form-group { margin-bottom: 0; }

.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.checkbox-line input { width: auto; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 14px;
    font-family: var(--sans);
    cursor: pointer;
    text-align: center;
    transition: all .15s;
    background: var(--washi-deep);
    color: var(--ink-soft);
    text-decoration: none;
    line-height: 1.4;
}
.btn:hover { color: var(--ink); border-color: var(--line); }

.btn-primary { background: var(--seiji); color: #fdfbf6; }
.btn-primary:hover { background: var(--seiji-dark); color: #fff; }

.btn-accent { background: var(--sakura); color: #fdf6f4; }
.btn-accent:hover { background: #966868; color: #fff; }

.btn-outline { background: transparent; border-color: var(--seiji); color: var(--seiji); }
.btn-outline:hover { background: var(--seiji-soft); }

.btn-danger { background: transparent; border-color: #d9b8b8; color: var(--danger); }
.btn-danger:hover { background: #f7ecec; }

.btn-sm { padding: 5px 13px; font-size: 12.5px; border-radius: 7px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------------- 提示 ---------------- */
.alert {
    border-radius: 9px;
    padding: 11px 15px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid;
    line-height: 1.7;
}
.alert-error { background: #f8ecec; border-color: #e3c9c9; color: #8f4f4f; }
.alert-success { background: var(--seiji-soft); border-color: #c9d8cc; color: var(--seiji-dark); }
.alert-info { background: #f4efe6; border-color: #e0d7c5; color: #7d6b45; }

.notice-box {
    background: var(--washi);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 13px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 2;
}

.flash-wrap { margin-bottom: 20px; }
.flash-wrap .alert { margin-bottom: 10px; }

/* ---------------- 应用框架 ---------------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 218px;
    flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    padding: 24px 22px 28px;
    border-bottom: 1px solid var(--line);
}
.sidebar-brand .mark {
    font-family: var(--serif);
    font-size: 17px;
    color: var(--seiji);
    letter-spacing: 2px;
    line-height: 1.5;
}
.sidebar-brand .sub {
    font-size: 10.5px;
    color: var(--ink-muted);
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.nav-group-title {
    font-size: 11px;
    color: var(--ink-muted);
    letter-spacing: 2px;
    padding: 14px 12px 6px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 13.5px;
    margin-bottom: 2px;
    border-left: 3px solid transparent;
    transition: all .12s;
}
.nav-item:hover { background: var(--washi); color: var(--ink); }
.nav-item.active {
    background: var(--sakura-soft);
    color: var(--sakura);
    font-weight: 600;
    border-left-color: var(--sakura);
}
.nav-item .ico { width: 18px; text-align: center; font-style: normal; font-family: var(--serif); font-size: 13px; }

.sidebar-foot {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-muted);
}
.sidebar-foot a { display: block; margin-top: 4px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 62px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar h1 { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.topbar-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.topbar-user .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sakura-soft), var(--seiji-soft));
    color: var(--seiji-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
}

.content { padding: 28px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ---------------- 面板/卡片 ---------------- */
.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 22px;
}
.panel-title {
    font-family: var(--serif);
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.panel-title .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: "";
    position: absolute;
    right: -14px; top: -14px;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--seiji-soft);
    opacity: .7;
}
.stat-card.sakura::after { background: var(--sakura-soft); }
.stat-card .num {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 700;
    color: var(--seiji);
    line-height: 1.2;
}
.stat-card.sakura .num { color: var(--sakura); }
.stat-card .label { font-size: 12.5px; color: var(--ink-muted); margin-top: 4px; letter-spacing: 1px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.data-table th {
    text-align: left;
    padding: 11px 14px;
    background: var(--washi-deep);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.data-table th:first-child { border-radius: 8px 0 0 8px; }
.data-table th:last-child { border-radius: 0 8px 8px 0; }
.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f0ebe1;
    color: var(--ink);
    vertical-align: middle;
}
.data-table tr:hover td { background: #fdfbf7; }
.data-table .ops { white-space: nowrap; text-align: right; }
.data-table .ops a { margin-left: 10px; font-size: 12.5px; }
.data-table .empty { text-align: center; color: var(--ink-muted); padding: 34px 0; }

/* ---------------- 徽章 ---------------- */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: var(--washi-deep);
    color: var(--ink-soft);
    white-space: nowrap;
}
.badge-green { background: var(--seiji-soft); color: var(--seiji-dark); }
.badge-pink { background: var(--sakura-soft); color: var(--sakura); }
.badge-gray { background: #efece6; color: var(--ink-muted); }
.badge-red { background: #f7e9e9; color: var(--danger); }
.badge-gold { background: #f6eee0; color: var(--warn); }

/* ---------------- 信息描述列表 ---------------- */
.desc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px 24px;
}
.desc-item .k { font-size: 12px; color: var(--ink-muted); margin-bottom: 3px; }
.desc-item .v { font-size: 14px; color: var(--ink); }

/* ---------------- 打卡钟 ---------------- */
.clock-card { text-align: center; padding: 34px 20px; }
.clock-time {
    font-family: var(--serif);
    font-size: 46px;
    font-weight: 700;
    color: var(--seiji);
    letter-spacing: 2px;
    line-height: 1.2;
}
.clock-date { color: var(--ink-muted); font-size: 13px; margin-top: 6px; letter-spacing: 2px; }
.clock-status { margin: 20px 0 24px; font-size: 14px; color: var(--ink-soft); }
.clock-actions { display: flex; gap: 14px; justify-content: center; }
.clock-btn {
    width: 132px; height: 132px;
    border-radius: 50%;
    border: 2px solid var(--seiji);
    background: var(--white);
    color: var(--seiji);
    font-size: 16px;
    font-family: var(--serif);
    letter-spacing: 3px;
    cursor: pointer;
    transition: all .18s;
}
.clock-btn:hover:not([disabled]) { background: var(--seiji); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,107,88,.25); }
.clock-btn.out { border-color: var(--sakura); color: var(--sakura); }
.clock-btn.out:hover:not([disabled]) { background: var(--sakura); color: #fff; box-shadow: 0 8px 20px rgba(168,120,120,.25); }
.clock-btn[disabled] { opacity: .35; cursor: default; }
.clock-btn small { display: block; font-size: 11px; letter-spacing: 1px; margin-top: 6px; font-family: var(--sans); }

/* ---------------- 公告/文章 ---------------- */
.article-list { list-style: none; }
.article-list li {
    padding: 15px 4px;
    border-bottom: 1px dashed var(--line);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}
.article-list li:last-child { border-bottom: none; }
.article-list .t { font-size: 14.5px; color: var(--ink); }
.article-list .t:hover { color: var(--sakura); }
.article-list .date { font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }

.article-body {
    white-space: pre-wrap;
    line-height: 2;
    color: var(--ink-soft);
    font-size: 14.5px;
}
.article-meta { color: var(--ink-muted); font-size: 12.5px; margin-bottom: 18px; }

/* ---------------- 协议页 ---------------- */
.doc-page { max-width: 760px; }
.doc-page h2 { font-family: var(--serif); margin: 26px 0 10px; font-size: 17px; color: var(--seiji-dark); }
.doc-page p, .doc-page li { color: var(--ink-soft); line-height: 2; font-size: 14px; }
.doc-page ul { padding-left: 22px; }

/* ---------------- 工具类 ---------------- */
.text-center { text-align: center; }
.text-muted { color: var(--ink-muted); }
.text-danger { color: var(--danger); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-0 { margin-bottom: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pager { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-muted); }

@media (max-width: 860px) {
    .sidebar { display: none; }
    .content { padding: 18px 14px; }
    .form-row { flex-direction: column; gap: 0; }
    .clock-btn { width: 110px; height: 110px; }
}
