/* ===== 全局设计令牌 ===== */
:root {
    --ti-blue: #2B6B9E;
    --ti-light: #8BB8D6;
    --ti-silver: #A8A9B0;
    --ti-bg: #0D0D12;
    --ti-card-bg: rgba(255, 255, 255, 0.02);
    --ti-border: rgba(255, 255, 255, 0.06);
    --ti-text: #e8e8f0;
    --ti-text-secondary: #9898a8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--ti-bg);
    color: var(--ti-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== 导航栏（两个页面共用） ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ti-border);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--ti-silver), var(--ti-light), var(--ti-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-decoration: none;
}
.logo span {
    font-weight: 300;
    font-size: 14px;
    -webkit-text-fill-color: var(--ti-text-secondary);
    margin-left: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    font-weight: 400;
    font-size: 15px;
}
.nav-links a {
    color: var(--ti-text-secondary);
    text-decoration: none;
    transition: 0.3s;
    letter-spacing: 0.5px;
}
.nav-links a:hover {
    color: #fff;
}
.nav-links a.active {
    color: #fff;
    border-bottom: 2px solid var(--ti-blue);
    padding-bottom: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--ti-blue), #1d4f7a);
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(43, 107, 158, 0.3);
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(43, 107, 158, 0.5);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--ti-blue);
    padding: 8px 22px;
    border-radius: 30px;
    color: var(--ti-light);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    background: rgba(43, 107, 158, 0.12);
    border-color: var(--ti-light);
}

/* ===== 首屏 Hero ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(43, 107, 158, 0.2), transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
    z-index: -1;
}
.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 184, 214, 0.08), transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    z-index: -1;
}
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--ti-silver), var(--ti-light), var(--ti-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: var(--ti-text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-align: center;
    width: 100%;
}

/* ===== 首页公共样式 ===== */
.section-title {
    font-size: 34px;
    font-weight: 700;
    margin: 72px 0 12px;
    text-align: center;
}
.section-sub {
    text-align: center;
    color: var(--ti-text-secondary);
    margin-bottom: 44px;
    font-size: 17px;
}

/* ===== 产品卡片（两个页面共用） ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 960px;
    margin: 0 auto;
}
.product-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
}
.product-grid.five-col {
    grid-template-columns: repeat(5, 1fr);
    max-width: 1200px;
}

.product-card {
    background: var(--ti-card-bg);
    border-radius: 20px;
    padding: 28px 20px 24px;
    border: 1px solid var(--ti-border);
    transition: 0.4s;
    text-align: center;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 184, 214, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.product-img {
    height: 100px;
    background: linear-gradient(145deg, #1a1a24, #0f0f15);
    border-radius: 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #555;
    border: 1px dashed #2a2a3a;
}
.product-card h4 {
    font-size: 18px;
    font-weight: 600;
}
.product-card .tag {
    display: inline-block;
    font-size: 11px;
    background: rgba(139, 184, 214, 0.12);
    color: var(--ti-light);
    padding: 2px 14px;
    border-radius: 20px;
    margin: 6px 0 4px;
}
.product-card .price {
    color: var(--ti-text-secondary);
    font-weight: 400;
    font-size: 15px;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ===== 场景卡片（首页） ===== */
