/* 土豆我的世界服务器 · 站点样式（外部 CSS） */
:root {
  --bg: #0f1115;
  --card: #1b1e26;
  --card2: #242834;
  --accent: #f5a623;
  --accent-dark: #e08f00;
  --green: #4caf50;
  --red: #e53935;
  --text: #eceff4;
  --muted: #8a91a0;
  --border: #2e3440;
  --link: #6cb6ff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 560px at 50% -8%, rgba(245,166,35,.12), transparent 60%),
    var(--bg);
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  padding: 24px 16px 56px;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; }

/* 顶部导航 */
.nav {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.nav a {
  color: var(--muted); font-size: 14px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--border);
}
.nav a:hover, .nav a.active {
  color: var(--text); border-color: var(--accent); text-decoration: none;
}

/* 卡片 */
.card {
  width: 100%;
  background: linear-gradient(180deg, var(--card), #161921);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px 36px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.card + .card { margin-top: 22px; }
.card h2 {
  font-size: 20px; color: var(--accent); margin-bottom: 14px;
  letter-spacing: .5px;
}
.card h3 { font-size: 16px; margin: 18px 0 6px; color: var(--text); }
.card p { margin-bottom: 10px; }
.card ul, .card ol { margin: 8px 0 12px 22px; }
.card li { margin-bottom: 6px; }
.card .muted { color: var(--muted); font-size: 13px; }

/* 头部 */
.head { text-align: center; margin-bottom: 20px; }
.logo { font-size: 62px; line-height: 1; filter: drop-shadow(0 6px 18px rgba(245,166,35,.35)); }
h1 { font-size: 25px; color: var(--accent); letter-spacing: 1px; margin-top: 10px; line-height: 1.4; }
.sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 6px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 1px;
  background: #0f2a12; color: var(--green);
  border: 1px solid rgba(76,175,80,.35);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status-pill.online .dot { animation: pulse 1.6s infinite; }
.status-pill.offline { background: #2a0f0f; color: var(--red); border-color: rgba(229,57,53,.35); }
.status-pill.offline .dot { background: var(--red); animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(76,175,80,.5); }
  70% { box-shadow: 0 0 0 10px rgba(76,175,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); }
}

/* 信息格 */
.info {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; margin: 20px 0 18px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; font-size: 14px;
}
.info .label { color: var(--muted); display: block; font-size: 12px; margin-bottom: 2px; }
.info .val { font-weight: 600; }
.info .val.addr { color: var(--green); }
.players { grid-column: 1 / -1; }
.bar {
  height: 8px; border-radius: 6px; background: #151922; margin-top: 8px;
  overflow: hidden; border: 1px solid var(--border);
}
.bar > i {
  display: block; height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  transition: width .5s ease; width: 0;
}

/* 复制地址 */
.connect {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #13161d; border: 1px dashed #3a4150; border-radius: 12px;
  padding: 12px 14px 12px 18px; margin-bottom: 14px;
}
.connect code {
  font-size: 15px; color: var(--green); word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.btn {
  cursor: pointer; border: 0; border-radius: 10px;
  background: var(--accent); color: #141414;
  font-weight: 700; font-size: 15px; padding: 11px 22px;
  transition: .18s; text-decoration: none; display: inline-block; text-align: center;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }
.btn.play { width: 100%; background: var(--green); color: #fff; }
.btn.play:hover { background: #3d9a41; }
.btn.chat { width: 100%; margin-top: 12px; background: var(--accent); color: #141414; }
.btn.web { width: 100%; margin-top: 12px; background: #4c8bf5; color: #fff; }
.btn.web:hover { background: #3a72d0; }
.hint { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }
.hint kbd {
  background: #2a2f3a; padding: 1px 7px; border-radius: 5px; font-size: 11px;
  color: var(--text); border: 1px solid #3a4150;
}
.ver-badge { display: inline-block; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* 图片 */
.shot { width: 100%; border-radius: 14px; border: 1px solid var(--border); display: block; margin: 14px 0 6px; }
.cap { color: var(--muted); font-size: 12px; text-align: center; margin-bottom: 8px; }

/* 特色 */
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.feat {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
}
.feat b { display: block; color: var(--accent); font-size: 15px; margin-bottom: 4px; }
.feat span { color: var(--muted); font-size: 13px; }

/* FAQ */
details.faq {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { margin: 8px 0 0; color: #cfd5e0; font-size: 14px; }

/* 动态 */
.news-item { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin-bottom: 12px; }
.news-item time { color: var(--muted); font-size: 12px; display: block; }

/* 页脚 */
.footer { text-align: center; margin-top: 22px; color: #5a6170; font-size: 12px; line-height: 1.9; }
.footer a { color: #7d8798; }

@media (max-width: 620px) {
  .card { padding: 26px 20px 22px; border-radius: 18px; }
  .info { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  h1 { font-size: 21px; }
  .logo { font-size: 52px; }
}
