/* ===== 移动端30周年专题样式 ===== */
/* rem基准: 320px宽时 1rem = 20px */

:root {
  --color-primary: #1a1a1a;
  --color-secondary: #2d2d2d;
  --color-gold: #c9a962;
  --color-gold-light: #d4b978;
  --color-cream: #faf8f5;
  --color-warm: #f5f1eb;
  --color-text: #333;
  --color-text-light: #666;
  --color-white: #fff;
  --color-main: #b71c31;
  --font-serif: "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", sans-serif;
  --transition: all 0.3s ease;
}
a:visited {
  color: inherit;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.container {
  padding: 0 0.75rem;
  max-width: 100%;
}

/* ===== 背景色 ===== */
.bg-cream {
  background: var(--color-cream);
}

.bg-warm {
  background: var(--color-warm);
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* background: transparent; */
  transition: var(--transition);
  background: var(--color-main);
}

.navbar.scrolled {
  backdrop-filter: blur(10px);
  box-shadow: 0 0.1rem 0.5rem rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  height: 2rem;
}

.nav-brand img {
  height: 1.2rem;
  width: auto;
}

.nav-cta {
  font-size: 0.65rem;
  color: var(--color-white);
  background: var(--color-gold);
  padding: 0.35rem 0.6rem;
  border-radius: 1rem;
  font-weight: 500;
  margin-left: auto;
  margin-right: 0.5rem;
}

.mobile-menu-btn {
  width: 1.8rem;
  height: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-main);
  padding: 0.5rem 0.75rem;
  border-top: 0.05rem solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .nav-link {
  color: var(--color-white);
  padding: 0.6rem 0;
  font-size: 0.75rem;
  text-align: left;
  border-bottom: 0.05rem solid rgba(255, 255, 255, 0.05);
}

.mobile-menu .nav-link:last-child {
  border-bottom: none;
}

/* ===== 通用标题 ===== */
.section {
  padding: 1.5rem 0;
}

.section-header {
  margin-bottom: 1rem;
}

.section-header.center {
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.section-title .bold {
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.5rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 19rem;
  background: url("img/10006.jpg") center/100% no-repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
}


.hero-btn-primary{
    position: absolute;
    bottom: 3.3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    font-size: 0.6rem;
    font-weight: 500;
    width: 7rem;
    height: 1.8rem;
    background: var(--color-main);
    color: var(--color-white);
}

.hero-btn-secondary {
   width: 7rem;
   height: 1.8rem;
   position: absolute;
   bottom: 1.1rem;
   left: 50%;
   transform: translateX(-50%);
   background: transparent;
   color: var(--color-white);
   border: 0.05rem solid rgba(255, 255, 255, 0.5);
   font-size: 0.6rem;
   font-weight: 500;
   border-radius: 2rem;
}

.btn-icon {
  font-size: 0.9rem;
}

/* ===== 品牌初心 ===== */
.brand-origin {
  padding-bottom: 0;
}
.brand-origin .container {
  padding: 0;
}

/* ===== 统计数据 ===== */
.stats-grid {
  padding: 0.75rem 0.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  position: relative; /* 确保伪元素定位参考 */
  z-index: 0;
}
/* 新增伪元素作为背景层 */
.stats-grid::before {
  content: "";
  position: absolute;
  inset: 0; /* 等同于 top:0; right:0; bottom:0; left:0; */
  background: url(img/10011.jpg) no-repeat center/cover;
  opacity: 0.6; /* 这里调整透明度，0.0 - 1.0 */
  z-index: -1; /* 置于内容下方 */
  border-radius: inherit; /* 如果父元素有圆角，继承它 */
}

.stat-card {
  background: var(--color-main);
  border-radius: 0.5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.04);
}

.stat-card.white {
  background: var(--color-white);
}

.stat-number-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.1rem;
  margin-bottom: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}
.stat-card.white .stat-number {
  color: var(--color-gold);
}

.stat-unit {
  font-size: 0.6rem;
  color: var(--color-white);
  font-weight: 500;
}
.stat-card.white .stat-unit {
  color: var(--color-gold);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 0.15rem;
  opacity: 0.9;
}
.stat-card.white .stat-label {
  color: var(--color-primary);
}
.stat-desc {
  font-size: 0.55rem;
  color: var(--color-white);
  line-height: 1.4;
  opacity: 0.8;
}
.stat-card.white .stat-desc {
  color: var(--color-text-light);
}

/* ===== 数智护航 ===== */
.digital-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.digital-card {
  border-radius: 0.5rem;
  overflow: hidden;
  height: auto;
}
.digital-card>a{
  padding: 1rem;
  display: block;
}

.digital-card-dark {
  background: var(--color-main);
  color: var(--color-white);
}

