/* =============================================================
   灵纹科技 · 项目进度打卡系统 —— 水墨主题 (ink-theme.css)
   设计语言：新中式水墨山水 —— 墨绿、米宣纸、鎏金描边
   ============================================================= */

/* ---------------- 设计令牌 ---------------- */
:root {
  /* 墨色（墨绿） */
  --ink-900: #14302a;
  --ink-800: #1d4237;
  --ink-700: #26513f;
  --ink-600: #2f6350;
  --ink-500: #3f7d66;
  --ink-400: #5a9a83;
  --ink-300: #8dbca8;
  --ink-200: #c3ddd0;
  --ink-100: #e2efe7;
  --ink-50: #eff6f1;

  /* 鎏金 */
  --gold-700: #96742f;
  --gold-600: #b08d4f;
  --gold-500: #c9a96a;
  --gold-400: #d9c08d;
  --gold-300: #e9dcc0;
  --gold-100: #f7efdd;

  /* 宣纸 */
  --paper-0: #fffdf7;
  --paper-1: #faf6ea;
  --paper-2: #f4eeda;
  --paper-3: #eae1c9;

  /* 文字 */
  --text-900: #22302a;
  --text-700: #41504a;
  --text-500: #7d8a83;
  --text-400: #9aa69f;

  --shadow-sm:
    0 1px 2px rgba(38, 81, 63, 0.06), 0 1px 4px rgba(38, 81, 63, 0.05);
  --shadow-card:
    0 2px 6px rgba(38, 81, 63, 0.07), 0 10px 26px -12px rgba(38, 81, 63, 0.18);
  --shadow-btn:
    0 2px 5px rgba(29, 66, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --shadow-btn-hover:
    0 5px 14px rgba(29, 66, 55, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --font-sans:
    "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC",
    "Hiragino Sans GB", sans-serif;
  --font-serif:
    "Source Han Serif SC", "Noto Serif SC", "STZhongsong", "Songti SC",
    "SimSun", serif;
}

/* ---------------- 基础 ---------------- */
html {
  scroll-behavior: smooth;
}

body.ink-body {
  font-family: var(--font-sans);
  color: var(--text-900);
  background-color: var(--paper-1);
  background-image:
    radial-gradient(
      1200px 520px at 88% -6%,
      rgba(141, 188, 168, 0.16),
      transparent 62%
    ),
    radial-gradient(
      900px 420px at -8% 18%,
      rgba(201, 169, 106, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, #fbf8ee 0%, #f7f2e3 46%, #f3ecd9 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 74px;
  letter-spacing: 0.01em;
}

.ink-serif {
  font-family: var(--font-serif);
}

a {
  color: var(--ink-600);
}
a:hover {
  color: var(--ink-700);
}

::selection {
  background: rgba(47, 99, 80, 0.18);
}

/* 纸纹颗粒 */
body.ink-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(120, 110, 80, 0.022) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(120, 110, 80, 0.018) 0 1px,
      transparent 1px 4px
    );
}

/* ---------------- 背景装饰（云雾 / 远山） ---------------- */
.ink-mist,
.ink-bamboo {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: multiply;
}

/* 右上角：雾中远山（水平镜像） */
.ink-mist {
  top: -40px;
  right: -80px;
  width: 640px;
  height: 260px;
  background-image: url("../img/decor-mist-mountain-1.png");
  background-position: top right;
  opacity: 0.5;
  transform: scaleX(-1) scaleY(-1);
  -webkit-mask-image: radial-gradient(
    ellipse 72% 85% at 66% 34%,
    #000 42%,
    transparent 82%
  );
  mask-image: radial-gradient(
    ellipse 72% 85% at 66% 34%,
    #000 42%,
    transparent 82%
  );
}

/* 左下角：水墨山水长卷 */
.ink-mist--left {
  top: auto;
  right: auto;
  bottom: -10px;
  left: -40px;
  width: 780px;
  height: 320px;
  background-image: url("../img/decor-mist-mountain-1.png");
  background-position: bottom left;
  transform: none;
  opacity: 0.42;
}

/* 右侧：竹林剪影（低干扰） */
.ink-bamboo {
  display: none;
}

.ink-navbar,
.ink-main,
.ink-footer {
  position: relative;
  z-index: 1;
}

/* ---------------- 顶部导航 ---------------- */
.ink-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.08)),
    linear-gradient(120deg, #2b5a48 0%, #26513f 52%, #1d4237 100%);
  border-bottom: 1px solid rgba(201, 169, 106, 0.5);
  box-shadow: 0 3px 16px rgba(20, 48, 42, 0.32);
}

