/* ===== 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --border: #e5e7eb;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 导航 ===== */
.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 15px;
  padding: 4px 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.tag {
  background: #dbeafe;
  color: var(--primary-dark);
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 999px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: #eff6ff;
  color: var(--primary-dark);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}

/* ===== 区块 ===== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ===== 产品卡片 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 30px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-light);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.card .btn {
  font-size: 13.5px;
}

/* ===== 为什么选择我 ===== */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.feature-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== 产品详情页 ===== */
.page-header {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
}

.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header .lead {
  color: var(--text-light);
  font-size: 16px;
  max-width: 720px;
}

.cta-bar {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.prose h2 {
  font-size: 20px;
  margin: 36px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--primary);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.prose .note {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.info-box {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14.5px;
}

.info-box h4 {
  margin-bottom: 8px;
}

/* ===== 产品截图 ===== */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 9;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
}

.screenshot-placeholder .ico {
  font-size: 32px;
}

.screenshot-placeholder .tip {
  font-size: 12px;
  color: #9ca3af;
}

.screenshot-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  cursor: zoom-in;
  transition: box-shadow 0.2s;
}

.screenshot-grid img:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.screenshot-placeholder:has(img) {
  border: none;
  background: transparent;
  padding: 0;
  aspect-ratio: auto;
  overflow: hidden;
  display: block;
}

/* ===== 截图灯箱 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100% - 60px);
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.8;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  transition: background 0.2s, opacity 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
  opacity: 1;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  text-align: center;
  color: #fff;
  font-size: 14px;
  opacity: 0.85;
  pointer-events: none;
}

.lightbox-caption + .lightbox-counter {
  margin-left: 12px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .lightbox-prev {
    left: 6px;
  }

  .lightbox-next {
    right: 6px;
  }
}

/* ===== 微信二维码 ===== */
.qr-wrap {
  text-align: center;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 13px;
}

.qr-wrap img {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 8px;
}

/* ===== 关于我 ===== */
.avatar-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 48px;
  margin: 0 auto 20px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 2px solid var(--border);
}

/* ===== 页脚上方微信联系 ===== */
.wechat-section {
  padding: 48px 0;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
}

.wechat-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  text-align: left;
}

.wechat-info h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.wechat-info p {
  color: var(--text-light);
  margin-bottom: 18px;
}

.wechat-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.wechat-meta span {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.wechat-box .qr-placeholder {
  width: 130px;
  height: 130px;
  margin: 0;
  font-size: 12px;
}

.wechat-box .qr-placeholder .ico {
  font-size: 26px;
}

.wechat-box img {
  width: 240px;
  height: auto;
  margin: 0;
  display: block;
  border-radius: 8px;
}

.wechat-box-center {
  flex-direction: column;
  gap: 14px;
  text-align: center;
}

.wechat-id {
  font-size: 15px;
  font-weight: 600;
}

.wechat-desc {
  color: var(--text-light);
  font-size: 14.5px;
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 560px) {
  .wechat-box {
    text-align: center;
    gap: 24px;
  }
  .wechat-meta {
    justify-content: center;
  }
}

/* ===== 联系 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item .label {
  color: var(--text-light);
  font-size: 14px;
  min-width: 72px;
}

.contact-item .value {
  font-size: 15px;
}

/* ===== 表单 ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-note {
  font-size: 12.5px;
  color: var(--text-light);
  margin-top: 8px;
}

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 13.5px;
  background: var(--bg-gray);
}

.footer-icp {
  margin-top: 6px;
}

.footer-icp a {
  color: var(--text-light);
  text-decoration: none;
}

.footer-icp a:hover {
  color: var(--primary);
  text-decoration: underline;
}
