/* ========== 星苑牧歌 服务器官网样式 ========== */
:root {
  --mc-green: #3fb950;
  --mc-dark-green: #2ea043;
  --mc-deep: #0d1117;
  --mc-bg: #010409;
  --mc-panel: rgba(22, 27, 34, 0.72);
  --mc-border: rgba(240, 246, 252, 0.1);
  --mc-text: #e6edf3;
  --mc-muted: #8b949e;
  --mc-gold: #ffc83d;
  --mc-blue: #58a6ff;
  --mc-red: #f85149;
  --gradient: linear-gradient(135deg, #2ea043 0%, #1f6feb 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: var(--mc-bg);
  color: var(--mc-text);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(63, 185, 80, .35); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(1, 4, 9, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mc-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}
.brand:hover { color: var(--mc-gold); }

.nav-links a {
  color: var(--mc-muted);
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--mc-green); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ========== 首屏 ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(31, 111, 235, .25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 110%, rgba(46, 160, 67, .22), transparent),
    linear-gradient(180deg, #010409 0%, #0d1117 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--mc-bg));
  pointer-events: none;
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(63, 185, 80, .12);
  border: 1px solid rgba(63, 185, 80, .35);
  color: var(--mc-green);
  font-size: 14px;
  margin-bottom: 22px;
  animation: fadeDown .8s ease both;
}

.hero h1 {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 6px;
  animation: fadeDown 1s ease both .1s;
  text-shadow: 0 0 60px rgba(46, 160, 67, .3);
}

.hero-desc {
  color: var(--mc-muted);
  font-size: clamp(15px, 2.4vw, 19px);
  margin: 18px 0 32px;
  animation: fadeDown 1s ease both .25s;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeDown 1s ease both .4s; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 30px rgba(46, 160, 67, .35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(46, 160, 67, .5); }
.btn-ghost {
  background: transparent;
  color: var(--mc-text);
  border: 1px solid var(--mc-border);
}
.btn-ghost:hover { border-color: var(--mc-green); color: var(--mc-green); transform: translateY(-3px); }

.server-ip {
  margin-top: 40px;
  animation: fadeDown 1s ease both .55s;
}
.ip-label { display: block; color: var(--mc-muted); font-size: 13px; margin-bottom: 10px; }
.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 30px;
  background: var(--mc-panel);
  border: 1px solid var(--mc-border);
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .25s;
  backdrop-filter: blur(8px);
}
.ip-copy:hover { border-color: var(--mc-gold); transform: scale(1.04); }
.copy-hint { font-size: 12px; color: var(--mc-muted); font-weight: 400; letter-spacing: 0; }

/* ========== 通用段落 ========== */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(22, 27, 34, .5), transparent); }

.section-title {
  text-align: center;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  color: var(--mc-muted);
  margin-bottom: 48px;
}

/* ========== 服务器状态 ========== */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.status-card {
  background: var(--mc-panel);
  border: 1px solid var(--mc-border);
  border-radius: 18px;
  padding: 26px;
  backdrop-filter: blur(10px);
  transition: transform .3s, border-color .3s;
}
.status-card:hover { transform: translateY(-5px); border-color: rgba(63, 185, 80, .4); }

.status-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.platform-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  border-radius: 14px;
  background: rgba(63, 185, 80, .12);
  border: 1px solid rgba(63, 185, 80, .25);
}
.status-card h3 { font-size: 18px; }

.status-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-tag.online  { background: rgba(63, 185, 80, .15); color: var(--mc-green); border: 1px solid rgba(63, 185, 80, .35); }
.status-tag.offline { background: rgba(248, 81, 73, .15); color: var(--mc-red); border: 1px solid rgba(248, 81, 73, .35); }
.status-tag.pending { background: rgba(88, 166, 255, .12); color: var(--mc-blue); border: 1px solid rgba(88, 166, 255, .3); }

.status-rows { display: flex; flex-direction: column; gap: 12px; }
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--mc-border);
  font-size: 14px;
}
.status-row:last-child { border-bottom: none; padding-bottom: 0; }
.status-row span { color: var(--mc-muted); }
.status-row strong { font-size: 15px; }

.status-foot {
  text-align: center;
  color: var(--mc-muted);
  font-size: 13px;
  margin-top: 28px;
}

/* ========== 加入服务器 ========== */
.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}
.join-card {
  position: relative;
  background: var(--mc-panel);
  border: 1px solid var(--mc-border);
  border-radius: 18px;
  padding: 34px 26px 26px;
  overflow: hidden;
  transition: transform .3s;
}
.join-card:hover { transform: translateY(-5px); }
.join-step {
  position: absolute;
  top: -14px; right: 10px;
  font-size: 72px;
  font-weight: 800;
  color: rgba(63, 185, 80, .08);
  user-select: none;
}
.join-card h3 { font-size: 20px; margin-bottom: 12px; }
.join-card p { color: var(--mc-muted); font-size: 14.5px; }
.join-card code {
  background: rgba(63, 185, 80, .1);
  color: var(--mc-green);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
}
.join-card strong { color: var(--mc-gold); }

/* ========== 特色玩法 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
}
.feature-card {
  background: var(--mc-panel);
  border: 1px solid var(--mc-border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 200, 61, .45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.15) rotate(-6deg); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--mc-muted); font-size: 14px; }

/* ========== 玩家社区 ========== */
.community-card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(135deg, rgba(31, 111, 235, .12), rgba(46, 160, 67, .12));
  border: 1px solid rgba(63, 185, 80, .3);
  border-radius: 18px;
  padding: 30px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.qq-logo {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 30px rgba(46, 160, 67, .4);
}
.community-card h3 { font-size: 20px; margin-bottom: 6px; }
.community-card p { color: var(--mc-muted); font-size: 14px; }
.community-desc { font-size: 13px !important; margin-top: 4px; }

/* ========== 页脚 ========== */
.footer {
  border-top: 1px solid var(--mc-border);
  padding: 40px 0;
  text-align: center;
}
.footer p { color: var(--mc-muted); font-size: 14px; }
.footer .footer-ip { color: var(--mc-green); font-weight: 600; }
.footer-sub { font-size: 13px !important; margin-top: 6px; opacity: .75; }

/* ========== 提示气泡 ========== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(80px);
  background: var(--mc-green);
  color: #04270c;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(63, 185, 80, .4);
  opacity: 0;
  transition: all .4s;
  z-index: 200;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========== 反馈弹窗 ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(1, 4, 9, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-mask[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: 460px;
  background: #0d1117;
  border: 1px solid var(--mc-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
  animation: fadeDown .3s ease;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.modal-head h3 { font-size: 19px; }
.modal-close {
  background: none;
  border: none;
  color: var(--mc-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all .2s;
}
.modal-close:hover { color: #fff; background: rgba(255, 255, 255, .08); }

.form-field {
  display: block;
  margin-bottom: 16px;
}
.form-field span {
  display: block;
  color: var(--mc-muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(22, 27, 34, .8);
  border: 1px solid var(--mc-border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--mc-text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--mc-green); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-tip { color: var(--mc-muted); font-size: 12.5px; }
.form-note {
  color: var(--mc-muted);
  font-size: 13px;
  background: rgba(88, 166, 255, .08);
  border: 1px solid rgba(88, 166, 255, .2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

/* ========== 动画 ========== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatParticle {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(1, 4, 9, .97);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--mc-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 12px 0; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
}