.ink-navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 106, 0.75) 18%,
    rgba(233, 220, 192, 0.95) 50%,
    rgba(201, 169, 106, 0.75) 82%,
    transparent
  );
  opacity: 0.8;
}

.ink-navbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}

.ink-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}

.ink-brand__seal {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(16, 40, 33, 0.55));
}
.ink-brand__seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.ink-brand__text {
  line-height: 1.08;
}
.ink-brand__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #fbf6e8;
  letter-spacing: 0.2em;
}
.ink-brand__sub {
  font-size: 11px;
  letter-spacing: 0.5em;
  color: rgba(233, 220, 192, 0.82);
}

.ink-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ink-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  color: rgba(240, 246, 240, 0.85);
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.ink-nav__link i {
  font-size: 15px;
  opacity: 0.9;
}

.ink-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(201, 169, 106, 0.35);
}

.ink-nav__link.is-active {
  color: #fdf8ea;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.07)
  );
  border-color: rgba(201, 169, 106, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 8px rgba(20, 48, 42, 0.3);
  font-weight: 600;
}

.ink-navbar__spacer {
  flex: 1 1 auto;
}

.ink-userchip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(201, 169, 106, 0.5);
}

.ink-userchip__meta {
  text-align: right;
  line-height: 1.15;
}
.ink-userchip__name {
  color: #fbf6e8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ink-userchip__id {
  color: rgba(233, 220, 192, 0.8);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.ink-userchip__avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2b4f40;
  background: linear-gradient(145deg, #efe4c8, #d9c08d);
  border: 1.5px solid rgba(255, 250, 235, 0.8);
  box-shadow: 0 2px 6px rgba(20, 48, 42, 0.35);
  text-decoration: none;
  transition: all 0.2s ease;
}
.ink-userchip__avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 48, 42, 0.45);
  color: #1d4237;
}

/* 未登录导航按钮 */
.ink-nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  text-decoration: none;
  color: #fbf6e8;
  border: 1px solid rgba(201, 169, 106, 0.65);
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.22s ease;
}
.ink-nav-auth:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.ink-nav-auth--solid {
  background: linear-gradient(145deg, #d8b877, #b08d4f 58%, #96742f);
  color: #2b2a18;
  font-weight: 600;
  border-color: rgba(255, 250, 235, 0.6);
  box-shadow: 0 2px 8px rgba(20, 48, 42, 0.38);
}
.ink-nav-auth--solid:hover {
  color: #211d0c;
  filter: brightness(1.05);
}

/* 移动端折叠按钮 */
.ink-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 106, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #f4edd9;
  font-size: 20px;
  align-items: center;
  justify-content: center;
}

/* ---------------- 主内容 ---------------- */
.ink-main {
  flex: 1 0 auto;
  padding-bottom: 56px;
}
main.ink-main > .container {
  position: relative;
  z-index: 2;
}

