/* 首页样式 - 与各栏目关联、样式统一 */

:root {
  --index-accent: #c81623;
  --index-accent-dark: #a6121d;
  --index-hero-bg: linear-gradient(135deg, #1a237e 0%, #283593 45%, #3949ab 100%);
  --index-card-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --index-card-shadow-hover: 0 8px 28px rgba(200,22,35,0.12);
}

.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--index-hero-bg);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* 轮播区用固定宽高比，避免图片被拉伸变形；cover 只裁剪不拉伸 */
.hero.hero-lunbo {
  width: 100%;
  padding: 0;
  display: block;
  height: 0;
  padding-bottom: calc(560 / 1920 * 100%); /* 1920x560 比例 */
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.hero.hero-lunbo .lunbo-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-lunbo .lunbo-list {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}
.hero-lunbo .lunbo-item {
  flex: 0 0 100%;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #eee;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* 只裁剪不拉伸，保证不变形 */
}
.hero-lunbo .lunbo-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-lunbo .lunbo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.hero-lunbo .lunbo-dot.active {
  background: #fff;
}
.hero-lunbo .lunbo-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
  transition: background 0.2s;
}
.hero-lunbo .lunbo-btn:hover {
  background: rgba(0,0,0,0.5);
}
.hero-lunbo .lunbo-prev { left: 16px; }
.hero-lunbo .lunbo-next { right: 16px; }
.hero-content-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 48px 20px;
}
.hero h1 {
  font-size: 30px;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-desc {
  font-size: 16px;
  margin: 0 0 28px;
  opacity: 0.95;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
  align-items: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--index-accent);
  color: #fff !important;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--index-accent-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: rgba(255,255,255,0.2);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: rgba(255,255,255,0.9) !important;
  border-radius: 6px;
  font-size: 14px;
  transition: color 0.25s, background 0.25s, transform 0.2s;
}
.btn-ghost:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}

/* 快捷入口条 */
.quick-nav {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.quick-nav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  padding: 14px 0;
}
.quick-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  color: #444;
  transition: color 0.2s, background 0.2s;
  border-radius: 4px;
}
.quick-nav-item:hover {
  color: var(--index-accent);
  background: rgba(200,22,35,0.06);
}
.quick-nav-icon {
  color: var(--index-accent);
  font-size: 8px;
  margin-right: 8px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero {
    min-height: 340px;
    padding: 28px 0;
  }
  .hero.hero-lunbo {
    min-height: 360px;
  }
  .hero-lunbo .lunbo-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .hero-lunbo .lunbo-prev { left: 8px; }
  .hero-lunbo .lunbo-next { right: 8px; }
  .hero-lunbo .lunbo-dots {
    bottom: 12px;
  }
  .hero-content {
    padding: 28px 16px;
  }
  .hero h1 {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .hero-desc {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .hero-btns {
    gap: 10px 12px;
  }
  .btn-primary, .btn-secondary, .btn-ghost {
    padding: 12px 24px;
    font-size: 14px;
    min-height: 44px;
  }
  .quick-nav-inner {
    padding: 12px 0;
    gap: 6px 8px;
  }
  .quick-nav-item {
    padding: 6px 12px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .hero {
    min-height: 300px;
  }
  .hero.hero-lunbo {
    min-height: 320px;
  }
  .hero h1 {
    font-size: 18px;
  }
  .hero-desc {
    font-size: 13px;
  }
  .hero-btns {
    flex-direction: column;
  }
  .quick-nav-item .quick-nav-icon {
    margin-right: 6px;
  }
}

.section {
  padding: 50px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 36px 0;
  }
}
@media (max-width: 480px) {
  .section {
    padding: 28px 0;
  }
}
.section:nth-child(even) {
  background: #f9f9f9;
}

/* 区块标题统一装饰 */
.section-title {
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--index-accent);
  border-radius: 2px;
}

/* 公司简介：左文右图 */
.intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 36px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.intro-content {
  min-width: 0;
}
.intro-html {
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}
.intro-html p {
  margin: 0 0 12px;
}
.intro-html p:last-child {
  margin-bottom: 0;
}
.intro-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--index-card-shadow);
}
.intro-image {
  width: 100%;
  height: auto;
  display: none;
  vertical-align: top;
}
.intro-image[src] {
  display: block;
}
.intro-row.intro-row-single {
  grid-template-columns: 1fr;
}
@media (max-width: 768px) {
  .intro-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }
  .intro-image-wrap {
    order: -1;
  }
}
.intro-text {
  max-width: 900px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
  color: #555;
}
.intro-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.intro-more {
  text-align: center;
  margin: 24px 0 0;
}
.link-more {
  font-size: 14px;
  color: var(--index-accent);
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}
.link-more:hover {
  opacity: 0.85;
}
@media (max-width: 900px) {
  .intro-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .intro-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
  }
  .intro-card {
    padding: 18px 12px;
  }
  .intro-card .card-cn {
    font-size: 14px;
  }
  .intro-card .card-en {
    font-size: 11px;
  }
  .intro-more {
    margin-top: 18px;
  }
}
@media (max-width: 480px) {
  .intro-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .intro-text {
    font-size: 13px;
    margin-bottom: 24px;
  }
}
.intro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  box-shadow: var(--index-card-shadow);
}
.intro-card:hover {
  border-color: var(--index-accent);
  box-shadow: var(--index-card-shadow-hover);
  transform: translateY(-2px);
}
.intro-card .card-cn {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: block;
}
.intro-card .card-en {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  display: block;
}

