/* 单文件样式：图片完整覆层、文章文字仅变色 */
/* 1. 基础规范：主体居中，最大宽度 1200px，默认文字为黑色 */
:root {
  --page: #f8f7f5;
  --panel: #f0ede8;
  --dark: #383129;
  --line: #d8d1c8;
  --gold: #d7b784;
  --ink: #000000;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Songti SC", "SimSun", serif;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.container {
  width: calc(100% - 80px);
  max-width: 1200px;
  margin-inline: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1.5;
}
h2 {
  font-size: 30px;
  font-weight: 400;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}
p {
  font-size: 14px;
  line-height: 1.85;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #ac874c;
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
.button,
.pills button,
.lift-card,
.previewable,
.nav a {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
/* 2. 顶部导航与 Banner */
header {
  height: 70px;
  background: #fff;
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: inline-block;
  width: 145px;
}
.brand img {
  width: 100%;
}
.nav .brand {
  margin-right: auto;
}
.nav nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.nav nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}
.nav nav a:hover,
.nav nav a:first-child {
  border-color: #000;
}
.nav-cta {
  border-radius: 22px;
  background: #22211e;
  color: #fff;
  padding: 10px 22px;
  font-size: 14px;
}
.menu {
  display: none;
}
.hero {
  padding: 35px 0 38px;
  background: #eee0cf url("/assets/home-banner-1.webp") center/cover
    no-repeat;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.hero h1 span {
  display: block;
}
.intro {
  font-size: 16px;
  line-height: 1.9;
  margin: 30px 0;
  width: 500px;
  max-width: 100%;
}
.actions {
  display: flex;
  gap: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 24px;
  border: 1px solid #777;
  border-radius: 999px;
  font-size: 14px;
  min-height: 44px;
}
.solid {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px #00000012;
}
.hero-image {
  padding: 0;
  justify-self: end;
  width: 100%;
  max-width: 455px;
  overflow: hidden;
  border-radius: 0;
}
.hero-image img {
  aspect-ratio: 0.9;
  object-fit: contain;
  opacity: 0;
  transition: transform 0.6s ease;
}
.hero-image:hover img {
  transform: scale(1.025);
}
.banner-dots {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.banner-dots button {
  width: 36px;
  height: 12px;
  padding: 0;
  position: relative;
}
.banner-dots button:after {
  content: "";
  height: 2px;
  background: #c9c4bc;
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
}
.banner-dots button.selected:after {
  background: #62584b;
}
/* 3. 内容模块与深色区：白字为深色背景的必要覆盖 */
.section {
  padding: 80px 0;
}
.heading {
  text-align: center;
  margin-bottom: 42px;
}
.heading h2 {
  font-size: 35px;
}
.heading p {
  font-size: 16px;
  margin-top: 10px;
}
.accent {
  display: block;
  background: #da922b;
  width: 80px;
  height: 2px;
  margin: 22px auto 0;
}
.dark-section {
  background: var(--dark);
  color: #fff;
}
.dark-section .accent {
  background: var(--gold);
}
.three {
  padding: 65px 0 70px;
}
.three .heading {
  margin-bottom: 50px;
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.three-grid article {
  text-align: center;
  padding: 0 25px;
  border-right: 1px solid #b9b5ae;
}
.three-grid article:last-child {
  border: 0;
}
.line-icon {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.three-grid h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.three-grid p {
  font-size: 16px;
}
.resource-section {
  background: #f3eee6;
}
.resource-panel {
  padding: 0;
  background: none;
}
.resource-panel .heading {
  margin-bottom: 25px;
}
.pills {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-bottom: 30px;
}
.pills button {
  padding: 9px 22px;
  border: 1px solid #8e8579;
  border-radius: 25px;
  font-size: 14px;
}
.pills button:hover,
.pills button[aria-pressed="true"] {
  background: var(--dark);
  color: #fff;
}
.resource-image {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 25px;
}
.resource-image img {
  aspect-ratio: 3.7;
  object-fit: cover;
  transition: transform 0.6s;
}
.resource-image:hover img {
  transform: scale(1.025);
}
.comparison {
  padding-top: 80px;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 25px;
  border: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.8;
}
th,
td {
  border: 1px solid var(--line);
  text-align: left;
  padding: 18px 24px;
  font-weight: 400;
}
thead th {
  background: #f0ede7;
  font-size: 14px;
}
thead th:last-child {
  background: #eae4da;
}
th:first-child {
  width: 16%;
}
th:nth-child(2) {
  width: 38%;
}
thead small {
  display: block;
  font-size: 14px;
  margin-top: 6px;
}
tbody th {
  background: #faf8f5;
}
tbody td:last-child {
  background: #fcfaf7;
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.adv-grid article {
  border: 0;
  background: #efeae4;
  color: #000;
  border-radius: 25px;
  padding: 28px;
  min-height: 265px;
}
.adv-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.adv-title h3 {
  font-size: 18px;
}
.adv-title span {
  font-size: 36px;
  line-height: 1;
  color: #856654;
  font-family: Georgia, serif;
}
.adv-grid p {
  font-size: 15px;
  line-height: 2;
}
.lift-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px #00000012;
}
.dark-section .lift-card:hover {
  background: #efeae4;
  box-shadow: 0 14px 26px #00000020;
}

/* 文章标题与摘要保持原位，只从黑色变为深红色。 */
.post h3,
.post p {
  color: #000000;
  transition: color 0.3s ease;
}
.post:hover h3,
.post:hover p,
.post:focus-within h3,
.post:focus-within p {
  color: #690000;
}
.post.lift-card:hover,
.post.lift-card:focus-within {
  transform: none;
  box-shadow: none;
}

/* 顾问头像为图片占位，可替换 img 的 data URI */
.text-link.appointment {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 0;
}
.teacher-faces {
  width: 84px;
  height: 42px;
  object-fit: contain;
}
.appointment span {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.appointment-arrow {
  display: block;
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.3s ease;
}
.appointment:hover .appointment-arrow {
  transform: translateX(3px);
}
/* 4. 观点、定制服务、评价与底部 */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 52px;
}
.post {
  min-width: 0;
}
.post .previewable {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  aspect-ratio: 2.24;
  overflow: hidden;
  border-radius: 22px;
  background: #856654;
  isolation: isolate;
} /* img-push-down：覆盖完整图片区域，文字仅变色；六张卡片共用。 */
.post img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2.24;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.post-view-label {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
  pointer-events: none;
  background: #856654;
}
.post:hover img,
.post:focus-within img {
  transform: translateY(100%);
}
.post:hover .post-view-label,
.post:focus-within .post-view-label {
  opacity: 1;
  transform: translateY(0);
}
.post h3 {
  margin: 18px 0 8px;
  font-size: 18px;
}
.post p {
  font-size: 14px;
}
.all-views {
  display: block;
  width: 100%;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  font-size: 14px;
}
.service-panel {
  padding: 55px 50px 65px;
  background: #fff;
  border-radius: 30px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.services-grid article {
  border: 1px solid var(--line);
  background: #f3eee6;
  border-radius: 25px;
  padding: 25px 28px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.services-grid article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px #0000000d;
}
.services-grid h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.services-grid p {
  font-size: 15px;
  margin-bottom: 24px;
}
.text-link {
  font-size: 14px;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--line);
  align-self: start;
  margin-top: auto;
}
.text-link:hover {
  border-color: #000;
}
.reviews {
  padding: 65px 0 80px;
  background: #f3eee6;
}
.review-track {
  display: flex;
  gap: 25px;
  width: calc(100% - 80px);
  max-width: 1200px;
  margin: auto;
  overflow: auto;
  padding: 8px 0 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.review {
  flex: 0 0 340px;
  border: 1px solid #856654;
  border-radius: 28px;
  padding: 28px;
  background: #856654;
  color: #fff;
  scroll-snap-align: center;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px #00000010;
}
.review-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.tag {
  background: #97846e;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 14px;
}
.review blockquote {
  font-size: 18px;
  line-height: 1.8;
  min-height: 260px;
  margin: 22px 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 0;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #97846e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.person strong {
  font-size: 14px;
  font-weight: 400;
}
.person small {
  font-size: 14px;
  display: block;
  margin-top: 7px;
}
footer {
  background: #39322c;
  color: #fff;
  padding: 65px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr 1.4fr;
  gap: 60px;
}
.footer-grid .brand {
  margin-bottom: 25px;
}
.footer-grid .button {
  display: flex;
  width: max-content;
}
.footer-grid h3 {
  margin-bottom: 20px;
  font-size: 14px;
}
.footer-nav {
  display: grid;
  gap: 12px;
  font-size: 14px;
}
.platforms {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.platforms li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.platforms span {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 7px;
  font-size: 14px;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 22px;
  margin-top: 42px;
}
.copyright p {
  font-size: 14px;
  margin-top: 5px;
}

/* 用户浏览器标注：区块配色、白色页脚及服务区上移 60px。 */
#advantages {
  background: #856654;
}
#footer p,
#footer a,
#footer h3,
#footer span,
#footer li {
  color: #fff;
}
#footer .brand img {
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
}
#footer .button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  border-radius: 999px;
}
#footer .button:hover {
  background: rgba(255, 255, 255, 0.08);
}
#services .service-panel {
  margin-top: -60px;
}

/* 5. 柔和入场、图片预览；无 JS 时内容默认可见 */
.reveal {
  opacity: 1;
  transform: none;
}
.motion .reveal {
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.motion .reveal.pending {
  opacity: 0;
  transform: translateY(22px);
}
dialog {
  padding: 50px 28px 28px;
  border: 0;
  width: min(850px, 92vw);
  background: var(--page);
  color: #000;
  box-shadow: 0 20px 80px #0003;
}
dialog::backdrop {
  background: #27231c9c;
  backdrop-filter: blur(4px);
}
dialog[open] {
  animation: previewIn 0.3s ease;
}
.close {
  position: absolute;
  right: 16px;
  top: 8px;
  font: 28px Arial;
}
dialog img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: auto;
}
dialog h2 {
  font-size: 30px;
  margin-bottom: 18px;
}
dialog p {
  font-size: 14px;
}
@keyframes previewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* 6. PC 优先响应式，不改变用户指定字号 */
@media (max-width: 1000px) {
  .container {
    width: calc(100% - 48px);
  }
  .nav {
    gap: 16px;
  }
  .nav nav {
    gap: 14px;
  }
  .brand {
    width: 120px;
  }
  .hero-grid {
    gap: 55px;
  }
  .adv-grid {
    gap: 22px;
  }
  .adv-grid article {
    padding: 22px;
  }
  .posts {
    gap: 36px 28px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    gap: 30px;
  }
  .review-track {
    width: calc(100% - 48px);
  }
}
@media (max-width: 760px) {
  header {
    height: 64px;
  }
  .nav nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    padding: 25px 24px;
    background: #fff;
    z-index: 10;
    box-shadow: 0 10px 22px #0001;
  }
  .nav nav.open {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .nav-cta {
    margin-left: auto;
  }
  .menu {
    display: block;
    font-size: 21px;
  }
  .hero {
    padding: 45px 0 55px;
  }
  .hero-grid {
    gap: 35px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .intro {
    font-size: 16px;
    margin: 22px 0;
  }
  .actions {
    gap: 10px;
    flex-wrap: wrap;
  }
  .button {
    padding: 11px 18px;
  }
  .section {
    padding: 55px 0;
  }
  .comparison {
    padding-top: 80px;
  }
  .three {
    padding: 45px 0;
  }
  .three-grid {
    gap: 15px;
  }
  .three-grid article {
    padding: 0 12px;
  }
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resource-panel,
  .service-panel {
    padding: 35px 25px;
  }
  .pills {
    gap: 12px;
    flex-wrap: wrap;
  }
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1/-1;
  }
  .reviews {
    padding-top: 0;
  }
  table {
    min-width: 760px;
  }
  .resource-image img {
    aspect-ratio: 3.2;
  }
}
@media (max-width: 520px) {
  .container {
    width: calc(100% - 36px);
  }
  .hero {
    background-image: url("/assets/asset-5725037f28fa9f05819c.jpg");
  }
  .hero-image img {
    opacity: 1;
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 4%,
      #000 96%,
      transparent
    );
  }
  .hero h1 {
    font-size: 38px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image {
    max-width: 390px;
    justify-self: center;
  }
  .hero-copy {
    max-width: 430px;
  }
  .three-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .three-grid article {
    border: 0;
    padding-bottom: 25px;
    border-bottom: 1px solid #d8d1c8;
  }
  .three-grid article:last-child {
    padding-bottom: 0;
  }
  .line-icon {
    margin-bottom: 12px;
  }
  .adv-grid {
    grid-template-columns: 1fr;
  }
  .adv-grid article {
    min-height: 0;
    padding: 24px;
  }
  .resource-panel,
  .service-panel {
    padding: 30px 20px;
  }
  .pills button {
    padding: 9px 16px;
  }
  .heading {
    margin-bottom: 32px;
  }
  .posts {
    gap: 30px 18px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .review-track {
    width: calc(100% - 36px);
  }
  .review {
    flex-basis: 90%;
  }
  .review blockquote {
    min-height: 240px;
  }
  .footer-grid {
    gap: 30px;
  }
  .platforms li {
    gap: 8px;
  }
  .nav {
    gap: 12px;
  }
  .nav-cta {
    padding: 9px 16px;
  }
  .brand {
    width: 115px;
  }
  .banner-dots {
    margin-top: 25px;
  }
  .resource-image img {
    aspect-ratio: 2.5;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .motion .reveal.pending {
    opacity: 1;
    transform: none;
  }
}

.registration-panel {
  text-align: center;
}
.registration-panel img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 20px auto;
}
.registration-panel p {
  margin-top: 16px;
}

.hero {
  position: relative;
  overflow: hidden;
}
.banner-transition-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

@media (min-width: 761px) {
  .hero[data-banner="3"] h1 {
    white-space: nowrap;
  }
}

.banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  color: #171717;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}
.banner-arrow-prev {
  left: 14px;
}
.banner-arrow-next {
  right: 14px;
}
.banner-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.banner-arrow-prev svg {
  transform: rotate(180deg);
}
.hero:hover .banner-arrow,
.hero:focus-within .banner-arrow {
  opacity: 1;
  visibility: visible;
}
.banner-arrow:hover {
  color: #690000;
}
.banner-arrow:focus-visible {
  outline-offset: 4px;
  border-radius: 50%;
}
@media (hover: none) {
  .banner-arrow {
    opacity: 1;
    visibility: visible;
  }
}
@media (max-width: 760px) {
  .banner-arrow {
    width: 38px;
    height: 38px;
  }
  .banner-arrow-prev {
    left: 4px;
  }
  .banner-arrow-next {
    right: 4px;
  }
}

dialog.consult-card {
  width: min(380px, calc(100vw - 36px));
  padding: 52px 30px 36px;
  border-radius: 24px;
}
dialog.consult-card h2 {
  font-size: 26px;
  margin-bottom: 24px;
}
dialog.consult-card .registration-panel p {
  line-height: 1.9;
  max-width: 260px;
  margin: 20px auto 0;
}
.adv-service-action {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.adv-service-button {
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 18px;
  padding: 14px 30px;
  gap: 20px;
  min-height: 52px;
}
.adv-service-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adv-service-button:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

/* Production corrections: preserve demo spacing and responsive intent. */
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.hero-copy,
.hero-image {
  min-width: 0;
  max-width: 100%;
}
.hero-copy {
  width: 100%;
}
.intro {
  max-width: 100%;
}
body > header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}
.pills a {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #ddd;
  border-radius: 30px;
  color: inherit;
  text-decoration: none;
}
.post > a.previewable {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.post h3 a {
  color: inherit;
  text-decoration: none;
}
.all-views {
  display: block;
  width: max-content;
  text-decoration: none;
  margin: 32px auto 0;
}
.skip-link {
  position: absolute;
  left: -10000px;
  top: 8px;
}
.skip-link:focus {
  left: 16px;
  z-index: 100;
  background: white;
  padding: 12px;
}
@media (max-width: 520px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
