:root {
  --brand-red: #f0444b;
  --brand-red-dark: #cf3038;
  --brand-gold: #ffbd38;
  --ink: #242424;
  --muted: #686868;
  --line: #e3e3e3;
  --panel: #ffffff;
  --soft: #f1f1f1;
  --footer: #282828;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f6f6f6;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--brand-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-inner {
  width: min(var(--max-width), calc(100% - 24px));
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  color: #fff;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
  color: var(--brand-red);
  font-size: 18px;
}

.brand-name {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}

.main-nav a {
  min-height: 58px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.publish-btn,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 4px;
  font-weight: 700;
}

.publish-btn {
  padding: 0 18px;
  background: var(--brand-gold);
  color: #fff;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: #fff;
}

.hero-section {
  width: min(var(--max-width), calc(100% - 24px));
  margin: 14px auto 22px;
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 20px;
}

.recommend-panel {
  background: var(--panel);
  border: 1px solid var(--line);
}

.recommend-panel h2 {
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  line-height: 1.4;
  background: linear-gradient(90deg, #202020, #9a9a9a);
}

.recommend-panel ul {
  list-style: none;
  margin: 0;
  padding: 0 14px;
}

.recommend-panel li {
  border-bottom: 1px solid var(--line);
}

.recommend-panel li:last-child {
  border-bottom: 0;
}

.recommend-panel a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3b3b3b;
  font-size: 14px;
}

.recommend-panel a::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background:
    linear-gradient(135deg, #ff7379 0 48%, transparent 49%),
    linear-gradient(225deg, #d53b42 0 48%, transparent 49%),
    linear-gradient(45deg, #ef5158 0 48%, transparent 49%);
  clip-path: polygon(50% 5%, 94% 28%, 94% 72%, 50% 95%, 6% 72%, 6% 28%);
}

.recommend-panel a::after {
  content: ">";
  color: var(--brand-red);
  font-weight: 700;
}

.recommend-panel a:hover {
  color: var(--brand-red);
}

.hero-slider {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #101010;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2) 34%, rgba(0, 0, 0, 0) 60%);
}

.hero-copy {
  position: absolute;
  left: 48px;
  top: 50%;
  z-index: 2;
  width: min(430px, calc(100% - 80px));
  transform: translateY(-50%);
  color: #fff;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link {
  padding: 0 20px;
}

.primary-link {
  background: var(--brand-red);
  color: #fff;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
}

.slider-dots {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  gap: 4px;
}

.slider-dots button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.slider-dots button::before {
  content: "2";
  font-size: 12px;
  font-weight: 700;
}

.slider-dots button:first-child::before {
  content: "1";
}

.slider-dots button.is-active {
  background: var(--brand-red);
  color: #fff;
}

.section {
  width: min(var(--max-width), calc(100% - 24px));
  margin: 0 auto 26px;
}

.service-overview {
  padding: 28px 20px 32px;
  background: #ececec;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.section-title p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 20px;
}

.service-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  min-height: 122px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid #dadada;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-thumb {
  min-height: 96px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  text-align: center;
  background: #333;
}

.service-thumb span {
  display: block;
  padding: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.thumb-ads {
  color: #111;
  background:
    linear-gradient(135deg, transparent 0 28%, #f4d43c 29% 36%, transparent 37%),
    linear-gradient(145deg, #fff 0 45%, #222 46% 54%, #f0444b 55% 62%, #fff 63%);
}

.thumb-promo {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 38%),
    linear-gradient(135deg, #dfe6ec, #7f96a8 48%, #e6424a);
}

.thumb-brand {
  color: #2b2112;
  background:
    radial-gradient(circle at 24% 24%, rgba(0, 0, 0, 0.18), transparent 28%),
    linear-gradient(135deg, #f5e2b4, #fff4d5 50%, #d6ae69);
}

.thumb-book {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.1)),
    linear-gradient(135deg, #101010, #f1424a 48%, #171717);
}

.thumb-copy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(145deg, #137dc1, #20a5b8 45%, #172232);
}

.thumb-plan {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 35%),
    linear-gradient(145deg, #1d1d1d, #575757 48%, #e44b52);
}

.process-section {
  padding: 34px 20px 38px;
  background: #fff;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-list article {
  min-height: 160px;
  padding: 22px 20px;
  border-top: 4px solid var(--brand-red);
  background: #f7f7f7;
}

.process-list span {
  color: var(--brand-red);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.process-list h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.about-band {
  background: #fff;
  border-top: 1px solid var(--line);
}

.about-content {
  width: min(var(--max-width), calc(100% - 24px));
  margin: 0 auto;
  padding: 42px 20px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: start;
}

.about-content h2 {
  margin: 0 0 14px;
  font-size: 25px;
}

.about-content p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.about-content dl {
  margin: 0;
  padding: 22px;
  background: #f5f5f5;
  border-left: 4px solid var(--brand-red);
}

.about-content dl div + div {
  margin-top: 16px;
}

.about-content dt {
  color: var(--muted);
  font-size: 13px;
}

.about-content dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.about-content dd a {
  color: var(--brand-red-dark);
}

.site-footer {
  padding: 24px 16px 30px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--footer);
  text-align: center;
  font-size: 13px;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer span {
  margin-left: 18px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--brand-red-dark);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 44px;
    padding: 0 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .publish-btn {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .recommend-panel {
    order: 2;
  }

  .hero-slider {
    min-height: 380px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-section {
    width: 100%;
    margin-top: 0;
    gap: 0;
  }

  .hero-slider {
    min-height: 430px;
  }

  .hero-slide img {
    object-position: 62% center;
  }

  .hero-slide::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.24) 46%, rgba(0, 0, 0, 0.1));
  }

  .hero-copy {
    left: 20px;
    top: 42%;
    width: calc(100% - 40px);
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .recommend-panel {
    margin: 12px;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .service-overview,
  .process-section {
    width: 100%;
  }

  .about-content {
    padding-inline: 12px;
  }

  .site-footer span {
    display: block;
    margin: 5px 0 0;
  }
}
