/* ==========================================================================
   Microsoft 中国官网静态复刻 — 样式表
   结构：设计变量 → 基础 → 按钮 → 顶部提示条 → 头部 → Hero → 快捷入口
         → 卡片 → Edge 横幅 → 商业版 → 案例 → 社交 → 页脚 → 响应式
   断点：1180 / 1084 / 860 / 640；640 以下启用移动端专属 Hero 构图。
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* 颜色、字体和两条栅格边距都按线上页面采样。 */
:root {
  --blue: #0078d4;
  --blue-dark: #106ebe;
  --ink: #0e1726;
  --body: #17253d;
  --header-ink: #262626;
  --gray: #616161;
  --line: #e7e7e7;
  --line-dark: #d1d1d1;
  --footer-bg: #f2f2f2;
  --announcement: #882a8b;
  --business-bg: #dceef8;
  --gutter: 4%;
  --header-gutter: 5%;
  --font: "Segoe UI Variable Text", "Segoe UI", segoeui, "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  padding: 10px 18px; background: #fff; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 主内容使用 4% 边距，顶栏和页脚使用更宽的 5%。 */
.container { width: 92%; margin-inline: auto; }

/* ---------- Buttons ---------- */
/* 所有 CTA 共用：8×16 内边距、8px 圆角、15/22 半粗体。 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f2f2f2; }

/* ---------- Cookie bar ---------- */
/* 固定最小高度，保证 Header / Hero 的纵向位置与线上一致。 */
.cookie-bar {
  background: var(--footer-bg);
  min-height: 72px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 120;
}
.cookie-inner {
  width: 100%;
  padding: 10px var(--header-gutter);
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-icon {
  flex: none;
  margin-left: 0;
  display: flex;
  color: #000;
}
.cookie-icon svg { width: 32px; height: 32px; }
.cookie-text {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 16px;
  color: #000;
}
.cookie-text a { color: #0067b8; text-decoration: underline; }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.cookie-btn {
  height: 36px;
  min-width: 150px;
  padding: 0 20px;
  background: #ebebeb;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  color: #000;
  cursor: pointer;
}
.cookie-btn:hover { background: #dedede; }
.cookie-manage { min-width: 150px; padding: 0 20px; }

/* ---------- Bing promo ---------- */
/* 必应壁纸推广条；手机上会整体隐藏，避免首屏被挤压。 */
.promo-bar {
  background: #fff;
  min-height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 110;
}
.promo-inner {
  width: 100%;
  padding: 12px var(--header-gutter);
  display: flex;
  align-items: center;
}
.promo-logo { width: 46px; height: 31px; object-fit: cover; border-radius: 3px; flex: none; }
.promo-copy { margin-left: 18px; display: flex; flex-direction: column; }
.promo-copy strong { font-size: 16px; line-height: 22px; font-weight: 600; color: #000; }
.promo-copy span { font-size: 14px; line-height: 20px; color: #444; }
.promo-actions { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.promo-dismiss {
  border: 0; background: transparent; padding: 8px 0;
  font-size: 14px; color: #000; cursor: pointer;
}
.promo-dismiss:hover { text-decoration: underline; }
.promo-cta { min-width: 96px; }

/* ---------- Header ---------- */
/* 吸顶白色 UHF 顶栏；Logo 额外留 14px 偏移以对齐线上视觉。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.header-inner {
  height: 54px;
  padding: 0 var(--header-gutter);
  display: flex;
  align-items: center;
  position: relative;
}
.ms-logo { display: flex; align-items: center; flex: none; margin-left: 14px; }
.ms-logo img { display: block; width: 108px; height: 23px; }

.primary-nav { display: flex; align-items: stretch; gap: 5px; margin-left: 24px; height: 54px; }
.primary-nav a {
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 13px;
  line-height: 54px;
  color: var(--header-ink);
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.header-utility { margin-left: auto; display: flex; align-items: center; height: 54px; }
.all-ms { position: relative; height: 54px; }
.all-ms summary {
  list-style: none;
  height: 54px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--header-ink);
  cursor: pointer;
  white-space: nowrap;
}
.all-ms summary::-webkit-details-marker { display: none; }
.all-ms summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.all-ms .chev { transition: transform .15s ease; }
.all-ms[open] .chev { transform: rotate(180deg); }
.all-ms[open] summary { background: #f2f2f2; }
.all-ms-panel {
  position: absolute;
  top: 54px;
  right: 0;
  width: 460px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,.14);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}
.all-ms-panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  font-size: 14px;
  color: var(--header-ink);
  text-decoration: none;
  border-radius: 4px;
}
.all-ms-panel a:hover { background: #f2f2f2; text-decoration: underline; }

.util-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 54px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--header-ink);
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.util-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.search-toggle { margin-left: 2px; }
.cart { padding: 0 9px; }
.login-link {
  padding: 0 7px;
  font-size: 13px;
  color: var(--header-ink);
  text-decoration: none;
  white-space: nowrap;
}
.login-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.avatar {
  width: 36px; height: 36px;
  margin-left: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
  color: var(--header-ink);
  text-decoration: none;
}
.avatar:hover { background: #f2f2f2; }
.mobile-toggle { display: none; }

/* Search */
/* 搜索面板绝对定位在 Header 下沿，用阴影与页面内容分层。 */
.search-panel {
  position: absolute;
  top: 54px; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 14px 24px rgba(0,0,0,.12);
  padding: 24px var(--header-gutter) 26px;
  z-index: 99;
}
.search-form {
  max-width: 1020px;
  margin: 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px 0 16px;
  border: 1px solid #8a8886;
  border-radius: 4px;
}
.search-form > svg { color: var(--gray); flex: none; }
.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
}
.search-form .btn { min-height: 34px; padding: 4px 20px; font-size: 14px; }
.search-close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer; color: var(--gray);
}
.search-close:hover { background: #f2f2f2; }
.search-suggest {
  max-width: 1020px;
  margin: 12px auto 0;
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.search-suggest a { color: #0067b8; text-decoration: none; }
.search-suggest a:hover { text-decoration: underline; }

/* Mobile nav */
/* 移动端全屏抽屉；顶部偏移与 Header 高度一致。 */
.mobile-nav {
  position: fixed;
  top: 54px; left: 0; right: 0; bottom: 0;
  z-index: 98;
  background: #fff;
  padding: 8px var(--header-gutter) 40px;
  overflow-y: auto;
}
.mobile-nav > a {
  display: flex; align-items: center;
  min-height: 54px;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-secondary { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 24px; }
.mobile-nav-secondary a { font-size: 14px; color: var(--gray); text-decoration: none; }

/* ---------- Announcement ---------- */
/* 双 11 紫色公告条；桌面单行居中，手机端左对齐并允许换行。 */
.announcement {
  min-height: 40px;
  background: var(--announcement);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 56px;
  text-align: center;
}
.announcement p { margin: 0; font-size: 16px; line-height: 24px; color: #f4fafd; }
.announcement a { color: #fff; font-weight: 600; text-decoration: none; margin-left: 10px; white-space: nowrap; }
.announcement a:hover { text-decoration: underline; }
.announcement-close {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; background: transparent; color: #fff; cursor: pointer;
}
.announcement-close:hover { background: rgba(255,255,255,.15); border-radius: 4px; }

/* ---------- Hero ---------- */
/* 区块总高 660px＝580px 主图 + 80px 控制条；轨道用 transform 平移。 */
.hero { background: #fff; }
.hero-viewport { overflow: hidden; }
.hero-track {
  display: flex;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  height: 580px;
  position: relative;
  overflow: hidden;
  background: #050608;
}
.hero-slide.theme-day { background: #e7e2f6; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
/* picture 只承载响应式切换，本身不参与布局。 */
.hero-picture { display: contents; }
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 640px; color: #f4fafd; }
.theme-day .hero-copy { color: var(--ink); }
.hero-copy h1, .hero-copy h2 {
  margin: 8px 0 0;
  max-width: 620px;
  font-size: 40px;
  line-height: 48px;
  font-weight: 500;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.hero-copy p {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 24px;
}
.hero-cta { margin-top: 32px; min-height: 48px; padding: 12px 24px; }
/* 活动标签共用；颜色对应当前双 11 活动的四种语义。 */
.tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 16px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}
.tag-hero { background: var(--announcement); color: #fff; }
.tag-purple { background: #ecdeed; color: #5f166c; }
.tag-green { background: #7cc400; color: #000; }
.tag-yellow { background: #ffb900; color: #000; }

/* 控制条：左右圆形箭头 + 居中圆点/暂停键。 */
.hero-controls { height: 80px; background: #fff; }
.hero-controls-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.round-arrow {
  width: 48px; height: 48px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: #fff;
  color: var(--gray);
  cursor: pointer;
  transition: background-color .15s ease;
}
.round-arrow:hover { background: #f2f2f2; }
.round-arrow-next { color: var(--ink); border-color: var(--ink); }
.hero-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot {
  width: 28px; height: 2px;
  padding: 0; border: 0;
  background: var(--line-dark);
  cursor: pointer;
  transition: background-color .2s ease;
}
.hero-dot.is-active { background: var(--ink); }
.hero-pause {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.hero-pause:hover { background: #f2f2f2; }
.hero-pause .icon-play { display: none; }
.hero-pause.is-paused .icon-pause { display: none; }
.hero-pause.is-paused .icon-play { display: block; }

/* ---------- Quick links ---------- */
/* 6 个图标入口，桌面固定 176px 高，平板/手机改为自动换行。 */
.quicklinks { height: 176px; padding-top: 32px; }
.quicklinks-inner {
  width: 92%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 44px;
}
.quicklink {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.quicklink:hover span { text-decoration: underline; text-underline-offset: 3px; }
.quicklink img { width: 32px; height: 32px; object-fit: contain; }

/* ---------- Cards ---------- */
/* 卡片：9px 内衬 + 24px 圆角 + 16px 圆角图片；按钮用 margin-top:auto 压底。 */
.section-featured { padding: 48px 0; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 436px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 16px 16px;
}
.card .tag { margin-bottom: 8px; }
.card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink);
}
.card p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}
.card-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.text-links a {
  color: var(--blue);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.text-links a:hover { color: var(--blue-dark); }

/* ---------- Edge banner ---------- */
/* 左文案、右 48.5% 图片；CTA 绝对定位在左下角，与线上一致。 */
.section-banner { padding: 48px 0; }
.banner-card {
  min-height: 476px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 48.5%;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.banner-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 64px 16px;
}
.banner-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--ink);
}
.banner-copy p {
  margin: 16px 0 0;
  max-width: 570px;
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}
.banner-cta { position: absolute; left: 16px; bottom: 16px; }
.banner-media { min-height: 458px; }
.banner-media img {
  display: block;
  width: 100%;
  height: 458px;
  object-fit: cover;
  border-radius: 16px;
}

/* ---------- Business ---------- */
/* 浅蓝商业版区块，标题 24/32，卡片略高于普通卡片（460px）。 */
.business { background: var(--business-bg); padding: 48px 0; }
.section-title {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--ink);
}
.card-business { min-height: 460px; }

/* ---------- Stories ---------- */
/* 一次只显示一张 474px 高的宽卡：左文案、右 48.5% 图片。 */
.stories { padding: 53px 0 60px; }
.story-viewport { overflow: hidden; }
.story-track {
  display: flex;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.story-slide { flex: 0 0 100%; min-width: 0; }
.story-card {
  height: 474px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 48.5%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}
.story-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 62px 16px;
}
.story-text h2 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: var(--ink);
}
.story-text p {
  margin: 0;
  max-width: 500px;
  font-size: 16px;
  line-height: 24px;
  color: var(--body);
}
.story-cta { position: absolute; left: 16px; bottom: 16px; }
.story-media img {
  display: block;
  width: 100%;
  height: 456px;
  object-fit: cover;
  border-radius: 16px;
}
.story-controls {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.story-arrows { display: flex; align-items: center; gap: 16px; }
.story-pause { width: 32px; height: 32px; }

/* ---------- Social ---------- */
/* 关注 Microsoft：标题 + 两个图标的窄条。 */
.social {
  min-height: 80px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.social h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--body);
}
.social-links { display: flex; align-items: center; gap: 34px; }
.social-links a { display: flex; }
.social-links img { width: 22px; height: 22px; object-fit: contain; }
.social-links a:hover { opacity: .75; }

/* ---------- Footer ---------- */
/* 六栏页脚使用 1.12 / 1.06 / 1 的重复比例；链接 11/16，列间距 0。 */
.site-footer {
  margin-top: 48px;
  padding: 36px var(--header-gutter) 18px;
  background: var(--footer-bg);
  color: var(--gray);
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.12fr 1.06fr 1fr 1.12fr 1.06fr 1fr;
  gap: 0;
}
.footer-col h2 {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--gray);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin: 0 0 16px; line-height: 16px; }
.footer-col li:last-child { margin-bottom: 0; }
.footer-col a {
  display: inline-block;
  font-size: 11px;
  line-height: 16px;
  color: var(--gray);
  text-decoration: none;
}
.footer-col a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 11px;
  line-height: 25px;
}
.footer-left { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-left a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  text-decoration: none;
}
.footer-left a:hover { text-decoration: underline; }
.footer-legal {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.footer-legal a { color: var(--gray); text-decoration: none; line-height: 25px; }
.footer-legal a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
/* 1180px：导航和 Hero 标题先小幅收紧，避免桌面窄窗口拥挤。 */
@media (max-width: 1180px) {
  .primary-nav { margin-left: 22px; }
  .primary-nav a { padding: 0 6px; font-size: 12px; }
  .quicklinks-inner { gap: 30px; }
  .hero-copy h1, .hero-copy h2 { font-size: 38px; line-height: 46px; }
}

/* 1084px：隐藏主导航改用汉堡菜单；卡片变 2 列，横幅/案例同步降高。 */
@media (max-width: 1084px) {
  .primary-nav { display: none; }
  .ms-logo { margin-left: 0; }
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    margin-left: 4px;
    padding: 0 10px;
    border: 0; background: transparent; cursor: pointer;
  }
  .mobile-toggle span { display: block; height: 1.5px; width: 22px; background: var(--header-ink); }
  .header-utility .util-link span { display: none; }
  .header-utility .util-link { padding: 0 9px; }
  .login-link { display: none; }
  .hero-slide { height: 540px; }
  .quicklinks { height: auto; padding: 28px 0 34px; }
  .quicklinks-inner { flex-wrap: wrap; gap: 26px 42px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card-business { min-height: 420px; }
  .banner-card { min-height: 440px; grid-template-columns: 1fr 48%; }
  .banner-media, .banner-media img { min-height: 424px; height: 424px; }
  .story-card { height: 440px; }
  .story-media img { height: 422px; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
  .footer-col li { margin-bottom: 12px; }
  .footer-base { margin-top: 36px; }
}

/* 860px：Cookie 换行；Edge 横幅和案例改为上下堆叠，图片按 16:9 自适应。 */
@media (max-width: 860px) {
  .cookie-inner { flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
  .cookie-icon { margin-left: 0; margin-top: 2px; }
  .cookie-text { flex-basis: calc(100% - 40px); }
  .cookie-actions { width: 100%; justify-content: flex-end; gap: 10px; }
  .cookie-btn { min-width: 0; flex: 1; max-width: 160px; padding: 0 12px; }
  .promo-copy span { display: none; }
  .promo-actions { gap: 12px; }
  .promo-inner { padding-left: var(--header-gutter); }

  .hero-slide { height: 500px; }
  .hero-copy { max-width: 560px; }
  .hero-copy h1, .hero-copy h2 { font-size: 34px; line-height: 42px; }
  .hero-bg { object-position: 62% center; }
  .theme-day .hero-bg { object-position: 68% center; }

  .banner-card { grid-template-columns: 1fr; min-height: 0; }
  .banner-copy { padding: 24px 16px 16px; min-height: 250px; }
  .banner-cta { position: static; margin-top: 28px; }
  .banner-media { min-height: 0; }
  .banner-media img { height: auto; aspect-ratio: 16 / 9; }
  .story-card { height: auto; grid-template-columns: 1fr; }
  .story-copy { min-height: 300px; padding: 28px 20px 20px; }
  .story-cta { position: static; margin-top: 28px; }
  .story-media { grid-row: 1; padding: 0 0 8px; }
  .story-media img { height: auto; aspect-ratio: 16 / 9; }
  .story-text h2 { font-size: 24px; line-height: 32px; }
  .card, .card-business { min-height: 400px; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}

/* 640px：手机布局——隐藏推广条，重排 Header，Hero 改为图在上、文案在下。 */
@media (max-width: 640px) {
  :root { --header-gutter: 5.5%; }
  .promo-bar { display: none; }
  .all-ms { display: none; }
  .cookie-icon { display: none; }
  .cookie-text { flex-basis: 100%; font-size: 13px; line-height: 19px; }
  .cookie-actions { flex-direction: column; width: 100%; gap: 8px; margin-top: 2px; }
  .cookie-btn { width: 100%; max-width: none; min-width: 0; height: 44px; flex: none; font-size: 14px; }
  .promo-copy strong { font-size: 13px; }
  .promo-dismiss { display: none; }
  .promo-cta { min-width: 84px; height: 36px; min-height: 36px; padding: 6px 12px; font-size: 13px; }
  .promo-logo { width: 40px; height: 27px; }
  .header-inner { position: relative; height: 50px; justify-content: flex-start; }
  /* 让工具区子项直接参与 header 的 flex 排序：菜单/搜索在左，Logo 居中，购物车/头像在右。 */
  .header-utility { display: contents; }
  .mobile-toggle { order: 1; margin-left: 0; margin-right: 0; }
  .header-utility .search-toggle { order: 2; }
  .ms-logo { order: 3; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  .ms-logo img { width: 96px; height: 20px; }
  .header-utility .cart { display: flex; order: 4; margin-left: auto; }
  .avatar { order: 5; width: 32px; height: 32px; font-size: 12px; }
  .site-header .search-panel { top: 50px; padding: 16px 5.5%; }
  .mobile-nav { top: 50px; }
  .announcement { padding: 8px 44px; justify-content: flex-start; text-align: left; }
  .announcement p { font-size: 12px; line-height: 18px; }
  .announcement a { margin-left: 4px; }
  .announcement-close { right: 8px; }
  /* 手机 Hero：上 440px 图片、下 300px 文案；使用独立的竖版构图。 */
  .hero-slide { height: 740px; background: #070a10; }
  .hero-slide.theme-day { background: #e7e2f6; }
  .hero-bg { top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 440px; object-fit: cover; object-position: center top; }
  .hero-content { top: 440px; align-items: flex-start; padding-top: 18px; padding-bottom: 0; z-index: 2; }
  .hero-slide::after { display: none; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1, .hero-copy h2 { font-size: 30px; line-height: 38px; }
  .hero-copy p { font-size: 14px; line-height: 20px; margin-top: 10px; }
  .hero-cta { margin-top: 20px; min-height: 42px; padding: 9px 18px; }
  .hero-controls, .hero-controls-inner { height: 68px; }
  .round-arrow { width: 42px; height: 42px; }
  .hero-center { gap: 14px; }
  .hero-dot { width: 22px; }
  .quicklinks-inner { gap: 24px 26px; justify-content: space-between; }
  .quicklink { width: 30%; font-size: 14px; line-height: 20px; }
  .section-featured, .section-banner, .business { padding: 32px 0; }
  .card-grid { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 0; border-radius: 20px; }
  .card-body { padding: 20px 14px 14px; }
  .card-actions { padding-top: 20px; }
  .section-title { font-size: 22px; line-height: 30px; margin-bottom: 14px; }
  .banner-copy { min-height: 0; padding: 20px 12px 14px; }
  .banner-copy h2 { font-size: 22px; }
  .banner-copy p { font-size: 14px; line-height: 20px; }
  .banner-media { padding: 0 4px 4px; }
  .banner-cta { margin-top: 22px; }
  .stories { padding: 32px 0 40px; }
  .story-copy { min-height: 0; padding: 22px 14px 16px; }
  .story-text h2 { font-size: 22px; line-height: 30px; margin-bottom: 10px; }
  .story-text p { font-size: 14px; line-height: 20px; }
  .story-cta { margin-top: 22px; }
  .story-controls { margin-top: 20px; }
  .social { min-height: 72px; }
  .site-footer { margin-top: 32px; padding: 28px 5.5% 16px; }
  .footer-columns { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .footer-base { margin-top: 28px; gap: 12px; }
  .footer-left { gap: 12px 16px; }
  .footer-legal { margin-left: 0; gap: 4px 14px; }
}

/* 系统开启“减少动态效果”时，几乎关闭全部过渡与滚动动画。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
