/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --nav-bg: rgba(18, 18, 20, .92);
  --blue: #3e7bfa;
  --blue-hover: #5b90ff;
  --text: #f2f3f5;
  --text-dim: #a8adb5;
  --orange: #ff8f1f;
  --green: #3ecf6e;
  --footer-bg: #16181c;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
  width: min(1280px, 94%);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo img { height: 30px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-evenly;
}

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 0 10px;
  line-height: 56px;
  font-size: 14px;
  color: #e8eaed;
  white-space: nowrap;
  transition: color .2s;
}

.nav-link:hover { color: #fff; }

.nav-link.active {
  color: #fff;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

/* 移动端汉堡按钮 */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ============ 通用横幅区块 ============ */
section { scroll-margin-top: 56px; }

.hero {
  padding: 110px 24px 90px;
  text-align: center;
  overflow: hidden;
}

.hero-icon {
  width: 76px; height: 76px;
  margin: 0 auto 28px;
  border-radius: 17px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
}

.hero-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 22px;
  color: #fff;
}

/* 渐变标题 */
.grad-trackpad { background: linear-gradient(92deg, #ffb43d 5%, #ff5f5f 55%, #ff4d94 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-ikeys    { background: linear-gradient(92deg, #7fa8ff 10%, #a88cff 60%, #7fd0ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-mouse    { background: linear-gradient(92deg, #ff9a3d, #ff6a2f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.txt-green     { color: var(--green); }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 21px);
  color: #e6e8eb;
  margin-bottom: 56px;
}

.hero-shot {
  width: min(1120px, 100%);
  margin: 0 auto 48px;
}

.shot-sm { width: min(780px, 100%); }

.hero-desc {
  max-width: 860px;
  margin: 0 auto 34px;
  font-size: 17px;
  color: #dcdfe3;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-block;
  min-width: 128px;
  padding: 12px 40px;
  border-radius: 26px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  transition: all .2s;
}

.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .12); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }

.hero-chip {
  font-size: 13px;
  color: var(--text-dim);
}

.hero-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 56px;
}

.hero-more {
  display: inline-block;
  margin-top: 30px;
  color: var(--blue);
  font-size: 15px;
}

.hero-more:hover { color: var(--blue-hover); }

/* 产品详情页的返回链接独立成行 */
.hero-more.product-back { display: block; }

/* 名称行内的链接（如“脚本交流区”） */
.hero-more.row-link { margin-top: 0; font-size: 15px; }

/* 下拉菜单里的小缩略图 */
.dropdown a img.dd-thumb { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }

/* 图标 + 产品名 行 */
.hero-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-icon-sm {
  width: 60px; height: 60px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

.hero-name {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  color: #fff;
}

.hero-name.lg { font-size: clamp(26px, 3vw, 36px); }

.badge-new {
  color: var(--orange);
  font-size: 16px;
  font-weight: 600;
}

.hero-slogan {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 46px;
}

.hero .hero-name-row + .hero-slogan { margin-top: 4px; }
.hero .hero-desc + .hero-name-row,
.hero .hero-shot + .hero-name-row { margin-top: 10px; }

/* ============ 左右分栏区块 ============ */
.split {
  display: flex;
  align-items: center;
  gap: 48px;
  width: min(1280px, 96%);
  margin: 0 auto;
  padding: 100px 0;
}

.split.reverse { flex-direction: row-reverse; }

.split-img { flex: 1.15; min-width: 0; }
.split-img img { width: 100%; }

.split-text { flex: 1; min-width: 0; }

.split-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.split-slogan {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

.split-desc {
  font-size: 16px;
  color: #cfd3d8;
  margin-bottom: 34px;
}

.split-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 12px;
}

.badge-appstore { height: 46px; width: auto; }

.split .hero-more { display: block; margin-top: 26px; }
.split .hero-chip { margin-bottom: 6px; }

/* ============ 关于我们 ============ */
.about { padding: 90px 20px 110px; }

.about-card {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: #f5f6f8;
  color: #222;
  border-radius: 36px;
  padding: 70px 60px 60px;
  text-align: center;
}

.about-logo { width: 130px; margin: 0 auto 18px; }

.about-name {
  font-size: 34px;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.about-slogan {
  font-size: 17px;
  color: #555;
  margin-bottom: 46px;
}

.about-qr img {
  width: 148px;
  margin: 0 auto 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.about-qr p { font-size: 14px; color: #777; }

/* ============ 页脚 ============ */
.footer {
  background: var(--footer-bg);
  padding: 64px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .05);
}

.footer-inner {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 48px;
}

.footer h4 {
  font-size: 15px;
  color: #e2e5e9;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer h4.mt { margin-top: 34px; }

.footer-col ul { list-style: none; columns: 2; column-gap: 40px; }
.footer-products ul { columns: 2; }

.footer-col li { margin-bottom: 13px; break-inside: avoid; }

.footer-col a {
  font-size: 13px;
  color: #8d939c;
  transition: color .2s;
}

.footer-col a:hover { color: #fff; }

.footer-beian {
  margin-top: 46px;
  padding: 20px 0 24px;
  text-align: center;
  font-size: 12px;
  color: #6b7076;
}

.footer-beian a { color: #6b7076; }
.footer-beian a:hover { color: #a8adb5; }
.footer-beian .sep { margin: 0 12px; }
.footer-beian .beian-icon { font-size: 13px; margin-right: 6px; }
.footer-beian .beian-support { color: #6b7076; }

.footer-beian .ipv6 {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #6b7076;
  border-radius: 8px;
  font-size: 10px;
  line-height: 14px;
}

/* ============ 产品中心页 ============ */
.apps-banner {
  background: #000;
  padding: 56px 0 40px;
  overflow: hidden;
}

.apps-banner-inner {
  width: min(1240px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.banner-text { flex: 1; min-width: 0; }

.banner-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.banner-icon { width: 46px; height: 46px; border-radius: 11px; }

.banner-title-row h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  color: #fff;
  font-weight: 700;
}

.banner-sub {
  color: #cfd3d8;
  font-size: 15px;
  margin-bottom: 26px;
}

.banner-btns {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.btn-sm { min-width: 96px; padding: 9px 30px; font-size: 15px; }
.banner-btns .badge-appstore { height: 40px; }

.banner-more { color: var(--blue); font-size: 14px; }
.banner-more:hover { color: var(--blue-hover); }

.banner-img { flex: 1.2; min-width: 0; }
.banner-img img { width: 100%; }

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.banner-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
}

.banner-dots span.on { background: #fff; }

.apps-grid-wrap {
  background: #f4f5f7;
  padding: 40px 0 56px;
}

.apps-grid {
  width: min(1240px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.app-card {
  background: #fff;
  border-radius: 10px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  transition: box-shadow .2s, transform .2s;
}

.app-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}

.app-icon {
  width: 68px; height: 68px;
  border-radius: 15px;
  flex-shrink: 0;
}

.app-info { flex: 1; min-width: 0; }

.app-info h3 {
  font-size: 17px;
  color: #222;
  margin-bottom: 6px;
}

.app-info p {
  font-size: 13px;
  color: #8a8f96;
  line-height: 1.5;
}

.app-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.app-btn {
  display: inline-block;
  padding: 7px 22px;
  border-radius: 17px;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  transition: opacity .2s;
}

.app-btn:hover { opacity: .85; }
.app-btn.free { background: #2fbf56; }
.app-btn.dl { background: var(--blue); }

.app-more { font-size: 12px; color: var(--blue); }
.app-more:hover { color: var(--blue-hover); }

.app-partner { font-size: 12px; color: var(--orange); }

.footer-right { text-align: left; }
.footer-right ul.plain { columns: 1; }

.footer-qr { margin-top: 26px; }
.footer-qr img { width: 110px; border-radius: 8px; margin-bottom: 8px; }
.footer-qr p { font-size: 12px; color: #8d939c; }

@media (max-width: 900px) {
  .apps-banner-inner { flex-direction: column; text-align: center; }
  .banner-title-row { justify-content: center; }
  .banner-btns { justify-content: center; }
  .apps-grid { grid-template-columns: 1fr; }
}

/* ============ 视频教学页 ============ */
.page-tv { background: #fff; }

.tv-main { padding-top: 56px; }

.tv-title {
  text-align: center;
  color: #2b7bf5;
  font-size: clamp(24px, 2.8vw, 34px);
  padding: 64px 20px 60px;
  font-weight: 700;
}

.tv-grid {
  width: min(1230px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 40px;
}

.tv-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
  transition: transform .2s, box-shadow .2s;
}

.tv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.tv-card img { width: 100%; }

.tv-spacer { height: 820px; }

/* ============ 用户支持页 ============ */
.page-support { background: #fff; }

.support-main { padding-top: 56px; }

.support-title {
  text-align: center;
  color: #333;
  font-size: 20px;
  font-weight: 700;
  padding: 96px 20px 0;
}

.support-note {
  text-align: center;
  color: #e64340;
  font-size: 14px;
  padding: 14px 20px 60px;
}

.support-form {
  width: min(660px, 92%);
  margin: 0 auto;
}

.form-row { margin-bottom: 26px; }

.form-label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.form-control { display: flex; align-items: center; gap: 12px; }

.form-select,
.form-input {
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0 10px;
  font-size: 14px;
  color: #555;
  background: #fff;
  outline: none;
}

.form-select { width: 307px; max-width: 100%; }
.form-input { width: 127px; }
.form-select:focus, .form-input:focus { border-color: var(--blue); }

.form-req { color: #e64340; font-size: 15px; }

.captcha-row .captcha-img { border: 1px solid #ddd; }

.captcha-refresh { font-size: 14px; color: #333; }
.captcha-refresh:hover { color: var(--blue); }

.form-spacer { height: 560px; }
.form-spacer-sm { height: 120px; }

.form-tips {
  font-size: 14px;
  color: #e64340;
  line-height: 1.9;
}

.form-tips a { color: #4a90d9; }
.form-tips a:hover { text-decoration: underline; }

.form-submit-row {
  text-align: center;
  margin: 120px 0 140px;
}

.form-submit {
  width: 122px;
  height: 38px;
  border: 0;
  border-radius: 4px;
  background: #57a3f3;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}

.form-submit:hover { background: #4098f0; }

/* ============ QQ群页 ============ */
.qq-hero {
  margin-top: 56px;
  min-height: calc(100vh - 56px);
  background: url('../assets/img/qq-bg.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
}

.qq-hero-content {
  width: min(1240px, 90%);
  margin: 0 auto;
  color: #fff;
  padding: 60px 0;
}

.qq-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 44px;
}

.qq-row {
  display: flex;
  align-items: baseline;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.qq-group { font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
.qq-note { font-size: 15px; }

.qq-tip { font-size: 15px; margin-bottom: 60px; }

.qq-btn { min-width: 140px; }

/* ============ Mac精选页 ============ */
.page-mac137 { background: #f4f5f7; }

.mac137-main { padding-top: 56px; }

.mac137-title {
  text-align: center;
  color: #222;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  padding: 72px 20px 40px;
}

.mac137-recommend {
  text-align: center;
  margin-bottom: 56px;
}

.mac137-card {
  width: min(1060px, 92%);
  margin: 0 auto 90px;
  background: #fff;
  border-radius: 8px;
  padding: 34px 34px 60px;
}

.mac137-tabs { display: flex; gap: 22px; margin-bottom: 56px; }

.mac137-tab {
  padding: 9px 22px;
  font-size: 14px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #555;
  cursor: pointer;
  transition: all .2s;
}

.mac137-tab:hover { color: var(--blue); border-color: var(--blue); }

.mac137-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.mac137-panel { display: none; }
.mac137-panel.active { display: block; }

.mac137-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 36px;
}

.mac137-item { display: block; }

.mac137-item img {
  width: 100%;
  aspect-ratio: 253 / 140;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 14px;
}

.mac137-item p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.mac137-item:hover p { color: var(--blue); }

@media (max-width: 900px) {
  .tv-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tv-spacer { height: 200px; }
  .form-spacer { height: 120px; }
  .mac137-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}

/* ============ 滚动显现动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 56px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(20, 20, 22, .98);
    padding: 10px 0 16px;
    display: none;
  }

  .nav-menu.open { display: flex; }
  .nav-link { line-height: 46px; padding: 0 24px; }
  .nav-link.active::after { display: none; }

  .nav-burger { display: flex; margin-left: auto; }

  .split, .split.reverse {
    flex-direction: column;
    padding: 70px 20px;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-col ul { columns: 2; }
}

/* ============ 404 页面 ============ */
.notfound {
  padding: 140px 24px 180px;
  text-align: center;
}

.nf-code {
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(92deg, #7fa8ff, #a88cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nf-title {
  font-size: clamp(20px, 2.4vw, 28px);
  color: #fff;
  margin: 26px 0 12px;
}

.nf-desc {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 40px;
}

.nf-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ============ 法律文档页（服务条款/隐私政策/退款政策） ============ */
.legal { padding: 120px 0 80px; }

.legal-inner {
  width: min(860px, 92%);
  margin: 0 auto;
}

.legal-title {
  font-size: clamp(26px, 3vw, 34px);
  color: #fff;
  font-weight: 700;
}

.legal-title-en {
  font-size: .6em;
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 10px;
}

.legal-updated {
  color: var(--text-dim);
  font-size: 13px;
  margin: 14px 0 24px;
}

.legal-toc {
  display: flex;
  gap: 18px;
  margin-bottom: 40px;
}

.legal-toc a {
  color: var(--blue);
  font-size: 14px;
}

.legal-toc a:hover { color: var(--blue-hover); }

.legal-lang { margin-bottom: 56px; }

.legal-lang-title {
  font-size: 20px;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  margin-bottom: 24px;
}

.legal-sec { margin-bottom: 26px; }

.legal-sec h3 {
  font-size: 16px;
  color: #e2e5e9;
  margin-bottom: 10px;
  font-weight: 600;
}

.legal-sec p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .legal { padding-top: 96px; }
  .footer-beian { line-height: 2; }
}

/* ============ 语言切换按钮 ============ */
.nav-lang {
  flex-shrink: 0;
  height: 26px;
  padding: 0 12px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 13px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
  transition: color .2s, border-color .2s;
}

.nav-lang:hover {
  color: #fff;
  border-color: var(--blue);
}

@media (max-width: 900px) {
  .nav-lang { margin-left: auto; }
  .nav-burger { margin-left: 0; }
}
