:root {
  --ink: #122033;
  --muted: #64748b;
  --line: #d9e2ef;
  --panel: #ffffff;
  --wash: #f2f5f7;
  --blue: #1f6feb;
  --blue-dark: #174ea6;
  --green: #13a567;
  --amber: #f59e0b;
  --red: #ef4444;
  --shadow: 0 18px 50px rgba(25, 42, 70, .11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(242, 245, 247, .96) 38%),
    radial-gradient(circle at 18% 12%, rgba(19, 165, 103, .13), transparent 32%),
    radial-gradient(circle at 86% 0%, rgba(31, 111, 235, .12), transparent 30%),
    var(--wash);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 226, 239, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
}

.topbar-inner,
main {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #111827;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .16);
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 13px;
  color: #41516a;
  text-decoration: none;
}

.nav-links a:hover {
  background: #eef4ff;
  color: var(--blue-dark);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang-option {
  min-width: 46px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #5b6b80;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-option.is-active {
  color: #fff;
  background: #111827;
}

.status-pill {
  min-width: 76px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  white-space: nowrap;
}

.status-pill.is-active {
  border-color: rgba(19, 165, 103, .35);
  color: #08784a;
  background: #ecfdf5;
}

main {
  padding: 24px 0 56px;
}

.instant-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
}

.mail-console,
.quick-status {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.mail-console {
  min-height: 300px;
  padding: 34px;
}

.console-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(19, 165, 103, .12);
}

.mail-console h1 {
  max-width: 680px;
  margin: 12px 0 20px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

.address-card {
  display: flex;
  width: min(100%, 520px);
  align-items: center;
  gap: 10px;
}

.address-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.quick-status {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.quick-status h2 {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.quick-status ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.quick-status li {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e7edf5;
  padding: 13px 0;
  color: #42536a;
}

.quick-status li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.tg-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid rgba(31, 111, 235, .2);
  border-radius: 12px;
  padding: 14px;
  color: #12315c;
  background: #eef6ff;
  text-decoration: none;
}

.tg-card:hover {
  color: #0f2d55;
  background: #e4f1ff;
}

.tg-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #229ed9;
  font-size: 13px;
  font-weight: 800;
}

.tg-card strong,
.tg-card small {
  display: block;
}

.tg-card small {
  margin-top: 2px;
  color: #4b6482;
  line-height: 1.35;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  align-items: center;
  gap: 30px;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 38px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 58%, #effaf5 100%);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: #44546a;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 700;
}

.primary-link {
  color: #fff;
  background: var(--blue);
}

.secondary-link {
  border: 1px solid var(--line);
  color: #23344f;
  background: #fff;
}

.hero-media {
  overflow: hidden;
  border-radius: 14px;
  background: #eaf2ff;
  box-shadow: 0 16px 38px rgba(31, 111, 235, .15);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.mail-panel,
.inbox-list,
.mail-card,
.feature-grid article,
.seo-copy {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(25, 42, 70, .06);
}

.mail-panel {
  margin-top: 18px;
  padding: 26px;
}

.mail-heading,
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.mail-heading h2,
.panel-head h2,
.mail-card h2,
.seo-copy h2 {
  margin: 5px 0 0;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: 0;
}

.mail-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
}

.address-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px 46px 46px;
  gap: 10px;
  margin-top: 22px;
}

#shortid {
  width: 100%;
  max-width: 360px;
  height: 46px;
  border: 1px solid #cbd8e8;
  border-radius: 10px;
  padding: 0 15px;
  color: #0f172a;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

#shortid:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, .13);
}

.address-row .ui.icon.button,
.address-actions .ui.icon.button,
.mail-card-head .ui.icon.button {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  padding: 0;
}

.address-actions .primary-action {
  color: #fff;
  background: var(--blue);
}

.hint-line {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.bookmark-tip {
  margin-top: 8px;
  color: #2f5f9f;
  font-size: 14px;
  font-weight: 700;
}

.hint-line.is-error {
  color: #dc2626;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: 18px;
  margin-top: 18px;
}

.inbox-list,
.mail-card,
.seo-copy {
  padding: 22px;
}

.mini-badge {
  border-radius: 999px;
  padding: 6px 10px;
  color: #08784a;
  background: #ecfdf5;
  font-size: 13px;
}

.ui.table {
  margin-top: 14px;
}

.ui.table thead th {
  color: #506177;
  font-size: 13px;
}

.empty-row td {
  color: #94a3b8;
  text-align: center;
}

.mail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e4ebf5;
  padding-bottom: 14px;
}

.mail-content {
  overflow: auto;
  min-height: 258px;
  max-height: 560px;
  padding-top: 16px;
  color: #405168;
}

.mail-content img,
.mail-content table {
  max-width: 100%;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.compact-features {
  grid-template-columns: repeat(3, 1fr);
}

.slim-copy {
  padding: 22px 24px;
}

.feature-grid article {
  padding: 20px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #edf5ff;
  font-weight: 700;
}

.feature-grid h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  letter-spacing: 0;
}

.feature-grid p,
.seo-copy p {
  margin: 0;
  color: #53657b;
}

.seo-copy {
  margin-top: 18px;
}

.seo-copy p {
  margin-top: 12px;
}

.article-page {
  max-width: 860px;
  margin-inline: auto;
}

.article-page h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
}

.article-page h2 {
  margin: 26px 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.article-page a {
  color: var(--blue-dark);
  font-weight: 700;
}

.article-meta {
  color: var(--muted);
  font-size: 14px;
}

.article-grid {
  align-items: stretch;
}

.article-grid article {
  min-height: 220px;
}

.article-grid a {
  color: var(--ink);
  text-decoration: none;
}

.article-grid a:hover {
  color: var(--blue-dark);
}

@media (max-width: 900px) {
  .topbar-inner {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
  }

  .top-actions {
    justify-self: end;
  }

  .hero,
  .instant-shell,
  .inbox-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding: 26px;
  }
}

@media (max-width: 620px) {
  .topbar-inner,
  main {
    width: min(100% - 20px, 1140px);
  }

  .brand-subtitle,
  .hero-media {
    display: none;
  }

  .topbar-inner {
    gap: 10px;
  }

  .top-actions {
    gap: 6px;
  }

  .lang-option {
    min-width: 38px;
    height: 28px;
    font-size: 12px;
  }

  .status-pill {
    min-width: 58px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .mail-console,
  .quick-status {
    padding: 22px;
  }

  .mail-console h1 {
    font-size: 25px;
  }

  .address-card {
    align-items: stretch;
    flex-direction: column;
  }

  #shortid {
    max-width: none;
  }

  .address-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero p {
    font-size: 16px;
  }

  .mail-heading,
  .panel-head {
    display: block;
  }

  .mail-heading p {
    margin-top: 10px;
  }

  .address-row {
    grid-template-columns: 1fr;
  }

  .address-row .ui.icon.button {
    width: 100%;
  }
}
