/* ABOUTME: AUKEY 移动商城还原 - 全局样式 */

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

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --gray: #6b7280;
  --brand: #0f1822;
  --brand-soft: #1d2b3a;
  --border: #ececec;
  --gray-bg: #f5f6f7;
  --new-badge: #e11d48;
  --shadow: 0 4px 16px rgba(15,24,34,0.08);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ---------- 顶部栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  gap: 0.5rem;
}
.logo { flex: 0 0 auto; font-weight: 800; font-size: 1.3rem; letter-spacing: 0.02em; color: var(--brand); }
.logo small { display: block; font-size: 0.5rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); }

/* 中间分类导航（横向滚动） */
.cat-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.cat-nav a.active { color: #fff; background: var(--brand); border-color: var(--brand); }

/* 右侧 Download App 按钮 */
.app-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

/* 醒目服务标语条 */
.trust-bar {
  background: var(--brand);
  color: #fff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.8rem;
}

/* ---------- 首屏 banner 轮播 ---------- */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--gray-bg);
}
.hero-track { display: flex; transition: transform 0.5s ease; }
.hero-slide { flex: 0 0 100%; }
.hero-slide img { width: 100%; aspect-ratio: 16 / 11.5; object-fit: cover; }
.hero-dots {
  position: absolute;
  bottom: 0.7rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.hero-dots span {
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.25);
}
.hero-dots span.on { background: var(--brand); }

/* ---------- 区块标题 ---------- */
.section {
  padding: 1.4rem 0.9rem 1rem;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.section-head h2 { font-size: 1.12rem; font-weight: 700; }
.section-head .more { font-size: 0.8rem; color: var(--muted); }

/* ---------- Categories 板块：2 大图 + 12 小图 ---------- */
.cat-bigs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cat-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--gray-bg);
  text-decoration: none;
}
.cat-big { aspect-ratio: 4 / 3; }
.cat-big img { width: 100%; height: 100%; object-fit: cover; }
.cat-big .cat-name {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  line-height: 1.3;
}
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.cat-tile { aspect-ratio: 1; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-tile .cat-name {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray);
  text-align: center;
  line-height: 1.25;
}
/* hover 露出 “查看详情” */
.cat-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  background: rgba(15,24,34,0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
  text-align: center;
}
.cat-item:hover .cat-view { opacity: 1; }

/* ---------- 品牌视频 ---------- */
.video-section {
  padding: 0;
  margin: 1.8rem 0;
}
.brand-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--gray-bg);
}

/* ---------- Design Honor ---------- */
.honor-section {
  padding: 1.6rem 0.9rem 1.6rem;
  background: var(--gray-bg);
}
.honor-head {
  text-align: center;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--fg);
}
.honor-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.5rem;
}
.honor-item {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
}
.honor-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Reports ---------- */
.report-section {
  padding: 1.6rem 0 1rem;
  background: var(--bg);
}
.report-title,
.featured-section h2 {
  text-align: center;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--fg);
}
.report-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
}
.featured-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 76rem;
  margin: 0 auto;
}

.featured-card {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
}

.featured-card img {
  width: 6.5rem;
  height: auto;
  min-height: 7rem;
  border-radius: 0.5rem;
  object-fit: cover;
  flex-shrink: 0;
  align-self: center;
}

.featured-text {
  flex: 1;
  background: var(--gray-bg, #f5f6f7);
  border-radius: 0.5rem;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--txt, #0a0a0a);
}

.featured-text p {
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
  line-height: 1.5;
  margin: 0;
}
  .report-figure {
  text-align: center;
}
.report-figure img {
  width: 100%;
  border-radius: 0.4rem;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--gray-bg);
}
.report-caption {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  word-break: break-word;
}

/* ---------- 产品网格 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--gray-bg);
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 0.5rem; left: 0.5rem;
  background: var(--new-badge);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
}
.product-info { padding: 0.55rem 0.6rem 0.6rem; display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.product-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.3em;
}
.product-price { font-size: 0.88rem; font-weight: 700; color: var(--fg); }
.product-price .cur { font-size: 0.7rem; color: var(--muted); font-weight: 600; }

/* 下载按钮 */
.download-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  padding: 0.45rem 0;
  border-radius: 0.5rem;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.download-btn:hover { background: var(--brand-soft); }

