* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  background: #f5f5f3;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.nav-link:hover,
.nav-link--active {
  color: #1a1a1a;
}

.lang-toggle {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.lang-toggle:hover {
  border-color: #999;
  color: #1a1a1a;
}

/* ── Hero ── */
.hero {
  background: #111;
  color: #fff;
  padding: 96px 24px 88px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-tag {
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}

.hero-sub {
  font-size: 1.15rem;
  color: #aaa;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1rem;
  color: #c9a84c;
  margin-bottom: 40px;
  letter-spacing: 0.3px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #c9a84c;
  color: #111;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: #e0bc60;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid #444;
  transition: border-color 0.15s;
}

.btn-ghost:hover {
  border-color: #888;
}

/* ── Sections ── */
.section {
  padding: 72px 24px;
}

.section--alt {
  background: #fff;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-title--center {
  text-align: center;
  margin-bottom: 48px;
}

.section-desc {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 36px;
}

/* ── Services ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
}

.service-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px;
}

.section--alt .service-card {
  background: #f5f5f3;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.service-icon {
  font-size: 1.4rem;
  color: #c9a84c;
  line-height: 1.4;
  flex-shrink: 0;
}

.service-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-price {
  font-size: 0.82rem;
  color: #888;
}

.service-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card--wide {
  grid-column: 1 / -1;
}

.case-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-item {
  background: #f5f5f3;
  border-radius: 8px;
  padding: 12px 14px;
}

.case-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c9a84c;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.case-body {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 0.9rem;
  color: #555;
  padding-left: 14px;
  position: relative;
}

.service-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #c9a84c;
}

.case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tag {
  font-size: 0.75rem;
  background: #f0ece0;
  color: #7a6230;
  border-radius: 4px;
  padding: 3px 10px;
}

/* ── AI Agents ── */
.agents-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.agents-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.agents-title--center {
  text-align: center;
}

.agents-desc {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.agents-desc--center {
  text-align: center;
  margin-bottom: 56px;
}

.agent-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agent-card {
  display: block;
  background: #f5f5f3;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px 24px;
  text-decoration: none;
  color: #1a1a1a;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.section--alt .agent-card {
  background: #fff;
}

.agent-card:hover {
  border-color: #bbb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.agent-icon {
  font-size: 1.1rem;
  color: #c9a84c;
}

.agent-name {
  font-size: 1.05rem;
  font-weight: 600;
  flex: 1;
}

.agent-arrow {
  color: #bbb;
}

.agent-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}

.agent-url {
  font-size: 0.78rem;
  color: #aaa;
  font-family: monospace;
}

/* ── Contact / Linktr ── */
.contact-links {
  max-width: 480px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 14px 20px;
  text-decoration: none;
  color: #1a1a1a;
  transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}

.link-card:hover {
  border-color: #bbb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.link-icon {
  width: 28px;
  font-size: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.link-label {
  flex: 1;
  text-align: left;
  margin-left: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.link-arrow {
  color: #bbb;
  font-size: 0.9rem;
}

/* ── Blog section ── */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tab {
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 0.875rem;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.tab:hover {
  border-color: #999;
  color: #1a1a1a;
}

.tab.active {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

#post-list {
  list-style: none;
}

#post-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.post-cat {
  font-size: 0.75rem;
  color: #fff;
  background: #555;
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

#post-list li a {
  flex: 1;
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

#post-list li a:hover {
  color: #c9a84c;
}

.date {
  font-size: 0.82rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.82rem;
  color: #aaa;
  background: #111;
}

/* ── Post page ── */
article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.back {
  display: inline-block;
  margin-bottom: 28px;
  color: #999;
  text-decoration: none;
  font-size: 0.875rem;
}

.back:hover { color: #333; }

article h1 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

article .meta {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 36px;
}

article .content p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

article .content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}

/* ── Contact page ── */
.contact-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  text-align: center;
}

.profile {
  margin-bottom: 40px;
}

.avatar {
  width: 72px;
  height: 72px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
  letter-spacing: 1px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-bio {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 32px;
}

/* WeChat link button looks identical to link cards */
button.link-card {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}

/* QR modal */
.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.qr-modal.open {
  display: flex;
}

.qr-modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  position: relative;
  text-align: center;
  max-width: 320px;
  width: 100%;
}

.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
}

.qr-modal-close:hover {
  color: #1a1a1a;
}

.qr-modal-img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
}

.qr-modal-cap {
  font-size: 0.9rem;
  color: #666;
}

/* ── Blog standalone page ── */
.blog-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.blog-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.blog-title--center {
  text-align: center;
  margin-bottom: 56px;
}
