/* =========================================================
   点亮标识 · 全站视觉规范
   工业硬朗风格：墨黑 + 品牌红，细线分隔，克制阴影
   ========================================================= */

:root {
  /* 色板 */
  --ink: #14171a;
  --ink-2: #232830;
  --ink-3: #3a4048;
  --text: #2b3037;
  --muted: #7a828c;
  --muted-2: #9aa1a9;
  --line: #e3e6ea;
  --line-soft: #eef0f2;
  --line-strong: #c9ced5;
  --bg: #ffffff;
  --bg-soft: #f4f5f6;
  --bg-ink: #101317;
  --brand: #c8161d;
  --brand-dark: #a30f15;
  --brand-soft: #fcebeb;
  --ok: #1b7f45;
  --warn: #9a6206;

  /* 尺寸 */
  --radius: 2px;
  --radius-lg: 3px;
  --header-h: 72px;
  --shell: 1280px;
  --ease: cubic-bezier(0.33, 0.1, 0.2, 1);

  /* 字体 */
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--brand);
  color: #fff;
}

/* =========================================================
   布局
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 76px 0;
}

.section--soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding: 44px 0;
}

/* 小标题：红色短线 + 字距 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.eyebrow--plain::before {
  display: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(24px, 2.8vw, 34px);
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 12px;
  max-width: 620px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.page-shell {
  padding: 52px 0 88px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
}

.page-subtitle {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 18px 0 0;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb .sep {
  color: var(--line-strong);
}

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: #000;
  border-color: #000;
}

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--line-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.btn--line-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: var(--bg-soft);
}

.btn--sm {
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 600;
}

.btn--lg {
  height: 50px;
  padding: 0 30px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: gap 0.22s var(--ease), color 0.22s var(--ease);
}

.link-arrow::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--brand);
  transition: width 0.22s var(--ease);
}

.link-arrow:hover {
  color: var(--brand);
}

.link-arrow:hover::after {
  width: 22px;
}

/* =========================================================
   页头
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -22px rgba(12, 16, 20, 0.45);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  height: var(--header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__name i {
  font-style: normal;
  color: var(--brand);
}

.brand__tag {
  margin-top: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 26px 0;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--ink);
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* 搜索框 */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 292px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.2s var(--ease);
}

.header-search:focus-within {
  border-color: var(--ink);
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
}

.header-search input::placeholder {
  color: var(--muted-2);
}

.header-search-btn {
  width: 44px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease);
}

.header-search-btn:hover {
  background: var(--bg-soft);
}

.header-search-btn svg {
  width: 16px;
  height: 16px;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 300px;
  max-height: 330px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(10, 14, 18, 0.45);
  display: none;
  z-index: 60;
}

.global-search-results.active {
  display: block;
}

.result-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.18s var(--ease);
}

.result-item:last-child {
  border-bottom: 0;
}

.result-item:hover {
  background: var(--bg-soft);
}

.result-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.result-item p {
  font-size: 12px;
  color: var(--muted);
}

.no-result-text {
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* 登录区 */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-login:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-register {
  height: 36px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.btn-register:hover {
  background: #000;
}

.btn-upload {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-upload:hover {
  background: var(--brand);
  color: #fff;
}

.user-greeting {
  display: none;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.user-greeting b {
  color: var(--ink);
  margin-right: 8px;
}

.user-greeting a {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.user-greeting a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   首页：横幅 / 数据条
   ========================================================= */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  aspect-ratio: 1920 / 500;
  background: #0f1216;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease);
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(16, 19, 23, 0.4);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s var(--ease), background-color 0.25s var(--ease);
}

.hero-section:hover .hero-nav {
  opacity: 1;
}

.hero-nav:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.hero-nav--prev {
  left: 18px;
}

.hero-nav--next {
  right: 18px;
}

.hero-nav svg {
  width: 16px;
  height: 16px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dots button {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), width 0.25s var(--ease);
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--brand);
}

/* 数据条 */
.stat-band {
  background: var(--ink);
  color: #fff;
}

.stat-band__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px 24px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stat__num {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1;
}

.stat__label {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

.stat-band__cta {
  margin-left: auto;
}

/* =========================================================
   卡片栅格（首页 / 案例）
   ========================================================= */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 26px 48px -34px rgba(12, 16, 20, 0.55);
}

.img-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}

.img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.card:hover .img-link img {
  transform: scale(1.04);
}

.card__index {
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 9px;
  background: rgba(16, 19, 23, 0.82);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}

.card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
}

.card__meta .dot {
  width: 3px;
  height: 3px;
  background: var(--line-strong);
  flex-shrink: 0;
}

.card__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__link {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card__link::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--brand);
  transition: width 0.22s var(--ease);
}

