:root {
  --ink: #071833;
  --muted: #657390;
  --soft: #8b9abc;
  --line: rgba(118, 151, 202, 0.24);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --cyan: #18d4c2;
  --blue: #2588ff;
  --navy: #111c4a;
  --violet: #6f63ff;
  --danger: #c7241a;
  --shadow: 0 26px 76px rgba(39, 86, 151, 0.17);
  --shadow-soft: 0 16px 42px rgba(40, 78, 135, 0.13);
  --font: "Aptos Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(circle at 8% 0%, rgba(122, 97, 255, 0.2), transparent 26%),
    radial-gradient(circle at 100% 6%, rgba(24, 212, 194, 0.22), transparent 28%),
    linear-gradient(145deg, #eef7ff, #f7fbff 48%, #eaf2ff);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 48%),
    radial-gradient(rgba(37, 136, 255, 0.18) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  opacity: 0.48;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -12vw -18vh auto;
  width: 60vw;
  height: 46vh;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(24, 212, 194, 0.16), transparent 68%);
  filter: blur(2px);
}

.browser {
  position: relative;
  z-index: 1;
  width: min(calc(100vw - 24px), max(1000px, 75vw), 1420px);
  margin: 6px auto;
  padding: 30px clamp(22px, 4vw, 42px) 42px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(229, 244, 255, 0.58)),
    rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.browser::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -90px;
  width: 520px;
  height: 280px;
  background:
    radial-gradient(ellipse, rgba(37, 136, 255, 0.16), transparent 65%),
    linear-gradient(130deg, transparent 36%, rgba(255, 255, 255, 0.34), transparent 70%);
  transform: rotate(-12deg);
  pointer-events: none;
}

.browser::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.52), transparent 22%),
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(255, 255, 255, 0.18) 19px, transparent 21px);
  opacity: 0.34;
}

.back-home {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(37, 136, 255, 0.14), 0 10px 24px rgba(37, 136, 255, 0.12);
  color: rgba(18, 111, 255, 0.82);
  font-size: clamp(12px, 1.5vw, 18px);
  font-weight: 560;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.back-home:hover {
  color: #0d52c8;
  text-decoration: underline;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: var(--glass);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 8px 24px 30px;
  border-radius: 32px;
  overflow: hidden;
}

.hero-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.8vw, 28px);
}

.site-logo {
  width: clamp(85px, 12.6vw, 105px);
  height: clamp(85px, 12.6vw, 105px);
  flex: 0 0 auto;
  border-radius: 30px;
  box-shadow: 0 20px 46px rgba(2, 12, 35, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.hero-copy {
  min-width: 0;
  flex: 1;
}

.hero-title-line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 5.3vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 680;
  white-space: nowrap;
}

.hero strong {
  padding: 6px 14px;
  border-radius: 999px;
  color: #126fff;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(37, 136, 255, 0.14), 0 10px 24px rgba(37, 136, 255, 0.12);
  font-size: clamp(16px, 2.3vw, 20px);
  font-weight: 620;
  white-space: nowrap;
}

.hero p {
  margin-top: 10px;
  color: #263a60;
  font-size: clamp(17px, 2.4vw, 23px);
  font-weight: 420;
  letter-spacing: 0.04em;
}

.hero-spark {
  flex: 0 0 auto;
  color: #2588ff;
  font-size: 54px;
  text-shadow: 0 0 28px rgba(37, 136, 255, 0.55);
}

.hero-underline {
  display: none;
}

.card {
  position: relative;
  z-index: 1;
  border-radius: 30px;
  overflow: hidden;
}

.question-card {
  margin-top: 12px;
  padding: 9px 14px 10px;
}

.section-head,
.actions,
.action-left,
.model-picks,
.model-picks label,
.model-head,
.model-title {
  display: flex;
  align-items: center;
}

.section-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 7px;
  flex-wrap: nowrap;
}

.quota {
  flex: 0 0 auto;
  color: #6578a4;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 560;
  white-space: nowrap;
}

.model-picks {
  gap: 14px;
  margin-left: auto;
  flex: 0 0 auto;
  align-items: center;
}

.model-picks label {
  flex: 0 0 auto;
  height: 34px;
  min-width: 0;
  justify-content: center;
  gap: 5px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.model-picks img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.model-picks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.model-picks span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 3px solid #8da0bd;
  border-radius: 7px;
}

.model-picks input:checked + span {
  border: 0;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 18px rgba(24, 177, 202, 0.24);
}

.model-picks input:checked + span::after {
  content: "✓";
  color: white;
  font-size: 16px;
  font-weight: 950;
}