.edu-grid,
.sports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .sports-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
  .edu-pic,
  .sports-pic {
    height: 140px;
  }
  .edu-name,
  .sports-name {
    padding: 12px;
    font-size: 14px;
  }
}
.edu-item,
.sports-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
  box-shadow: var(--index-card-shadow);
}
.edu-item:hover,
.sports-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.edu-pic,
.sports-pic {
  height: 160px;
  background: linear-gradient(145deg, #e8eaf6 0%, #c5cae9 100%);
  background-size: cover;
  background-position: center;
}
.edu-name,
.sports-name {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

/* 影视拍摄 - 参考 2x3 网格大图样式 */
.yingshi-section .more-wrap {
  text-align: center;
  margin-top: 32px;
}
.yingshi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .yingshi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .yingshi-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .yingshi-pic {
    height: 200px;
  }
  .yingshi-name {
    padding: 14px 12px;
    font-size: 14px;
  }
}
.yingshi-grid .yingshi-loading,
.yingshi-grid .yingshi-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 48px 0;
}
.yingshi-item {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.yingshi-item:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
.yingshi-pic {
  position: relative;
  height: 220px;
  background: #e8eaf6;
  overflow: hidden;
}
.yingshi-pic img,
.yingshi-pic video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.yingshi-item:hover .yingshi-pic img,
.yingshi-item:hover .yingshi-pic video {
  transform: scale(1.05);
}
.yingshi-pic .yingshi-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  line-height: 56px;
  text-align: center;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.yingshi-name {
  padding: 18px 16px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #333;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.yingshi-item:hover .yingshi-name {
  color: var(--index-accent);
}

.why-desc {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 36px;
  color: #666;
  font-size: 14px;
  line-height: 1.8;
}
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 768px) {
  .why-cards { grid-template-columns: 1fr; gap: 20px; }
}
.why-card {
  padding: 32px 26px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.25s, border-color 0.25s;
  box-shadow: var(--index-card-shadow);
}
.why-card:hover {
  border-color: rgba(200,22,35,0.3);
  box-shadow: var(--index-card-shadow-hover);
}
.why-card h3 {
  font-size: 17px;
  color: var(--index-accent);
  margin: 0 0 14px;
  font-weight: 600;
}
.why-card p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.75;
}
.why-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--index-accent);
  transition: opacity 0.2s;
}
.why-link:hover {
  opacity: 0.85;
}
.why-cta {
  text-align: center;
  margin: 32px 0 0;
}
.why-cta .btn-primary {
  min-height: 44px;
  padding: 12px 36px;
}

