/* ========================================
   Technology Products Page - Page Styles
   命名空间隔离: tp- (Technology Products)
   继承全局设计规范
   ======================================== */

/* ========================================
   第一部分：设计基因提取结果（参考全局样式）
   ======================================== */
/*
   【色彩系统】(来自 style.css)
   --primary: #00d4ff          → 主题蓝（青蓝色）
   --primary-dark: #0099cc       → 深蓝
   --accent: #7b2cff            → 强调紫
   --dark: #0f0f18             → 深色背景
   --dark-medium: #1a1a28       → 次深色
   --text: #e8e8f0             → 正文白色
   --text-muted: #9090a8        → 弱化文字
   --gradient-1: linear-gradient(135deg, #00d4ff 0%, #7b2cff 100%)

   【排版系统】
   --font-display: 'Orbitron', ... → 标题字体
   --font-body: 'Noto Sans SC', ... → 正文字体

   【交互规范】
   --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)
   圆角：16px（卡片）、8px（按钮）
   阴影：0 20px 40px rgba(0,0,0,0.2)（大卡片悬浮）
*/

/* ========================================
   Hero Banner - 深度复刻首页风格
   ======================================== */
.tp-hero {
    position: relative;
    height: 100vh;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #050810;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* 修改后的 tp-hero 背景图承载层 */
.tp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 1. 减轻渐变遮罩的浓度，上半部几乎全透，下半部保留适当遮罩衬托文字 */
    background-image:
        linear-gradient(to bottom, rgba(5, 8, 16, 0.1), rgba(5, 8, 16, 0.65)),
        url('/assets/images/technology-products/product-evo-3.webp'); /* 确保后缀已经是 webp */
    background-position: center center;
    background-size: cover;
    /* 2. 提升整体不透明度，让图片透出来 */
    opacity: 0.85; 
    /* 3. 恢复色彩饱和度，稍微提亮 */
    filter: saturate(0.9) brightness(0.85);
    z-index: 1;
}

.tp-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 900px;
}

/* Badge 样式 - 复刻首页 .hero-badge */
.tp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

/* 呼吸灯圆点 - 复刻首页 .badge-dot */
.tp-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: tp-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--primary);
}

/* 标题样式 - 复刻首页 .hero-title */
.tp-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.tp-title-line {
    display: block;
    animation: tp-fadeInUp 0.8s ease-out backwards;
}

.tp-title-line:nth-child(1) { animation-delay: 0.2s; }
.tp-title-line:nth-child(2) { animation-delay: 0.4s; }

/* 强调文字渐变色 - 复刻首页 .title-line.accent */
.tp-title-line.tp-accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Slogan 样式 - 复刻首页 .hero-slogan */
.tp-hero-slogan {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 500;
}

/* Hero 统计区域 - 复刻首页 .hero-stats */
.tp-hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.tp-stat-item {
    display: flex;
    flex-direction: column;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    min-width: 150px;
}

.tp-stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.tp-stat-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* 动画关键帧 - 复刻首页 @keyframes pulse */
@keyframes tp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* 动画关键帧 - 复刻首页 @keyframes fadeInUp */
@keyframes tp-fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Sticky Navigation (毛玻璃 + 全局规范)
   ======================================== */
.tp-sub-nav {
    position: sticky;
    top: 80px;
    background: rgba(26, 26, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.tp-sub-nav-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tp-nav-item {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.tp-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.tp-nav-item:hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

.tp-nav-item:hover::after {
    width: 80%;
}

/* ========================================
   Section Common Styles
   ======================================== */
.tp-section {
    padding: 100px 0;
}

.tp-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tp-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.tp-section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ========================================
   Product Grid (卡片布局 + 全局规范)
   ======================================== */
.tp-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.tp-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.tp-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.tp-card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.tp-card-content {
    flex: 1;
    padding: 25px;
}

.tp-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.tp-card-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.tp-card-specs li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.tp-card-specs li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.tp-card-tag {
    display: inline-block;
    background: var(--gradient-1);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 10px var(--primary);
}

/* ========================================
   Zebra Layout (斑马线布局 + 全局规范)
   ======================================== */
.tp-zebra-section {
    padding: 100px 0;
}

.tp-zebra-row {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.tp-zebra-row:last-child {
    padding-bottom: 0;
}

.tp-zebra-row:nth-child(even) {
    flex-direction: row-reverse;
}

.tp-zebra-image {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.tp-zebra-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 212, 255, 0.15);
}

.tp-zebra-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.tp-zebra-content {
    flex: 1;
}

.tp-zebra-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.tp-zebra-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.tp-zebra-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tp-zebra-spec {
    background: rgba(0, 212, 255, 0.08);
    padding: 15px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
    transition: var(--transition);
}

.tp-zebra-spec:hover {
    background: rgba(0, 212, 255, 0.12);
    transform: translateX(5px);
}

.tp-zebra-spec-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.tp-zebra-spec-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

/* ========================================
   Infrastructure Grid (基础设施小卡片 + 全局规范)
   ======================================== */
.tp-infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tp-infra-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tp-infra-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.tp-infra-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.tp-infra-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 10px;
}

.tp-infra-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================
   Active Navigation State
   ======================================== */
.tp-nav-item.active {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.15);
}

.tp-nav-item.active::after {
    width: 80%;
}

/* ========================================
   Responsive (响应式断点 + 全局规范)
   ======================================== */
@media (min-width: 769px) {
    .tp-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .tp-hero-title {
        font-size: 2.2rem;
    }

    .tp-hero-subtitle {
        font-size: 1.1rem;
    }

    .tp-zebra-row,
    .tp-zebra-row:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }

    .tp-zebra-image img {
        height: 300px;
    }

    .tp-sub-nav-inner {
        gap: 15px;
    }

    .tp-nav-item {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
}

@media (max-width: 576px) {
    .tp-section {
        padding: 60px 0;
    }

    .tp-product-grid {
        grid-template-columns: 1fr;
    }

    .tp-infra-grid {
        grid-template-columns: 1fr;
    }

    .tp-zebra-specs {
        grid-template-columns: 1fr;
    }
}
