/* ========================================
   首页专用样式
   ======================================== */

/* 产品展示区 */
.products-showcase {
    background: var(--color-bg-light);
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 12px 40px rgba(15, 52, 96, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(15, 52, 96, 0.06);
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 260px;
    background: linear-gradient(135deg, var(--color-luxury-black), var(--color-industrial-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-display-xl);
    color: var(--color-primary-blue);
    overflow: hidden;
    padding: 20px 16px;
}

.product-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.product-visual-grid {
    position: absolute;
    inset: -40%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    transform: rotate(-8deg);
    opacity: 0.85;
}

.product-visual-glow {
    position: absolute;
    width: 120%;
    height: 70%;
    top: -25%;
    left: -10%;
    background: radial-gradient(ellipse at 30% 40%, rgba(0, 200, 255, 0.22), transparent 55%),
        radial-gradient(ellipse at 80% 60%, rgba(255, 255, 255, 0.08), transparent 50%);
    animation: product-visual-glow 8s ease-in-out infinite alternate;
}

.product-image-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    max-width: 320px;
}

.product-image-eyebrow {
    margin: 0;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.product-image-caption {
    margin: 0;
    font-size: var(--font-size-sm);
    line-height: 1.45;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
}

.product-image--services .product-visual-grid {
    background-image:
        linear-gradient(rgba(0, 40, 80, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 40, 80, 0.07) 1px, transparent 1px);
}

.product-image--services .product-visual-glow {
    background: radial-gradient(ellipse at 25% 35%, rgba(255, 255, 255, 0.35), transparent 52%),
        radial-gradient(ellipse at 85% 55%, rgba(0, 120, 200, 0.2), transparent 48%);
}

.product-image--services .product-image-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 2px rgba(0, 30, 70, 0.45);
}

.product-image--services .product-image-caption {
    color: rgba(248, 252, 255, 0.94);
    text-shadow: 0 1px 3px rgba(0, 40, 90, 0.5);
}

.product-image .icon-large {
    width: 112px;
    height: 112px;
}

.product-image .adicon svg {
    stroke: var(--color-primary-blue);
    stroke-width: 1.2;
}

.product-image--bbims .adicon svg {
    stroke: rgba(120, 210, 255, 0.95);
}

.product-image--services .adicon svg {
    stroke: rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 1px 2px rgba(0, 40, 90, 0.4));
}

.product-image--services .adicon svg circle[fill="currentColor"] {
    fill: rgba(255, 255, 255, 0.92);
}

.product-image--bbims .adicon svg circle[fill="currentColor"] {
    fill: rgba(180, 235, 255, 0.95);
}

@keyframes product-visual-glow {
    0% {
        opacity: 0.75;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(4%, 2%) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-visual-glow {
        animation: none;
    }
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg) var(--spacing-lg) calc(var(--spacing-lg) + 2px);
    border-top: 1px solid rgba(15, 52, 96, 0.07);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #ffffff 100%);
}

