/*
 * NCC 2026 Red KV Theme Override
 * 适用于当前 NCF2026.zip 结构：index.php + css/*.css
 * 放在所有原有 CSS 之后引用：<link href="css/ncc2026_red_theme.css?v=20260531" rel="stylesheet" type="text/css" />
 * 只覆盖视觉样式，不改动数据库和页面结构。
 */

:root {
  --themeht-primary-color: #b40005;
  --themeht-secondary-color: #f7cc65;
  --themeht-text-color: #3b1414;
  --themeht-body-color: #71534d;
  --themeht-bg-dark-color: #570003;
  --themeht-bg-light-color: #fff7ef;
  --themeht-bg-light2-color: #fff0de;
  --themeht-border-light-color: rgba(180, 0, 5, 0.16);

  --ncc-red: #b40005;
  --ncc-red-deep: #720003;
  --ncc-red-dark: #450002;
  --ncc-red-light: #d71920;
  --ncc-gold: #f7cc65;
  --ncc-gold-light: #fff0ad;
  --ncc-cream: #fff8ec;
  --ncc-shadow: 0 18px 46px rgba(114, 0, 3, 0.16);
}

html,
body {
  background: #fff8f1;
  color: var(--themeht-text-color);
}

/* 通用主色：从原蓝绿改为红金 */
.theme-bg,
.dark-bg,
.secondary-bg {
  background: linear-gradient(135deg, #710003 0%, #b40005 48%, #d71920 100%) !important;
}

.text-theme,
.theme-title h6,
.list-icon li i,
.post-card .post-bottom li i,
.scroll-top svg path,
.counter-icon i {
  color: var(--ncc-red) !important;
}

.light-bg {
  background: linear-gradient(180deg, #fff8f1 0%, #fff2e4 100%) !important;
}

.rounded {
  border-radius: 22px !important;
}

/* 顶部导航及页头 */
.header,
.main-header,
.site-header,
.navbar,
#header {
  background: rgba(112, 0, 3, 0.96) !important;
  box-shadow: 0 10px 30px rgba(86, 0, 4, 0.16);
}

.header .navbar-nav .nav-link,
.header a,
.main-header a,
.site-header a,
.navbar a,
#header a {
  color: #fff8e8 !important;
}

.header .navbar-nav .nav-link:hover,
.header .navbar-nav .nav-link.active,
.header a:hover,
.main-header a:hover,
.site-header a:hover,
.navbar a:hover,
#header a:hover {
  color: var(--ncc-gold) !important;
}

/* 按钮 */
.themeht-btn,
.primary-btn,
a.primary-btn,
.white-btn,
.btn,
.btn-primary {
  border-radius: 999px !important;
}

.primary-btn,
a.primary-btn,
.themeht-btn.primary-btn {
  color: #6b0003 !important;
  background: linear-gradient(135deg, #fff2b0 0%, #f7cc65 45%, #e79b23 100%) !important;
  box-shadow: 0 14px 30px rgba(125, 0, 5, 0.18);
}

.primary-btn:hover,
a.primary-btn:hover,
.themeht-btn.primary-btn:hover {
  color: #4d0002 !important;
  background: linear-gradient(135deg, #fff5c8 0%, #ffda78 45%, #f0aa2b 100%) !important;
  transform: translateY(-2px);
}

.white-btn,
a.white-btn {
  color: #7c0004 !important;
  background: linear-gradient(135deg, #fffdf1 0%, #fff3bf 100%) !important;
  box-shadow: 0 12px 26px rgba(80, 0, 2, 0.18);
}

/* 首页主KV：兼容当前两栏轮播结构 */
.banner-one,
.banner-slider,
.banner-swiper,
section.p-0 {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 210, 124, 0.22), transparent 22%),
    radial-gradient(circle at 20% 76%, rgba(255, 232, 154, 0.22), transparent 28%),
    linear-gradient(112deg, #6b0003 0%, #b40005 44%, #c90008 72%, #650003 100%) !important;
  position: relative;
  overflow: hidden;
}

.banner-one::before,
.banner-slider::before,
section.p-0::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("../images/kv2026-red.jpg") center center / cover no-repeat,
    linear-gradient(112deg, #6b0003 0%, #b40005 60%, #650003 100%);
  opacity: 0.26;
  pointer-events: none;
}

.banner-one::after,
.banner-slider::after,
section.p-0::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(80, 0, 2, 0.15), rgba(255,255,255,0.03) 45%, rgba(75,0,2,0.22)),
    radial-gradient(circle at 70% 45%, rgba(247, 204, 101, 0.16), transparent 34%);
}

.banner-one .swiper-wrapper,
.banner-one .swiper-slide,
.banner-one .banner-content {
  position: relative;
  z-index: 2;
}

.banner-one .banner-content {
  padding: 38px 0 52px;
}

.banner-one .banner-content .row {
  align-items: stretch;
}

.banner-one .mobile-bg-img {
  min-height: clamp(300px, 35vw, 560px);
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #a80005;
  box-shadow: 0 24px 60px rgba(60, 0, 2, 0.22);
}

.banner-one .banner-text {
  height: 100%;
  min-height: clamp(300px, 35vw, 560px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4.2vw, 70px) !important;
  border: 1px solid rgba(255, 231, 166, 0.26);
  background:
    linear-gradient(135deg, rgba(100, 0, 2, 0.92) 0%, rgba(190, 0, 8, 0.92) 58%, rgba(115, 0, 4, 0.92) 100%) !important;
  box-shadow: 0 24px 70px rgba(70, 0, 2, 0.26);
}