/* 提示消息 */
.ink-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-500);
  background: linear-gradient(
    180deg,
    rgba(247, 239, 221, 0.95),
    rgba(240, 228, 199, 0.9)
  );
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
}
.ink-alert--success {
  border-color: rgba(63, 125, 102, 0.55);
  background: linear-gradient(180deg, #eef6f0, #e2efe7);
}
.ink-alert--danger {
  border-color: rgba(155, 76, 60, 0.45);
  background: linear-gradient(180deg, #fbefe9, #f6e3da);
  color: #7c3a28;
}
.ink-alert--info {
  border-color: rgba(201, 169, 106, 0.6);
}
.ink-alert .btn-close {
  margin-left: auto;
  opacity: 0.55;
}

/* ---------------- 页面标题 ---------------- */
.ink-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ink-page-title__mark {
  width: 6px;
  align-self: stretch;
  min-height: 46px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
  box-shadow: 0 2px 6px rgba(176, 141, 79, 0.35);
}
.ink-page-title h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink-800);
  margin: 0;
  letter-spacing: 0.12em;
}
.ink-page-title__sub {
  margin-top: 3px;
  color: var(--text-500);
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ---------------- 按钮 ---------------- */
.btn-ink,
.btn-ink-light,
.btn-ink-outline,
.btn-ink-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

/* 主按钮：墨绿鎏金 */
.btn-ink {
  color: #f8f3e3;
  background: linear-gradient(150deg, #2f6350 0%, #26513f 55%, #1d4237 100%);
  border: 1px solid var(--gold-500);
  box-shadow: var(--shadow-btn);
}
.btn-ink:hover {
  color: #fffdf4;
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
  border-color: var(--gold-400);
}
.btn-ink:active {
  transform: translateY(0);
}
.btn-ink i {
  color: var(--gold-300);
}

/* 浅绿按钮 */
.btn-ink-light {
  color: var(--ink-800);
  background: linear-gradient(160deg, #eaf3ec 0%, #d9e9de 60%, #cbe0d2 100%);
  border: 1px solid rgba(63, 125, 102, 0.4);
  box-shadow:
    0 2px 6px rgba(38, 81, 63, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.btn-ink-light:hover {
  color: var(--ink-900);
  transform: translateY(-1px);
  box-shadow:
    0 5px 14px rgba(38, 81, 63, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-ink-light i {
  color: var(--ink-600);
}

/* 描边按钮 */
.btn-ink-outline {
  color: var(--ink-700);
  background: linear-gradient(
    180deg,
    rgba(255, 253, 246, 0.92),
    rgba(247, 242, 227, 0.88)
  );
  border: 1px solid rgba(176, 141, 79, 0.55);
  box-shadow: 0 1px 3px rgba(38, 81, 63, 0.08);
}
.btn-ink-outline:hover {
  color: var(--ink-900);
  border-color: var(--gold-600);
  background: #fffdf6;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(38, 81, 63, 0.14);
}
.btn-ink-outline i {
  color: var(--gold-600);
}

/* 幽灵按钮 */
.btn-ink-ghost {
  color: var(--ink-600);
  background: transparent;
  border: 1px dashed rgba(63, 125, 102, 0.5);
  padding: 8px 18px;
}
.btn-ink-ghost:hover {
  background: rgba(226, 239, 231, 0.6);
  color: var(--ink-800);
}

/* 深色卡片头部内的按钮/幽灵按钮反色适配 */
.ink-card__header .btn-ink-ghost {
  color: #f3edd9;
  border-color: rgba(233, 220, 192, 0.6);
}
.ink-card__header .btn-ink-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fffdf4;
  border-color: rgba(233, 220, 192, 0.85);
}
.ink-card__header .btn-ink-outline {
  color: #f6f1df;
  background: rgba(255, 253, 246, 0.1);
  border-color: rgba(201, 169, 106, 0.7);
}
.ink-card__header .btn-ink-outline:hover {
  background: rgba(255, 253, 246, 0.2);
  color: #fffdf4;
}
.ink-card__header .btn-ink-outline i {
  color: var(--gold-300);
}

/* 尺寸 */
.btn-ink-sm {
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 999px;
  gap: 6px;
}
.btn-ink-lg {
  padding: 13px 40px;
  font-size: 16.5px;
}

/* ---------------- 提示条（评分说明） ---------------- */
.ink-score-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-500);
  letter-spacing: 0.04em;
}

.ink-help {
  font-size: 12.5px;
  color: var(--text-500);
  letter-spacing: 0.05em;
}

/* ---------------- 卡片 ---------------- */
.ink-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(178deg, var(--paper-0) 0%, #fdfaf0 100%);
  border: 1px solid rgba(201, 169, 106, 0.32);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ink-card--framed {
  border: 1.5px solid rgba(201, 169, 106, 0.55);
  box-shadow:
    0 0 0 4px rgba(247, 239, 221, 0.55),
    var(--shadow-card);
}

.ink-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 20px;
  color: #f5f0df;
  background:
    radial-gradient(
      420px 90px at 85% 50%,
      rgba(141, 188, 168, 0.22),
      transparent 70%
    ),
    linear-gradient(120deg, #2e6350 0%, #26513f 55%, #1d4237 100%);
  border-bottom: 1px solid rgba(201, 169, 106, 0.45);
  position: relative;
}
.ink-card__header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(233, 220, 192, 0.8),
    transparent
  );
}

.ink-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #f8f3e3;
}
.ink-card__title i {
  color: var(--gold-300);
  font-size: 16px;
}

.ink-card__body {
  padding: 1.4rem 1.6rem;
}
.ink-card__body--flush {
  padding: 0;
}

/* ---------------- 徽章 ---------------- */
.ink-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #f6f1e1;
  background: linear-gradient(150deg, #35705a, #26513f);
  border: 1px solid rgba(201, 169, 106, 0.4);
  white-space: nowrap;
}

.ink-badge--gold {
  color: #4f3d14;
  background: linear-gradient(150deg, #eeddb2, #d9c08d 60%, #ccb076);
  border-color: rgba(150, 116, 47, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ink-badge--light {
  color: var(--ink-700);
  background: linear-gradient(160deg, #eaf3ec, #d9e9de);
  border-color: rgba(63, 125, 102, 0.35);
}

.ink-badge--plain {
  color: var(--ink-600);
  background: rgba(226, 239, 231, 0.65);
  border: 1px dashed rgba(63, 125, 102, 0.45);
  font-weight: 500;
}

.ink-badge--lg {
  padding: 7px 18px;
  font-size: 14px;
}

/* ---------------- 数据统计 ---------------- */
.ink-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(175deg, var(--paper-0), #fbf7ec);
  border: 1px solid rgba(201, 169, 106, 0.3);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.ink-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.ink-stat__icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 21px;
  color: var(--ink-700);
  background: linear-gradient(150deg, var(--ink-100), var(--ink-200));
  border: 1px solid rgba(63, 125, 102, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ink-stat__value {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-800);
}
.ink-stat__label {
  font-size: 12.5px;
  color: var(--text-500);
  letter-spacing: 0.16em;
  margin-top: 2px;
}

/* ---------------- 欢迎横幅 ---------------- */
.ink-welcome {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 26px 30px;
  color: #f7f2e2;
  background:
    radial-gradient(
      560px 200px at 82% 20%,
      rgba(141, 188, 168, 0.3),
      transparent 65%
    ),
    linear-gradient(118deg, #2e6350 0%, #26513f 48%, #1a3b31 100%);
  border: 1px solid rgba(201, 169, 106, 0.55);
  box-shadow:
    0 4px 12px rgba(29, 66, 55, 0.25),
    0 16px 38px -16px rgba(29, 66, 55, 0.5);
}

.ink-welcome__mist {
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 460px;
  height: 230px;
  background: url("../img/decor-mist-mountain-1.png") right bottom / contain
    no-repeat;
  opacity: 0.38;
  filter: brightness(1.9) saturate(0.55);
  pointer-events: none;
}

.ink-welcome__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 1;
}

.ink-welcome__title {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(16, 40, 33, 0.45);
}

.ink-welcome__sub {
  margin-top: 10px;
  color: rgba(240, 235, 215, 0.88);
  font-size: 13.5px;
  letter-spacing: 0.1em;
}

/* 学号卡片 */
.ink-idcard {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.12);
  border: 1px solid rgba(201, 169, 106, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.ink-idcard__label {
  font-size: 12px;
  color: #d9c08d;
  letter-spacing: 0.3em;
  padding-right: 10px;
  border-right: 1px solid rgba(201, 169, 106, 0.45);
}
.ink-idcard__value {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fdf8ea;
}

/* 欢迎横幅内的按钮反色适配 */
.ink-welcome .btn-ink {
  background: linear-gradient(
    150deg,
    rgba(255, 253, 246, 0.16),
    rgba(255, 253, 246, 0.07)
  );
  border-color: rgba(201, 169, 106, 0.8);
  backdrop-filter: blur(2px);
}
.ink-welcome .btn-ink:hover {
  background: rgba(255, 253, 246, 0.24);
}

/* ---------------- 打卡记录列表 ---------------- */
.ink-record {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(201, 169, 106, 0.22);
  transition: background 0.2s ease;
  position: relative;
}
.ink-record:last-child {
  border-bottom: none;
}
.ink-record:hover {
  background: linear-gradient(
    90deg,
    rgba(226, 239, 231, 0.55),
    rgba(247, 239, 221, 0.35)
  );
}
.ink-record::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-500), var(--ink-500));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.ink-record:hover::before {
  opacity: 1;
}

.ink-record__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 19px;
  color: var(--ink-700);
  background: linear-gradient(150deg, var(--ink-100), var(--ink-200));
  border: 1px solid rgba(63, 125, 102, 0.3);
}

.ink-record__main {
  flex: 1 1 auto;
  min-width: 0;
}
.ink-record__title {
  font-weight: 600;
  color: var(--text-900);
  font-size: 15px;
  letter-spacing: 0.03em;
}
.ink-record__meta {
  color: var(--text-500);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ink-record__side {
  text-align: right;
  flex-shrink: 0;
}

/* 空状态 */
.ink-empty {
  text-align: center;
  padding: 44px 20px;
}
.ink-empty i {
  font-size: 52px;
  color: var(--ink-300);
}
.ink-empty p {
  color: var(--text-500);
  margin: 14px 0 18px;
  letter-spacing: 0.1em;
}
.ink-empty .ink-rise {
  display: inline-flex;
}

/* ---------------- 表格 ---------------- */
.ink-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: transparent;
}

.ink-table thead th {
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.18em;
  color: #f3eeda;
  background: linear-gradient(120deg, #2e6350, #26513f 60%, #21503f);
  border-bottom: 1px solid rgba(201, 169, 106, 0.45);
  white-space: nowrap;
}

.ink-table tbody td {
  padding: 14px 18px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(201, 169, 106, 0.2);
  color: var(--text-700);
  background: linear-gradient(178deg, var(--paper-0), #fdfaf0);
}

.ink-table tbody tr:last-child td {
  border-bottom: none;
}
.ink-table tbody tr:hover td {
  background: linear-gradient(
    90deg,
    rgba(226, 239, 231, 0.5),
    rgba(250, 246, 234, 0.8)
  );
}

.ink-rank-medal {
  font-size: 21px;
  line-height: 1;
}
.ink-rank-no {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--text-500);
  background: linear-gradient(160deg, #f3edda, #eae1c9);
  border: 1px solid rgba(201, 169, 106, 0.45);
}

/* ---------------- 键值信息（详情页） ---------------- */
.ink-kv {
  margin-bottom: 14px;
}
.ink-kv__k {
  font-size: 12.5px;
  color: var(--text-500);
  letter-spacing: 0.18em;
  margin-bottom: 5px;
}
.ink-kv__k i {
  color: var(--gold-600);
  margin-right: 5px;
}
.ink-kv__v {
  color: var(--text-900);
  font-size: 14.5px;
  line-height: 1.75;
}
.ink-kv__panel {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    178deg,
    rgba(250, 246, 234, 0.9),
    rgba(244, 238, 218, 0.75)
  );
  border: 1px solid rgba(201, 169, 106, 0.3);
}

.ink-divider {
  border: none;
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 169, 106, 0.55),
    transparent
  );
}

/* ---------------- 上传区 ---------------- */
.ink-upload {
  padding: 26px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  background: linear-gradient(
    178deg,
    rgba(250, 246, 234, 0.7),
    rgba(243, 237, 218, 0.5)
  );
  border: 2px dashed rgba(63, 125, 102, 0.45);
  transition: all 0.22s ease;
}
.ink-upload:hover {
  border-color: var(--ink-500);
  background: linear-gradient(178deg, #f3f8f3, #e8f1e9);
}
.ink-upload i {
  font-size: 40px;
  color: var(--ink-500);
}

/* ---------------- 评分明细小卡（排行榜折叠区） ---------------- */
.ink-subpanel {
  border-radius: var(--radius-md);
  background: linear-gradient(178deg, var(--paper-0), #fbf7ec);
  border: 1px solid rgba(201, 169, 106, 0.3);
  padding: 13px 15px;
}

/* ---------------- 认证页（登录/注册） ---------------- */
.ink-auth-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 42px 0 30px;
}

.ink-auth-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  border-radius: 22px;
  padding: 38px 40px 30px;
  background: linear-gradient(178deg, #fffdf6 0%, #fdf9ee 100%);
  border: 1.5px solid rgba(201, 169, 106, 0.6);
  box-shadow:
    0 0 0 6px rgba(247, 239, 221, 0.5),
    0 6px 20px rgba(38, 81, 63, 0.12),
    0 24px 50px -20px rgba(38, 81, 63, 0.3);
}

/* 四角云纹装饰 */
.ink-auth-card::before,
.ink-auth-card::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(176, 141, 79, 0.55);
  pointer-events: none;
}
.ink-auth-card::before {
  top: 9px;
  left: 9px;
  border-right: none;
  border-bottom: none;
  border-radius: 14px 0 0 0;
}
.ink-auth-card::after {
  bottom: 9px;
  right: 9px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 14px 0;
}

.ink-auth-card__seal {
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
.ink-auth-card__seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(38, 81, 63, 0.22));
}

.ink-auth-card__title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  text-align: center;
  color: var(--ink-800);
  letter-spacing: 0.3em;
  margin: 0;
  text-indent: 0.3em;
}
.ink-auth-card__sub {
  text-align: center;
  color: var(--text-500);
  font-size: 12.5px;
  letter-spacing: 0.3em;
  margin-top: 7px;
  text-indent: 0.3em;
}

.ink-auth-card .ink-divider {
  margin: 22px 0;
}

.ink-auth-foot {
  text-align: center;
  margin-top: 20px;
  color: var(--text-500);
  font-size: 13.5px;
  letter-spacing: 0.06em;
}
.ink-auth-foot a {
  color: var(--ink-600);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(47, 99, 80, 0.5);
}
.ink-auth-foot a:hover {
  color: var(--ink-800);
}

/* ---------------- 首页（介绍页） ---------------- */
.ink-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 54px 40px 48px;
  text-align: center;
  color: #f7f2e2;
  background:
    radial-gradient(
      640px 240px at 50% -10%,
      rgba(141, 188, 168, 0.35),
      transparent 70%
    ),
    linear-gradient(120deg, #2e6350 0%, #26513f 50%, #1a3b31 100%);
  border: 1px solid rgba(201, 169, 106, 0.55);
  box-shadow:
    0 6px 18px rgba(29, 66, 55, 0.28),
    0 30px 60px -26px rgba(29, 66, 55, 0.55);
}

.ink-hero__mist {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -40px;
  width: 780px;
  height: 240px;
  background: url("../img/decor-mist-mountain-1.png") center bottom / contain
    no-repeat;
  opacity: 0.3;
  filter: brightness(1.9) saturate(0.55);
  pointer-events: none;
}

.ink-hero__seal {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  position: relative;
}
.ink-hero__seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.4));
}