.card:hover .card__link::after {
  width: 24px;
}

/* =========================================================
   流程
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}

.step {
  position: relative;
  padding: 26px 28px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step__no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.step__title {
  margin: 12px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.step__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 240px;
}

/* =========================================================
   CTA 区
   ========================================================= */
.cta-band {
  background: var(--bg-ink);
  color: #fff;
  padding: 60px 0;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.01em;
}

.cta-band p {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
}

.cta-band__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* =========================================================
   页脚
   ========================================================= */
.site-footer {
  background: var(--bg-ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 60px 0 26px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand__name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.footer-brand__name i {
  font-style: normal;
  color: var(--brand);
}

.footer-brand__tag {
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.footer-brand p {
  margin-top: 16px;
  line-height: 1.8;
  max-width: 400px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom span {
  color: rgba(255, 255, 255, 0.35);
}

/* 简洁页脚（后台/订单页） */
.footer-slim {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
}

.footer-slim__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.footer-slim a:hover {
  color: var(--ink);
}

/* =========================================================
   面板 / 表格
   ========================================================= */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.panel__meta {
  font-size: 12px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--text);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafbfc;
}

/* 状态标记 */
.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-soft);
  color: var(--ink-3);
}

.pill--ok {
  background: #ebf7ef;
  color: var(--ok);
}

.pill--warn {
  background: #fff6e5;
  color: var(--warn);
}

.pill--muted {
  background: #f2f3f5;
  color: #71787f;
}

.pill--brand {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.empty-state {
  padding: 72px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state h2 {
  font-size: 18px;
  color: var(--ink-3);
  margin-bottom: 10px;
}

.empty-state a {
  color: var(--brand);
  font-weight: 600;
}

/* =========================================================
   表单
   ========================================================= */
.field {
  margin-bottom: 16px;
}

.field__label,
.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.input,
.auth-input,
.remark-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input:focus,
.auth-input:focus,
.remark-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 23, 26, 0.06);
}

.input::placeholder,
.auth-input::placeholder {
  color: var(--muted-2);
}

textarea.input {
  resize: vertical;
  line-height: 1.6;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%237a828c' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
   弹窗
   ========================================================= */
.auth-modal,
.modal,
.contact-modal,
.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 13, 16, 0.56);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
}

.dialog-overlay {
  z-index: 99000;
}

.auth-box,
.modal-content,
.contact-box,
.dialog-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 30px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}

.modal-content {
  max-width: 440px;
}

.contact-box {
  max-width: 440px;
}

.dialog-box {
  max-width: 380px;
  text-align: center;
  padding: 28px;
}

.auth-close,
.modal-close,
.contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.auth-close:hover,
.modal-close:hover,
.contact-close:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.auth-title,
.modal__title,
.contact-title {
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  padding-right: 30px;
}

.auth-title::after,
.modal__title::after,
.contact-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--brand);
  margin-top: 10px;
}

.modal__sub {
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 20px;
  line-height: 1.7;
}

.auth-error {
  display: none;
  margin-bottom: 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
}

.auth-btn {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.auth-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.third-party-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.third-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.third-btn:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.third-btn.wechat {
  color: #07c160;
}

.third-btn.qq {
  color: #12b7f5;
}

.profile-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.profile-section:first-of-type {
  padding-top: 6px;
}

.profile-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.input-group {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.input-group .auth-input {
  flex: 1;
}

.input-group .auth-btn {
  width: auto;
  height: 42px;
  margin-top: 0;
  padding: 0 18px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 通用提示弹窗 */
.dialog-msg {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 22px;
  white-space: pre-wrap;
}

.dialog-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dialog-btn {
  height: 40px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.dialog-btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.dialog-btn-primary:hover {
  background: #000;
}

.dialog-btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}

.dialog-btn-secondary:hover {
  border-color: var(--ink);
}

/* 联系我们 */
.contact-form-group {
  margin-bottom: 14px;
}

.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 23, 26, 0.06);
}

.contact-submit-btn {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.contact-submit-btn:hover {
  background: #000;
}

.contact-form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   工具类
   ========================================================= */
.dot-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--line-strong);
  vertical-align: middle;
  margin: 0 8px;
}