.digital-card-light {
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.06);
}

.digital-badge {
  display: inline-block;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  margin-bottom: 0.4rem;
}

.digital-badge.light {
  background: rgba(201, 169, 98, 0.15);
  color: var(--color-gold);
}

.digital-title {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.digital-title.dark {
  color: var(--color-primary);
}

.digital-desc {
  font-size: 0.55rem;
  line-height: .8rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
  height: 2.4rem;
}

.digital-desc.dark {
  color: var(--color-text-light);
  opacity: 1;
}
.digital-pagination{
  display: flex;
  justify-content: flex-end;
}
.digital-pagination .swiper-pagination-bullet-active{
  background: var(--color-main);
  width: 1.2rem;
  border-radius: 2rem;
}
.digital-tags {
  display: grid;
  flex-wrap: wrap;
  gap: 0.3rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  height: 4rem;
}
.digital-tags .dis-c{
  display: flex;
  justify-content: center;
  align-items: center;
}
.digital-tag-dark,
.digital-tag-light {
  font-size: 0.5rem;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}

.digital-tag-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.digital-tag-light {
  background: var(--color-warm);
  color: var(--color-gold-light);
  padding: 0.25rem 0.35rem;
}

/* ===== 硕果满程 ===== */
.offer-remark {
  font-size: 0.5rem;
  color: #999;
  text-align: center;
  margin-bottom: 0.5rem;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 23rem;
  overflow: hidden;
}

.offers.more .offers-list {
  height: auto;
}

.offer-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}

.offer-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.offer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
}

.offer-footer {
  color: var(--color-white);
}

.offer-footer.bottom-aligned {
  margin-top: auto;
}

.offer-badge {
  display: inline-block;
  font-size: 0.5rem;
  padding: 0.1rem 0.3rem;
  background: var(--color-gold);
  border-radius: 0.15rem;
  margin-bottom: 0.25rem;
}

.offer-badge.gold {
  background: var(--color-gold-light);
  color: var(--color-primary);
}

.offer-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.offer-desc {
  font-size: 0.55rem;
  opacity: 0.8;
}

/* offer stats */
.offer-stats-content {
  padding-top: 0.5rem;
}

.stats-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.stat-item-large {
  text-align: center;
  color: var(--color-white);
}

.stat-number-large {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
}

.stat-unit-large {
  font-size: 0.55rem;
  color: var(--color-white);
}

.stat-label-small {
  font-size: 0.5rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

/* scores */
.scores-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.score-item {
  text-align: center;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.3rem;
  padding: 0.4rem 0.3rem;
  flex: 1;
}

.score-percent {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
}

.score-label {
  font-size: 0.5rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

/* employment */
.employment-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 0.5rem;
}

.employment-item {
  text-align: center;
  color: var(--color-white);
}

.employment-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.employment-unit {
  font-size: 0.5rem;
}

.employment-label {
  font-size: 0.5rem;
  opacity: 0.8;
  margin-top: 0.1rem;
}

/* reputation */
.reputation-content {
  text-align: center;
  padding-top: 1rem;
}

.reputation-desc {
  font-size: 0.7rem;
  color: var(--color-white);
  font-weight: 500;
}

/* ===== 业务布局 ===== */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 17rem;
  overflow: hidden;
}
.products.more .products-list {
  height: auto;
}
.product-card {
  border-radius: 0.5rem;
  padding: 0.75rem 0.55rem 0.75rem 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card-dark {
  background: var(--color-main);
  color: var(--color-white);
}

.product-card-light {
  background: var(--color-white);
  box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.06);
}

.product-header {
  display: flex;
  gap: 0.5rem;
}

.product-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 1.5rem;
}

.product-num.gold {
  color: var(--color-gold);
}