.scene-split {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.scene-card {
    background: var(--ti-card-bg);
    border: 1px solid var(--ti-border);
    padding: 36px 48px;
    border-radius: 24px;
    width: 280px;
    cursor: pointer;
    transition: 0.4s;
    text-decoration: none;
    color: #fff;
    text-align: center;
}
.scene-card:hover {
    transform: translateY(-8px);
    border-color: var(--ti-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: rgba(43, 107, 158, 0.06);
}
.scene-card .icon {
    font-size: 44px;
    display: block;
    margin-bottom: 10px;
}
.scene-card h3 {
    font-size: 20px;
    margin-bottom: 4px;
}
.scene-card p {
    color: var(--ti-text-secondary);
    font-size: 14px;
}

/* ===== 数据标签（首页） ===== */
.data-badges {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.badge-item {
    text-align: center;
    background: var(--ti-card-bg);
    padding: 14px 32px;
    border-radius: 16px;
    border: 1px solid var(--ti-border);
    min-width: 140px;
}
.badge-item .number {
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--ti-light);
    display: block;
}
.badge-item .label {
    font-size: 13px;
    color: var(--ti-text-secondary);
    letter-spacing: 0.5px;
}

/* ===== 合作模式 ===== */
.capability-section {
    margin: 72px 0;
    background: var(--ti-card-bg);
    border-radius: 32px;
    padding: 56px 48px;
    border: 1px solid var(--ti-border);
    display: flex;
    gap: 56px;
    align-items: center;
    flex-wrap: wrap;
}
.capability-text {
    flex: 1;
    min-width: 280px;
}
.capability-text h2 {
    font-size: 30px;
    margin-bottom: 16px;
}
.capability-text p {
    color: var(--ti-text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}
.capability-text ul {
    list-style: none;
    padding: 0;
}
.capability-text ul li {
    padding: 8px 0;
    color: var(--ti-text-secondary);
    font-size: 15px;
    border-bottom: 1px solid var(--ti-border);
}
.capability-text ul li:last-child {
    border-bottom: none;
}
.capability-text ul li .mode-label {
    color: var(--ti-light);
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
}
.capability-text ul li .mode-desc {
    color: var(--ti-text-secondary);
}
.capability-text .highlight-box {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(43, 107, 158, 0.08);
    border: 1px solid rgba(43, 107, 158, 0.15);
    color: var(--ti-light);
    font-size: 15px;
}

.capability-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    position: relative;
}
.cube-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 20px 0;
}

/* 每个立方体 */
.cube {
    width: 120px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.5px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 三个方块不同颜色 + 错位效果 */
.cube-1 {
    background: linear-gradient(135deg, #2b6b9e, #1a4a7a);
    transform: translateX(-20px) scale(1);
    z-index: 3;
    animation: float1 4s ease-in-out infinite;
}
.cube-2 {
    background: linear-gradient(135deg, #3a8abf, #2b6b9e);
    transform: translateX(0px) scale(1.05);
    z-index: 2;
    animation: float2 4s ease-in-out infinite 0.5s;
}
.cube-3 {
    background: linear-gradient(135deg, #5ba3d4, #3a8abf);
    transform: translateX(20px) scale(1);
    z-index: 1;
    animation: float3 4s ease-in-out infinite 1s;
}

/* 立方体上的图标和文字 */
.cube .cube-icon {
    font-size: 20px;
}
.cube .cube-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 浮动动画 */
@keyframes float1 {
    0%, 100% { transform: translateX(-20px) translateY(0px) scale(1); }
    50% { transform: translateX(-20px) translateY(-6px) scale(1.02); }
}
@keyframes float2 {
    0%, 100% { transform: translateX(0px) translateY(0px) scale(1.05); }
    50% { transform: translateX(0px) translateY(-8px) scale(1.07); }
}
@keyframes float3 {
    0%, 100% { transform: translateX(20px) translateY(0px) scale(1); }
    50% { transform: translateX(20px) translateY(-6px) scale(1.02); }
}

/* 三个方块之间的连接线装饰 */
.cube-stack::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(43, 107, 158, 0.3),
        rgba(43, 107, 158, 0.6),
        rgba(43, 107, 158, 0.3)
    );
    transform: translateX(-50%);
    border-radius: 2px;
}

.capability-visual::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(43, 107, 158, 0.08), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.capability-visual .caption {
    margin-top: 20px;
    font-size: 13px;
    color: var(--ti-text-secondary);
    letter-spacing: 2px;
    font-weight: 300;
    border-top: 1px solid var(--ti-border);
    padding-top: 16px;
    width: 80%;
    text-align: center;
}

/* ===== 两栏布局 ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 50px 0;
}
.info-card {
    background: var(--ti-card-bg);
    border-radius: 24px;
    padding: 34px 32px;
    border: 1px solid var(--ti-border);
}
.info-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}
.info-card p {
    color: var(--ti-text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}

/* ===== 合作流程 ===== */
.process-section {
    margin: 60px auto 20px;      /* 左右 auto = 居中 */
    max-width: 1280px;           /* 限制最大宽度，否则会占满 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 40px;             /* 内边距替代父容器的 */
}
.process-section .section-title,
.process-section .section-sub {
    text-align: center;
    width: 100%;
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 960px;
    width: 100%;
    margin: 36px 0 20px;
}
.process-step {
    background: var(--ti-card-bg);
    border-radius: 20px;
    padding: 28px 16px;
    border: 1px solid var(--ti-border);
    text-align: center;
}
.process-step .step-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--ti-blue);
    opacity: 0.5;
    display: block;
    margin-bottom: 6px;
}
.process-step h4 {
    font-size: 17px;
    margin-bottom: 4px;
}
.process-step p {
    color: var(--ti-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}
.process-note {
    color: var(--ti-light);
    font-size: 15px;
    margin-top: 16px;
    padding: 14px 28px;
    border-radius: 12px;
    background: rgba(43, 107, 158, 0.08);
    border: 1px solid rgba(43, 107, 158, 0.15);
    display: inline-block;
    text-align: center;
}

/* ===== FAQ（整体居中） ===== */
.faq-section {
    margin: 60px auto 20px;      /* 左右 auto = 居中 */
    max-width: 1280px;           /* 限制最大宽度 */
    padding: 0 40px;             /* 内边距 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.faq-section .section-title,
.faq-section .section-sub {
    text-align: center;
    width: 100%;
}
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 40px;
    margin-top: 28px;
    max-width: 960px;
    width: 100%;
}
.faq-item {
    border-bottom: 1px solid var(--ti-border);
    padding: 14px 0;
    text-align: left;
}
.faq-item .q {
    font-weight: 600;
    color: var(--ti-text);
    font-size: 15px;
}
.faq-item .q::before {
    content: "Q: ";
    color: var(--ti-light);
}
.faq-item .a {
    color: var(--ti-text-secondary);
    font-size: 14px;
    margin-top: 4px;
    padding-left: 26px;
}
.faq-item .a::before {
    content: "A: ";
    color: var(--ti-silver);
}

/* ===== 页脚 ===== */
footer {
    margin-top: 72px;
    padding: 40px 0 30px;
    border-top: 1px solid var(--ti-border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
footer .brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
footer .brand .logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
footer .copy {
    color: #666;
    font-size: 13px;
}
footer .contact-info {
    color: var(--ti-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}
footer .contact-info strong {
    color: var(--ti-text);
}
footer .socials a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: 0.2s;
}
footer .socials a:hover {
    color: #fff;
}

/* ===== 产品页分类筛选 ===== */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.category-tab {
    background: transparent;
    border: 1px solid var(--ti-border);
    padding: 8px 28px;
    border-radius: 30px;
    color: var(--ti-text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}
.category-tab:hover {
    border-color: var(--ti-light);
    color: #fff;
}
.category-tab.active {
    background: var(--ti-blue);
    border-color: var(--ti-blue);
    color: #fff;
}

.product-count {
    text-align: center;
    color: var(--ti-text-secondary);
    font-size: 14px;
    margin-bottom: 30px;
}

/* ===== 产品详情浮层（弹窗） ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    justify-content: center;
    align-items: center;
}
.modal-overlay.show {
    display: flex;
}
.modal-content {
    background: #1a1a28;
    border-radius: 28px;
    padding: 48px 56px;
    max-width: 520px;
    width: 90%;
    border: 1px solid var(--ti-border);
    text-align: center;
    position: relative;
}
.modal-content .close-btn {
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 28px;
    color: var(--ti-text-secondary);
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.2s;
}
.modal-content .close-btn:hover {
    color: #fff;
}
.modal-content .modal-icon {
    font-size: 64px;
    margin-bottom: 8px;
}
.modal-content h3 {
    font-size: 26px;
    margin-bottom: 8px;
}
.modal-content p {
    color: var(--ti-text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}
.modal-content .btn-primary {
    font-size: 16px;
    padding: 12px 40px;
}

@media (max-width: 992px) {
    .capability-visual {
        min-height: 200px;
        padding: 20px 0;
    }
    .cube {
        width: 100px;
        height: 42px;
        font-size: 13px;
    }
    .cube .cube-icon { font-size: 17px; }
    .cube-1 { transform: translateX(-12px); }
    .cube-3 { transform: translateX(12px); }
    @keyframes float1 {
        0%, 100% { transform: translateX(-12px) translateY(0px) scale(1); }
        50% { transform: translateX(-12px) translateY(-4px) scale(1.02); }
    }
    @keyframes float3 {
        0%, 100% { transform: translateX(12px) translateY(0px) scale(1); }
        50% { transform: translateX(12px) translateY(-4px) scale(1.02); }
    }
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
    .product-grid.four-col { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
    .product-grid.five-col { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
    .two-col { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); max-width: 600px; }
    .faq-grid { max-width: 100%; }
}
@media (max-width: 700px) {
    .navbar { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
    .nav-links { gap: 16px; font-size: 13px; }
    .nav-links a.active { border-bottom-width: 1px; }
    .hero h1 { font-size: 34px; }
    .hero { padding: 50px 0 40px; }
    .data-badges { gap: 16px; }
    .badge-item { padding: 10px 18px; min-width: 100px; }
    .badge-item .number { font-size: 20px; }
    .scene-split { flex-direction: column; align-items: center; }
    .scene-card { width: 100%; max-width: 320px; padding: 28px 24px; }
    .product-grid { grid-template-columns: 1fr; max-width: 360px; }
    .product-grid.four-col { grid-template-columns: 1fr; max-width: 360px; }
    .product-grid.five-col { grid-template-columns: 1fr; max-width: 360px; }
    .capability-section { padding: 28px 20px; }
    .process-grid { grid-template-columns: 1fr; max-width: 320px; margin: 28px auto; }
    .process-note { padding: 12px 18px; font-size: 14px; }
    .container { padding: 0 20px; }
    footer { flex-direction: column; text-align: center; }
    footer .socials a { margin: 0 10px; }
    .section-title { font-size: 28px; }
    .faq-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 32px 24px; }
    .category-tabs { gap: 10px; }
    .category-tab { padding: 6px 18px; font-size: 13px; }
    .capability-visual {
        min-height: 160px;
        padding: 10px 0;
    }
    .cube {
        width: 80px;
        height: 36px;
        font-size: 11px;
        border-radius: 8px;
        gap: 6px;
    }
    .cube .cube-icon { font-size: 14px; }
    .cube-1 { transform: translateX(-8px); }
    .cube-3 { transform: translateX(8px); }
    @keyframes float1 {
        0%, 100% { transform: translateX(-8px) translateY(0px) scale(1); }
        50% { transform: translateX(-8px) translateY(-3px) scale(1.02); }
    }
    @keyframes float3 {
        0%, 100% { transform: translateX(8px) translateY(0px) scale(1); }
        50% { transform: translateX(8px) translateY(-3px) scale(1.02); }
    }
    .capability-visual .caption {
        font-size: 11px;
        padding-top: 10px;
        width: 90%;
    }
    .cube-stack { gap: 6px; }
    .cube-stack::before { display: none; }
}