:root {
  --bg: #FBF9F4;
  --ink: #0E0E0E;
  --red: #FF5A5A;
  --blue: #2F80ED;
  --yellow: #FFC93C;
  --purple: #6C5CE7;
  --green: #7AE582;
  --gray-card: #EFEEEB;
  --border: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);
  --radius: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', 'Space Grotesk', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', -apple-system, 'PingFang SC', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* 高亮文字 */
.hl {
  display: inline-block;
  padding: 0 .18em;
  line-height: 1.12;
  font-style: italic;
  transform: skewX(-6deg);
  transition: transform .3s cubic-bezier(.25,.8,.25,1.1);
  cursor: pointer;
}

.hl:hover {
  transform: skewX(-6deg) translateY(-6px) rotate(-2deg);
}

.hl-red { background: var(--red); color: #fff; }
.hl-blue { background: var(--blue); color: #fff; }
.hl-yellow { background: var(--yellow); color: var(--ink); }
.hl-purple { background: var(--purple); color: #fff; }

/* 导航 */
.nav-bar {
  position: sticky;
  top: 24px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 38px;
  background: #fff;
  border: var(--border);
  border-radius: 60px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 18px 12px 26px;
  transition: box-shadow .2s, transform .2s;
}

.nav-pill:hover {
  box-shadow: 7px 7px 0 var(--ink);
}

.nav-logo {
  width: 42px;
  height: 42px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  position: relative;
}

.nav-logo::after {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 50%;
}

.nav-logo::before {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid #fff;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 4px 2px;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 8px;
  background: var(--yellow);
  z-index: -1;
  border-radius: 4px;
}

.nav-mail {
  width: 48px;
  height: 48px;
  background: var(--ink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform .15s, box-shadow .15s;
  border: var(--border);
}

.nav-mail:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--red);
}

.nav-mail svg {
  stroke: #fff;
}

/* 页面切换 */
.page {
  display: none;
}
.page.active {
  display: block;
  animation: pageIn .45s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* 通用 */
.section {
  padding: 90px 0;
}

.sec-head {
  text-align: center;
  margin-bottom: 64px;
}

.sec-head h2 {
  font-size: 52px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.sec-head p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: #4a4a4a;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  padding: 16px 30px;
  border-radius: 18px;
  border: var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  background: #fff;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn svg {
  flex: none;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--blue);
}

.btn-light:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}

/* Hero */
.hero {
  padding: 140px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.18;
  margin-bottom: 28px;
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.75;
  color: #3d3d3d;
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-btns {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-art {
  background: var(--yellow);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--ink);
  padding: 14px;
  max-width: 400px;
  margin: 0 auto;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}

.hero-art:hover {
  transform: translate(-3px, -3px);
  box-shadow: 17px 17px 0 var(--ink);
}

.hero-art-inner {
  border: var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.hero-art-inner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.hero-art-dots {
  position: absolute;
  pointer-events: none;
}

.hero-art-dots span {
  position: absolute;
  border-radius: 50%;
}

.hero-art-dots span:nth-child(1) {
  width: 16px; height: 16px;
  background: var(--red);
  top: -18px; right: -10px;
}

.hero-art-dots span:nth-child(2) {
  width: 12px; height: 12px;
  background: var(--ink);
  bottom: -14px; left: 20px;
}

.hero-art-dots span:nth-child(3) {
  width: 18px; height: 18px;
  background: var(--blue);
  bottom: -12px; right: 40px;
}

.hero-art-dots span:nth-child(4) {
  width: 10px; height: 10px;
  background: var(--green);
  top: 40%; left: -14px;
}

.hero-art-dots span:nth-child(5) {
  width: 14px; height: 14px;
  background: var(--red);
  top: 12px; right: -16px;
}

.hero-art-dots span:nth-child(6) {
  width: 10px; height: 10px;
  background: var(--ink);
  bottom: -12px; right: -16px;
}

/* 服务卡片 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  border: var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 6px 6px 0 var(--ink);
}

.service-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--ink);
}

.service-illu {
  background: #F2F1ED;
  border-bottom: var(--border);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.service-illu svg {
  height: 100%;
  width: auto;
  max-width: 100%;
}

.service-body {
  padding: 34px 34px 40px;
}

.service-body h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-body p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a4a4a;
}

/* 客户评价 */
.testi-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}

.testi-card {
  position: relative;
  border: var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 70px 48px 44px;
  box-shadow: 10px 10px 0 var(--ink);
}

.testi-quote-badge {
  position: absolute;
  top: -34px;
  left: 38px;
  width: 68px;
  height: 68px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-card blockquote {
  font-size: 20px;
  line-height: 1.75;
  margin-bottom: 30px;
  font-weight: 500;
}

.testi-author strong {
  display: block;
  font-size: 19px;
  margin-bottom: 4px;
}

.testi-author span {
  color: #666;
  font-size: 16px;
}

.testi-avatar {
  display: flex;
  justify-content: center;
}

.testi-avatar .circle {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--red);
  border: var(--border);
  box-shadow: 12px 12px 0 var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.testi-avatar svg {
  width: 88%;
  height: auto;
  margin-bottom: -4px;
}

/* 关于我 */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-avatar {
  display: flex;
  justify-content: center;
}

.about-avatar .circle {
  width: 420px;
  height: 420px;
  max-width: 100%;
  border-radius: 50%;
  background: #FF6B6B;
  border: var(--border);
  box-shadow: 14px 14px 0 var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-avatar svg {
  width: 92%;
  height: auto;
  margin-bottom: -6px;
}

.about-text h2 {
  font-size: 54px;
  line-height: 1.18;
  margin-bottom: 24px;
}

.about-text > p {
  font-size: 18px;
  line-height: 1.75;
  color: #4a4a4a;
  margin-bottom: 40px;
  max-width: 560px;
}

.about-feats {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-bottom: 48px;
}

.feat {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feat-icon {
  width: 34px;
  height: 34px;
  border: var(--border);
  border-radius: 10px;
  flex: none;
  margin-top: 4px;
}

.feat-icon.purple { background: var(--purple); }
.feat-icon.red { background: var(--red); }

.feat h4 {
  font-size: 23px;
  margin-bottom: 8px;
}

.feat p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a4a4a;
}

/* 经历（黑底） */
.exp-section {
  background: var(--ink);
  border-top: var(--border);
  border-bottom: var(--border);
}

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.exp-left h2 {
  color: #fff;
  font-size: 52px;
  line-height: 1.18;
  margin-bottom: 24px;
}

.exp-left p {
  color: #c9c9c9;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 460px;
}

.exp-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.exp-card {
  background: #fff;
  border: var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 6px 6px 0 var(--ink);
}

.exp-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--yellow);
}

.exp-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: var(--border);
  font-weight: 700;
  font-size: 18px;
}

.exp-logo {
  width: 54px;
  height: 54px;
  border: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.exp-logo.blue { background: var(--blue); }
.exp-logo.yellow { background: var(--yellow); }
.exp-logo.purple { background: var(--purple); }

.exp-body {
  padding: 26px 30px 32px;
}

.exp-body h4 {
  font-size: 26px;
  margin-bottom: 12px;
}

.exp-body p {
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a4a4a;
}

/* 文章 */
.articles-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}

.articles-head h2 {
  font-size: 52px;
}

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
}

