/* ==========================================================================
   作业栏 · Kimi 开放平台 1:1 视觉层
   --------------------------------------------------------------------------
   只改视觉：HTML 版式、色彩、排版完全对齐 platform.kimi.com 落地页。
   homework.js、DOM id/class 契约、/api/* 接口与 KV 绑定一律不变。
   除「文字内容」与「作业文件（文字作业 / 文件作业）」外，其余保持一致。
   ========================================================================== */

/* 固定 Kimi 配色：原主题按时段切换的逻辑保留在 JS，但视觉不随之改变 */
:root,
html[data-theme='light'],
html[data-theme='dark'] {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f8f9;
  --panel-solid: #ffffff;
  --line: #e6e8eb;
  --line-2: #dfe2e6;
  --text: #111111;
  --dim: #5b5f66;
  --faint: #8a8f96;
  --accent: #111111;
  --accent-2: #111111;
  --accent-3: #111111;
  --accent-grad: #111111;
  --accent-soft: #f2f3f5;
  --glow: transparent;
  --ok: #111111;
  --warn: #8a6d3b;
  --red: #c0392b;
  --red-soft: #fdf3f2;
  --r: 4px;
  --r-lg: 4px;
  --shadow-1: none;
  --shadow-2: 0 12px 40px rgba(0, 0, 0, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --k-dark: #121212;
  --k-dark-2: #1b1b1b;
  --k-line: #e6e8eb;
  --k-dim: rgba(0, 0, 0, .6);
  --k-dim-2: rgba(0, 0, 0, .9);
  --k-white-dim: rgba(255, 255, 255, .56);
  --k-white: rgba(255, 255, 255, .9);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
html, body { margin: 0; padding: 0; }
body {
  background: #ffffff !important;
  color: var(--k-dim-2) !important;
  font-family: var(--font) !important;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.k-hidden { display: none !important; }

.k-container { width: min(1280px, calc(100% - 80px)); margin: 0 auto; }

/* ── 固定顶栏 + 公告条 ─────────────────────────────────────── */
.k-fixed {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.k-fixed--light {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.k-header { height: 72px; color: #fff; }
.k-header__inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.k-logo {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  color: #fff; white-space: nowrap; flex: none;
}
.k-logo span { color: #fff; font-weight: 500; }
.k-fixed--light .k-logo { color: #111; }
.k-fixed--light .k-logo span { color: rgba(0, 0, 0, .55); }
.k-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.k-nav a {
  font-size: 14px; font-weight: 400; white-space: nowrap;
  color: var(--k-white-dim); transition: color .2s;
}
.k-nav a:hover { color: #fff; }
.k-fixed--light .k-nav a { color: rgba(0, 0, 0, .6); }
.k-fixed--light .k-nav a:hover { color: #000; }
.k-header__right { display: flex; align-items: center; gap: 12px; flex: none; }
.k-login {
  height: 32px; padding: 0 16px; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .84); color: #121212;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.k-login:hover { opacity: .85; transform: translateY(-1px); }
.k-fixed--light .k-login { background: #121212; color: #fff; }

.k-notice {
  height: 38px; display: flex; align-items: center; justify-content: center;
  gap: 4px; background: var(--k-dark-2); color: var(--k-white);
  font-size: 13px; letter-spacing: .01em;
}
.k-notice a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.k-fixed--light .k-notice { background: #f6f7f8; color: rgba(0, 0, 0, .75); }
.k-fixed--light .k-notice a { color: #111; }

/* ── Hero ──────────────────────────────────────────────────── */
.k-hero {
  position: relative; height: 900px; background: var(--k-dark);
  overflow: hidden; color: #fff;
}
.k-hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55; pointer-events: none;
}
.k-hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, .92) 0%, rgba(18, 18, 18, .55) 45%, rgba(18, 18, 18, .12) 100%),
    linear-gradient(0deg, rgba(18, 18, 18, .9) 0%, transparent 40%);
}
.k-hero__content {
  position: absolute; left: 0; right: 0; top: 318px; z-index: 2;
}
.k-hero__badge {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: 6px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72); font-size: 13px;
}
.k-hero h1 {
  margin: 28px 0 32px; font-size: 60px; line-height: 1.24;
  font-weight: 600; letter-spacing: -.03em; color: rgba(255, 255, 255, .84);
}
.k-hero__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 20px;
  background: #fff; color: #121212; font-size: 14px; font-weight: 500;
  transition: transform .2s, opacity .2s;
}
.k-hero__cta:hover { transform: translateY(-2px); opacity: .9; }
.k-hero__cta span { font-size: 15px; }
.k-hero__trust { position: absolute; left: 0; right: 0; bottom: 62px; z-index: 2; }
.k-hero__trust p { margin: 0 0 22px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.k-partners { display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.k-partner {
  font-size: 20px; font-weight: 600; letter-spacing: .02em;
  color: rgba(255, 255, 255, .45); white-space: nowrap;
}

/* ── 通用白底区块 ──────────────────────────────────────────── */
.k-main { background: #fff; }
.k-section { padding: 72px 0; background: #fff; }
.k-section__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; margin-bottom: 40px;
}
.k-section__head h2 {
  margin: 0 0 14px; font-size: 40px; line-height: 56px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500; letter-spacing: -.02em; color: var(--k-dim-2);
}
.k-section__sub { margin: 0; font-size: 14px; line-height: 1.8; color: var(--k-dim); }
.k-section__sub b { color: var(--k-dim-2); font-weight: 600; }
.k-section__actions { display: flex; align-items: center; gap: 24px; flex: none; padding-top: 12px; }
.k-more {
  flex: none; padding-top: 12px; font-size: 14px; font-weight: 500;
  color: var(--k-dim-2); background: none; border: 0; cursor: pointer;
  white-space: nowrap; transition: opacity .2s;
}
.k-more:hover { opacity: .6; }
.k-more--btn { font-family: inherit; }

/* 统计概览：做成 Kimi 卡片里的细参数行，低调不抢视觉 */
.k-stats {
  display: grid !important; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 0 0 32px; padding: 0 !important;
  border: 1px solid var(--k-line); border-radius: 2px; background: #fff;
  box-shadow: none !important;
}
.k-stats::before, .k-stats::after { display: none !important; }
.k-stats .hw-stat {
  position: relative; margin: 0 !important; padding: 18px 24px !important;
  border: 0 !important; border-right: 1px solid var(--k-line) !important;
  border-radius: 0 !important; background: #fff !important;
  box-shadow: none !important; backdrop-filter: none !important;
  display: flex; align-items: baseline; gap: 12px; min-height: 64px;
}
.k-stats .hw-stat:last-child { border-right: 0 !important; }
.k-stats .hw-stat::before, .k-stats .hw-stat::after { display: none !important; }
.k-stats .hw-stat:hover { transform: none !important; }
.k-stats .hw-stat__num {
  font-size: 24px !important; font-weight: 500; letter-spacing: -.02em;
  color: var(--k-dim-2) !important; -webkit-text-fill-color: var(--k-dim-2) !important;
  background: none !important;
}
.k-stats .hw-stat__label { font-size: 13px; color: var(--k-dim); }
/* 空间占用：去掉彩色环形，改成纯文本数值，与其他三格一致 */
.k-stats .hw-stat--space .hw-ring {
  width: auto !important; height: auto !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important;
  display: inline-flex !important; align-items: baseline; gap: 6px;
}
.k-stats .hw-stat--space .hw-ring::before { display: none !important; }
.k-stats .hw-stat--space .hw-ring__num {
  font-size: 20px !important; font-weight: 500; color: var(--k-dim-2) !important;
  -webkit-text-fill-color: var(--k-dim-2) !important; background: none !important;
}
.k-stats .hw-stat--space .hw-ring__pct { display: inline; margin: 0; font-size: 12px; color: var(--k-dim); }
.k-stats .hw-stat--space { flex-direction: row !important; align-items: baseline !important; }

/* ── 作业卡片（对齐「最新模型」三卡） ──────────────────────── */
.k-cards {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; margin: 0 !important; padding: 0 !important;
}
.hw-card {
  position: relative; display: flex !important; flex-direction: column;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--k-line) !important; border-radius: 2px !important;
  background: #fff !important; box-shadow: none !important;
  overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hw-card::before, .hw-card::after { display: none !important; }
.hw-card:hover {
  transform: translateY(-2px) !important; border-color: #c9ced4 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06) !important;
}
html[data-theme='light'] .hw-card:hover { border-color: #c9ced4 !important; box-shadow: 0 8px 24px rgba(0, 0, 0, .06) !important; }

/* 卡头纹理区 */
.hw-card__thumb {
  position: relative; height: 196px; min-height: 196px;
  margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-bottom: 0 !important; border-radius: 0 !important;
  background-color: #1c2733 !important;
  background-image: url('../img/kimi/card-1_light.png') !important;
  background-size: cover !important; background-position: center !important;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.k-cards .hw-card:nth-child(3n+2) .hw-card__thumb { background-image: url('../img/kimi/card-2_light.png') !important; }
.k-cards .hw-card:nth-child(3n+3) .hw-card__thumb { background-image: url('../img/kimi/card-3_light.png') !important; }
.hw-card__thumb--img { background-size: cover !important; background-position: center !important; }
.hw-card__thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .3));
}
/* 文字作业预览摘要：贴在纹理头底部，不遮挡居中标题 */
.hw-thumb__text {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 12px;
  padding: 0; margin: 0; max-height: 44px; overflow: hidden;
  font-size: 11px; line-height: 1.55; color: rgba(255, 255, 255, .62);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: pre-wrap; word-break: break-word;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .7);
}
/* 文件类型图标缩到右下角，不挡住居中的作业标题 */
.hw-thumb__ph {
  position: absolute; z-index: 2; right: 14px; bottom: 12px; top: auto; left: auto;
  width: auto; height: auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: rgba(255, 255, 255, .82); background: none !important;
}
.hw-thumb__play, .hw-thumb__seewo { transform: scale(.6); }
.hw-thumb__page { position: relative; z-index: 1; width: 100%; height: 100%; overflow: hidden; }
.hw-thumb__doc, .hw-thumb__xls, .hw-pptx { color: rgba(255, 255, 255, .85); font-size: 11px; }
.hw-card__badge {
  position: absolute; z-index: 3; top: 14px; left: 14px;
  padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; border: 0 !important;
  background: rgba(255, 255, 255, .9) !important; color: #121212 !important;
  backdrop-filter: none !important;
}
.hw-card__badge.hw-badge--lock { background: #121212 !important; color: #fff !important; }

.hw-card__body {
  display: flex; flex-direction: column; flex: 1;
  min-height: 218px;
  padding: 20px 20px 16px !important; background: #fff !important;
}
/* 卡片标题：像 Kimi 模型卡片那样，白色大字居中叠在纹理头中央 */
.hw-card__title {
  position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 196px;
  margin: 0 !important; padding: 0 26px;
  display: flex !important; align-items: center; justify-content: center;
  text-align: center; font-family: var(--mono);
  font-size: 27px !important; line-height: 1.3; font-weight: 400 !important;
  letter-spacing: .01em; color: #fff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
  overflow: hidden; word-break: break-word;
  -webkit-line-clamp: unset; -webkit-box-orient: initial; display: flex !important;
}
.hw-card__title > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hw-card__desc {
  margin: 0 0 14px !important; padding-top: 4px; font-size: 13px; line-height: 1.75;
  color: var(--k-dim) !important; min-height: 46px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.hw-card__lock {
  margin: 0 0 12px !important; padding: 8px 10px !important;
  border: 1px solid var(--k-line) !important; border-radius: 2px !important;
  background: #f7f8f9 !important; font-size: 12px; color: var(--k-dim) !important;
}
.hw-card__lock b { color: var(--k-dim-2); font-weight: 600; }
/* 按钮区做成 Kimi 模型卡片的「参数表」行式节奏（细线分隔、左标签右箭头） */
.hw-card__foot {
  margin-top: auto !important; padding: 0 !important;
  border-top: 1px solid var(--k-line) !important;
  display: flex !important; flex-direction: column; gap: 0 !important;
}
.hw-card__foot .hw-btn {
  width: 100%; height: 38px; padding: 0 2px !important;
  display: flex !important; align-items: center; justify-content: space-between;
  border: 0 !important; border-bottom: 1px solid var(--k-line) !important;
  border-radius: 0 !important; background: transparent !important;
  color: var(--k-dim-2) !important; font-size: 13px; font-weight: 400;
  box-shadow: none !important;
}
.hw-card__foot .hw-btn:last-child { border-bottom: 0 !important; }
.hw-card__foot .hw-btn::after { content: '›'; font-size: 17px; color: var(--k-dim); line-height: 1; }
.hw-card__foot .hw-btn:hover { background: #fafbfc !important; border-color: var(--k-line) !important; color: #000 !important; }
.hw-card__pick { position: absolute; z-index: 4; top: 12px; right: 12px; }
.hw-card__pick input { width: 16px; height: 16px; accent-color: #121212; }
.hw-card--locked .hw-card__thumb { filter: grayscale(.35); }

.k-empty {
  padding: 64px 24px !important; text-align: center;
  border: 1px solid var(--k-line); border-radius: 2px;
  background: #fff !important; color: var(--k-dim) !important;
  font-size: 14px; box-shadow: none !important;
}

/* ── 官方工具区 ────────────────────────────────────────────── */
.k-toolgrid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--k-line); border-radius: 2px; overflow: hidden;
}
.k-tool {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; min-height: 98px;
  border-right: 1px solid var(--k-line); border-bottom: 1px solid var(--k-line);
}
.k-tool:nth-child(2n) { border-right: 0; }
.k-tool:nth-last-child(-n+2) { border-bottom: 0; }
.k-tool--wide { grid-column: 1 / -1; border-right: 0; }
.k-tool__ico {
  flex: none; width: 40px; height: 40px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  background: #f3f5f6; color: #2a2f36; font-size: 19px; line-height: 1;
}
.k-tool h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--k-dim-2); }
.k-tool p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--k-dim); }

/* ── 复杂场景 4 卡 ─────────────────────────────────────────── */
.k-scenegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.k-scene { border: 1px solid var(--k-line); border-radius: 2px; overflow: hidden; background: #fff; }
.k-scene__art {
  position: relative; height: 176px; background-color: #1c2733;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.k-scene__art--1 { background-image: url('../img/kimi/agentcode.png'); }
.k-scene__art--2 { background-image: url('../img/kimi/deepsearch.png'); }
.k-scene__art--3 { background-image: url('../img/kimi/lawsafety.png'); }
.k-scene__art--4 { background-image: url('../img/kimi/chatanalysis.png'); }
.k-scene__art::after { content: ''; position: absolute; inset: 0; background: rgba(10, 18, 28, .18); }
.k-scene__glyph {
  position: relative; z-index: 1; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 9px;
  color: #fff; font-size: 20px; line-height: 1;
}
.k-scene__body { padding: 18px 20px 24px; }
.k-scene__body h3 { margin: 0 0 10px; font-size: 16px; font-weight: 500; color: var(--k-dim-2); }
.k-scene__body p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--k-dim); }

/* ── 与班级同行 3 卡 ───────────────────────────────────────── */
.k-coopgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.k-coop {
  border: 1px solid var(--k-line); border-radius: 2px; background: #fff;
  padding: 24px; min-height: 260px; display: flex; flex-direction: column;
}
.k-coop__logo {
  height: 32px; margin-bottom: 26px; font-size: 20px; font-weight: 700;
  letter-spacing: -.02em; color: var(--k-dim-2);
}
.k-coop__logo--mono { font-family: var(--mono); font-weight: 500; font-size: 18px; }
.k-coop p { margin: 0 0 24px; font-size: 13px; line-height: 1.85; color: var(--k-dim); flex: 1; }
.k-coop__tag { font-size: 14px; font-weight: 600; color: var(--k-dim-2); }

/* ── 快速开始 2 大卡 ───────────────────────────────────────── */
.k-start { padding-bottom: 96px; }
.k-startgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.k-startcard { border: 1px solid var(--k-line); border-radius: 2px; overflow: hidden; background: #fff; }
.k-startcard__art {
  position: relative; height: 196px; background-color: #1c2733;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.k-startcard__art--1 { background-image: url('../img/kimi/personal_light.png'); }
.k-startcard__art--2 { background-image: url('../img/kimi/enterprise_light.png'); }
.k-startcard__art::after { content: ''; position: absolute; inset: 0; background: rgba(10, 18, 28, .2); }
.k-startcard__ico {
  position: relative; z-index: 1; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 7px;
  color: #fff; font-size: 15px;
}
.k-startcard__art h3 {
  position: relative; z-index: 1; margin: 0; font-size: 28px; font-weight: 400;
  font-family: var(--mono); color: #fff; letter-spacing: .01em;
}
.k-startcard__body { padding: 24px 28px 28px; }
.k-startcard__sub { margin: 0 0 18px; text-align: center; font-size: 14px; color: var(--k-dim); }
.k-startcard__body ul { margin: 0 0 24px; padding: 0 0 0 4px; list-style: none; }
.k-startcard__body li {
  position: relative; padding-left: 18px; margin-bottom: 10px;
  font-size: 13px; line-height: 1.7; color: var(--k-dim);
}
.k-startcard__body li::before { content: '•'; position: absolute; left: 2px; color: var(--k-dim-2); }
.k-startcard__btn {
  display: block; width: 100%; height: 40px; border: 0; border-radius: 3px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity .2s;
}
.k-startcard__btn:hover { opacity: .85; }
.k-startcard__btn--dark { background: #121212; color: #fff; }
.k-startcard__btn--light { background: #f5f6f7; color: var(--k-dim-2); }

/* ── 页脚 ──────────────────────────────────────────────────── */
.k-footer {
  background: var(--k-dark); color: #fff; padding: 60px 0 0;
  min-height: 440px; box-sizing: border-box;
  display: flex; flex-direction: column;
}
.k-footer__inner { display: flex; justify-content: space-between; gap: 60px; padding-bottom: 56px; flex: 1; }
.k-footer__logo { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.k-footer__social { display: flex; gap: 10px; margin-top: 28px; }
.k-footer__social a {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #2a2a2a; color: rgba(255, 255, 255, .75);
  font-size: 13px; transition: background .2s;
}
.k-footer__social a:hover { background: #3a3a3a; }
.k-footer__cols { display: flex; gap: 96px; }
.k-footer__col { display: flex; flex-direction: column; gap: 16px; }
.k-footer__col h4 { margin: 0 0 4px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.k-footer__col a { font-size: 14px; color: var(--k-white-dim); transition: color .2s; }
.k-footer__col a:hover { color: #fff; }
.k-footer__copy {
  padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center; font-size: 12px; color: var(--k-white-dim);
}

/* ── 按钮（中性黑白） ──────────────────────────────────────── */
.hw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 14px; border-radius: 3px !important;
  border: 1px solid var(--k-line-2, #dfe2e6) !important;
  background: #fff !important; color: var(--k-dim-2) !important;
  font-size: 13px; font-weight: 500; cursor: pointer;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  box-shadow: none !important; transition: border-color .2s, background .2s;
  white-space: nowrap;
}
.hw-btn:hover { border-color: #121212 !important; background: #f7f8f9 !important; color: #121212 !important; }
.hw-btn--primary {
  background: #121212 !important; color: #fff !important;
  border-color: #121212 !important; font-weight: 500;
}
.hw-btn--primary:hover { background: #121212 !important; color: #fff !important; opacity: .85; }
.hw-btn--mini { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 3px !important; }
/* 删除按钮保持中性（Kimi 无彩色），仅在悬停时给危险色提示 */
.hw-btn--del { color: var(--k-dim) !important; }
.hw-card__foot .hw-btn--del { color: var(--k-dim) !important; }
.hw-btn--del:hover { color: #b3362b !important; border-color: #d9b8b4 !important; }
.hw-card__foot .hw-btn--del:hover { color: #b3362b !important; }

/* ── 弹层 / 表单 ───────────────────────────────────────────── */
/* 必须高于固定顶栏(.k-fixed z-index:60)，否则关闭按钮被公告条挡住 */
.hw-modal { z-index: 200 !important; }
.hw-viewer { z-index: 201 !important; }
.hw-adminbar { z-index: 210 !important; }
.hw-toast { z-index: 220 !important; }
.hw-modal__backdrop, .hw-viewer__backdrop {
  background: rgba(0, 0, 0, .68) !important;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
html[data-theme='light'] .hw-modal__backdrop,
html[data-theme='light'] .hw-viewer__backdrop { background: rgba(0, 0, 0, .55) !important; }
.hw-modal__panel, .hw-viewer__panel {
  background: #fff !important; color: var(--k-dim-2) !important;
  border: 1px solid var(--k-line) !important; border-radius: 6px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.hw-modal__panel { max-height: 88vh; overflow-y: auto; }
.hw-modal__panel h2, .hw-viewer__title {
  margin: 0 0 20px; font-size: 22px; font-weight: 600; color: var(--k-dim-2) !important;
}
.hw-modal__panel h2::before { content: '' !important; }
.hw-modal__panel label {
  display: block; margin-bottom: 16px; font-size: 13px;
  font-weight: 500; color: var(--k-dim-2); line-height: 1.7;
}
.hw-modal__panel input[type='text'],
.hw-modal__panel input[type='url'],
.hw-modal__panel input[type='file'],
.hw-modal__panel textarea {
  display: block; width: 100%; margin-top: 7px; padding: 9px 11px;
  border: 1px solid var(--k-line-2, #dfe2e6) !important; border-radius: 3px !important;
  background: #fff !important; color: var(--k-dim-2) !important;
  font-family: inherit; font-size: 13px; line-height: 1.6;
  font-weight: 400; outline: none; box-shadow: none !important;
}
.hw-modal__panel input:focus, .hw-modal__panel textarea:focus {
  border-color: #121212 !important; box-shadow: none !important;
}
.hw-modal__panel input[type='file'] { padding: 8px; }
.hw-modal__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--k-line);
}
.hw-modal__close, .hw-viewer__close {
  width: 30px; height: 30px; border: 0 !important; border-radius: 3px !important;
  background: #f3f5f6 !important; color: #333 !important;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.hw-file-status { margin: 4px 0; font-size: 12px; color: var(--k-dim); }
.hw-file-status--err, .hw-warn { color: #c0392b !important; }
.hw-warn { font-size: 12px; margin: 6px 0; }

/* ── 预览灯箱 ──────────────────────────────────────────────── */
.hw-viewer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--k-line);
}
.hw-viewer__head .hw-viewer__title { margin: 0; font-size: 18px; }
.hw-viewer__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hw-viewer__body { background: #fff; color: var(--k-dim-2); }
.hw-viewer__pre {
  margin: 0; padding: 24px; font-family: var(--mono);
  font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  color: var(--k-dim-2); background: #fff;
}
.hw-preview__loading, .hw-preview__note, .hw-preview__cap {
  color: var(--k-dim); font-size: 13px;
}
.hw-viewer__frame { border: 0; background: #fff; }
.hw-doc, .hw-xls, .hw-pptx { color: var(--k-dim-2); background: #fff; }
.hw-xls__scroll { overflow: auto; }
.hw-xls__title { font-size: 15px; color: var(--k-dim-2); }
.hw-seewo__name { color: var(--k-dim-2); }

/* ── 管理工具条 / toast / 拖拽 ─────────────────────────────── */
.hw-adminbar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 80; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: calc(100% - 32px); padding: 12px 18px;
  background: #121212 !important; border: 1px solid #333 !important;
  border-radius: 6px !important; box-shadow: 0 14px 40px rgba(0, 0, 0, .3) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  color: rgba(255, 255, 255, .85) !important; font-size: 13px;
}
.hw-adminbar__hint { color: rgba(255, 255, 255, .6); }
.hw-adminbar__all { display: flex; align-items: center; gap: 6px; }
.hw-adminbar input { accent-color: #fff; }
.hw-adminbar .hw-btn {
  background: #2a2a2a !important; border-color: #3a3a3a !important; color: #fff !important;
}
.hw-adminbar .hw-btn:hover { background: #3a3a3a !important; border-color: #555 !important; color: #fff !important; }
.hw-adminbar[hidden] { display: none !important; }
.hw-toast {
  position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translateX(-50%);
  padding: 11px 18px; border-radius: 4px !important;
  background: #121212 !important; color: #fff !important;
  border: 1px solid #333 !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .24) !important;
  font-size: 13px;
}
html[data-theme='light'] .hw-toast { background: #121212 !important; color: #fff !important; }
.hw-bar--drag { outline: 2px dashed #121212 !important; outline-offset: -8px; }
.hw-bar--drag::after {
  color: #121212 !important; text-shadow: none !important;
  background: rgba(255, 255, 255, .9) !important;
}

/* ── 响应式 ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .k-nav { gap: 18px; }
  .k-nav a:nth-child(n+5) { display: none; }
  .k-footer__cols { gap: 48px; }
  .k-scenegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-coopgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .k-container { width: calc(100% - 40px); }
  .k-nav { display: none; }
  .k-header__inner { gap: 12px; }
  .k-logo { font-size: 18px; }
  .k-hero { height: 720px; }
  .k-hero__content { top: 260px; }
  .k-hero h1 { font-size: 40px; }
  .k-partners { gap: 24px; }
  .k-partner { font-size: 15px; }
  .k-section { padding: 52px 0; }
  .k-section__head { flex-direction: column; gap: 12px; }
  .k-section__head h2 { font-size: 30px; line-height: 1.35; }
  .k-section__actions { padding-top: 0; }
  .k-more { padding-top: 0; }
  .k-cards, .k-coopgrid, .k-startgrid, .k-toolgrid, .k-stats { grid-template-columns: 1fr; }
  .k-scenegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-stats .hw-stat { border-right: 0 !important; border-bottom: 1px solid var(--k-line) !important; }
  .k-stats .hw-stat:last-child { border-bottom: 0 !important; }
  .k-tool { border-right: 0 !important; border-bottom: 1px solid var(--k-line) !important; }
  .k-tool:nth-last-child(-n+2) { border-bottom: 1px solid var(--k-line) !important; }
  .k-tool:last-child { border-bottom: 0 !important; }
  .k-footer__inner { flex-direction: column; gap: 32px; }
  .k-footer__cols { gap: 32px; flex-wrap: wrap; }
  .k-hero__trust { bottom: 36px; }
}
