/* ============================================
   科技风格红色配色 - 完整重构
   ============================================ */

:root {
    --primary-red: #ff2d2d;
    --dark-red: #8b0000;
    --accent-red: #ff6b6b;
    --black: #0d0d0d;
    --dark-gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --white: #ffffff;
    --text-gray: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Segoe UI', -apple-system, 'Microsoft YaHei', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 45, 45, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 0, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ============ Header ============ */
.header-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.99) 0%, rgba(26, 26, 26, 0.96) 100%);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 45, 45, 0.25);
    z-index: 999;
    box-shadow: 0 8px 40px rgba(255, 45, 45, 0.2);
}

.header-nav::before {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red) 20%, var(--primary-red) 80%, transparent);
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.4);
}

.header-nav .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "▌";
    color: var(--primary-red);
    font-size: 24px;
    opacity: 0.6;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.logo span {
    color: var(--white);
    background: linear-gradient(90deg, #fff, var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 60px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.nav-links a::before {
    content: "";
    position: absolute;
    left: -15px;
    width: 4px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    box-shadow: 0 0 10px rgba(255, 45, 45, 0.6);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 1;
    left: -25px;
}

.nav-links a:hover::after {
    width: 100%;
}

.shop-btn {
    padding: 12px 35px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border: none;
    border-radius: 0;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(255, 45, 45, 0.3);
}

.shop-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.shop-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(255, 45, 45, 0.5);
}

.shop-btn:hover::before {
    left: 100%;
}

/* ============ Hero ============ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 45, 45, 0.1), transparent);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-tagline {
    font-size: 14px;
    color: var(--primary-red);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 45, 45, 0.3);
    border-radius: 20px;
    background: rgba(255, 45, 45, 0.05);
    animation: floatGlow 3s ease-in-out infinite;
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 0 20px rgba(255, 45, 45, 0.3);
        background: rgba(255, 45, 45, 0.05);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 10px 30px rgba(255, 45, 45, 0.6);
        background: rgba(255, 45, 45, 0.15);
        color: #ffffff;
    }
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 30px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: marqueeFlicker 4s ease-in-out infinite;
}

@keyframes marqueeFlicker {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 1;
        filter: brightness(1);
    }
    25% {
        transform: translateX(-15px) scale(1);
        opacity: 0.7;
        filter: brightness(1.3);
    }
    50% {
        transform: translateX(15px) scale(1.02);
        opacity: 1;
        filter: brightness(1);
    }
    75% {
        transform: translateX(-10px) scale(1);
        opacity: 0.7;
        filter: brightness(1.3);
    }
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin: 20px 0;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.hero-subtitle.en {
    margin-top: 10px;
    font-size: 14px;
}

.image-box-section {
    margin-top: 80px;
    margin-bottom: 60px;
}

.image-container {
    border: 2px solid rgba(255, 45, 45, 0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(255, 45, 45, 0.1);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* ============ 公共卡片 ============ */
.common-card {
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.5) 0%, rgba(26, 26, 26, 0.3) 100%);
    border: 1px solid rgba(255, 45, 45, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.common-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 45, 45, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.common-card:hover {
    border-color: rgba(255, 45, 45, 0.4);
    background: linear-gradient(135deg, rgba(50, 50, 50, 0.8) 0%, rgba(35, 35, 35, 0.5) 100%);
    box-shadow: 0 15px 40px rgba(255, 45, 45, 0.15);
    transform: translateY(-8px);
}

.common-card:hover::before {
    opacity: 1;
}

/* ============ 功能模块 ============ */
.feature-module {
    padding: 100px 0;
    position: relative;
}

.module-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1px;
    color: var(--white);
}

.module-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.feature-card-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* ============ 图片展示 ============ */
.feature-image-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 45, 45, 0.03) 100%);
}

.feature-image-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-image-container {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.feature-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.feature-image-container:hover img {
    transform: scale(1.1) rotate(1deg);
}

.feature-image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 45, 45, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-image-container:hover::after {
    opacity: 1;
}

/* ============ 视频模块 ============ */
.video-module {
    padding: 100px 0;
}

.common-tag {
    display: inline-block;
    color: var(--primary-red);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 45, 45, 0.3);
    border-radius: 20px;
    background: rgba(255, 45, 45, 0.05);
}

