/* Win11 现代简约风格，全局样式表 */
:root {
  --bg-color: #f3f4f6;
  --primary: #2563eb;
  --text: #111827;
  --panel-bg: #ffffff;
  --border-radius: 18px;
  --nav-width: 220px;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  background: var(--bg-color);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 24px;
}

/* 手机框架容器，模拟 iPhone 15 Pro */
.phone-frame {
  width: clamp(320px, 100%, 430px);
  background: var(--panel-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

input {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
}

button {
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #1d4ed8;
}

/* 左侧导航布局 */
.nav-container {
  display: flex;
  height: calc(100vh - 48px);
}

.nav {
  width: var(--nav-width);
  background: #f9fafb;
  padding: 24px 0;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}

.nav a {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.nav a:hover,
.nav a.active {
  background: #e0e7ff;
  color: var(--primary);
}

.content {
  flex: 1;
  padding: 24px;
}

/* --------- 响应式：桌面端 --------- */
@media (min-width: 768px) {
  /* 让整体容器宽度随屏幕拉伸，但不超过1200px */
  .phone-frame {
    width: 100%;
    max-width: 1200px;
  }
  /* 取消垂直居中，顶部对齐更像网页布局 */
  body {
    align-items: flex-start;
  }
  /* 导航高度随内容撑开 */
  .nav-container {
    height: auto;
  }
}

/* --------- 响应式：移动端(<600px) --------- */
@media (max-width: 600px) {
  /* 导航转为底部标签栏 */
  .nav-container {
    flex-direction: column;
  }
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  }
  .nav a {
    flex: 1;
    padding: 0;
    text-align: center;
    line-height: 56px;
  }
  .content {
    padding: 16px;
    margin-bottom: 70px; /* 避免内容被底部栏遮挡 */
  }
}

/* --------- 信息卡片布局 --------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.info-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}
.info-card p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.copy-btn, .link-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.copy-btn:active { background:#1e40af; }

/* 友链样式 */
.friend-link {
  margin-top: 24px;
  text-align: center;
}
.friend-link a {
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.friend-link a:hover { text-decoration: underline; }

/* --------- 弹窗 Modal --------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none; /* 默认隐藏 */
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal {
  background: #fff;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 380px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.modal h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 20px;
}
.modal p { margin:0 0 16px; color:#374151; }
.modal input, .modal select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  margin-bottom: 16px;
}
.modal select { appearance: none; background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjNjY3IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMCIgaGVpZ2h0PSI2Ij48cGF0aCBkPSJNMSAxLjVsNCAzIDQtMyIvPjwvc3ZnPg=='); background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px; }
.modal .actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.modal .actions .btn-secondary {
  background:#6b7280;
}

/* --------- Toast --------- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  animation: fadeOut 3s ease forwards;
  z-index: 1000;
}
@keyframes fadeOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

/* 合伙人徽章 */
.partner-badge {
  display: inline-block;
  background: #f59e0b; /* amber-500 */
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
}

/* --------- 表格 --------- */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 12px 8px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.table th { color:#6b7280; font-weight:500; }
.status-badge {
  display:inline-block;
  padding:2px 8px;
  border-radius:8px;
  font-size:12px;
  color:#fff;
}
.status-authorized { background:#10b981; }
.status-banned { background:#ef4444; } 