.product-title {
    font-size: var(--font-size-block-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.25;
}

.product-tagline {
    font-size: var(--font-size-body-tight);
    color: #0f3460;
    margin: 0 0 14px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.product-description {
    margin: 0 0 18px;
    font-size: var(--font-size-body);
    line-height: 1.65;
    color: var(--color-text-body);
    max-width: 42em;
}

.product-card-sub {
    margin: 0 0 14px;
    font-size: var(--font-size-sm);
    line-height: 1.5;
    text-align: center;
}

.product-card-sub a {
    color: var(--color-primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.product-card-sub a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 11px 12px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.45;
    color: #334155;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 52, 96, 0.08);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 52, 96, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover .product-features li {
    border-color: rgba(16, 176, 252, 0.22);
    box-shadow: 0 2px 8px rgba(16, 176, 252, 0.08);
}

.product-features .check-icon {
    position: static;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 7px;
    font-size: var(--font-size-2xs);
    line-height: 1;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--color-primary-blue), #0b8ec9);
    box-shadow: 0 1px 3px rgba(16, 176, 252, 0.45);
}

.product-content > .btn {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    padding: 14px 24px;
    letter-spacing: 0.04em;
    font-size: var(--font-size-btn-tight);
}

@media (max-width: 380px) {
    .product-features {
        grid-template-columns: 1fr;
    }
}

/* 动态新闻区 */
.news-section {
    background: var(--color-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--spacing-md);
}

.news-card {
    background: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.news-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-date {
    background: var(--color-brand-blue);
    color: var(--color-white);
    padding: var(--spacing-sm);
    text-align: center;
    font-weight: 600;
}

.news-content {
    padding: var(--spacing-md);
}

.news-title {
    font-size: var(--font-size-tagline);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.news-excerpt {
    color: var(--color-text-muted);
    line-height: var(--leading-normal);
    margin-bottom: 0;
}

/* 首页「查看更多新闻」：常亮主色按钮，无 hover 形态变化 */
.news-section .news-all-link {
    background: var(--color-primary-blue);
    color: var(--color-white);
    border: 2px solid var(--color-primary-blue);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(16, 176, 252, 0.35);
}

.news-section .news-all-link:hover,
.news-section .news-all-link:focus-visible {
    background: var(--color-primary-blue);
    color: var(--color-white);
    border-color: var(--color-primary-blue);
    transform: none;
    box-shadow: 0 4px 16px rgba(16, 176, 252, 0.35);
}

/* 快速入口：样式在 style.css（多页共用） */

/* 数据统计区 */
.stats-section {
    background: var(--color-bg-light);
}

.stats-grid {
    display: grid;
    /* min(100%,200px) 避免窄屏仍按 200px 下限排两列撑出横向滚动 */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item {
    min-width: 0;
    padding: var(--spacing-lg);
}

.stat-number {
    font-size: var(--font-size-hero-title);
    font-weight: 700;
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-tagline);
    color: var(--color-text-muted);
    line-height: var(--leading-snug);
}

/* 挑战滑块 */
.challenge-section {
    background: linear-gradient(180deg, rgba(7, 17, 46, 0.96), rgba(11, 36, 92, 0.96));
    color: #eef4ff;
}

.challenge-slider {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(12, 28, 66, 0.95);
    box-shadow: 0 30px 100px rgba(3, 13, 43, 0.55);
}

.slider-track {
    display: flex;
    transition: transform 0.6s ease;
    will-change: transform;
}

.challenge-slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 52px 42px;
    display: grid;
    gap: 24px;
    align-items: start;
}

.challenge-slide:nth-child(odd) {
    background: linear-gradient(135deg, rgba(11, 30, 70, 0.98), rgba(12, 25, 55, 0.98));
}

.challenge-slide:nth-child(even) {
    background: linear-gradient(135deg, rgba(14, 41, 91, 0.98), rgba(7, 18, 43, 0.98));
}

.challenge-slide h3 {
    font-size: var(--font-size-challenge-title);
    line-height: 1.2;
    max-width: 760px;
}

.challenge-slide .slide-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #88b3ff;
    font-size: var(--font-size-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

.challenge-slide ul {
    list-style: none;
    padding: 0 50px;
    margin: 0;
    display: grid;
    gap: 12px;
}

.challenge-slide ul li {
    position: relative;
    padding-left: 30px;
    padding-right: 60px;
    color: rgba(238, 244, 255, 0.88);
    line-height: 1.8;
}

.challenge-slide ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #69c2ff;
    box-shadow: 0 0 10px rgba(105, 194, 255, 0.4);
}

.challenge-slide p {
    max-width: 760px;
    line-height: 1.8;
    color: rgba(238, 244, 255, 0.8);
    margin: 0 50px;
}

.slide-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(12, 26, 57, 0.92);
    color: #fff;
    font-size: var(--font-size-icon-xl);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.slider-control:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(14, 38, 99, 0.98);
}

.slider-control.prev {
    left: 18px;
}

.slider-control.next {
    right: 18px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 22px 0;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background: #69c2ff;
    transform: scale(1.15);
}

@media (max-width: 900px) {
    .challenge-slide {
        padding: 36px 20px;
    }

    .challenge-slide ul {
        padding: 0 12px;
    }

    .challenge-slide ul li {
        padding: 0 12px 0 0;
    }

    .challenge-slide p {
        margin: 0 12px;
    }

    .slider-control {
        width: 44px;
        height: 44px;
        font-size: var(--font-size-panel-title);
    }

    .slider-control.prev {
        left: 10px;
    }

    .slider-control.next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .challenge-slider {
        border-radius: 20px;
        margin-top: 24px;
    }

    .challenge-slide {
        padding: 24px 14px;
    }

    .challenge-slide h3 {
        font-size: var(--font-size-challenge-title-sm);
    }

    .challenge-slide ul {
        padding: 0 4px;
    }

    .challenge-slide ul li {
        padding-right: 0;
    }

    .challenge-slide p {
        margin: 0 4px;
    }

    .slider-control {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-subheading);
    }

    .slider-control.prev {
        left: 8px;
    }

    .slider-control.next {
        right: 8px;
    }
}

/* 地图区域 */
.map-section {
    position: relative;
    background: radial-gradient(circle at top, rgba(7, 30, 74, 0.95), rgba(13, 47, 108, 0.96));
    overflow: hidden;
}

.map-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 3px),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.12), transparent 2px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.16), transparent 3px),
        radial-gradient(circle at 70% 82%, rgba(255, 255, 255, 0.12), transparent 2px),
        linear-gradient(180deg, rgba(24, 72, 148, 0) 0%, rgba(15, 41, 96, 0.4) 100%);
    pointer-events: none;
}