.sports-section .more-wrap,
.news-section .more-wrap {
  text-align: center;
  margin-top: 28px;
}
@media (max-width: 768px) {
  .sports-section .more-wrap,
  .news-section .more-wrap {
    margin-top: 20px;
  }
}
.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid #c81623;
  color: #c81623;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.2s;
}
.btn-more:hover {
  background: #c81623;
  color: #fff;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 40px;
}
@media (max-width: 768px) {
  .news-list {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }
  .news-list li {
    padding: 14px 0;
  }
  .news-list h4 {
    font-size: 14px;
  }
  .news-summary {
    font-size: 12px;
  }
}
.news-list li {
  padding: 20px 0;
  border-bottom: 1px dashed #eee;
}
.news-list li:last-child {
  border-bottom: none;
}
.news-list li.news-loading,
.news-list li.news-empty {
  text-align: center;
  color: #999;
  padding: 32px 0;
}
.news-list h4 {
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 600;
}
.news-list h4 a:hover {
  color: #c81623;
}
.news-meta {
  font-size: 12px;
  color: #999;
  margin: 0 0 8px;
}
.news-summary {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .service-item {
    padding: 16px 12px;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}
.service-item {
  display: block;
  padding: 20px;
  text-align: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s, color 0.2s;
}
.service-item:hover {
  border-color: var(--index-accent);
  color: var(--index-accent);
}
.service-grid .service-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 24px 0;
}
.service-section .more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* 产品中心预览 */
.product-preview-section {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.product-preview-desc {
  text-align: center;
  max-width: 560px;
  margin: -8px auto 28px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}
.product-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .product-preview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.product-preview-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.25s;
  box-shadow: var(--index-card-shadow);
}
.product-preview-card:hover {
  border-color: var(--index-accent);
  box-shadow: var(--index-card-shadow-hover);
  transform: translateY(-3px);
}
.product-preview-pic {
  height: 200px;
  background: linear-gradient(145deg, #e3f2fd 0%, #bbdefb 100%);
}
.product-preview-pic--sports {
  background: linear-gradient(145deg, #fff3e0 0%, #ffe0b2 100%);
}
.product-preview-name {
  display: block;
  padding: 18px 20px 8px;
  font-size: 17px;
  font-weight: 600;
  color: #333;
}
.product-preview-arrow {
  display: inline-block;
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--index-accent);
  transition: opacity 0.2s;
}
.product-preview-card:hover .product-preview-arrow {
  opacity: 0.9;
}

/* 底部 CTA */
.cta-section {
  background: var(--index-hero-bg);
  color: #fff;
  text-align: center;
}
.cta-section .section-title .cn,
.cta-section .section-title .en { color: #fff; }
.cta-section .section-title::after { background: rgba(255,255,255,0.8); }
.cta-inner {
  padding: 20px 0 10px;
}
.cta-title {
  font-size: 22px;
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cta-desc {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 24px;
}
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
}
.cta-links .btn-primary {
  background: #fff;
  color: var(--index-accent) !important;
}
.cta-links .btn-primary:hover {
  background: #f0f0f0;
  color: var(--index-accent-dark) !important;
}
.cta-links .btn-secondary {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.6);
}
.cta-links .btn-ghost {
  color: rgba(255,255,255,0.95) !important;
}
.cta-links .btn-ghost:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.15);
}
@media (max-width: 768px) {
  .cta-title { font-size: 18px; }
  .cta-desc { font-size: 13px; margin-bottom: 20px; }
  .cta-links { gap: 10px; }
}

.keywords-section {
  padding: 24px 0;
  background: #f5f5f5;
  font-size: 13px;
  color: #666;
}
.keywords-label {
  margin: 0 0 8px;
}
.keywords-list a {
  margin-right: 8px;
}
.keywords-list a:hover {
  color: #c81623;
}
@media (max-width: 768px) {
  .keywords-section {
    padding: 16px 0;
    font-size: 12px;
  }
  .keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
  }
  .keywords-list a {
    margin-right: 0;
  }
}
