:root {
  --bg: #f3f6f5;
  --card: #ffffff;
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-soft: rgba(15, 118, 110, 0.1);
  --dark: #13201e;
  --text-main: #1e2927;
  --text-sub: #52615e;
  --text-muted: #849491;
  --border: #dfe7e5;
  --shadow: 0 4px 18px rgba(19, 32, 30, 0.05);
  --font-stack: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none;
}
.btn-xs { padding: 6px 14px; font-size: 13px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #223633; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 13px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff;
  font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 20px; font-weight: 800; color: var(--dark); }
.brand-name small { font-size: 12px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }

.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 15px; color: var(--text-sub); font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 26px; height: 18px; position: relative; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--dark); position: absolute; transition: all 0.3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }

.hero { padding: 28px 0 18px; }
.hero-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 32px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center;
}
.hero-badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.hero-title { font-size: clamp(24px, 3.2vw, 34px); color: var(--dark); line-height: 1.3; margin-bottom: 12px; }
.hero-sub { font-size: 14px; color: var(--text-sub); margin-bottom: 10px; line-height: 1.75; }
.hero-sub-note { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.7; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-sub);
  background: var(--bg); padding: 10px 14px; border-radius: 8px;
}
.hero-stats strong { color: var(--primary); font-weight: 700; }

.hero-right { display: flex; flex-direction: column; gap: 14px; }
.dl-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; display: flex; align-items: center; gap: 14px;
}
.qr-box {
  width: 84px; height: 84px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 5px; flex-shrink: 0;
}
.qr-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.os-tag {
  width: fit-content; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
  background: rgba(19, 32, 30, 0.08); color: var(--dark);
}
.os-tag.ios { background: var(--primary-soft); color: var(--primary); }
.dl-info h3 { font-size: 15px; color: var(--dark); }
.dl-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }

.intro-banner { margin-top: 10px; margin-bottom: 24px; }
.banner-box {
  background: linear-gradient(135deg, #0f766e, #115e59); color: #fff;
  border-radius: 12px; padding: 22px 26px;
}
.banner-box h2 { font-size: 18px; margin-bottom: 8px; }
.banner-box p { font-size: 13px; color: rgba(255, 255, 255, 0.88); line-height: 1.75; }

.forum-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding-bottom: 50px; align-items: start; }

.toolbar {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px 10px 0 0;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.tab-group { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn {
  background: transparent; border: none; padding: 6px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--text-sub); cursor: pointer;
}
.tab-btn:hover { background: var(--bg); color: var(--dark); }
.tab-btn.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

.thread-list {
  background: var(--card); border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 10px 10px; box-shadow: var(--shadow);
}
.thread-card { padding: 20px; border-bottom: 1px solid var(--border); }
.thread-card:last-child { border-bottom: none; }
.thread-card:hover { background: #f9fbfb; }
.t-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.badge.hot { background: #ef4444; color: #fff; }
.badge.top { background: #f59e0b; color: #fff; }
.badge.essence { background: #10b981; color: #fff; }
.badge.cat { background: var(--bg); color: var(--text-sub); border: 1px solid var(--border); font-weight: 500; }
.t-title { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.t-title:hover { color: var(--primary); }
.t-desc { font-size: 13px; color: var(--text-sub); margin-bottom: 12px; line-height: 1.65; }
.t-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); }
.t-meta { display: flex; gap: 14px; }
.reply-box {
  margin-top: 12px; background: var(--bg); border-left: 3px solid var(--primary);
  padding: 8px 12px; border-radius: 0 6px 6px 0; font-size: 12px; color: var(--text-sub);
}

.forum-sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; box-shadow: var(--shadow);
}
.widget-title {
  font-size: 16px; color: var(--dark); padding-bottom: 12px;
  margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.hot-list { display: flex; flex-direction: column; gap: 12px; }
.hot-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.hot-list a { color: var(--text-sub); line-height: 1.5; }
.hot-list a:hover { color: var(--primary); }
.num {
  width: 20px; height: 20px; border-radius: 4px; background: var(--bg); color: var(--text-sub);
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.num.n1 { background: #ef4444; color: #fff; }
.num.n2 { background: #f97316; color: #fff; }
.num.n3 { background: #eab308; color: #fff; }

.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-list li { padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.comment-list li:last-child { padding-bottom: 0; border-bottom: none; }
.c-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.c-top strong { color: var(--dark); }
.c-top span { color: var(--text-muted); }
.comment-list p { font-size: 13px; color: var(--text-sub); line-height: 1.55; }

.site-footer { background: var(--dark); color: #9db0ac; padding: 40px 0 22px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 24px; }
.footer-brand { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-desc { font-size: 13px; max-width: 440px; line-height: 1.7; }
.footer-notice { max-width: 440px; }
.footer-notice h4 { font-size: 15px; color: #e2ebe9; margin-bottom: 8px; }
.footer-notice p { font-size: 13px; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
}
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: #d1e3df; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 960px) {
  .hero-panel, .forum-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: all 0.3s ease;
  }
  .main-nav.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 16px; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 8px; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 8px; }
  .hero-panel { padding: 20px; }
}