/*
  模块说明：官网和隐私政策共用这一份样式。
  首页用 .home 开头，是前台。隐私政策仍用左侧目录加正文，选择器不要互相覆盖。
  颜色取自程序图标上的池水蓝。
*/

:root {
  --water: #083044;
  --water-deep: #062433;
  --foam: #f3f7f6;
  --ink: #173246;
  --reed: #1f7a72;
  --line: #d5e4e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--water-deep);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.7;
}

.shell {
  display: flex;
  min-height: 100vh;
}

/*
  登录门用了 display:grid，数据台用了 display:flex。
  这两条会盖住浏览器自带的 [hidden]，所以只设置 hidden 时登录框不会消失。
  这里强制藏起来，登录成功后才能从登录页切到数据台。
*/
.ops-login-gate[hidden],
.shell[hidden] {
  display: none !important;
}

/* 左侧目录。窄屏时改到上面，避免竖排文字把正文挤没。 */
.spine {
  width: 168px;
  flex: none;
  padding: 28px 20px;
  background: linear-gradient(180deg, #0e6e86 0%, var(--water) 55%, #041824 100%);
  color: #f4fbfb;
}

.mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
}

.spine-name {
  margin: 16px 0 28px;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  font-size: 22px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  height: 6.2em;
}

.spine nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spine a {
  display: block;
  color: #f4fbfb;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}

.spine a.is-current {
  background: rgb(255 255 255 / 16%);
}

.spine a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.sheet a:focus-visible {
  outline: 2px solid var(--reed);
  outline-offset: 2px;
}

.sheet {
  flex: 1;
  background: var(--foam);
  padding: 48px 56px 72px;
}

.sheet h1,
.sheet h2 {
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  font-weight: normal;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--reed);
  font-size: 13px;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 12px;
  font-size: 40px;
}

.lead {
  max-width: 38em;
  margin: 0 0 28px;
  color: #3d5a66;
}

section {
  max-width: 38em;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 18px 0 8px;
  font-size: 26px;
}

p {
  margin: 0 0 12px;
}

.sheet a {
  color: var(--reed);
}

code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.95em;
  background: #e3eeeb;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 官方首页。整页是一块水面，不是管理后台的左右分栏。 */
.home {
  min-height: 100vh;
  background: #041824;
  color: #f4fbfb;
}

/* 鱼塘铺满整页，只当背景。点击仍落在原来的文字和按钮上。 */
.home-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 0;
  pointer-events: none;
}

.home .top,
.home .pond {
  position: relative;
  z-index: 1;
}

.home .top {
  background: linear-gradient(180deg, rgb(4 24 36 / 50%), transparent);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.top nav {
  display: flex;
  gap: 8px;
}

.top a {
  color: #f4fbfb;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.top a.is-current {
  background: rgb(255 255 255 / 14%);
}

.top a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pond {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 12vw 80px;
}

/* 左边略压暗，原来的浅色标题在亮色鱼塘上仍能看清。字本身不改。 */
.home .pond::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(4 24 36 / 72%) 0%, rgb(4 24 36 / 28%) 48%, rgb(4 24 36 / 0%) 78%);
}

.home .pond > * {
  position: relative;
  z-index: 1;
}

.ripple {
  position: absolute;
  left: -30%;
  width: 160%;
  top: 42%;
  height: 72px;
  background: linear-gradient(90deg, transparent, rgb(126 224 232 / 28%), transparent);
  filter: blur(6px);
  animation: drift 16s ease-in-out infinite;
}

.hero-mark {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 24px;
}

.en-name {
  position: relative;
  margin: 22px 0 0;
  letter-spacing: 0.16em;
  font-size: 13px;
  color: #9fd0c8;
}

.home h1 {
  position: relative;
  margin: 6px 0 16px;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  font-weight: normal;
  font-size: 64px;
  line-height: 1.15;
  color: #f4fbfb;
}

.thesis {
  position: relative;
  max-width: 22em;
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
  color: #d5e8e6;
}

/* 首页主按钮：商店。次按钮只留网页组件。绿色版下载已从前台拿掉。 */
.cta-row {
  position: relative;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: #e8f6f4;
  color: #083044;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.cta:hover {
  background: #fff;
}

.cta-quiet {
  background: transparent;
  color: #e8f6f4;
  border: 1px solid rgb(232 246 244 / 55%);
}

