/* ==========================================================================
   AIXIU 前台
   布局原则：多列（CSS columns）瀑布流 —— 不需要 JS 算高度，图片不裁切，
              首屏所有卡片已由构建写进 HTML，浏览器拿到即可绘制。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f6f6f4;
  --text: #141414;
  --muted: #8b8b8b;
  --line: #e8e8e5;
  --max: 1560px;
  --rad: 2px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans Thai", "Noto Sans Arabic", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* ------------------------------- 顶部 ------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-top {
  max-width: var(--max);
  margin: 0 auto;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* 品牌 LOGO 图（各国专属，透明底金字） */
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  flex: none;
}
.foot-brand .brand-logo { width: 56px; height: 56px; }
/* 品牌后的当前国简称：AIXIU · VN */
.brand-cc {
  color: var(--muted);
  letter-spacing: .12em;
  font-weight: 400;
  font-size: 15px;
}
.foot-brand .brand-cc { font-size: .85em; }

.nav-r { position: relative; display: flex; align-items: center; gap: 6px; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 30px;
  padding: 0 11px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-btn:hover { color: var(--text); border-color: #d6d6d2; }

.lang-menu {
  position: absolute;
  top: 38px;
  right: 0;
  min-width: 152px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .09);
  z-index: 40;
}
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text);
}
.lang-menu button:hover { background: var(--surface); }
.lang-menu button.on { font-weight: 600; }

/* 国家栏：始终贴在顶部，随时能切 */
.ccbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 8px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ccbar::-webkit-scrollbar { display: none; }

.cc {
  flex: 0 0 auto;
  padding: 3px 0 4px;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1.5px solid transparent;
}
.cc:hover { color: var(--text); }
.cc.on {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--text);
}

/* ------------------------------- 首屏标题 ------------------------------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 16px;
}
.hero-k {
  margin: 0 0 7px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-t {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.24;
}
.hero-s {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ------------------------------- 国家选择入口页 ------------------------------- */

.picker {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 56px;
  text-align: center;
}
.picker .hero-k { letter-spacing: .3em; }
.picker .hero-t {
  margin-top: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.picker .hero-s { margin-top: 10px; }

.pick-intro {
  margin: 14px auto 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}

.picker-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  text-align: center;
}
.picker-grid .pick {
  width: 158px;
}

