:root {
  --orange: #ff8a00;
  --orange-2: #ffb000;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5eaf2;
  --soft: #f6f8fc;
  --blue: #177ddc;
  --green: #36b37e;
  --red: #ff4d4f;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f5f7fb;
}

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

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 118px;
  padding: 0 clamp(24px, 7vw, 112px);
  background: linear-gradient(90deg, #ff8a00, #ff9f0a 55%, #ff7a00);
  color: #fff;
}

.brand,
.site-nav,
.account-brand,
.account-actions,
.account-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 22px;
}

.brand-mark,
.auth-brand span,
.account-brand span {
  display: inline-grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 18px;
  background: #fff;
  color: var(--orange);
  font-weight: 900;
  font-size: 28px;
}

.brand-name {
  font-size: 34px;
  font-weight: 900;
}

.brand-tag {
  font-size: 21px;
  font-weight: 800;
  opacity: 0.9;
}

.site-nav {
  gap: 36px;
  font-size: 21px;
  font-weight: 800;
}

.download-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 44px;
  min-height: 890px;
  padding: 160px clamp(24px, 8vw, 170px) 110px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f8fafe 55%, #eef3fb 100%);
}

.download-hero::before,
.download-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.download-hero::before {
  inset: auto 0 0;
  height: 1px;
  background: #edf1f6;
}

.download-hero::after {
  right: clamp(24px, 9vw, 170px);
  top: 215px;
  width: 360px;
  height: 360px;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255, 176, 0, 0.14), rgba(255, 138, 0, 0.03));
  transform: rotate(8deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: start;
  padding-top: 110px;
  text-align: center;
}