.article-card {
  border: var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 var(--ink);
}

.article-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--ink);
}

.article-illu {
  background: #F2F1ED;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
  min-height: 250px;
}

.article-illu svg {
  max-height: 230px;
  width: auto;
  max-width: 100%;
}

.article-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
}

.article-big .article-body {
  padding: 36px 40px 40px;
}

.article-big h3 {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 26px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-meta .mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: var(--border);
  background: var(--yellow);
  overflow: hidden;
  flex: none;
}

.article-meta strong {
  display: block;
  font-size: 17px;
}

.article-meta span {
  color: #777;
  font-size: 15px;
}

.article-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.article-row {
  flex-direction: row;
  align-items: stretch;
}

.article-row .article-illu {
  width: 44%;
  min-height: 0;
  border-right: var(--border);
  padding: 26px;
}

.article-row .article-illu svg {
  max-height: 170px;
}

.article-row .article-body {
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-row h3 {
  font-size: 26px;
  line-height: 1.35;
  margin-bottom: 16px;
}

.article-row p {
  color: #555;
  font-size: 16.5px;
  line-height: 1.7;
}

/* 作品集 */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.portfolio-card {
  border: var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: transform .2s, box-shadow .2s;
}

.portfolio-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--ink);
}

.portfolio-info {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
}

.portfolio-logo .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-tag {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 26px;
  width: fit-content;
}

.portfolio-info h3 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.portfolio-info p {
  font-size: 17px;
  line-height: 1.75;
  color: #4a4a4a;
  margin-bottom: 34px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  transition: gap .2s;
  width: fit-content;
  padding: 12px 24px;
  border: var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, gap .2s;
}

.portfolio-link:hover {
  gap: 16px;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.portfolio-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  position: relative;
}

.portfolio-visual.purple { background: var(--purple); }
.portfolio-visual.blue { background: var(--blue); }
.portfolio-visual.red { background: var(--red); }

.portfolio-visual svg {
  width: 100%;
  height: auto;
  max-width: 460px;
}

/* Footer */
.footer {
  border-top: var(--border);
  background: #fff;
  padding: 36px 0;
  text-align: center;
  font-weight: 600;
  color: #555;
}

/* 响应式 */
@media (max-width: 1020px) {
  .hero-grid,
  .services-grid,
  .testi-grid,
  .about-grid,
  .exp-grid,
  .articles-grid,
  .portfolio-card {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 48px; }
  .sec-head h2, .articles-head h2 { font-size: 40px; }
  .about-text h2, .exp-left h2 { font-size: 42px; }

  .testi-avatar .circle,
  .about-avatar .circle {
    width: 320px;
    height: 320px;
  }

  .article-row .article-illu {
    width: 100%;
    border-right: none;
    border-bottom: var(--border);
  }

  .portfolio-visual {
    order: -1;
    padding: 36px;
  }

  .nav-links { gap: 18px; }
  .nav-pill { gap: 24px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }

  .nav-pill {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-radius: 24px;
    padding: 12px 16px 12px 20px;
  }

  .nav-links { gap: 14px; }
  .nav-links a { font-size: 14px; }

  .hero h1 { font-size: 38px; }
  .hero { padding-top: 100px; }

  .service-illu { height: 220px; }
  .testi-card { padding: 60px 28px 34px; }
  .testi-card blockquote { font-size: 18px; }

  .portfolio-info { padding: 36px 28px; }
  .portfolio-info h3 { font-size: 28px; }
}
