/* /css/line-page.css */
/* 黑金背景 + 两列小胶囊线路按钮 */

:root {
  --bg-1: #050505;
  --bg-2: #101010;

  --gold-1: #fff1b8;
  --gold-2: #f7d46f;
  --gold-3: #c8912f;
  --gold-4: #8d5f1c;
  --gold-border: rgba(247, 212, 111, 0.58);

  --green-1: #34ec7a;
  --green-2: #18c963;

  --text-1: #fff1b8;
  --text-2: #f7d46f;

  --card-bg-1: rgba(255, 255, 255, 0.055);
  --card-bg-2: rgba(255, 255, 255, 0.022);

  --shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  --gold-glow: 0 0 14px rgba(247, 212, 111, 0.16);
  --green-glow: 0 0 10px rgba(52, 236, 122, 0.55);

  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(circle at top, rgba(247, 212, 111, 0.14), transparent 32%),
    linear-gradient(180deg, #15130d 0%, #070707 48%, #000 100%);
}

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

.page {
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 24px 30px;
  background:
    radial-gradient(circle at top, rgba(247, 212, 111, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
}

.title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--gold-1);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.88),
    0 0 14px rgba(247, 212, 111, 0.28);
}

.title::after {
  content: "";
  display: block;
  width: 68px;
  height: 2px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: var(--gold-glow);
}

.line-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.line-item {
  width: 100%;
}

.line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background:
    linear-gradient(180deg, var(--card-bg-1), var(--card-bg-2)),
    #111;
  border: 1.2px solid var(--gold-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    var(--shadow);
  color: var(--text-1);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease;
}

.line-btn:hover,
.line-btn:focus {
  outline: none;
  border-color: rgba(255, 241, 184, 0.86);
  box-shadow:
    0 0 0 3px rgba(247, 212, 111, 0.10),
    0 8px 20px rgba(0, 0, 0, 0.42),
    0 0 14px rgba(247, 212, 111, 0.16);
}

.line-btn:active {
  transform: scale(0.98);
  background:
    linear-gradient(180deg, rgba(247, 212, 111, 0.10), rgba(255, 255, 255, 0.025)),
    #151515;
}

.line-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--gold-1);
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.72);
}

.line-dot {
  width: 8px;
  height: 8px;
  margin: 0 7px;
  border-radius: 50%;
  background: var(--green-1);
  box-shadow:
    0 0 0 3px rgba(52, 236, 122, 0.10),
    var(--green-glow);
  flex: 0 0 auto;
}

.line-ms {
  min-width: 38px;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  color: var(--green-1);
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 0 10px rgba(52, 236, 122, 0.35);
}

.action-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 58%, var(--gold-3));
  color: #3b2605;
  font-size: 18px;
  font-weight: 900;
  border: 1.2px solid rgba(255, 241, 184, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 8px 18px rgba(0, 0, 0, 0.32),
    0 0 14px rgba(247, 212, 111, 0.14);
}

.action-btn.secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    #111;
  color: var(--gold-1);
  box-shadow: none;
  border-color: var(--gold-border);
}

.action-btn:active {
  transform: scale(0.98);
}

@media (max-width: 420px) {
  .page {
    padding: 20px 16px 28px;
  }

  .title {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .line-list {
    gap: 12px 14px;
  }

  .line-btn {
    min-height: 42px;
    padding: 0 8px;
  }

  .line-name {
    font-size: 16px;
  }

  .line-dot {
    width: 8px;
    height: 8px;
    margin: 0 6px;
  }

  .line-ms {
    min-width: 36px;
    font-size: 13px;
  }

  .action-row {
    gap: 12px;
    margin-top: 30px;
  }

  .action-btn {
    min-width: 112px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 17px;
  }
}

@media (max-width: 350px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .line-list {
    gap: 10px 10px;
  }

  .line-btn {
    min-height: 40px;
    padding: 0 7px;
  }

  .line-name {
    font-size: 15px;
  }

  .line-dot {
    margin: 0 5px;
  }

  .line-ms {
    min-width: 34px;
    font-size: 12px;
  }

  .action-btn {
    min-width: 104px;
    min-height: 40px;
    font-size: 16px;
  }
}