/* 號滿倉 - 原版顶部 Logo + 导航 */
:root {
  --header-h: 56px;
  --bg-dark: #1b1b1b;
  --bg-header: #ffffff;
  --bg-content: #ffffff;
  --text-dark: #212121;
  --text-body: #303033;
  --text-nav: rgba(0, 0, 0, 0.64);
  --text-nav-hover: rgba(0, 0, 0, 0.87);
  --border: #cccccc;
  --link-blue: #0000ff;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: "Open Sans", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-content);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ===== 顶部导航栏 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.header-inner {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 汉堡按钮 - 仅移动端 */
.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  flex-shrink: 0;
}

.menu-btn:hover { background: rgba(0, 0, 0, 0.06); }

.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* Logo + 品牌名 */
.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.site-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-brand-text {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: 18px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* 主导航 - 桌面端横向 */
.site-nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.site-nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.site-nav-list::-webkit-scrollbar { display: none; }

.site-nav-list a {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  font-size: 11pt;
  color: var(--text-nav);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.site-nav-list a:hover,
.site-nav-list a.active {
  color: var(--text-nav-hover);
}

/* 更多下拉 */
.nav-more {
  position: relative;
  flex-shrink: 0;
}

.nav-more-btn {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  font-size: 11pt;
  color: var(--text-nav);
  gap: 2px;
  white-space: nowrap;
}

.nav-more-btn:hover { color: var(--text-nav-hover); }

.nav-more-btn .arrow {
  font-size: 10px;
  margin-left: 2px;
}

.nav-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  z-index: 400;
}

.nav-more.open .nav-more-menu { display: block; }

.nav-more-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 11pt;
  color: var(--text-nav);
}

.nav-more-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-nav-hover);
}

/* 搜索图标 */
.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.search-btn:hover { background: rgba(0, 0, 0, 0.06); }

.search-btn svg {
  width: 20px;
  height: 20px;
}

/* 移动端导航抽屉 */
.nav-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 250;
}

.nav-drawer-overlay.show { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 260;
  transform: translateX(-100%);
  transition: transform var(--transition);
  overflow-y: auto;
  padding: 16px 0 24px;
}

.nav-drawer.open { transform: translateX(0); }

.nav-drawer-brand {
  padding: 8px 20px 16px;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: #c0bdb8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.nav-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 11pt;
  color: #bdbdbd;
}

.nav-drawer a:hover,
.nav-drawer a.active {
  background: #3a3938;
  color: #e1dfdb;
  font-weight: 600;
}

/* ===== 主内容 ===== */
.main {
  background: var(--bg-content);
}

/* Hero Banner */
.hero {
  padding: 0;
  background: var(--bg-content);
}

.hero img {
  width: 100%;
  height: auto;
}

/* ===== 平台区块：左图右文，宽1150 ===== */
.platform {
  scroll-margin-top: calc(var(--header-h) + 8px);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 1150px;
  margin: 32px auto;
  background: #ffffff;
  border-top: 1px solid #bdbdbd;
  border-bottom: 1px solid #bdbdbd;
}

.platform:first-of-type {
  margin-top: 40px;
}

.platform:last-of-type {
  margin-bottom: 40px;
}

.platform-image {
  flex: 0 0 50%;
  max-width: 50%;
  line-height: 0;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.platform-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}

.platform-content {
  flex: 1;
  min-width: 0;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.platform-title {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
}

.platform-desc {
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--text-dark);
  line-height: 1.75;
  margin-bottom: 14px;
}

.platform-hint {
  font-size: clamp(13px, 1.8vw, 16px);
  color: var(--text-dark);
  margin-bottom: 6px;
}

.platform-link {
  display: inline-block;
  font-size: clamp(16px, 3.2vw, 24px);
  font-weight: 600;
  color: var(--link-blue);
  text-decoration: underline;
  padding: 4px 0;
  min-height: 44px;
  line-height: 1.5;
}

.platform-link:active { opacity: 0.7; }

/* ===== 页脚 ===== */
.footer {
  padding: 40px 48px 60px;
  text-align: center;
  background: var(--bg-content);
}

.footer-text {
  font-family: "Playfair Display", serif;
  font-size: 9pt;
  color: var(--text-dark);
}

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .menu-btn { display: flex; }

  .site-nav { display: none; }

  .site-brand {
    flex: 1;
    justify-content: center;
  }

  .header-inner {
    gap: 8px;
  }

  .search-btn {
    margin-left: 0;
    order: 3;
  }

  .menu-btn { order: 1; }
  .site-brand { order: 2; }

  .platform {
    flex-direction: column;
    max-width: 100%;
    margin: 20px 0;
    border-top: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
  }

  .platform:first-of-type {
    margin-top: 24px;
  }

  .platform:last-of-type {
    margin-bottom: 24px;
  }

  .platform-image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .platform-image img {
    min-height: 200px;
    max-height: 320px;
  }

  .platform-content {
    padding: 28px 20px 36px;
  }

  .footer {
    padding: 32px 20px 48px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  .back-top {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .site-brand-text { font-size: 16px; }
  .site-brand img { width: 32px; height: 32px; }
  .platform-content { padding: 24px 16px 32px; }
  .platform-image img { min-height: 180px; max-height: 260px; }
}

@media (min-width: 1025px) {
  .nav-drawer,
  .nav-drawer-overlay { display: none !important; }

  .site-header { padding: 0 24px; }

  .site-brand { margin-right: 4px; }

  .search-btn { margin-left: auto; }

  /* 桌面端隐藏放不进导航的项，放入"更多" */
  .site-nav-list .nav-item-extra { display: none; }
}

@media (max-width: 1024px) {
  .nav-more { display: none; }
}
