:root {
  --bg0: #060b14;
  --bg1: #0c1626;
  --cyan: #2ee6d6;
  --cyan2: #19b7ff;
  --text: #edf4ff;
  --muted: #91a3c4;
  --line: rgba(120, 160, 220, 0.22);
  --card: rgba(14, 24, 42, 0.88);
  --danger: #ff6d7d;
  --font: "DIN Alternate", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(25,183,255,.18), transparent 55%),
              radial-gradient(900px 500px at 90% 0%, rgba(46,230,214,.14), transparent 50%),
              linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #08101c);
  min-height: 100vh;
}
.bg-grid {
  pointer-events: none;
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(120,180,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,180,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
  z-index: 0;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 6vw;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: #07111d;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.brand {
  font-size: 22px; font-weight: 800; letter-spacing: .04em;
  color: #fff; text-decoration: none;
  text-shadow: 0 0 18px rgba(46,230,214,.35);
}
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a {
  color: var(--muted); text-decoration: none; font-size: 14px;
}
.site-header nav a:hover,
.site-header nav a.active { color: var(--cyan); }
.contact-lines {
  margin: 12px 0 0;
  color: #b7c8e6;
  font-size: 14px;
  line-height: 1.85;
}
.contact-lines div + div { margin-top: 2px; }
.agent-tip {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(46,230,214,.28);
  background: rgba(46,230,214,.08);
  color: #c9fff6;
  font-size: 14px;
  line-height: 1.6;
}
.page-about {
  max-width: 760px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}
.page-about h1 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 6vw, 40px);
}
.page-about .about-body {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  padding: 48px 6vw 32px;
  align-items: stretch;
  min-height: calc(100vh - 70px);
}
.eyebrow {
  display: inline-block; margin: 0 0 10px;
  color: var(--cyan); letter-spacing: .18em; font-size: 12px;
}
.hero h1, .showcase h1 {
  margin: 0 0 14px; font-size: clamp(36px, 6vw, 64px); line-height: 1.05;
  background: linear-gradient(120deg, #fff, var(--cyan), var(--cyan2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); line-height: 1.7; max-width: 36em; }
.meta { color: #b7c8e6; font-size: 14px; }

.showcase {
  padding: 36px 24px 56px;
  animation: rise .7s ease both;
}
.showcase-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.showcase-copy {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.showcase-copy .lead {
  margin-left: auto;
  margin-right: auto;
}
.showcase-copy .contact-lines {
  display: inline-block;
  text-align: left;
  margin-top: 14px;
}
.showcase-tag {
  margin: -6px 0 14px;
  font-size: clamp(16px, 3vw, 22px);
  color: #c9fff6;
  letter-spacing: .04em;
}
.showcase-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: center;
  margin-top: 18px;
}
.btn-ghost-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; text-decoration: none; font-weight: 700;
  color: var(--cyan); border: 1px solid rgba(46,230,214,.4);
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}
.feature-item {
  min-height: 118px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 24, 42, .72);
  box-sizing: border-box;
}
.feature-item h3 {
  margin: 0 0 8px; font-size: 16px; color: var(--cyan);
}
.feature-item p {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55;
}
.showcase-shots {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.showcase-shots-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
}
.showcase-shots-desc {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.phone-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  box-sizing: border-box;
}
.phone-frame {
  margin: 0;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(120,160,220,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  overflow: hidden;
}
.phone-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  background: #0a1322;
  vertical-align: top;
}
/* 0 图比例不同：固定展示宽度，高度自适应，避免被拉变形 */
.phone-frame-0 {
  max-width: 380px;
}
.phone-frame-0 img {
  width: 100%;
  height: auto;
  aspect-ratio: 666 / 768;
  object-fit: contain;
}
/* 1-4 竖屏截图：统一手机宽度与比例 */
.phone-frame-1,
.phone-frame-2,
.phone-frame-3,
.phone-frame-4 {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.phone-frame-1 img,
.phone-frame-2 img,
.phone-frame-3 img,
.phone-frame-4 img {
  width: 100%;
  height: auto;
  aspect-ratio: 1284 / 2778;
  object-fit: cover;
}
.consult {
  padding: 28px 6vw 48px;
  display: grid;
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.consult-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 36px);
}
.consult .chat-card { min-height: 560px; }

@media (max-width: 980px) {
  .feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-item { min-height: 108px; }
}
@media (max-width: 640px) {
  .showcase { padding: 24px 16px 40px; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-item { min-height: 0; }
  .showcase-shots,
  .phone-gallery,
  .phone-frame,
  .phone-frame-0,
  .phone-frame-1,
  .phone-frame-2,
  .phone-frame-3,
  .phone-frame-4 {
    max-width: 100%;
  }
  .phone-gallery { gap: 16px; }
}

.chat-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
  min-height: 520px;
  animation: rise .7s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.chat-head {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(46,230,214,.12), rgba(25,183,255,.08));
  font-size: 14px;
}
.ticket { color: var(--cyan); font-variant-numeric: tabular-nums; }
.chat-body {
  flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(8,14,26,.2), rgba(8,14,26,.55));
}
.msg-row {
  display: flex; align-items: flex-end; gap: 8px; max-width: 92%;
}
.msg-row.visitor { align-self: flex-end; flex-direction: row; }
.msg-row.admin { align-self: flex-start; flex-direction: row; }
.msg-row.system { align-self: center; max-width: 100%; }
.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px;
  border: 1px solid rgba(120,160,220,.35); box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.bubble {
  max-width: 100%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.55;
  border: 1px solid var(--line);
}
.msg-row.visitor .bubble { background: rgba(25,183,255,.12); border-color: rgba(25,183,255,.35); border-bottom-right-radius: 4px; }
.msg-row.admin .bubble { background: rgba(46,230,214,.1); border-color: rgba(46,230,214,.35); border-bottom-left-radius: 4px; }
.msg-row.system .bubble { color: var(--muted); font-size: 12px; background: transparent; border: 0; text-align: center; }
.bubble img { display: block; max-width: 220px; border-radius: 8px; margin-top: 6px; }
.chat-foot { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.chat-foot textarea {
  width: 100%; resize: vertical; min-height: 56px;
  border-radius: 10px; border: 1px solid var(--line);
  background: #0a1322; color: var(--text); padding: 10px 12px; font: inherit;
}
.actions { display: flex; justify-content: space-between; gap: 10px; }
.file-btn, #chatSend {
  border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 700;
}
.file-btn { background: #16233a; color: var(--text); }
#chatSend {
  background: linear-gradient(120deg, var(--cyan), var(--cyan2));
  color: #04131a; min-width: 96px;
}
#chatSend:disabled { opacity: .45; cursor: not-allowed; }
.hint { margin: 0; color: var(--muted); font-size: 12px; }
.preview { display: flex; gap: 8px; flex-wrap: wrap; }
.preview .chip {
  position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.preview .chip img { width: 100%; height: 100%; object-fit: cover; }
.preview .chip button {
  position: absolute; right: 2px; top: 2px; border: 0; border-radius: 50%;
  width: 18px; height: 18px; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 11px;
}

.section { padding: 56px 6vw; }
.section h2 { margin: 0 0 8px; font-size: 28px; }
.section-desc { color: var(--muted); margin: 0 0 24px; }
.download-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
}
.dl {
  display: grid; justify-items: center; gap: 8px; text-align: center;
  padding: 28px 18px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.dl:hover { transform: translateY(-3px); border-color: rgba(46,230,214,.5); }
.dl img { width: 64px; height: 64px; object-fit: contain; }
.dl span { color: var(--muted); font-size: 13px; }
.guide-cta {
  text-align: center;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(600px 180px at 50% 0%, rgba(46,230,214,.12), transparent 70%),
    rgba(8, 14, 26, .35);
}
.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #04131a;
  background: linear-gradient(120deg, var(--cyan), var(--cyan2));
  box-shadow: 0 10px 30px rgba(25,183,255,.22);
}
.about p { max-width: 48em; line-height: 1.8; color: var(--muted); }