.hero-content h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(44px, 5vw, 70px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-content p {
  margin: 26px 0 54px;
  max-width: 780px;
  color: var(--muted);
  font-size: 27px;
}

.primary-download {
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(560px, calc(100vw - 48px));
  height: 94px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 18px 46px rgba(255, 138, 0, 0.27);
}

.primary-download.paused {
  background: linear-gradient(90deg, #9ca3af, #c0c7d2);
  box-shadow: 0 18px 46px rgba(100, 116, 139, 0.18);
}

.download-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.download-disabled {
  cursor: default;
}

.download-arrow {
  width: 82px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 36px;
}

.recommend-badge {
  position: absolute;
  top: -34px;
  right: 80px;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #54c05a;
  color: #fff;
  font-weight: 900;
}

.windows-icon {
  display: grid;
  grid-template-columns: repeat(2, 28px);
  grid-template-rows: repeat(2, 28px);
  gap: 5px;
}

.windows-icon i {
  display: block;
  border-radius: 4px;
  background: currentColor;
}

.windows-icon.orange {
  color: var(--orange);
}

.apple-icon {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #33363d;
}

.apple-icon::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 29px;
  width: 35px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
}

.apple-icon::after {
  content: "";
  position: absolute;
  right: 18px;
  top: -15px;
  width: 38px;
  height: 28px;
  border-radius: 50%;
  background: #33363d;
  transform: rotate(-25deg);
}

.download-options {
  display: flex;
  gap: 34px;
  margin-top: 90px;
}

.download-card,
.member-entry,
.install-card,
.auth-card,
.summary-card,
.account-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.download-card {
  display: grid;
  width: min(315px, calc(50vw - 34px));
  min-height: 178px;
  place-items: center;
  gap: 14px;
  border-radius: 28px;
  color: #4b5563;
  font-size: 28px;
  font-weight: 900;
}

.download-card.disabled {
  opacity: 0.62;
  box-shadow: none;
  cursor: default;
}

.member-entry {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 26px;
}

.member-entry h2 {
  margin: 0;
  font-size: 27px;
}

.member-entry p {
  margin: 0 0 2px;
  color: var(--muted);
}

.dark-button,
.light-button,
.auth-form button,
.plan-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.dark-button {
  background: var(--ink);
  color: #fff;
}

.light-button {
  border: 1px solid #ffd7a3;
  background: #fff3e0;
  color: var(--orange);
}

.install-section {
  padding: 80px clamp(24px, 8vw, 170px) 100px;
  background: #fff;
}

.section-title h2 {
  margin: 0;
  font-size: 46px;
  font-weight: 900;
}

.section-title p {
  margin: 12px 0 36px;
  color: var(--muted);
  font-size: 20px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.install-card {
  min-height: 250px;
  padding: 38px;
  border-radius: 22px;
}

.install-card span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #fff2dd;
  color: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.install-card h3 {
  margin: 32px 0 16px;
  font-size: 25px;
}

.install-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.install-bar {
  width: 100%;
  height: 28px;
  margin-top: 24px;
  border-radius: 999px;
}

.bar-orange { background: #fff1d9; }
.bar-blue { background: #eaf4ff; }
.bar-gray { background: #eef2f7; }
.bar-green { background: #e9fbf1; }

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #fff7eb, #f3f7fc 60%, #eef6ff);
}

.auth-card {
  width: min(460px, calc(100vw - 48px));
  padding: 34px;
  border-radius: 28px;
}

.register-card {
  width: min(520px, calc(100vw - 48px));
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.auth-brand span,
.account-brand span {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff0d9;
  font-size: 18px;
}

.auth-card h1 {
  margin: 0;
  font-size: 34px;
}

.auth-card p,
.buy-panel p,
.invite-panel p {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.auth-form input,
.invite-link input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: var(--ink);
  padding: 0 14px;
}

.auth-form input:focus,
.invite-link input:focus {
  border-color: var(--orange);
}

.auth-form button,
.plan-card button {
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  color: #fff;
}

.auth-foot {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
}

.auth-foot a {
  color: var(--orange);
  font-weight: 900;
}

.site-alert {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f0;
  color: #b42318;
  font-weight: 700;
}

.site-alert.success {
  background: #ecfdf3;
  color: #137b4c;
}

.account-page {
  background: linear-gradient(135deg, #f7fafe, #eef3f8);
}

.account-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
  min-height: 84px;
  padding: 0 clamp(24px, 6vw, 96px);
  background: #fff;
}

.account-brand {
  gap: 14px;
  font-size: 24px;
}

.account-header nav {
  gap: 30px;
  color: var(--muted);
  font-weight: 900;
}

.account-header nav a:first-child {
  color: var(--orange);
}

.account-actions {
  gap: 22px;
}

.account-actions > span {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff3e0;
  color: var(--orange);
  font-weight: 900;
}

.account-actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.account-main {
  padding: 58px clamp(24px, 6vw, 96px) 100px;
}

.account-title h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
}

.account-title p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 34px;
}

.summary-card {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 160px;
  padding: 28px;
  border-radius: 24px;
}

.summary-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 16px;
  font-size: 28px;
  font-weight: 900;
}

.summary-icon.orange { background: #fff3e0; color: var(--orange); }
.summary-icon.blue { background: #eaf6ff; color: var(--blue); }
.summary-icon.green { background: #ecfdf3; color: var(--green); }
.summary-icon.red { background: #fff1f1; color: var(--red); }

.summary-card span {
  display: block;
  color: var(--muted);
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: 42px;
}

.account-layout,
.records-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  margin-top: 34px;
}

.records-layout {
  grid-template-columns: 1fr 1fr;
}

.account-panel {
  padding: 34px;
  border-radius: 26px;
}

.account-panel h2 {
  margin: 0 0 14px;
  font-size: 30px;
}

.plan-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px);
  gap: 22px;
  margin-top: 24px;
}

.plan-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.plan-card.active {
  border-color: #ffd7a3;
  background: #fff8ef;
}

.plan-card h3 {
  margin: 0;
  font-size: 21px;
}

.plan-card strong {
  color: var(--ink);
  font-size: 32px;
}

.plan-card span {
  color: var(--muted);
}

.invite-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 16px;
  margin-top: 22px;
}

.invite-link button {
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.invite-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.invite-stats div {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff3e0;
}

.invite-stats div:nth-child(2) { background: #eaf6ff; }
.invite-stats div:nth-child(3) { background: #ecfdf3; }
.invite-stats div:nth-child(4) { background: #fff1f1; }

.invite-stats span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.invite-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

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

.site-table {
  width: 100%;
  border-collapse: collapse;
}

.site-table th,
.site-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.site-table th {
  color: var(--muted);
}

.mono {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.status-pill.paid,
.status-pill.available {
  background: #ecfdf3;
  color: var(--green);
}

.status-pill.pending {
  background: #fff3e0;
  color: var(--orange);
}

@media (max-width: 1100px) {
  .download-hero,
  .account-layout,
  .records-layout {
    grid-template-columns: 1fr;
  }

  .member-entry {
    width: min(420px, 100%);
    margin: 0 auto;
  }

  .install-grid,
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-header {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 24px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .brand,
  .site-nav,
  .download-options,
  .account-header nav,
  .account-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-tag {
    display: none;
  }

  .download-hero {
    padding-top: 72px;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-content p {
    font-size: 20px;
  }

  .download-main {
    gap: 14px;
    font-size: 22px;
  }

  .download-arrow {
    width: 62px;
  }

  .download-card {
    width: 100%;
  }

  .install-grid,
  .summary-grid,
  .plan-grid,
  .invite-stats,
  .invite-link {
    grid-template-columns: 1fr;
  }

  .summary-card strong {
    font-size: 32px;
  }

  .account-main,
  .install-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}