.cta-quiet:hover {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@keyframes drift {
  0%,
  100% {
    transform: translateX(-6%);
  }

  50% {
    transform: translateX(6%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple {
    animation: none;
  }
}

/* 反馈表单、运营台共用。 */
.feedback-form {
  display: grid;
  gap: 16px;
  max-width: 36rem;
  margin-top: 8px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.feedback-form textarea,
.feedback-form input[type="text"],
.feedback-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.action {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: var(--reed);
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.action-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-weight: 500;
}

.form-status.is-ok {
  color: var(--reed);
}

.form-status.is-bad {
  color: #b42318;
}

.ops-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

/* 运营台正文铺满侧栏右边的整块区域。隐私页仍用较窄的正文宽度。 */
#ops-shell .ops-page {
  max-width: none;
  border-top: 0;
  padding-top: 4px;
}

#ops-shell .ops-page[hidden] {
  display: none !important;
}

#ops-shell .lead {
  max-width: none;
}

.ops-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ops-head h1 {
  margin-bottom: 0;
}

.ops-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
}

.ops-nav button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.ops-nav button.is-current {
  background: var(--water);
  border-color: var(--water);
  color: #f4fbfb;
}

.ops-nav button:focus-visible {
  outline: 2px solid var(--reed);
  outline-offset: 2px;
}

.ops-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 32px;
  align-items: start;
}

.ops-split-form {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}

.ops-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.ops-account-form {
  max-width: 28rem;
}

#ops-shell .ops-cards article[data-go] {
  cursor: pointer;
}

#ops-shell .ops-cards article[data-go]:hover {
  border-color: var(--reed);
}

#ops-shell .ops-cards article[data-go]:focus-visible {
  outline: 2px solid var(--reed);
  outline-offset: 2px;
}

.ops-cards article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.ops-label {
  margin: 0;
  font-size: 13px;
  color: #5b7380;
}

.ops-num {
  margin: 6px 0 0;
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--water);
}

.ops-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #7a909a;
}

.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.ops-list {
  display: grid;
  gap: 12px;
}

.ops-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ops-table th,
.ops-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.ops-table th {
  color: #5b7380;
  font-weight: 600;
}

.ops-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.ops-item header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #5b7380;
}

.ops-msg {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.ops-contact {
  margin: 8px 0 0;
  font-size: 13px;
  color: #3d5a66;
}

.ops-empty {
  color: #5b7380;
}

.ops-password {
  margin: 8px 0 28px;
  padding: 18px 18px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.ops-password .lead {
  margin-top: 0;
}

/* 运营台未登录：整页居中门禁，侧栏与数据台先藏起来。 */
body.ops-gate {
  background:
    radial-gradient(ellipse 70% 45% at 15% 10%, #0e6e86 0%, transparent 55%),
    linear-gradient(165deg, #0a4a5c 0%, var(--water-deep) 48%, #041824 100%);
}

.ops-login-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.ops-login-card {
  width: min(100%, 22rem);
  display: grid;
  gap: 14px;
  padding: 32px 28px 28px;
  background: var(--foam);
  border-radius: 20px;
  border: 1px solid rgb(255 255 255 / 20%);
  box-shadow: 0 22px 56px rgb(0 0 0 / 28%);
}

.ops-login-mark {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  justify-self: center;
}

.ops-login-brand {
  margin: 4px 0 0;
  text-align: center;
  color: #5b7380;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.ops-login-card h1 {
  margin: 0;
  text-align: center;
  font-family: "KaiTi", "STKaiti", "Microsoft YaHei", serif;
  font-weight: normal;
  font-size: 1.85rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.ops-login-lead {
  margin: 0 0 4px;
  text-align: center;
  color: #5b7380;
  font-size: 14px;
}

.ops-login-card label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
}

.ops-login-card input[type="text"],
.ops-login-card input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.ops-login-card input:focus-visible {
  outline: 2px solid var(--reed);
  outline-offset: 1px;
}

.ops-pass-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.ops-pass-toggle {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #3d5a66;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.ops-pass-toggle:focus-visible {
  outline: 2px solid var(--reed);
  outline-offset: 1px;
}

.ops-login-submit {
  justify-self: stretch;
  margin-top: 4px;
  width: 100%;
  text-align: center;
}

.ops-login-card .form-status {
  text-align: center;
}

@media (max-width: 900px) {
  .ops-split,
  .ops-split-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ops-cards {
    grid-template-columns: 1fr;
  }

  .shell {
    flex-direction: column;
  }

  .spine {
    width: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
  }

  .mark {
    width: 48px;
    height: 48px;
  }

  .spine-name {
    writing-mode: horizontal-tb;
    height: auto;
    margin: 0;
    flex: 1;
  }

  .spine nav {
    flex-direction: row;
  }

  .sheet {
    padding: 28px 20px 48px;
  }

  h1 {
    font-size: 32px;
  }

  .home h1 {
    font-size: 42px;
  }

  .pond {
    padding: 12px 24px 64px;
  }

  .top {
    padding: 16px;
  }
}