.page-price {
  max-width: 980px;
  margin: 0 auto;
  min-height: calc(100vh - 140px);
}
.page-price h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 6vw, 40px);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 8px 0 28px;
}
.price-plan {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(25,183,255,.06), transparent 42%),
    var(--card);
  display: grid;
  gap: 14px;
  align-content: start;
  animation: rise .7s ease both;
}
.price-plan.is-hot {
  border-color: rgba(46,230,214,.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.price-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: #04131a;
  background: linear-gradient(120deg, var(--cyan), var(--cyan2));
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}
.price-plan h2 {
  margin: 0;
  font-size: 22px;
  padding-right: 88px;
}
.price-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.price-num {
  margin: 0;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.price-num .yen { font-size: .55em; margin-right: 2px; color: var(--cyan); }
.price-num .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.price-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.price-features li {
  position: relative;
  padding-left: 18px;
  color: #c9d7ef;
  font-size: 14px;
  line-height: 1.55;
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(46,230,214,.55);
}
.price-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 6px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #04131a;
  background: linear-gradient(120deg, var(--cyan), var(--cyan2));
}
.price-plan:not(.is-hot) .price-cta {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(46,230,214,.45);
}

@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-plan h2 { padding-right: 0; }
}

.site-footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 24px 6vw 40px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}