.status {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.textarea-wrap {
  position: relative;
}

.textarea-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(84, 105, 138, 0.34);
  border-bottom: 2px solid rgba(84, 105, 138, 0.34);
  background:
    linear-gradient(135deg, transparent 43%, rgba(84, 105, 138, 0.3) 44%, rgba(84, 105, 138, 0.3) 50%, transparent 51%),
    linear-gradient(135deg, transparent 62%, rgba(84, 105, 138, 0.2) 63%, rgba(84, 105, 138, 0.2) 68%, transparent 69%);
  border-radius: 0 0 6px 0;
  opacity: 0.9;
  pointer-events: none;
}

textarea {
  width: 100%;
  min-height: 168px;
  max-height: 560px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 28px;
  outline: none;
  padding: 24px 30px 54px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.72), rgba(245, 250, 255, 0.58)),
    rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 2px 12px rgba(35, 70, 120, 0.06);
  color: var(--ink);
  font: 23px/1.6 var(--font);
}

textarea::placeholder {
  color: #8796b9;
}

textarea:focus {
  border-color: rgba(37, 136, 255, 0.55);
  box-shadow: 0 0 0 5px rgba(37, 136, 255, 0.1), inset 0 2px 12px rgba(35, 70, 120, 0.06);
}

.count {
  position: absolute;
  right: 56px;
  bottom: 22px;
  color: #6e7c98;
  font-size: 24px;
  font-weight: 760;
  pointer-events: none;
}

.actions {
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.action-left {
  gap: 7px;
  min-width: 0;
}

.passcode {
  width: 118px;
  height: 44px;
  border: 1px solid rgba(118, 151, 202, 0.35);
  border-radius: 18px;
  outline: none;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(54, 88, 137, 0.1);
  font: 760 18px/1 var(--font);
}

.passcode:focus {
  border-color: rgba(37, 136, 255, 0.55);
  box-shadow: 0 0 0 5px rgba(37, 136, 255, 0.1), 0 12px 28px rgba(54, 88, 137, 0.1);
}

button {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  color: white;
  font: 700 18px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.primary {
  min-width: 170px;
  background: linear-gradient(90deg, #19d2bd, #1789ff);
  box-shadow: 0 16px 36px rgba(20, 149, 218, 0.3);
}

.secondary {
  min-width: 108px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(54, 88, 137, 0.12);
}

.export {
  min-width: 160px;
  margin-left: auto;
  background: linear-gradient(135deg, #30415e, #0d1742);
  box-shadow: 0 16px 36px rgba(17, 29, 73, 0.28);
}

.answers {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.response-card {
  --accent: #17c6a3;
  --soft-accent: rgba(23, 198, 163, 0.28);
  padding: 0 30px 8px 34px;
  border-radius: 34px;
}

.response-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 28px;
  width: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.response-card::after {
  content: "";
  position: absolute;
  right: -95px;
  top: -42px;
  width: 560px;
  height: 360px;
  background: radial-gradient(circle, var(--soft-accent), transparent 74%);
  opacity: 1;
  pointer-events: none;
}

.watermark {
  position: absolute;
  right: 52px;
  bottom: 18px;
  width: 280px;
  height: 280px;
  object-fit: contain;
  opacity: 0.42;
  filter: saturate(1.35) contrast(1.12);
  pointer-events: none;
  z-index: 1;
}

.chatgpt-card {
  --accent: #17c6a3;
  --soft-accent: rgba(23, 198, 163, 0.28);
  --avatar-glow: radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.96), rgba(23, 198, 163, 0.22) 48%, rgba(23, 198, 163, 0.04) 76%);
  --avatar-shadow: rgba(23, 198, 163, 0.34);
}

.grok-card {
  --accent: #6c63ff;
  --soft-accent: rgba(108, 99, 255, 0.25);
  --avatar-glow: radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.96), rgba(108, 99, 255, 0.26) 50%, rgba(108, 99, 255, 0.05) 78%);
  --avatar-shadow: rgba(108, 99, 255, 0.36);
}

.gemini-card {
  --accent: #3898ff;
  --soft-accent: rgba(255, 119, 215, 0.2);
  --avatar-glow: radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.96), rgba(56, 152, 255, 0.22) 42%, rgba(255, 119, 215, 0.12) 72%);
  --avatar-shadow: rgba(56, 152, 255, 0.34);
}

.model-head {
  position: relative;
  z-index: 1;
  gap: 14px;
}