/* ---------- 品牌理念/殊荣 ---------- */
.brand-block {
  background: var(--brand);
  color: #fff;
  padding: 1.6rem 0.9rem;
  text-align: center;
}
/* ---------- 宣传横幅 ---------- */
.promo-section { padding: 1.4rem 0.9rem; }
.promo-banner { position: relative; border-radius: 0.9rem; overflow: hidden; background: var(--gray-bg); aspect-ratio: 1920 / 380; }
.promo-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo-text { position: absolute; top: 50%; right: 3%; transform: translateY(-50%); width: 38%; background: rgba(15,24,34,0.9); color: #fff; padding: 1rem 1.2rem; border-radius: 0.7rem; }
.promo-text h2 { font-size: 1.5rem; line-height: 1.3; margin-bottom: 0.45rem; }
.promo-text p { font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,0.88); }
.promo-perks { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 0.5rem; background: #f3f3f2; border-top: 2px solid #00d1a8; border-bottom: 1px solid #0a0a0a; }
.promo-perks .perk { background: transparent; color: var(--fg); border-right: 1px solid #e2e2e0; padding: 0.8rem 0.4rem; text-align: center; font-size: 0.76rem; }
.promo-perks .perk:last-child { border-right: none; }

.brand-block h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.brand-block p { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.perk-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.6rem; margin-top: 1rem; }
.perk { background: rgba(255,255,255,0.08); border-radius: 0.6rem; padding: 0.7rem; font-size: 0.8rem; }

/* ---------- 页脚（深色，参考图还原） ---------- */
.site-footer { background: #0e1b26; color: #b9c2cc; font-size: 0.78rem; padding: 2.2rem 1.1rem 1.2rem; }
.footer-inner { max-width: 76rem; margin: 0 auto; }
.footer-newsletter h2 { color: #fff; font-size: 1.7rem; letter-spacing: 0.06em; margin: 0 0 0.4rem; }
.footer-newsletter .nl-sub { color: #e6ecf2; font-size: 1.05rem; margin: 0 0 0.4rem; }
.footer-newsletter .nl-desc { color: #9aa7b3; font-size: 0.82rem; line-height: 1.5; max-width: 34rem; margin: 0 0 1rem; }
.nl-form { display: flex; gap: 0; max-width: 30rem; margin-bottom: 1.6rem; }
.nl-form input {
  flex: 1; padding: 0.8rem 1rem; border: 1px solid #2e3b47; border-right: 0;
  border-radius: 0.35rem 0 0 0.35rem; background: #13222e; color: #fff; font-size: 0.85rem; outline: none;
}
.nl-form input::placeholder { color: #6f7d8a; }
.nl-form button {
  padding: 0 1.1rem; border: 1px solid #2e3b47; border-left: 0;
  border-radius: 0 0.35rem 0.35rem 0; background: #13222e; color: #cfd8e0; font-size: 1rem; cursor: pointer;
}
.footer-social h4 { color: #9aa7b3; font-size: 0.75rem; font-weight: 400; margin: 0 0 0.7rem; }
.social-icons { display: flex; gap: 0.6rem; }
.social-icons a {
  width: 2.1rem; height: 2.1rem; display: flex; align-items: center; justify-content: center;
  background: #fff; color: #0e1b26; border-radius: 50%;
}
.social-icons svg { width: 1.05rem; height: 1.05rem; }

.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; padding: 1.8rem 0 1.4rem; border-top: 1px solid #22313e; margin-top: 1.8rem; }
.footer-cols h4 { color: #fff; font-size: 0.88rem; margin-bottom: 0.6rem; letter-spacing: 0.02em; }
.footer-cols li { margin-bottom: 0.4rem; color: #9aa7b3; }
.footer-cols li:hover { color: #fff; cursor: pointer; }

.footer-meta { max-width: 76rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1rem; border-top: 1px solid #22313e; }
.footer-copy { color: #7c8996; font-size: 0.72rem; }
.payment-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; justify-content: flex-start; }
.payment-row svg { width: 50px; height: 32px; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); display: block; }
.payment-row img { width: 52px; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); background: #fff; display: block; }

/* 右侧悬浮按钮 */
.float-btns { position: fixed; right: 0.9rem; bottom: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 50; }
.float-btn {
  width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center;
  background: #fff; color: #0e1b26; border: 1px solid #d8dde2; border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15); font-size: 1.1rem; text-decoration: none;
}

/* ---------- 分类页 ---------- */
.cat-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.collection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.collection-bar strong { color: var(--fg); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 0.5rem; padding: 1.2rem 0; }
.pagination a {
  min-width: 2.2rem; height: 2.2rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--fg);
  font-size: 0.85rem;
}
.pagination a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 窄屏 / 宽屏适配 */
@media (min-width: 768px) {
  .header-top { padding: 1rem 1.5rem; }
  .logo { font-size: 1.5rem; }
  .cat-nav { justify-content: center; }
  .section { max-width: 1040px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .hero-slide img { aspect-ratio: 21 / 9; }
  .brand-block { padding: 3rem 1.5rem; }
  .perk-list { grid-template-columns: repeat(4,1fr); }
  .site-footer { padding: 3rem 1.5rem 1.6rem; }
  .footer-cols { grid-template-columns: repeat(4,1fr); }
  .footer-meta { flex-direction: row; align-items: center; justify-content: space-between; }
}