.ink-hero__title {
  position: relative;
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  margin: 0;
  text-shadow: 0 3px 12px rgba(16, 40, 33, 0.5);
}

.ink-hero__sub {
  position: relative;
  margin-top: 14px;
  color: rgba(240, 235, 215, 0.9);
  font-size: 15px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
}

.ink-hero__buttons {
  position: relative;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ink-hero .btn-ink {
  background: linear-gradient(
    150deg,
    rgba(255, 253, 246, 0.17),
    rgba(255, 253, 246, 0.08)
  );
  border-color: rgba(201, 169, 106, 0.85);
}
.ink-hero .btn-ink:hover {
  background: rgba(255, 253, 246, 0.26);
}

.ink-feature {
  text-align: center;
  padding: 26px 20px 24px;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(178deg, var(--paper-0), #fcf8ee);
  border: 1px solid rgba(201, 169, 106, 0.35);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease;
}
.ink-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.ink-feature__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 25px;
  color: var(--ink-700);
  background: linear-gradient(150deg, var(--ink-100), var(--ink-200));
  border: 1px solid rgba(63, 125, 102, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.ink-feature h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  font-size: 16.5px;
}
.ink-feature p {
  color: var(--text-500);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0;
}

/* ---------------- 表单控件（覆盖 Bootstrap） ---------------- */
.ink-card .form-label,
.ink-auth-card .form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.16em;
  margin-bottom: 7px;
}

.form-control {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(63, 125, 102, 0.35);
  background: linear-gradient(178deg, #fffefb, #fdfaf1);
  color: var(--text-900);
  padding: 10px 14px;
  font-size: 14.5px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.form-control::placeholder {
  color: var(--text-400);
  letter-spacing: 0.04em;
}
.form-control:focus {
  border-color: var(--ink-500);
  box-shadow: 0 0 0 3px rgba(63, 125, 102, 0.16);
  background: #fffefb;
}
.form-control.is-invalid {
  border-color: rgba(155, 76, 60, 0.6);
}
.invalid-feedback {
  font-size: 12.5px;
  color: #8a3d2a;
}

/* ---------------- 页脚 ---------------- */
.ink-footer {
  flex-shrink: 0;
  padding: 26px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(201, 169, 106, 0.35);
  background: linear-gradient(180deg, transparent, rgba(244, 238, 218, 0.55));
}
.ink-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--text-500);
  font-size: 13px;
  letter-spacing: 0.22em;
}
.ink-footer__seal {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #b08d4f;
  border: 1.5px solid rgba(176, 141, 79, 0.65);
  background: rgba(247, 239, 221, 0.6);
}

/* ---------------- 入场动画 ---------------- */
@keyframes inkRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ink-rise {
  animation: inkRise 0.6s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
.ink-rise-1 {
  animation-delay: 0.08s;
}
.ink-rise-2 {
  animation-delay: 0.16s;
}
.ink-rise-3 {
  animation-delay: 0.24s;
}
.ink-rise-4 {
  animation-delay: 0.32s;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 991.98px) {
  .ink-navbar__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    min-height: 0;
  }
  .ink-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .ink-nav,
  .ink-userchip {
    display: none;
    width: 100%;
  }
  .ink-navbar.is-open .ink-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .ink-navbar.is-open .ink-userchip {
    display: flex;
    justify-content: space-between;
  }
  .ink-navbar__spacer {
    display: none;
  }

  body.ink-body {
    padding-top: 66px;
  }
  .ink-hero {
    padding: 42px 22px 38px;
  }
  .ink-hero__title {
    font-size: 28px;
  }
  .ink-welcome {
    padding: 22px 20px;
  }
  .ink-welcome__title {
    font-size: 22px;
  }
  .ink-bamboo {
    display: none;
  }
  .ink-mist {
    width: 380px;
    opacity: 0.3;
  }
  .ink-mist--left {
    width: 520px;
    opacity: 0.36;
  }
}

@media (max-width: 575.98px) {
  .ink-auth-card {
    padding: 30px 22px 24px;
  }
  .ink-card__body {
    padding: 1.1rem 1.15rem;
  }
  .ink-table thead th,
  .ink-table tbody td {
    padding: 10px 12px;
  }
  .btn-ink-lg {
    padding: 12px 26px;
  }
}

/* 打印优化 */
@media print {
  .ink-navbar,
  .ink-footer,
  .ink-mist,
  .ink-bamboo {
    display: none !important;
  }
  body.ink-body {
    padding-top: 0;
    background: #fff;
  }
}

/* ============================================================
   扩展组件：附件在线预览 / 项目标签页 / 分页 / 审核状态
   ============================================================ */

/* ---------------- 状态徽章 ---------------- */
.ink-badge--danger {
  color: #7c3a28;
  background: linear-gradient(150deg, #f6ded4, #eec9bb);
  border-color: rgba(155, 76, 60, 0.45);
}
.ink-badge--success {
  color: #1d4237;
  background: linear-gradient(150deg, #dff0e4, #c8e4d2);
  border-color: rgba(63, 125, 102, 0.45);
}

/* ---------------- 项目标签页 ---------------- */
.ink-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.ink-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--ink-700);
  background: linear-gradient(
    178deg,
    rgba(255, 253, 246, 0.9),
    rgba(247, 242, 227, 0.8)
  );
  border: 1px solid rgba(201, 169, 106, 0.45);
  transition: all 0.22s ease;
}
.ink-tab:hover {
  border-color: var(--gold-600);
  color: var(--ink-900);
  transform: translateY(-1px);
}
.ink-tab.is-active {
  color: #f8f3e3;
  background: linear-gradient(150deg, #2f6350 0%, #26513f 55%, #1d4237 100%);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-btn);
  font-weight: 600;
}
.ink-tab.is-active i {
  color: var(--gold-300);
}
.ink-tab__count {
  font-size: 12px;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ink-tab:not(.is-active) .ink-tab__count {
  background: rgba(63, 125, 102, 0.12);
  border-color: rgba(63, 125, 102, 0.25);
  color: var(--ink-600);
}

/* ---------------- 筛选小按钮 ---------------- */
.ink-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 15px;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-500);
  border: 1px dashed rgba(63, 125, 102, 0.4);
  transition: all 0.2s ease;
}
.ink-filter:hover {
  color: var(--ink-700);
  background: rgba(226, 239, 231, 0.5);
}
.ink-filter.is-active {
  color: var(--ink-800);
  background: linear-gradient(160deg, #eaf3ec, #d9e9de);
  border: 1px solid rgba(63, 125, 102, 0.45);
  font-weight: 600;
}

/* ---------------- 附件信息条 ---------------- */
.ink-filechip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--ink-700);
  background: linear-gradient(
    178deg,
    rgba(250, 246, 234, 0.9),
    rgba(243, 237, 218, 0.7)
  );
  border: 1px solid rgba(201, 169, 106, 0.4);
}
.ink-filechip i {
  color: var(--gold-600);
  font-size: 15px;
}
.ink-filechip__meta {
  color: var(--text-500);
  font-size: 12px;
}