.video-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin: 30px 0 60px;
    letter-spacing: -1px;
}

.video-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 20px auto 0;
    border-radius: 2px;
}

.video-container {
    position: relative;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.5) 0%, rgba(26, 26, 26, 0.3) 100%);
    border: 1px solid rgba(255, 45, 45, 0.2);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    max-width: 1000px;
    margin: 0 auto;
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(139, 0, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.video-cover.hidden {
    display: none;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 45, 45, 0.2);
    border: 3px solid var(--primary-red);
    color: var(--primary-red);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn:hover {
    background: rgba(255, 45, 45, 0.4);
    box-shadow: 0 0 30px rgba(255, 45, 45, 0.5);
    transform: scale(1.1);
}

.video-player {
    width: 100%;
    height: 100%;
    display: none;
}

.video-player.show {
    display: block;
}

/* ============ 新闻FAQ模块 ============ */
.news-help-module {
    padding: 100px 0;
    background: linear-gradient(180deg, rgba(255, 45, 45, 0.03) 0%, transparent 100%);
}

.news-section, .faq-section {
    margin-bottom: 80px;
}

.news-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.news-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 20px 0;
    border-radius: 2px;
}

.news-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.news-list, .faq-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item-wrap, .faq-item-wrap {
    padding: 35px;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 30px;
    cursor: pointer;
}

.news-date {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 100px;
}

.news-link {
    font-size: 18px;
    color: var(--primary-red);
    font-weight: 700;
    flex: 1;
    transition: all 0.3s ease;
}

.news-link:hover {
    text-shadow: 0 0 15px rgba(255, 45, 45, 0.5);
}

.news-detail {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.8;
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 45, 45, 0.1);
}

.news-detail.show {
    display: block;
}

.faq-header {
    margin-bottom: 40px;
}

.faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-red);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    text-shadow: 0 0 10px rgba(255, 45, 45, 0.4);
}

.faq-answer {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.8;
    display: none;
    margin-top: 15px;
}

.faq-answer.show {
    display: block;
}

/* ============ 推荐模块 ============ */
.testimonial-module {
    padding: 100px 0;
}

.testimonial-title {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin: 30px 0 60px;
    letter-spacing: -1px;
    line-height: 1.3;
}

.testimonial-title::before {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.testimonial-list {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.testimonial-card-large {
    padding: 40px;
    grid-column: 1;
    grid-row: 1 / 3;
}

.testimonial-card-small-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial-card {
    padding: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-red);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
}

.author-role {
    font-size: 12px;
    color: var(--text-gray);
}

.testimonial-rating {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 14px;
}

.testimonial-content {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}

.common-btn {
    display: block;
    margin: 0 auto;
    padding: 16px 50px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border: none;
    border-radius: 4px;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(255, 45, 45, 0.3);
}

.common-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 45, 45, 0.5);
}

/* ============ 返回顶部 ============ */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(255, 45, 45, 0.3);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 45, 45, 0.5);
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 48px;
    }

    .module-title,
    .video-title,
    .news-title,
    .testimonial-title {
        font-size: 32px;
    }

    .testimonial-list {
        grid-template-columns: 1fr;
    }

    .testimonial-card-large {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .header-nav {
        height: 70px;
    }

    .hero-section {
        padding-top: 70px;
    }

    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 25px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .hero-section::before {
        width: 400px;
        height: 400px;
    }

    .feature-image-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-wrap {
        grid-template-columns: 1fr;
    }

    .testimonial-card-small-wrap {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .module-title {
        font-size: 24px;
    }

    .nav-links {
        display: none;
    }

    .feature-image-wrap {
        grid-template-columns: 1fr;
    }

    .testimonial-list {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        right: 20px;
        bottom: 20px;
    }
    /* 基础样式 */
.hero-section {
  padding: 60px 0;
  text-align: center;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 图片列表横向排列 */
.image-list {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.image-container {
  width: 280px;
  cursor: pointer;
  transition: transform 0.3s;
}
.image-container:hover {
  transform: scale(1.05);
}
.auto-img, .carousel-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 放大轮播弹窗样式 */
.carousel-modal {
  display: none; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
}
#modalImg {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 关闭按钮 */
.close-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* 左右切换按钮 */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  padding: 20px;
  cursor: pointer;
  user-select: none;
}
.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}
}