.product-title {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.product-desc {
  font-size: 0.55rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.product-desc.light {
  color: var(--color-text-light);
  opacity: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.product-tag-dark,
.product-tag-light2 {
  font-size: 0.5rem;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
}

.product-tag-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.product-tag-light2 {
  background: var(--color-warm);
  color: var(--color-gold-light);
}

/* ===== 教育主张 ===== */
.philosophy {
  text-align: center;
  padding: 2rem 0;
}

.philosophy-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.philosophy-text p {
  font-size: 0.65rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.philosophy-subtitle {
  font-size: 0.65rem;
  color: var(--color-text);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ===== 学子故事 ===== */
.stories-list {
  padding-bottom: 0.5rem;
}

.stories-list .swiper-slide {
  height: auto;
}


.story-card {
  background: var(--color-white);
  border-radius: 0.5rem;
  padding: 0 0 0.75rem;
  margin: 0 0.25rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.story-info{
  background: var(--color-main);
  padding: 0.75rem;
  color: var(--color-white);
}

.story-author {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.story-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.story-info-list {
  min-height: 2.8rem;
}
.story-info-item {
  font-size: 0.55rem;
  line-height: 1.5;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-actions {
  margin-top: 0.4rem;
}

.story-btn {
  width: 5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  font-size: 0.55rem;
  color: var(--color-white);
  background: var(--color-main);
  border-radius: 1rem;
  margin: 0.4rem auto 0;
}

.story-type {
  display: inline-block;
  font-size: 0.5rem;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 0.1rem 0.3rem;
  /* border-radius: 0.15rem; */
  /* margin-top: 0.3rem; */
  position: absolute;
  top: 0;
  right: 0;
  border-bottom-left-radius: 0.5rem;
}

.story-store {
  font-size: 0.55rem;
  color: var(--color-text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  text-indent: 1rem;
  margin-top: 0.3rem;
  padding: 0 0.75rem;
}
.story-store::before {
  content: "“";
  font-size: 1.5rem;
  color: var(--color-gold);
  line-height: 1;
  font-family: var(--font-serif);
  position: absolute;
  top: -0.1rem;
  left: 0;
  text-indent: 0;
}

.stories-more {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--color-gold) !important;
  margin-top: 0.75rem;
}

.stories-pagination {
  position: relative;
  margin-top: 0.5rem;
}

.stories-pagination .swiper-pagination-bullet {
  width: 0.3rem;
  height: 0.3rem;
  background: var(--color-gold);
  opacity: 0.3;
}

.stories-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* ===== 未来新程 ===== */
.future {
  position: relative;
  /* min-height: 80vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.future-bg {
  position: absolute;
  inset: 0;
}

.future-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.future-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.future-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  color: var(--color-white);
}

.future-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.future-text p {
  font-size: 0.6rem;
  line-height: 1.8;
  opacity: 0.9;
  min-height: 1rem;
}

.future-subtitle {
  font-size: 0.65rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.future-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.65rem;
  font-weight: 500;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--color-main);
  color: var(--color-white);
}

.footer-top {
  padding: 1.5rem 0 1rem;
}

.footer-top .container > div {
  margin-bottom: 1rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.footer-brand-desc {
  font-size: 0.6rem;
  opacity: 0.7;
  line-height: 1.6;
}

.footer-title {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.subscribe-form input,
.subscribe-form select {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.3rem;
  border: none;
  margin-bottom: 0.4rem;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.subscribe-form select {
  color: rgba(255, 255, 255, 0.7);
  appearance: none;
}

.subscribe-form .submit {
  width: 100%;
  background: var(--color-gold);
  color: var(--color-white);
  padding: 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.7rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.footer-nav {
  box-shadow: none !important;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.footer-nav-links button {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.6rem;
  padding: 0.2rem 0;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-item a {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.social-link i {
  display: block;
  width: 100%;
  height: 100%;
  background: url(img/igo.png) no-repeat;
  background-size: 80%;
  background-position: center;
}

.social-links .bjh {
  background-image: url(img/bjh.png);
  width: 0.9rem;
  height: 0.95rem;
}

.social-links .wechat {
  background-image: url(img/wechat.png);
  width: 1.15rem;
  height: 0.95rem;
}

.social-links .igo {
  background-image: url(img/igo.png);
  width: 1rem;
  height: 0.95rem;
}

.social-links .xcx {
  background-image: url(img/xcx.png);
  width: 0.95rem;
  height: 0.95rem;
}

.social-links .xhs {
  background-image: url(img/xhs.png);
  width: 1.2rem;
  height: 0.95rem;
}

.show_ewm .ewm {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  background: var(--color-white);
  padding: 0.2rem;
  border-radius: 0.2rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.2);
}

.show_ewm .ewm img {
  width: 100%;
}

.show_ewm.active .ewm {
  display: block;
}

.footer-slogan {
  background: var(--color-secondary);
  padding: 1rem 0;
  text-align: center;
}

.slogan-big {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.slogan-sub {
  font-size: 0.6rem;
  opacity: 0.7;
}

.slogan-brand {
  font-size: 0.55rem;
  opacity: 0.5;
  margin-top: 0.3rem;
}

/* ===== 动画 ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.offer-more,
.products-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 100%;
  padding: 0.6rem;
  /* margin-top: 0.5rem; */
  font-size: 0.6rem;
  color: #b71c31;
  /* background: transparent; */
  /* border: 0.05rem solid var(--color-gold); */
  border-radius: 2rem;
  transition: var(--transition);
}

.offer-more i,
.products-more i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

#offers.more .offer-more i,
#products.more .products-more i {
  transform: rotate(180deg);
}