/* ---------------- 在线预览区 ---------------- */
.ink-preview-frame {
  width: 100%;
  height: 640px;
  border: 1px solid rgba(201, 169, 106, 0.35);
  border-radius: var(--radius-md);
  background: #fff;
}

.ink-preview-img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 169, 106, 0.35);
  box-shadow: var(--shadow-sm);
}

.ink-preview-video {
  display: block;
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius-md);
  background: #14211c;
  border: 1px solid rgba(201, 169, 106, 0.35);
}

.ink-preview-text {
  margin: 0;
  padding: 18px 20px;
  max-height: 560px;
  overflow: auto;
  border-radius: var(--radius-md);
  background: linear-gradient(178deg, #fffefb, #fbf7ec);
  border: 1px solid rgba(201, 169, 106, 0.3);
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-700);
  white-space: pre-wrap;
  word-break: break-word;
}

/* Word 文档渲染 */
.ink-doc {
  padding: 6px 4px;
}
.ink-doc-h {
  font-family: var(--font-serif);
  color: var(--ink-800);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 20px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--gold-500);
}
.ink-doc-p {
  color: var(--text-700);
  font-size: 14.5px;
  line-height: 2;
  margin: 0 0 10px;
  text-align: justify;
}
.ink-doc-table {
  margin: 14px 0;
}
.ink-doc-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.ink-doc-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 106, 0.35);
  background: #fff;
}

