:root {
  --bg-page: #f5f6f4;
  --bg-card: #ffffff;
  --primary: #2c5e4f;
  --primary-hover: #20463b;
  --primary-soft: rgba(44, 94, 79, 0.08);
  --text-main: #222624;
  --text-sub: #5c6460;
  --text-muted: #8a928e;
  --border: #e5e8e6;
  --shadow: 0 4px 20px rgba(34, 38, 36, 0.05);
  --font-sans: -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-sans);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }
.container { max-width: 1160px; 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: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.brand-name { font-size: 20px; font-weight: 700; color: var(--text-main); }
.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(--text-main); 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: 36px 0 24px; }
.hero-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 36px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center;
}
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.hero-title { font-size: clamp(24px, 3.5vw, 34px); line-height: 1.3; margin-bottom: 14px; color: var(--text-main); }
.hero-desc { font-size: 15px; color: var(--text-sub); line-height: 1.8; }

.hero-access { display: flex; flex-direction: column; gap: 14px; }
.access-card {
  background: var(--bg-page); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; display: flex; align-items: center; gap: 16px;
}
.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; }
.access-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.os-tag {
  width: fit-content; font-size: 11px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 2px 8px; border-radius: 4px;
}
.os-tag.ios { color: #8c4a32; background: rgba(140, 74, 50, 0.1); }
.access-info h3 { font-size: 15px; color: var(--text-main); }
.access-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.access-info .btn { padding: 7px 14px; font-size: 13px; width: fit-content; }

.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-top: 16px; padding-bottom: 48px; align-items: start; }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-sub);
  padding: 7px 16px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; box-shadow: var(--shadow); transition: transform 0.2s, border-color 0.2s;
}
.post-card:hover { transform: translateY(-2px); border-color: rgba(44, 94, 79, 0.35); }
.post-meta-top { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.post-cat { color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 4px; font-weight: 600; }
.post-title { font-size: 19px; line-height: 1.45; margin-bottom: 10px; color: var(--text-main); }
.post-title a:hover { color: var(--primary); }
.post-excerpt { font-size: 14px; color: var(--text-sub); line-height: 1.75; margin-bottom: 16px; }
.post-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--border); padding-top: 12px; font-size: 13px;
}
.post-tags { display: flex; gap: 10px; color: var(--text-muted); }
.read-more { color: var(--primary); font-weight: 600; }
.read-more:hover { text-decoration: underline; }

.blog-sidebar { display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; box-shadow: var(--shadow);
}
.widget-title {
  font-size: 16px; color: var(--text-main); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

.profile-widget { text-align: center; }
.profile-avatar {
  width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.profile-widget h3 { font-size: 17px; margin-bottom: 8px; }
.profile-widget p { font-size: 13px; color: var(--text-sub); margin-bottom: 18px; line-height: 1.65; }
.profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); padding-top: 14px;
}
.profile-stats strong { display: block; font-size: 16px; color: var(--text-main); }
.profile-stats span { font-size: 12px; color: var(--text-muted); }

.hot-links { display: flex; flex-direction: column; gap: 12px; }
.hot-links a { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-sub); line-height: 1.5; }
.hot-links a:hover { color: var(--primary); }
.hot-links span { font-size: 12px; font-weight: 700; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: var(--bg-page); border: 1px solid var(--border); color: var(--text-sub);
  padding: 5px 12px; border-radius: 6px; font-size: 13px;
}
.tag-cloud a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.site-footer { background: #1e2220; color: #b5bcb8; padding: 42px 0 22px; margin-top: 20px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 26px; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-slogan { font-size: 13px; color: #8c9691; }
.footer-notice { max-width: 480px; }
.footer-notice h4 { font-size: 15px; color: #fff; margin-bottom: 8px; }
.footer-notice p { font-size: 13px; color: #8c9691; line-height: 1.75; }
.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; color: #7c8580;
}
.footer-dl {
  color: #fff; background: var(--primary); padding: 6px 14px; border-radius: 6px; font-weight: 600;
}
.footer-dl:hover { background: var(--primary-hover); }

@media (max-width: 960px) {
  .hero-box, .blog-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-box { padding: 22px; }
  .post-card { padding: 18px; }
}