* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(ellipse at top, #1a2332 0%, #0a0e17 50%, #000 100%);
  color: #e4e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 5vh 5vw 3vh;
  line-height: 1.55;
}
header { text-align: center; margin-bottom: 4vh; }
.brand {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #4fc3f7 0%, #7c4dff 50%, #e91e63 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.tagline {
  font-size: clamp(13px, 1.4vw, 17px);
  color: #a8b0c0;
  letter-spacing: 2px;
  font-weight: 300;
}
.view-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.view-badge.public   { background: rgba(79, 195, 247, 0.15); color: #4fc3f7; border: 1px solid rgba(79, 195, 247, 0.3); }
.view-badge.internal { background: rgba(156, 39, 176, 0.2);  color: #ce93d8; border: 1px solid rgba(156, 39, 176, 0.4); }

main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.section-title {
  font-size: 13px;
  color: #8892a8;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 40px 0 18px;
  font-weight: 600;
}

/* ===== 按钮 ===== */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 32px;
}
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #4fc3f7 0%, #7c4dff 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124, 77, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(124, 77, 255, 0.45);
}
.btn-secondary {
  background: transparent;
  color: #4fc3f7;
  border: 1px solid rgba(79, 195, 247, 0.45);
}
.btn-secondary:hover {
  background: rgba(79, 195, 247, 0.1);
  border-color: #4fc3f7;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== 卡片 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: block;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #4fc3f7, #7c4dff);
  opacity: 0;
  transition: opacity 0.25s;
}
.tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(79, 195, 247, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.tile:hover::before { opacity: 1; }
.tile-featured {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.14), rgba(124, 77, 255, 0.14));
  border: 1px solid rgba(124, 77, 255, 0.4);
}
.tile-featured::before { opacity: 1; }
.tile-name {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.tile-desc {
  font-size: 14px;
  color: #c8d0dc;
  line-height: 1.55;
  margin-bottom: 12px;
}
.tile-url {
  font-size: 11px;
  color: #4fc3f7;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.3px;
  word-break: break-all;
}
.tile-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.tile-tag.ext { background: rgba(79, 195, 247, 0.15);  color: #4fc3f7; }
.tile-tag.int { background: rgba(156, 39, 176, 0.18); color: #ce93d8; }
.tile-tag.featured {
  background: linear-gradient(135deg, #4fc3f7, #7c4dff);
  color: #fff;
}
.tile-link {
  display: inline-block;
  font-size: 13px;
  color: #4fc3f7;
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
}
.tile-link:hover { color: #81d4fa; }

/* Capability tile (能做什么) */
.capability-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile-cap { cursor: default; }
.tile-cap:hover { transform: none; background: rgba(255,255,255,0.04); }
.cap-icon {
  font-size: 28px;
  margin-bottom: 12px;
  display: inline-block;
}

/* ===== 公网视图专属 ===== */
.hero {
  text-align: center;
  padding: 30px 0 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 30px;
}
.hero-kicker {
  font-size: 12px;
  color: #4fc3f7;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  max-width: 900px;
  margin: 0 auto 20px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #4fc3f7, #7c4dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 19px);
  color: #c8d0dc;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin: 30px 0 8px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
.about-item h3 {
  font-size: 14px;
  color: #4fc3f7;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.about-item p {
  font-size: 14px;
  color: #c8d0dc;
  line-height: 1.7;
}
.about-item .num {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 4px;
  font-family: "SF Mono", Menlo, monospace;
}
.about-box {
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  line-height: 1.8;
  color: #c8d0dc;
}
.about-box p { margin-bottom: 14px; }
.about-box p:last-child { margin-bottom: 0; }
.about-box strong { color: #fff; }

/* ===== 联系表单 ===== */
.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: block;
  color: #c8d0dc;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e4e8f0;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4fc3f7;
  background: rgba(0, 0, 0, 0.35);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.req { color: #e91e63; }
.btn-submit { margin-top: 8px; }
.form-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
}
.form-msg.ok  { color: #81c784; }
.form-msg.err { color: #ef9a9a; }

footer {
  text-align: center;
  padding: 32px 0 12px;
  color: #8892a8;
  font-size: 12px;
  letter-spacing: 1px;
}
footer a { color: #a8b0c0; text-decoration: none; }
footer a:hover { color: #4fc3f7; }