.muted {
  color: var(--muted);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1280px) {
  .grid-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-search {
    width: 240px;
  }
}

@media (max-width: 1080px) {
  .site-header__inner {
    gap: 24px;
  }

  .site-nav {
    gap: 20px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 52px 0;
  }

  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 58px;
    padding: 9px 16px 10px;
    gap: 8px 10px;
  }

  .site-header__inner .brand { order: 1; }

  /* 展开 tools 容器，让搜索框独占第二行 */
  .site-header__inner .header-tools { display: contents; }

  #auth-nav { order: 2; }

  .nav-toggle { order: 3; margin-left: auto; }

  .brand__logo {
    height: 28px;
  }

  .brand__name {
    font-size: 17px;
  }

  .brand__tag {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(10, 14, 18, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
    z-index: 20;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 13px 18px;
    font-size: 15px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a.is-active {
    border-left: 2px solid var(--brand);
    padding-left: 16px;
  }

  .header-search {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    height: 38px;
  }

  .btn-login,
  .btn-register,
  .btn-upload {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .user-greeting {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-nav {
    display: none;
  }

  .hero-dots {
    bottom: 10px;
  }

  .stat-band__inner {
    flex-wrap: wrap;
    gap: 20px 32px;
    padding: 20px 16px;
  }

  .stat__num {
    font-size: 21px;
  }

  .stat-band__cta {
    margin-left: 0;
    width: 100%;
  }

  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card__body {
    padding: 12px 12px 14px;
  }

  .card__title {
    font-size: 14px;
  }

  .card__meta {
    font-size: 11px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .step {
    padding: 22px 18px 22px 0;
  }

  .step:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .cta-band {
    padding: 44px 0;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .page-shell {
    padding: 34px 0 60px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .auth-box,
  .modal-content,
  .contact-box {
    padding: 24px;
  }

  .dialog-box {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .grid-cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .stat {
    gap: 8px;
  }

  /* 手机端页头只保留必要的账户入口 */
  .btn-upload {
    display: none !important;
  }

  .user-greeting {
    font-size: 0;
    gap: 0;
  }

  .user-greeting b,
  .user-greeting a {
    font-size: 13px;
  }

  .user-greeting b {
    display: none;
  }

  .btn--lg {
    height: 46px;
    padding: 0 22px;
    font-size: 14px;
  }

  .cta-band__actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-band__actions .btn {
    width: 100%;
  }
}

/* =========================================================
   通知铃铛
   ========================================================= */
.notify-bell {
  position: relative;
  margin-left: 8px;
}

.notify-bell__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.notify-bell__btn:hover {
  border-color: var(--ink);
  color: var(--brand);
}

.notify-bell__btn svg {
  width: 18px;
  height: 18px;
}

.notify-bell__dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
}

.notify-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 440px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(12, 16, 20, 0.35);
  z-index: 100;
  overflow: hidden;
}

.notify-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.notify-panel__close {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.notify-panel__body {
  flex: 1;
  overflow-y: auto;
}

.notify-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.notify-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background-color 0.15s var(--ease);
}

.notify-item:hover {
  background: var(--bg-soft);
}

.notify-item.is-unread {
  background: var(--brand-soft);
}

.notify-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.notify-item__content {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notify-item__time {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.notify-item__tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  font-size: 10px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  vertical-align: 1px;
}

.notify-item__tag--announce {
  background: var(--ink);
}

.notify-item__tag--reply {
  background: var(--brand);
}

.notify-item__del {
  float: right;
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  margin-left: 8px;
  padding: 0 2px;
}

.notify-item__del:hover {
  color: var(--brand);
}

.notify-panel__foot {
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.notify-panel__readall {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.notify-panel__readall:hover {
  color: var(--brand);
}

@media (max-width: 560px) {
  .notify-panel {
    position: fixed;
    top: 100px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