.model-avatar {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.model-avatar::before {
  display: none;
}

.model-avatar img {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter:
    drop-shadow(0 14px 18px var(--avatar-shadow))
    drop-shadow(0 0 18px var(--soft-accent));
}

.model-copy {
  flex: 1;
  min-width: 0;
}

.model-title {
  gap: 6px;
}

.model-title h2 {
  font-size: 35px;
  font-weight: 660;
  letter-spacing: -0.04em;
}

.chatgpt-card .model-title h2 {
  color: #0aa982;
}

.grok-card .model-title h2 {
  color: #3732d5;
}

.gemini-card .model-title h2 {
  color: #2677f2;
}

.model-title span {
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.model-copy p {
  margin-top: -6px;
  color: var(--accent);
  font-size: 17px;
  font-weight: 540;
}

.model-action {
  width: 115px;
  height: 115px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter:
    drop-shadow(0 18px 24px var(--avatar-shadow))
    drop-shadow(0 0 22px var(--soft-accent));
  opacity: 0.96;
}

.answer {
  position: relative;
  z-index: 2;
  min-height: 154px;
  max-height: 310px;
  overflow: auto;
  margin-top: 4px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
  color: #394a6d;
  white-space: pre-wrap;
  font-size: 23px;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: rgba(70, 88, 102, 0.38) rgba(230, 237, 241, 0.65);
}

.answer::-webkit-scrollbar {
  width: 9px;
}

.answer::-webkit-scrollbar-track {
  background: rgba(230, 237, 241, 0.65);
}

.answer::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(70, 88, 102, 0.38);
}

.muted {
  color: rgba(116, 131, 164, 0.58);
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  padding: 0 10px;
  color: rgba(101, 115, 144, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.footer-link {
  color: rgba(18, 111, 255, 0.72);
  text-decoration: none;
  white-space: nowrap;
}

.footer-link:hover {
  text-decoration: underline;
}

.error {
  color: var(--danger) !important;
}

@media (max-width: 720px) {
  .browser {
    width: min(100vw - 10px, 680px);
    margin: 5px auto;
    padding: 12px;
    border-radius: 26px;
  }

  .back-home {
    min-width: 40px;
    height: 24px;
    padding: 0 9px;
    font-size: 11px;
  }

  .hero {
    padding: 5px 14px 14px;
    border-radius: 22px;
  }

  .hero-row {
    gap: 8px;
  }

  .site-logo {
    width: 55px;
    height: 55px;
    border-radius: 16px;
  }

  .hero-title-line {
    gap: 8px;
  }

  h1 {
    font-size: 27px;
    font-weight: 660;
  }

  .hero strong {
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
  }

  .hero p {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 420;
  }

  .hero-spark {
    display: none;
  }

  .hero-underline {
    display: none;
  }

  .question-card {
    margin-top: 6px;
    padding: 5px 8px 8px;
    border-radius: 24px;
  }

  .section-head {
    gap: 8px;
    margin-bottom: 4px;
  }

  .quota {
    font-size: 14px;
  }

  .model-picks {
    gap: 5px;
  }

  .model-picks label {
    height: 24px;
    min-width: 0;
    gap: 3px;
    border-radius: 0;
  }

  .model-picks img {
    width: 18px;
    height: 18px;
  }

  .model-picks span {
    width: 15px;
    height: 15px;
    border-width: 2px;
    border-radius: 6px;
  }

  .model-picks input:checked + span::after {
    font-size: 12px;
  }

  textarea {
    min-height: 96px;
    padding: 12px 14px 36px;
    border-radius: 20px;
    font-size: 16px;
    line-height: 1.6;
  }

  .count {
    right: 34px;
    bottom: 10px;
    font-size: 15px;
  }

  .actions {
    gap: 4px;
    margin-top: 4px;
  }

  .action-left {
    gap: 3px;
  }

  .passcode {
    width: 66px;
    height: 30px;
    border-radius: 11px;
    padding: 0 6px;
    font-size: 12px;
  }

  button {
    height: 30px;
    border-radius: 12px;
    padding: 0 8px;
    font-size: 12px;
  }

  .primary {
    min-width: 88px;
  }

  .secondary {
    min-width: 46px;
  }

  .export {
    min-width: 70px;
  }

  .answers {
    gap: 5px;
    margin-top: 5px;
  }

  .response-card {
    padding: 0 12px 4px 14px;
    border-radius: 24px;
  }

  .watermark {
    width: 160px;
    height: 160px;
    right: 22px;
    bottom: 14px;
    opacity: 0.38;
  }

  .response-card::before {
    top: 5px;
    bottom: 18px;
    width: 5px;
  }

  .model-head {
    gap: 8px;
  }

  .model-avatar {
    width: 41px;
    height: 41px;
    border-radius: 0;
  }

  .model-avatar img {
    width: 41px;
    height: 41px;
  }

  .model-title h2 {
    font-size: 21px;
  }

  .model-copy p {
    margin-top: -5px;
    font-size: 11px;
  }

  .model-action {
    width: 61px;
    height: 61px;
  }

  .answer {
    min-height: 98px;
    margin-top: 2px;
    padding: 7px 12px;
    border-radius: 17px;
    font-size: 14px;
  }

  .site-footer {
    margin-top: 4px;
    padding: 0 4px;
    gap: 8px;
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .section-head {
    flex-wrap: wrap;
  }

  .model-picks {
    margin-left: auto;
  }

  .actions {
    align-items: stretch;
  }

  .action-left {
    flex: 1;
  }

  .export {
    margin-left: 0;
  }
}
