/* 欧界云「最新活动」独立页样式（/activity.html）
   视觉沿用官网的那一套：品牌蓝 #2f6bff、卡片圆角、价格橙红 #ef4b2a；
   类名统一 ac- 前缀，避免和主题里的样式打架。
   结构参照阿里云的活动页：hero → 吸顶栏目条 → 分栏商品卡 → 活动款横幅 → 活动规则。 */

.ac-page {
  --ac-brand: #2f6bff;
  --ac-brand-deep: #1f52d8;
  --ac-ink: #1b2430;
  --ac-body: #55607a;
  --ac-muted: #97a0b3;
  --ac-line: #e8ecf5;
  --ac-bg: #f6f9ff;
  --ac-price: #ef4b2a;
  --ac-grad: linear-gradient(135deg, #2f6bff 0%, #4b8dff 100%);
  --ac-grad-hero: linear-gradient(135deg, #10224d 0%, #1b3a86 48%, #2f6bff 100%);
  background: #fff;
  color: var(--ac-body);
  /* 站里全局字体是 --fonts: code, Microsoft YaHei, …（code = Montserrat 网络字体），
     结果是**英文数字走 Montserrat、中文走微软雅黑**：Montserrat 字面更宽、笔画更细，
     12~13px 的小字里和中文凑在一行就显得「不板正」。
     活动页正文统一成中文优先的一套字，笔画粗细和字面一致；
     只有价格里那几个大数字继续用 code（保留原来的数字造型）。 */
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  /* 官网顶栏是 fixed、高 60px，页面内容从 y=0 起排，这里先让出顶栏的位置 */
  padding-top: 60px;
}
/* 手机端（≤767px）例外：导航样式表 navbar.css 在同一个断点里已经给 body 让出了 60px
   （body{padding-top:60px}，为了躲开 fixed 的 60px 顶栏），这里再补一层就会在
   顶栏和蓝色栏目条之间多出一条 60px 的白带，所以手机上撤掉这一层。 */
@media (max-width: 767px) {
  .ac-page { padding-top: 0; }
}
.ac-page *, .ac-page *::before, .ac-page *::after { box-sizing: border-box; }
.ac-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
html { scroll-behavior: smooth; }

.ac-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 26px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14.5px; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.ac-btn-primary { background: var(--ac-grad); color: #fff; font-weight: 600; }
.ac-btn-primary:hover { background: linear-gradient(135deg, #2159e8 0%, #3d7dff 100%); }
.ac-btn-ghost { background: #fff; border-color: #dbe6ff; color: var(--ac-brand); }
.ac-btn-ghost:hover { border-color: #b9ccff; background: #f7faff; }
.ac-btn-orange { background: #ff6a00; color: #fff; font-weight: 600; }
.ac-btn-orange:hover { background: #f05f00; }
.ac-btn-buy {
  width: 100%; height: 38px; margin-top: 14px; border-radius: 8px;
  background: var(--ac-grad); color: #fff; font-weight: 600; font-size: 14px;
}
.ac-btn-buy:hover { background: linear-gradient(135deg, #2159e8 0%, #3d7dff 100%); }
.ac-btn-sm { height: 30px; padding: 0 14px; border-radius: 6px; background: var(--ac-grad); color: #fff; font-size: 12.5px; }
.ac-btn-sm:hover { background: linear-gradient(135deg, #2159e8 0%, #3d7dff 100%); }

/* ---------------- hero ----------------
   底色跟着阿里云那页走：浅色（近乎白）+ 右上角一点淡蓝光晕，深色字；不要整块深蓝 */
.ac-hero {
  position: relative; overflow: hidden; color: var(--ac-body);
  background-color: #fff;
  background-image: radial-gradient(760px 380px at 88% 6%, rgba(47, 107, 255, .13), rgba(255, 255, 255, 0) 72%),
                    linear-gradient(180deg, #f7faff 0%, #ffffff 68%);
}
.ac-hero::after {
  content: ''; position: absolute; right: -120px; top: -150px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .1), rgba(255, 255, 255, 0) 70%);
}
.ac-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 468px; gap: 46px; align-items: center;
  padding: 54px 20px 46px;
}
.ac-hero-badge {
  display: inline-flex; align-items: center; height: 28px; padding: 0 13px; border-radius: 14px;
  background: #eef3ff; border: 1px solid #dbe6ff;
  font-size: 12.5px; color: var(--ac-brand);
}
.ac-hero h1 { margin: 16px 0 0; font-size: 40px; line-height: 1.22; font-weight: 700; letter-spacing: .4px; color: var(--ac-ink); }
.ac-hero-sub { margin: 14px 0 0; font-size: 15px; line-height: 1.9; color: var(--ac-body); }
.ac-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ac-hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; font-size: 13px; color: var(--ac-body); }
.ac-hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.ac-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ac-brand); display: inline-block; }

/* hero 右侧：主推价目卡 */
.ac-hero-card {
  background: #fff; color: var(--ac-ink); border-radius: 16px; padding: 18px 20px 14px;
  border: 1px solid #e3ebff; box-shadow: 0 18px 40px rgba(24, 52, 102, .1);
}
.ac-hero-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 0 12px; border-bottom: 1px solid var(--ac-line); }
.ac-hero-card-head b { font-size: 15px; color: var(--ac-ink); }
.ac-hero-card-head span { font-size: 12px; color: var(--ac-muted); }
.ac-hero-list { list-style: none; margin: 0; padding: 0; }
.ac-hero-list > li { padding: 13px 0; border-bottom: 1px dashed #eef2fa; }
.ac-hero-list > li:last-child { border-bottom: 0; }
.ac-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ac-hero-row-copy { min-width: 0; }
.ac-hero-row-copy h4 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ac-ink); }
/* 主推卡里的规格简述：每一项一个 <span>，项内不断行、只在项之间换行；
   分隔点「·」挂在后一项前面，换行时不会孤零零吊在行尾 */
.ac-hero-row-brief { margin: 5px 0 0; font-size: 12px; line-height: 1.6; color: var(--ac-muted); }
.ac-hero-row-brief span { display: inline-block; white-space: nowrap; }
.ac-hero-row-brief span + span::before { content: '·'; margin: 0 7px 0 3px; color: #c8d1e2; }
.ac-hero-row-side { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.ac-hero-card-more { display: block; margin: 4px 0 4px; font-size: 13px; color: var(--ac-brand); text-align: center; text-decoration: none; }
.ac-hero-card-more:hover { color: var(--ac-brand-deep); }

/* ---------------- 吸顶栏目条 ----------------
   阿里云那条也是**蓝底白字**的一横条，所以蓝色留在这里做点缀，而不是铺在整块背景上。
   颜色用和按钮同一条渐变（--ac-grad），比原先那条深海军蓝淡、也和页面其它蓝块一致 */
.ac-quick { position: sticky; top: 60px; z-index: 19; background: var(--ac-grad); }
.ac-quick.stuck { box-shadow: 0 8px 20px rgba(24, 52, 102, .18); }
.ac-quick-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ac-quick-inner::-webkit-scrollbar { display: none; }
.ac-quick a {
  flex: 0 0 auto; padding: 15px 20px 13px; font-size: 14.5px; color: rgba(255, 255, 255, .82);
  text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap;
}
.ac-quick a:hover { color: #fff; }
.ac-quick a.on { color: #fff; font-weight: 600; border-bottom-color: #fff; }

/* ---------------- 栏目 ---------------- */
.ac-sec { padding: 52px 0; background: #fff; scroll-margin-top: 128px; }
.ac-sec:nth-of-type(even) { background: var(--ac-bg); }
.ac-sec-head { text-align: center; max-width: 860px; margin: 0 auto 30px; }
.ac-sec-head h2 { margin: 0; font-size: 26px; font-weight: 700; color: var(--ac-ink); letter-spacing: .3px; }
.ac-sec-sub { margin: 12px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ac-body); }
.ac-rules-link { color: var(--ac-brand); text-decoration: none; border-bottom: 1px solid rgba(47, 107, 255, .35); margin-left: 4px; }
.ac-rules-link:hover { color: var(--ac-brand-deep); border-bottom-color: var(--ac-brand-deep); }

.ac-group {
  background: linear-gradient(180deg, #f5f8ff 0%, #eef4ff 100%);
  border: 1px solid #e3ebff; border-radius: 16px; padding: 20px 22px 24px; margin-bottom: 20px;
}
.ac-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.ac-group-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ac-ink); }
.ac-group-head p { margin: 0; font-size: 12.5px; color: var(--ac-muted); }
.ac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ac-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ac-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ac-line);
  border-radius: 12px; padding: 18px 18px 16px; box-shadow: 0 2px 10px rgba(24, 52, 102, .04);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.ac-card:hover { border-color: #cfdefb; box-shadow: 0 12px 28px rgba(24, 52, 102, .12); transform: translateY(-2px); }
.ac-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ac-card-top h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ac-ink); line-height: 1.5; }
.ac-badge {
  flex: 0 0 auto; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; line-height: 1.7;
  color: #c2410c; background: #fff4ec; border: 1px solid #ffd9c0;
}
.ac-badge-hot { color: #f0662b; background: #fff1ec; border-color: #ffd9c6; }
.ac-card-desc { margin: 8px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ac-muted); }
.ac-specs { list-style: none; margin: 12px 0 14px; padding: 0; flex: 1 1 auto; }
.ac-specs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #eef2fa; }
.ac-specs li:last-child { border-bottom: 0; }
.ac-specs span { font-size: 12.5px; color: var(--ac-muted); flex: 0 0 auto; }
.ac-specs b { font-size: 12.5px; font-weight: 500; color: #33415c; text-align: right; }
/* 商品描述里没有「：」的行不是「标签 / 值」对（例如 GPU 卡片的
   「固定IP 50 元/月/个，带宽 25 元/月/M（单台单月起租）」）。
   这类行整行铺满、左对齐 —— 挤进标签列会换行溢出，压到下一行的标签上 */
.ac-specs li.ac-specs-note { display: block; }
.ac-specs li.ac-specs-note b { display: block; text-align: left; line-height: 1.65; }
.ac-price { display: flex; align-items: baseline; color: var(--ac-price); font-weight: 700; }
.ac-price i, .ac-price b, .ac-price em { font-family: code, "Microsoft YaHei", sans-serif; }
.ac-price i { font-style: normal; font-size: 15px; }
.ac-price b { font-size: 27px; line-height: 1; letter-spacing: .5px; }
.ac-price em { font-style: normal; font-size: 15px; }
.ac-price span { margin-left: 6px; font-size: 12.5px; font-weight: 400; color: var(--ac-muted); }
.ac-price-sm b { font-size: 21px; }
.ac-card-note { margin: 6px 0 0; font-size: 12.5px; color: var(--ac-muted); }

.ac-sec-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.ac-sec-foot p { margin: 0; font-size: 12.5px; color: var(--ac-muted); }
.ac-region-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ac-region-links a {
  padding: 6px 15px; border-radius: 999px; border: 1px solid #dbe6ff; background: #fff;
  color: var(--ac-brand); font-size: 13px; text-decoration: none;
}
.ac-region-links a:hover { border-color: #b9ccff; background: #f5f9ff; }

/* ---------------- 活动款 ----------------
   不再铺整幅深蓝，改成阿里云那种「一行一张卡」：左边一条蓝色渐变块放产品名，右边白底放规格与价格。
   选择器要压得住上面 .ac-sec:nth-of-type(even) 的浅底 */
.ac-page .ac-sec-deal { background: #fff; }
.ac-deal-list { display: flex; flex-direction: column; gap: 16px; }
.ac-deal-row {
  display: grid; grid-template-columns: 316px minmax(0, 1fr) 208px;
  background: #fff; border: 1px solid #e3ebff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 8px 26px rgba(24, 52, 102, .07);
}
.ac-deal-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 20px 24px; color: #fff;
  background: var(--ac-grad);
}
.ac-deal-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, .18); color: #fff; align-self: flex-start;
}
.ac-deal-left h3 { margin: 10px 0 6px; font-size: 17px; font-weight: 700; color: #fff; }
.ac-deal-brief { margin: 0; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .8); }
/* 同上：活动款横幅的简述也按「项」换行 */
.ac-deal-brief span { display: inline-block; white-space: nowrap; }
.ac-deal-brief span + span::before { content: '·'; margin: 0 6px 0 3px; color: rgba(255, 255, 255, .45); }
.ac-deal-specs {
  list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px;
  margin: 0; padding: 18px 24px; align-content: center;
}
.ac-deal-specs li { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #eef2fa; font-size: 12.5px; }
.ac-deal-specs span { flex: 0 0 82px; color: var(--ac-muted); }
.ac-deal-specs b { font-weight: 500; color: #33415c; }
/* 活动款横幅的规格表同理：整行说明跨两列、左对齐 */
.ac-deal-specs li.ac-specs-note { display: block; grid-column: 1 / -1; }
.ac-deal-specs li.ac-specs-note b { text-align: left; }
.ac-deal-buy {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px;
  padding: 18px 24px; border-left: 1px solid #eef2fa;
}
.ac-deal-buy .ac-btn-orange { width: 100%; }
.ac-deal-note { margin: 16px 0 0; font-size: 12.5px; color: var(--ac-muted); }

/* ---------------- 域名 ---------------- */
.ac-dm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ac-dm-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ac-line);
  border-radius: 14px; padding: 24px 26px 22px; box-shadow: 0 6px 24px rgba(24, 52, 102, .05);
}
.ac-dm-card h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ac-ink); }
.ac-dm-card > p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--ac-body); }
.ac-dm-points { list-style: none; margin: 14px 0 18px; padding: 0; flex: 1 1 auto; }
.ac-dm-points li { position: relative; padding: 4px 0 4px 16px; font-size: 13px; color: #33415c; }
.ac-dm-points li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--ac-brand); }
.ac-dm-card .ac-btn-buy { margin-top: auto; }

/* ---------------- 活动规则 ---------------- */
.ac-sec-rules { background: var(--ac-bg); }
.ac-rules { list-style: none; max-width: 1000px; margin: 0 auto; padding: 0; }
.ac-rules li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px;
  padding: 14px 0; border-bottom: 1px solid #e8eefa; font-size: 13.5px; line-height: 1.9;
}
.ac-rules li:last-child { border-bottom: 0; }
.ac-rules b { color: var(--ac-ink); font-weight: 600; }
.ac-rules span { color: var(--ac-body); }
.ac-rules-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------------- 自适应 ---------------- */
@media (max-width: 1080px) {
  .ac-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 44px 20px 40px; }
  .ac-hero h1 { font-size: 34px; }
  .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 活动款卡：蓝色块横跨整行，下面左边规格、右边价格与按钮 */
  .ac-deal-row { grid-template-columns: minmax(0, 1fr) 196px; }
  .ac-deal-left { grid-column: 1 / -1; }
  .ac-deal-specs { padding: 16px 20px; }
  .ac-deal-buy { padding: 16px 20px; }
}
@media (max-width: 720px) {
  .ac-sec { padding: 36px 0; }
  .ac-sec-head h2 { font-size: 21px; }
  .ac-grid, .ac-grid-3, .ac-dm-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-group { padding: 16px 14px 18px; }
  .ac-quick a { padding: 12px 14px 10px; font-size: 13.5px; }
  .ac-deal-row { grid-template-columns: minmax(0, 1fr); }
  .ac-deal-left { padding: 16px 18px; }
  .ac-deal-specs { grid-template-columns: minmax(0, 1fr); }
  .ac-deal-buy { align-items: flex-start; border-left: 0; border-top: 1px solid #eef2fa; }
  .ac-rules li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ac-dm-card { padding: 20px; }
  .ac-hero-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ac-hero-row-side { width: 100%; justify-content: space-between; }
}
