/* 旋转代理详情页沿用全站网格、色板和地球绘制，首屏单独控制列宽。 */
.rotating-hero {
  padding-block: 27px 44px;
  background:
    radial-gradient(ellipse at 76% 43%, #1745535c, transparent 53%),
    linear-gradient(180deg, #101b2b, var(--bg));
}
.rotating-hero .wrap { position: relative; }
.rotating-hero .breadcrumb { margin: 0 0 22px; }
.rotating-hero-layout { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(0, .93fr); align-items: center; gap: clamp(20px, 4vw, 55px); }
.rotating-intro { min-inline-size: 0; padding-block: 12px; container-type: inline-size; }
.rotating-intro h1 {
  margin-block: 0 22px;
  font-size: clamp(1.48rem, 8.6cqi, 3.55rem);
  font-weight: 760;
  line-height: 1.13;
  letter-spacing: -.037em;
}
.rotating-intro h1 strong,
.rotating-intro h1 span { display: block; }
.rotating-intro h1 strong {
  color: #a2f5dc;
  font-size: clamp(3.1rem, 16cqi, 6.7rem);
  font-weight: 790;
  font-variant-numeric: tabular-nums;
  line-height: 1.01;
  margin-block-end: 10px;
  letter-spacing: -.056em;
}
.rotating-intro:lang(en) h1 { font-size: clamp(1.8rem, 7.8cqi, 3.2rem); }
.rotating-intro:lang(en) h1 strong { font-size: clamp(2.3rem, 13.5cqi, 5.9rem); }
.rotating-subtitle { font-size: clamp(1rem, 3.25cqi, 1.25rem); font-weight: 670; line-height: 1.55; }
.rotating-description { max-width: 53ch; margin-top: 10px; line-height: 1.75; color: var(--muted); }
.rotating-intro .button-row { margin-top: 24px; }
.rotating-hero .rotating-visual {
  min-width: 0;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1.22;
  margin: 0;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at center, #22555841, transparent 68%),
    repeating-linear-gradient(0deg, #a0bee414 0 1px, transparent 1px 36px),
    repeating-linear-gradient(90deg, #a0bee414 0 1px, transparent 1px 36px);
  mask-image: radial-gradient(ellipse, black 44%, transparent 82%);
}
.rotating-specs {
  margin: 26px 0 0;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  border: 1px solid #32485b;
  border-radius: 16px;
  background: #101b29;
}
.rotating-specs li {
  min-width: 0;
  padding: 11px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cdd9ed;
  font-size: .91rem;
  font-weight: 620;
  line-height: 1.45;
}
.rotating-specs li > span {
  display: grid;
  place-items: center;
  inline-size: 23px;
  block-size: 23px;
  flex: none;
  border: 1px solid #72efd04d;
  border-radius: 50%;
  color: var(--cyan);
  font-size: .85rem;
  line-height: 1;
}
.rotating-specs .rotating-priority {
  border-radius: 9px;
  background: #75efca16;
  color: var(--cyan);
  font-weight: 780;
}
.rotating-priority > span { box-shadow: 0 0 10px #75efca26; }
.rotating-preview-note { margin-top: 11px; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.rotating-preview-note > span { color: #e3b682; }
.rotating-about { padding-block: clamp(46px, 6vw, 85px); }
.rotating-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rotating-feature-grid article {
  min-width: 0;
  padding: clamp(18px, 2vw, 27px);
  border: 1px solid #2b3b50;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #142131, #0f1826 75%);
}
.rotating-feature-grid article:first-child {
  border-color: #4f9a8870;
  background: linear-gradient(150deg, #173437, #10232d 76%);
}
.rotating-feature-icon {
  width: clamp(68px, 7.3vw, 88px);
  aspect-ratio: 1;
  margin: 0 0 17px;
  padding: 8px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 29%, #31435a);
  border-radius: 17px;
  background:
    radial-gradient(ellipse at 34% 21%, color-mix(in srgb, var(--accent) 22%, #15263c), transparent 70%),
    linear-gradient(152deg, #233449, #101c2d 80%);
  box-shadow: inset 0 1px 0 #ecfaff24, inset 0 -2px 5px #07112080, 0 7px 17px #02091755;
}
.rotating-feature-icon img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 4px 5px #0008);
}
.rotating-feature-grid h3 { font-size: clamp(1.05rem, 1.5vw, 1.32rem); line-height: 1.35; }
.rotating-feature-grid p { margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.65; }

/* 使用原生对话框处理键盘关闭和模态焦点，内容在窄屏上可独立滚动。 */
.rotating-trial {
  position: fixed;
  inset: 0;
  width: min(495px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  margin: auto;
  padding: clamp(19px, 5vw, 31px);
  overflow: auto;
  border: 1px solid #3f6578;
  border-radius: 20px;
  background: linear-gradient(145deg, #18283a, #101a29 70%);
  color: var(--ink);
  box-shadow: 0 28px 80px #020711bf;
}
.rotating-trial::backdrop { background: #050b17c9; }
.rotating-trial h2 { padding-inline-end: 30px; font-size: clamp(1.19rem, 5vw, 1.52rem); line-height: 1.3; }
.rotating-trial p { margin-top: 9px; color: var(--muted); line-height: 1.55; }
.rotating-trial-close {
  position: absolute;
  inset: 11px 11px auto auto;
  display: grid;
  place-items: center;
  inline-size: 38px;
  block-size: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #293950;
  color: var(--ink);
  font-size: 1.4rem;
}
.rotating-trial-modes { margin-block: 18px; padding: 0; border: 0; }
.rotating-trial-modes legend { padding: 0 0 8px; font-weight: 690; }
.rotating-trial-modes label { display: inline-flex; align-items: center; min-height: 34px; margin-inline-end: 10px; cursor: pointer; }
.rotating-trial-modes input { margin-inline: 0 6px; accent-color: var(--cyan); }
.rotating-trial-output {
  margin-bottom: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border: 1px solid #36556c;
  border-radius: 9px;
  background: #0a1524;
}
.rotating-trial-output dt { color: var(--muted); font-size: .8rem; }
.rotating-trial-output dd { margin-top: 3px; color: var(--cyan); font-size: 1rem; font-weight: 730; }
.rotating-trial p.rotating-trial-note { font-size: .79rem; }

@media (max-width: 980px) {
  .rotating-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rotating-hero { padding-block: 18px 28px; }
  .rotating-hero .breadcrumb { margin-bottom: 12px; }
  .rotating-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rotating-hero .rotating-visual { max-width: 470px; margin-inline: auto; }
  .rotating-specs { margin-top: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .rotating-feature-grid { grid-template-columns: minmax(0, 1fr); }
  .rotating-specs { padding: 7px; gap: 4px; }
  .rotating-specs li { padding: 7px 5px; font-size: .81rem; gap: 5px; }
  .rotating-specs li > span { width: 18px; height: 18px; font-size: .72rem; }
  .rotating-preview-note { padding-inline-end: 42px; }
}