/* PPT 幻灯片渲染 */
.ink-slides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.ink-slide {
  border-radius: var(--radius-md);
  background: linear-gradient(178deg, var(--paper-0), #fbf7ec);
  border: 1px solid rgba(201, 169, 106, 0.4);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.ink-slide__no {
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #f3eeda;
  background: linear-gradient(120deg, #2e6350, #26513f 70%);
  border-bottom: 1px solid rgba(201, 169, 106, 0.45);
}
.ink-slide__body {
  padding: 13px 16px;
}
.ink-slide__text {
  color: var(--text-700);
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 7px;
  white-space: pre-wrap;
}
.ink-slide__text:first-child {
  color: var(--ink-800);
  font-weight: 600;
  font-size: 14.5px;
}

/* ---------------- 分页 ---------------- */
.ink-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.ink-pager__info {
  color: var(--text-500);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.ink-pager__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink-700);
  background: linear-gradient(
    180deg,
    rgba(255, 253, 246, 0.92),
    rgba(247, 242, 227, 0.88)
  );
  border: 1px solid rgba(176, 141, 79, 0.5);
  transition: all 0.2s ease;
}
.ink-pager__btn:hover {
  color: var(--ink-900);
  border-color: var(--gold-600);
}
.ink-pager__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* ---------------- 审核区 ---------------- */
.ink-review-note {
  color: var(--text-500);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

/* 下拉框适配（Bootstrap form-select） */
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(63, 125, 102, 0.35);
  background-color: #fffefb;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232f6350' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  color: var(--text-900);
  padding: 10px 14px;
  font-size: 14.5px;
}
.form-select:focus {
  border-color: var(--ink-500);
  box-shadow: 0 0 0 3px rgba(63, 125, 102, 0.16);
}
.form-select.is-invalid {
  border-color: rgba(155, 76, 60, 0.6);
}

/* 表格内的小操作按钮组 */
.ink-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
