* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #0d1117;
  color: #c9d1d9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #58a6ff; text-decoration: none; }
img { max-width: 100%; display: block; }

.top-ticker {
  background: #161b22;
  border-bottom: 1px solid #21262d;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  padding: 8px 0;
  color: #8b949e;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 28s linear infinite;
}
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
.ticker-track span { margin: 0 28px; color: #58a6ff; }

header {
  background: #161b22;
  border-bottom: 1px solid #21262d;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: #f0f6fc;
}
.brand img { height: 32px; width: auto; }
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.nav-links a { color: #c9d1d9; }
.nav-links a:hover { color: #58a6ff; }
.nav-toggle {
  display: none;
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.3;
  color: #f0f6fc;
  margin-bottom: 18px;
}
.hero p {
  color: #8b949e;
  margin-bottom: 28px;
  font-size: 16px;
}
.btn-download {
  display: inline-block;
  background: #da3633;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  transition: background .2s;
}
.btn-download:hover { background: #f85149; }
.update-time {
  display: block;
  font-size: 12px;
  color: #6e7681;
  margin-top: 12px;
}

.carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #30363d;
  background: #161b22;
}
.carousel-track {
  display: flex;
  transition: transform .45s ease;
}
.carousel-track img {
  min-width: 100%;
  height: 300px;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,17,23,.6);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px;
}
.section-title {
  font-size: 26px;
  color: #f0f6fc;
  margin-bottom: 10px;
}
.section-desc {
  color: #8b949e;
  margin-bottom: 28px;
  font-size: 15px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.img-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #21262d;
  cursor: pointer;
  background: #161b22;
}
.img-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .3s;
}
.img-card:hover img { transform: scale(1.04); }
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-badge::after {
  content: "";
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.text-block h3 {
  font-size: 19px;
  color: #f0f6fc;
  margin-bottom: 12px;
}
.text-block p {
  color: #8b949e;
  font-size: 15px;
  margin-bottom: 12px;
}

.about-box {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 32px;
}
.about-box p { color: #8b949e; margin-bottom: 14px; font-size: 15px; }
.about-box strong { color: #58a6ff; }

.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 10px;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  color: #f0f6fc;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #58a6ff;
  font-size: 20px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  padding: 0 20px 16px;
  color: #8b949e;
  font-size: 14px;
}

.hot-list { display: grid; gap: 12px; margin-bottom: 32px; }
.hot-item {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 10px;
  overflow: hidden;
}
.hot-item summary {
  padding: 14px 20px;
  cursor: pointer;
  color: #f0f6fc;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.hot-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #58a6ff;
  font-size: 20px;
}
.hot-item[open] summary::after { content: "−"; }
.hot-item .reply {
  padding: 0 20px 16px;
  color: #8b949e;
  font-size: 14px;
}
.hot-item .reply .who { color: #58a6ff; font-size: 13px; display: block; margin-bottom: 4px; }

.comment-box {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 12px;
  padding: 24px;
}
.comment-box label {
  display: block;
  font-size: 14px;
  color: #8b949e;
  margin-bottom: 8px;
}
.comment-box textarea {
  width: 100%;
  min-height: 100px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #c9d1d9;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}
.btn-submit {
  margin-top: 12px;
  background: #1f6feb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 26px;
  font-size: 14px;
  cursor: pointer;
}
.btn-submit:hover { background: #388bfd; }

footer {
  background: #161b22;
  border-top: 1px solid #21262d;
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: #6e7681;
}
footer p { margin-bottom: 8px; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.show { display: flex; }
.modal-inner {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 32px 28px;
  max-width: 380px;
  width: 100%;
  text-align: center;
}
.modal-inner h4 {
  color: #f0f6fc;
  font-size: 20px;
  margin-bottom: 12px;
}
.modal-inner p { color: #8b949e; font-size: 14px; margin-bottom: 22px; }
.modal-inner .btn-download { font-size: 15px; padding: 12px 30px; }
.modal-close {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 8px;
}

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: #161b22;
    border-bottom: 1px solid #21262d;
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hero h1 { font-size: 26px; }
  .carousel-track img { height: 220px; }
  .two-col, .three-col { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; }
  .about-box { padding: 22px; }
}