.banner-one .banner-text h2 {
  color: #fff !important;
  font-size: clamp(32px, 4.2vw, 62px);
  line-height: 1.12;
  text-shadow: 0 6px 18px rgba(60, 0, 2, 0.46);
}

.banner-one .banner-text p {
  max-width: 100%;
  color: #fff8e8 !important;
  font-size: clamp(15px, 1.2vw, 18px);
  text-shadow: 0 3px 10px rgba(70, 0, 2, 0.3);
}

.banner-one .swiper-button-next,
.banner-one .swiper-button-prev,
.swiper-button-next,
.swiper-button-prev {
  color: #fff4c6 !important;
  background: rgba(130, 0, 4, 0.56);
  border-radius: 50%;
  border: 1px solid rgba(255, 226, 150, 0.28);
}

/* 标题与模块 */
.theme-title h6 {
  color: var(--ncc-red) !important;
  letter-spacing: 0.1em;
}

.theme-title h2,
.theme-title h3,
.page-title,
.section-title {
  color: var(--ncc-red-deep) !important;
}

.theme-title h2 span,
.title-text {
  color: var(--ncc-red) !important;
}

.about-text2 {
  background: linear-gradient(135deg, #8b0004 0%, #d71920 100%) !important;
  box-shadow: 0 16px 38px rgba(112, 0, 3, 0.22);
}

/* 邀请函照片与内容区更贴合红色KV */
.ht-img-effect-image img,
.post-image img,
.portfolio-img img {
  border-radius: 20px;
}

.ht-img-effect-image,
.post-card,
.portfolio-item,
.marquee-icon-box,
.box-shadow,
.panel,
.working-hours-item {
  border-color: rgba(180, 0, 5, 0.14) !important;
}

.post-card,
.marquee-icon-box,
.box-shadow,
.portfolio-item {
  box-shadow: var(--ncc-shadow) !important;
}

.marquee-icon-box {
  background: linear-gradient(180deg, #fff 0%, #fff8ed 100%) !important;
  border: 1px solid rgba(180, 0, 5, 0.10);
  transition: all .25s ease;
}

.marquee-icon-box:hover {
  transform: translateY(-4px);
  border-color: rgba(180, 0, 5, 0.26);
  box-shadow: 0 22px 48px rgba(114, 0, 3, 0.18) !important;
}

.marquee-icon-box i,
.marquee-icon-box h5,
.post-title h4 a,
.themeht-link-btn span {
  color: var(--ncc-red-deep) !important;
}

.marquee-icon-box:hover i,
.marquee-icon-box:hover h5,
.post-title h4 a:hover,
.themeht-link-btn:hover span {
  color: var(--ncc-red) !important;
}

/* 重要日期 */
.working-hours-item {
  border-bottom: 1px solid rgba(255, 241, 185, 0.26) !important;
}

.working-hours-item .working-day,
.working-hours-item .working-time {
  color: #fff8e8 !important;
}

/* 中部标语 */
.dark-bg,
section.dark-bg {
  background-color: #5c0003 !important;
  background-blend-mode: multiply;
}

.testimonial.style-2 .testimonial-content p {
  color: #fff7df !important;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
}

.testimonial-caption h4 {
  color: var(--ncc-gold-light) !important;
}

/* 新闻卡片 */
.post-card.style-2 {
  background: #fff;
  border: 1px solid rgba(180, 0, 5, 0.12);
}

.post-card .post-bottom,
.post-card .post-desc {
  color: #75524c;
}

/* 合作伙伴区域 */
.portfolio-item.style-1 {
  background: #fffaf3;
  border: 1px solid rgba(180, 0, 5, 0.08);
}

/* 页脚 */
.footer,
.site-footer,
#footer {
  background: linear-gradient(135deg, #4d0002 0%, #850004 52%, #b40005 100%) !important;
  color: #fff8e8 !important;
}

.footer a,
.site-footer a,
#footer a {
  color: #fff0b8 !important;
}

.scroll-top {
  background: linear-gradient(135deg, #b40005 0%, #e0a330 100%) !important;
}

/* 红色主KV图片在内页横幅中也保持比例 */
.ny_banner,
.index-banner,
.main-banner,
.kv,
.hero-section {
  background-color: #8a0004;
}

.ny_banner img,
.index-banner img,
.main-banner img,
.kv img,
.hero-section img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover;
  object-position: center center;
}

/* 响应式：移动端避免主KV被压扁 */
@media (max-width: 1199px) {
  .banner-one .banner-text {
    padding: 42px !important;
  }
}

@media (max-width: 991px) {
  .banner-one .banner-content {
    padding: 22px 0 34px;
  }

  .banner-one .mobile-bg-img {
    min-height: 260px;
    background-size: cover !important;
  }

  .banner-one .banner-text {
    min-height: auto;
    padding: 30px !important;
    margin-top: 18px;
  }

  .banner-one .banner-text h2 {
    font-size: clamp(28px, 7vw, 42px);
  }

  section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

@media (max-width: 575px) {
  .banner-one .mobile-bg-img {
    min-height: 220px;
    border-radius: 16px !important;
  }

  .banner-one .banner-text {
    border-radius: 16px !important;
    padding: 24px !important;
  }

  .banner-one .banner-text h2 {
    font-size: 28px;
  }

  .themeht-btn,
  .primary-btn,
  .white-btn {
    padding: 9px 20px !important;
  }

  .theme-title h2 {
    font-size: 32px;
    line-height: 42px;
  }
}