.map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 520px;
    background: rgba(6, 14, 32, 0.96);
    border: 1px solid rgba(95, 156, 255, 0.3);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-tagline);
    color: #d8e8ff;
}

.map-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 140px 140px;
    opacity: 0.22;
    pointer-events: none;
}

/* 地图缩放条（右上角，与 HUD 青系一致） */
.map-zoom-control {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px 12px;
    min-width: 148px;
    background: rgba(0, 13, 26, 0.82);
    border: 1px solid rgba(0, 212, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(0, 200, 255, 0.12);
    pointer-events: auto;
}

.map-zoom-control__label {
    font-size: var(--font-size-2xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(184, 251, 255, 0.9);
    text-align: center;
    user-select: none;
}

.map-zoom-control__range {
    width: 132px;
    height: 6px;
    margin: 0 auto;
    cursor: pointer;
    accent-color: #00d4ff;
    background: transparent;
}

.map-zoom-control__range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 80, 100, 0.55);
}

.map-zoom-control__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border-radius: 50%;
    background: linear-gradient(145deg, #5cefff, #00b8d4);
    box-shadow: 0 0 10px rgba(0, 230, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.map-zoom-control__range::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(0, 80, 100, 0.55);
}

.map-zoom-control__range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, #5cefff, #00b8d4);
    box-shadow: 0 0 10px rgba(0, 230, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

/* 新闻列表页 news.html：时间轴 + 节点 */
.news-page .news-page__list {
    background: var(--color-bg-light);
}

.news-page .news-timeline {
    position: relative;
    list-style: none;
    margin: 0 auto;
    padding: 8px 0 0;
}

.news-page .news-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 20px;
    bottom: 32px;
    width: 2px;
    background: linear-gradient(
        180deg,
        var(--color-primary-blue) 0%,
        rgba(15, 52, 96, 0.18) 100%
    );
    border-radius: 1px;
}

.news-page .news-timeline-item {
    position: relative;
    padding-left: 48px;
    padding-bottom: 36px;
    margin: 0;
}

.news-page .news-timeline-item:last-child {
    padding-bottom: 0;
}

.news-page .news-timeline-dot {
    position: absolute;
    left: 3px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-primary-blue);
    box-shadow: 0 0 0 3px rgba(16, 176, 252, 0.2), 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.news-page .news-timeline-panel {
    background: var(--color-white);
    border: 1px solid rgba(15, 52, 96, 0.1);
    border-radius: 12px;
    padding: 18px 22px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.news-page .news-timeline-item:hover .news-timeline-panel {
    border-color: rgba(16, 176, 252, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.news-page .news-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.news-page .news-timeline-date {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-industrial-blue);
    letter-spacing: 0.02em;
}

.news-page .news-timeline-tag {
    display: inline-block;
    padding: 2px 10px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary-blue);
    background: rgba(16, 176, 252, 0.12);
    border-radius: 999px;
}

.news-page .news-timeline-title {
    margin: 0 0 10px;
    font-size: var(--font-size-tagline);
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.35;
}

.news-page .news-timeline-excerpt {
    margin: 0;
    font-size: var(--font-size-nav);
    line-height: var(--leading-relaxed);
    color: var(--color-text-body);
}

.news-page .news-page__no-more-wrap {
    margin-top: 48px;
}

.news-page .news-no-more {
    display: inline-block;
    margin: 0;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: var(--font-size-nav);
    line-height: 1.4;
    color: var(--color-white);
    background: var(--color-primary-blue);
    border: 2px solid var(--color-primary-blue);
    box-shadow: 0 4px 16px rgba(16, 176, 252, 0.35);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: var(--spacing-md);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-page .news-timeline {
        max-width: none;
    }

    .news-page .news-timeline-item {
        padding-left: 42px;
    }

    .news-page .news-timeline::before {
        left: 10px;
    }

    .news-page .news-timeline-dot {
        left: 2px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }

    .stat-item {
        padding: var(--spacing-sm) var(--spacing-xs);
    }

    .stat-number {
        font-size: var(--font-size-stat-number);
    }

    .stat-label {
        font-size: var(--font-size-body);
    }

    .map-container {
        height: min(420px, 58vh);
        border-radius: 16px;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .product-image {
        height: 220px;
        min-height: 200px;
    }

    .action-buttons .btn {
        width: 100%;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }
}