/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFFFFF;
  --black: #131314;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-border: #E5E5E5;
  --gray-text: #666;
  --font-main: 'Noto Sans', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  --nav-h: 72px;
  /* 电脑端logo：在这里调 */
  --logo-w-desktop: 120px;
  --logo-h-desktop: 30px;
  --logo-left-desktop: 0px;
  /* 移动端logo：在这里调 */
  --logo-w-mobile: 80px;
  --logo-h-mobile: 22px;
  --logo-left-mobile: 0px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--black); font-family: var(--font-main); min-height: 100vh; overflow-x: hidden; }

/* ============================================================ HEADER */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--bg); height: var(--nav-h); border-bottom: 1px solid var(--gray-border); display: flex; align-items: center; }
.navbar { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; }

/* Logo */
.logo { display: inline-flex; align-items: center; text-decoration: none; user-select: none; }
.logo-img { width: var(--logo-w-desktop); height: var(--logo-h-desktop); object-fit: contain; display: block; position: relative; left: var(--logo-left-desktop); }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer; font-family: var(--font-main); font-size: 14px; font-weight: 600; color: var(--black); padding: 6px 10px; border-radius: 6px; transition: background .15s; letter-spacing: .05em; }
.lang-btn:hover { background: rgba(0,0,0,.06); }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: var(--white); border: 1px solid var(--gray-border); border-radius: 10px; padding: 6px 0; list-style: none; min-width: 130px; box-shadow: 0 8px 24px rgba(0,0,0,.10); z-index: 200; }
.lang-dropdown.open { display: block; }
.lang-dropdown li { padding: 9px 16px; font-size: 13px; cursor: pointer; transition: background .12s; font-weight: 500; }
.lang-dropdown li:hover, .lang-dropdown li.active { background: #F5F5F5; }
.lang-dropdown li.active { font-weight: 700; }

/* ============================================================ MAIN */
.main { padding-top: var(--nav-h); }

/* Page hero */
.page-hero { text-align: center; padding: 56px 48px 36px; max-width: 820px; margin: 0 auto; }
.page-title { font-size: clamp(24px, 3vw, 42px); font-weight: 900; line-height: 1.2; color: var(--black); margin-bottom: 16px; letter-spacing: -.02em; }
.page-subtitle { font-size: clamp(15px, 1.2vw, 19px); color: var(--gray-text); line-height: 1.7; }

/* Download grid */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; max-width: 1440px; margin: 0 auto; padding: 0 48px 80px; }
.download-col:first-child { border-right: 1px solid var(--gray-border); padding-right: 60px; }
.download-col:last-child { padding-left: 60px; }

.col-title { font-size: clamp(17px, 1.5vw, 22px); font-weight: 700; color: var(--black); text-align: center; margin-bottom: 32px; }

.product-img-wrap { width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; margin-bottom: 40px; overflow: hidden; }
.product-img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Download buttons */
.dl-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.dl-btn {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--black);
  background: var(--gray-light); border: 1.5px solid var(--gray-border);
  border-radius: 14px; padding: 16px 22px;
  transition: background .15s, border-color .15s, transform .15s;
  min-width: 150px;
}
.dl-btn:hover { background: #EBEBEB; border-color: #CCC; transform: translateY(-2px); }

.dl-icon-wrap { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dl-icon-wrap svg { width: 48px; height: 48px; }

.dl-text { display: flex; flex-direction: column; gap: 2px; }
.dl-to { font-size: 11px; color: var(--gray-text); font-weight: 500; line-height: 1; }
.dl-platform { font-size: 18px; font-weight: 800; color: var(--black); line-height: 1.2; font-family: 'Barlow', var(--font-main); }

.download-col--desktop-only .dl-btn { flex: 1; min-width: 130px; }

/* ============================================================ MOBILE */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .navbar { padding: 0 20px; }
  .logo-img { width: var(--logo-w-mobile); height: var(--logo-h-mobile); left: var(--logo-left-mobile); }
  .page-hero { padding: 32px 24px 24px; }
  .download-grid { grid-template-columns: 1fr; padding: 0 0 60px; }
  .download-col:first-child { border-right: none; padding-right: 0; }
  .download-col:last-child { padding-left: 0; }
  /* 移动端隐藏桌面版区块 */
  /* .download-col--desktop-only { display: none; } */
  .col-title { font-size: 18px; padding: 0 24px; margin-bottom: 24px; }
  .product-img-wrap { height: 300px; padding: 0 16px; margin-bottom: 28px; }
  .dl-buttons { padding: 0 24px; gap: 12px; display: grid; grid-template-columns: 1fr 1fr; }
  .dl-btn { width: 100%; padding: 14px 16px; gap: 12px; justify-content: flex-start; }
  .dl-platform { font-size: 16px; }
}

@media (max-width: 400px) {
  .dl-buttons { flex-direction: column; align-items: stretch; }
  .dl-btn { min-width: 0; justify-content: center; }
}
:root {
  /* 电脑端 logo */
  --logo-w-desktop: 200px;   /* 宽度 */
  --logo-h-desktop: 300px;    /* 高度 */
  --logo-left-desktop: -0px;  /* 左右位置，正数右移，负数左移 */

  /* 移动端 logo */
  --logo-w-mobile: 200px;     /* 宽度 */
  --logo-h-mobile: 200px;     /* 高度 */
  --logo-left-mobile: -30px;   /* 左右位置，正数右移，负数左移 */
}
@media (max-width: 768px) {
  .download-col--desktop-only {
    border-top: 1px solid #E5E5E5;
    margin-top: 20px;
    padding-top: 40px;
  }
}
@media (max-width: 768px) {
  .dl-btn { justify-content: center; }
}