:root {
    --bg: #f5f7fa; --card: #fff; --border: #e2e8f0;
    --text: #1a202c; --muted: #718096;
    --primary: #2b6cb0; --primary-dark: #2c5282;
    --red: #e53e3e; --yellow: #d69e2e; --green: #38a169;
    --purple: #6b46c1;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
       background: var(--bg); color: var(--text); font-size: 14px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav { background: #1a365d; color: #fff; padding: 0 24px; display: flex;
       align-items: center; gap: 4px; flex-wrap: wrap; }
.nav .logo { font-weight: bold; font-size: 16px; margin-right: 16px; padding: 14px 0; }
.nav a { color: #cbd5e0; padding: 14px 12px; display: inline-block; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.active { color: #fff; border-bottom: 2px solid #63b3ed; }

.container { max-width: 1200px; margin: 20px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px;
        padding: 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 14px; font-size: 18px; }
.card h3 { margin: 16px 0 8px; font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 8px;
        padding: 16px; text-align: center; }
.stat .num { font-size: 26px; font-weight: bold; color: var(--primary); }
.stat .label { color: var(--muted); margin-top: 4px; }
.stat.warn .num { color: var(--red); }

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left;
         vertical-align: top; }
th { background: #edf2f7; font-weight: 600; white-space: nowrap; }
tr:hover td { background: #f7fafc; }
td.clip { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px;
         color: #fff; }
.badge.red { background: var(--red); }
.badge.yellow { background: var(--yellow); }
.badge.green { background: var(--green); }
.badge.gray { background: #a0aec0; }
.badge.blue { background: var(--primary); }
.badge.purple { background: var(--purple); }

.btn { display: inline-block; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--border);
       background: #fff; color: var(--text); cursor: pointer; font-size: 13px; text-decoration: none; }
.btn:hover { background: #edf2f7; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.sm { padding: 2px 8px; font-size: 12px; }

input[type=text], input[type=date], select, textarea {
    padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 13px; font-family: inherit; width: 100%; }
textarea { min-height: 100px; resize: vertical; }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 13px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 180px; }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 12px; }
.flash.success { background: #f0fff4; color: #22543d; border: 1px solid #9ae6b4; }
.flash.error { background: #fff5f5; color: #742a2a; border: 1px solid #feb2b2; }

.stale { background: #fff5f5; }
.muted { color: var(--muted); font-size: 12px; }
pre { background: #ffffff; color: #2d3748; padding: 16px 18px; border-radius: 8px;
      border: 1px solid #e2e8f0; border-left: 4px solid #2c5282;
      white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.8;
      font-family: "Microsoft YaHei","PingFang SC",sans-serif; }
.dim-block { background: #edf2f7; border-radius: 6px; padding: 10px 12px; margin: 8px 0; }
.dim-block .dim-title { font-weight: bold; color: var(--purple); margin-bottom: 4px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.callout { border-left: 4px solid var(--yellow); background: #fffaf0; padding: 10px 14px;
           border-radius: 0 6px 6px 0; margin: 10px 0; font-size: 13px; }
.callout.red { border-color: var(--red); background: #fff5f5; }


/* ===== 会员体系（P1） ===== */
.nav-user { margin-left: auto; color: #a0aec0; font-size: 13px; white-space: nowrap; }
.nav-user a { color: #90cdf4; padding: 4px 6px; display: inline-block; }
.auth-box { max-width: 380px; margin: 80px auto; background: #fff;
            border: 1px solid #e2e8f0; border-radius: 8px; padding: 28px; }
.auth-box h1 { font-size: 18px; margin: 0 0 16px; }
.auth-box input { width: 100%; box-sizing: border-box; padding: 9px 11px;
                  margin: 6px 0 12px; border: 1px solid #cbd5e0; border-radius: 6px; }
.auth-box button { width: 100%; padding: 10px; background: #1a365d; color: #fff;
                   border: 0; border-radius: 6px; cursor: pointer; font-size: 15px; }
.auth-box .link { text-align: center; font-size: 13px; margin-top: 14px; color: #718096; }
.tbl { border-collapse: collapse; width: 100%; }
.tbl th, .tbl td { border: 1px solid #e2e8f0; padding: 7px 10px; text-align: left; font-size: 13px; }
.tbl th { background: #f7fafc; }

.btnp { padding: 9px 22px; background: #1a365d; color: #fff; border: 0;
        border-radius: 6px; cursor: pointer; }
.btnp:hover { background: #2a4a7d; }


/* ---------- 提取工作台（提取优先改造） ---------- */
.wb-hero{text-align:center;padding:26px 0 12px;}
.wb-hero h1{font-size:26px;margin:0 0 6px;}
.wb-input-row{display:flex;gap:10px;}
.wb-input{flex:1;padding:13px 14px;font-size:15px;border:2px solid #cbd5e0;border-radius:8px;box-sizing:border-box;}
.wb-input:focus{border-color:#4c6ef5;outline:none;}
.wb-btn{padding:13px 28px;font-size:16px;white-space:nowrap;}
.wb-upload{margin-top:12px;}
.wb-upload summary{cursor:pointer;color:#666;}
.wb-actions{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;}
.nav-more{position:relative;display:inline-block;cursor:pointer;padding:0 10px;}
.nav-more:hover .nav-more-menu{display:block;}
.nav-more-menu{display:none;position:absolute;left:0;top:100%;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-shadow:0 4px 12px rgba(0,0,0,.10);min-width:120px;z-index:99;}
.nav-more-menu a{display:block;padding:8px 14px;color:#333;text-decoration:none;white-space:nowrap;}
.nav-more-menu a:hover{background:#f1f5f9;}

.wb-task{padding:12px 0;border-bottom:1px dashed #cbd5e0;}
.wb-task:last-child{border-bottom:none;}
textarea.wb-input{resize:vertical;font-family:inherit;}

/* 转写原文：黑底白字沉浸式阅读块 */
.wb-transcript{margin-top:12px;background:#ffffff;border-radius:10px;padding:20px 22px;
    border:1px solid #e2e8f0;border-left:5px solid #2c5282;box-shadow:0 1px 4px rgba(0,0,0,.05);}
.wb-transcript pre{margin:0;padding:0;border:none;background:none;color:#1a202c;
    font-size:16px;line-height:2;white-space:pre-wrap;word-break:break-word;font-family:"Microsoft YaHei","PingFang SC",sans-serif;}

/* 通用文档阅读块 */
.doc-block{background:#ffffff;border:1px solid #e2e8f0;border-left:5px solid #2c5282;border-radius:10px;
    padding:20px 22px;margin:8px 0;color:#1a202c;font-size:16px;line-height:2;
    white-space:pre-wrap;word-break:break-word;box-shadow:0 1px 4px rgba(0,0,0,.05);}

/* 积分中心 */
.pts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px;}
.pts-card{text-align:center;}
.pts-balance{font-size:42px;font-weight:700;color:#2c5282;margin:8px 0;}
@media(max-width:720px){.pts-grid{grid-template-columns:1fr;}}

/* 游客提示条 */
.guest-bar{background:#fffbeb;border:1px solid #f6e05e;border-radius:8px;
    padding:10px 16px;margin-bottom:14px;color:#744210;font-size:14px;}