/* 最显眼位置：当前命中的国家（大卡片，置顶居中） */
.pick-hit {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.pick-hit:empty { display: none; }
.pick-hit .pick {
  width: 100%;
  max-width: 300px;
  padding: 20px 14px 18px;
  border: 1px solid var(--line);
  background: #fbfbfa;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}
.pick-hit .pick-ico { width: 58px; height: 58px; font-size: 16px; }
.pick-hit .pick-name { font-size: 17px; }
.pick-hit .pick-en { font-size: 12px; }
.pick-hit .pick:hover { transform: none; }

.pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px 10px 20px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.pick:hover {
  border-color: var(--line);
  background: #f0f0ed;
  transform: translateY(-2px);
}

.pick-ico {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
  background: var(--text);
}
.pick-ico-sg  { background: #1b4f72; }
.pick-ico-af  { background: #7d6608; }
.pick-ico-vn  { background: #a93226; }
.pick-ico-my  { background: #1e6f50; }
.pick-ico-th  { background: #6c3483; }
.pick-ico-us  { background: #21618c; }
.pick-ico-sa  { background: #145a32; }

.pick-name {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
}
.pick-en {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* 入口页下方：按国家分列的产品预览（一列一国，宽屏每行 4 款） */
.crow-list {
  max-width: 100%;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
}

.crow {
  min-width: 0;
}

.crow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.crow-ico {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: var(--text);
  flex: none;
}
.crow-name {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .01em;
}
.crow-en {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}
.crow-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.crow-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
}
.crow-more svg { color: var(--muted); }
.crow-more:hover { text-decoration: underline; }

/* 每行 4 款：手机 2 列，560px 起固定 4 列，与上方内容同宽对齐 */
.crow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 560px) { .crow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.citem {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease;
}
.citem:hover { border-color: #c9c6bf; transform: translateY(-2px); }
.citem img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #f2f2ef;
  transition: opacity .18s ease;
}
.citem:hover img { opacity: .94; }

/* ------------------------------- 网格 ------------------------------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 72px;
}
.wrap.narrow { max-width: 760px; padding-top: 30px; }
.wrap.center { text-align: center; padding-top: 86px; }

/* 工厂/联系页：左侧有底 LOGO + 右侧内容 */
.side-logo {
  display: flex;
  align-items: center;
  gap: 44px;
}
.side-logo .deco-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .08));
}
.side-logo .side-main { flex: 1; min-width: 0; }
@media (max-width: 700px) {
  .side-logo { flex-direction: column; align-items: center; gap: 22px; }
  .side-logo .deco-logo { width: 116px; height: 116px; }
  .side-logo .side-main { width: 100%; }
}

/* 列表用固定比例网格：8 款时排得整整齐齐，图片完整不裁切。
   详情页图片多、比例杂，才用多列瀑布流。 */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1560px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card {
  display: block;
  background: var(--surface);
  border-radius: var(--rad);
  overflow: hidden;
}

.card .ph {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #f2f2ef;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease;
}
.card:hover img { opacity: .93; }

.card .cf {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px 7px;
}
.card .cf b {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card .cf i {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.card .cf i svg { color: var(--muted); }

/* 角标：NEW 左上 / 多国 右上 / 视频 右下，三个位置互不打架 */
.b-new {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 5px;
  background: var(--text);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  border-radius: 2px;
}
.b-cc {
  position: absolute;
  top: 6px; right: 6px;
  padding: 2px 5px;
  background: rgba(20, 20, 20, .76);
  color: #fff;
  font-size: 9px;
  letter-spacing: .06em;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.b-vid {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 50%;
}

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ------------------------------- 详情页 ------------------------------- */

.pd {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px 72px;
}

.pd-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 24px 0 14px;
}
.pd-back {
  flex: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: background .15s ease, border-color .15s ease;
}
.pd-back:hover { background: var(--line); border-color: var(--line); color: var(--text); }
.pd-h-main { min-width: 0; }
.pd-style {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
}
.pd-meta {
  margin: 7px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .03em;
  overflow: hidden;
}
.pd-meta span { max-width: 100%; }
.pd-meta span.pd-count {
  font-weight: 600;
  color: var(--text);
  font-size: 12.5px;
}
.pd-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 国家筛选：比顶部国家栏更轻，避免两条一样的导航打架 */
.pd-filter {
  display: flex;
  gap: 6px;
  padding: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-filter::-webkit-scrollbar { display: none; }
.pd-filter button {
  flex: 0 0 auto;
  padding: 4px 12px;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.pd-filter button:hover { color: var(--text); border-color: #d6d6d2; }
.pd-filter button.on {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.pd-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
@media (min-width: 1024px) { .pd-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pd-item {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  background: #f2f2ef;
  overflow: hidden;
  cursor: zoom-in;
}
.pd-item img, .pd-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-cc {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 6px;
  background: rgba(20, 20, 20, .58);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: .05em;
  border-radius: 2px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.pd-dur {
  position: absolute;
  right: 7px; bottom: 7px;
  padding: 2px 5px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 10px;
  border-radius: 2px;
}

.pd-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.pd-cta p { margin: 0; font-size: 13px; color: var(--muted); }
.pd-btns { display: flex; gap: 9px; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .04em;
}
.btn-wa:hover { background: #2c2c2a; }

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
}
.btn-share:hover { border-color: #d0d0cc; background: var(--surface); }

/* ------------------------------- 灯箱 ------------------------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, .96);
  touch-action: pan-y;
}
.lb[hidden] { display: none; }
.lb img {
  max-width: 96vw;
  max-height: 92vh;
  object-fit: contain;
  transition: transform .16s ease;
  will-change: transform;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: .75;
}
.lb-close { top: 8px; right: 8px; font-size: 27px; }
.lb-prev { left: 2px; top: 50%; transform: translateY(-50%); font-size: 27px; }
.lb-next { right: 2px; top: 50%; transform: translateY(-50%); font-size: 27px; }
.lb-count {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  letter-spacing: .1em;
}

/* ------------------------------- 其他页 ------------------------------- */

.page-t {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.01em;
}

.date-list { border-top: 1px solid var(--line); }
.date-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.date-row:hover { background: var(--surface); }
.date-d { font-size: 15px; letter-spacing: .04em; }
.date-n { margin-left: auto; font-size: 12px; color: var(--muted); }
.date-row svg { color: var(--muted); flex: none; }

.date-head { display: flex; align-items: baseline; gap: 16px; padding: 26px 0 16px; }
.date-head a { font-size: 12px; color: var(--muted); }
.date-head .page-t { margin: 0; }

.prose p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #333;
}

.stats {
  display: flex;
  gap: 34px;
  margin: 34px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat-v { font-size: 20px; }
.stat-l { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }

.contact-list { border-top: 1px solid var(--line); }
.c-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.c-row span { font-size: 12.5px; color: var(--muted); }
.contact-note { margin-top: 22px; font-size: 12.5px; color: var(--muted); }

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
}

.muted { color: var(--muted); }

/* ------------------------------- 页脚 ------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 42px 16px 96px;
}
.foot-in {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 7px;
}
.foot-brand {
  font-size: 15px;
  letter-spacing: .26em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.foot-meta, .foot-copy { font-size: 11.5px; color: var(--muted); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 5px 0 9px;
  font-size: 12px;
  color: var(--muted);
}
.foot-links a:hover { color: var(--text); }

.wa-float {
  position: fixed;
  right: 16px; bottom: 18px;
  z-index: 50;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
.wa-float:hover { background: #2c2c2a; }

/* ------------------------------- 移动端 ------------------------------- */

@media (max-width: 599px) {
  .nav-top { height: 48px; padding: 0 12px; }
  .brand { font-size: 14.5px; letter-spacing: .22em; }
  .ccbar { padding: 0 12px 7px; gap: 16px; }
  .cc { font-size: 12px; }
  .hero { padding: 20px 12px 12px; }
  .hero-t { font-size: 20px; }
  .picker { padding: 16px 12px 44px; }
  .picker .hero-t { font-size: 24px; }
  .wrap { padding: 0 12px 56px; }
  .grid { gap: 6px; }
  .pd { padding: 0 12px 56px; }
  .pd-head { padding: 16px 0 10px; gap: 12px; }
  .pd-style { font-size: 19px; }
  .pd-ccs { display: none; }
  .pd-cta { gap: 12px; }
  .foot { padding: 34px 12px 88px; }
}

/* ------------------------------- RTL ------------------------------- */

[dir="rtl"] .b-new { left: auto; right: 6px; }
[dir="rtl"] .b-cc { right: auto; left: 6px; }
[dir="rtl"] .b-vid { right: auto; left: 6px; }
[dir="rtl"] .pd-cc { left: auto; right: 6px; }
[dir="rtl"] .wa-float { right: auto; left: 16px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
