/* =====================================================
   API Shanhe Cloud - 科技感首页样式
   完整的科技风格设计系统
   ===================================================== */

/* ========== 全局变量 ========== */

:root {
    --primary-blue: #2196F3;
    --primary-cyan: #00BCD4;
    --primary-orange: #ff6b35;
    --tech-dark: #0a0e27;
    --tech-purple: #1a1f3a;
    --tech-gradient: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ========== 全局重置 ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--tech-dark);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ========== 顶部导航 ========== */

.tech-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s;
}

.tech-navbar.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.tech-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.tech-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.tech-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tech-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.tech-nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.tech-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-cyan));
    transition: width 0.3s;
}

.tech-nav-link:hover {
    color: white;
}

.tech-nav-link:hover::after {
    width: 100%;
}

.tech-nav-cta {
    display: flex;
    gap: 1rem;
}

.btn-tech {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-tech-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-tech-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(33, 150, 243, 0.5);
}

.btn-tech-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-tech-outline:hover {
    background: var(--glass-bg);
    border-color: var(--primary-blue);
}

/* ========== Hero区域 ========== */

.tech-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 80px;
    overflow: hidden;
}

/* 背景动画 */
.tech-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.tech-hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.tech-hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat 10s ease-in-out infinite;
}

.tech-particle:nth-child(odd) {
    background: radial-gradient(circle, var(--primary-orange) 0%, transparent 70%);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Hero内容 */
.tech-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.tech-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.tech-hero-badge i {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tech-hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 50%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.tech-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.tech-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== 核心特性 ========== */

.tech-features {
    padding: 100px 2rem;
    position: relative;
    background: var(--tech-dark);
}

.tech-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tech-section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(0, 188, 212, 0.2) 100%);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.tech-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.tech-features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.tech-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.tech-feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.tech-feature-card:hover::before {
    opacity: 1;
}

.tech-feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.tech-feature-card:nth-child(2) .tech-feature-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c61 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.tech-feature-card:nth-child(3) .tech-feature-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.tech-feature-card:nth-child(4) .tech-feature-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.tech-feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tech-feature-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ========== 产品服务 ========== */

.tech-products {
    padding: 100px 2rem;
    background: var(--tech-purple);
    position: relative;
}

.tech-product-item {
    max-width: 1200px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-product-item:last-child {
    margin-bottom: 0;
}

.tech-product-item:nth-child(even) {
    direction: rtl;
}

.tech-product-item:nth-child(even) > * {
    direction: ltr;
}

.tech-product-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s;
}

.tech-product-item.visible .tech-product-content {
    opacity: 1;
    transform: translateY(0);
}

.tech-product-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(33, 150, 243, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

.tech-product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-product-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.tech-product-features {
    list-style: none;
    margin-bottom: 2rem;
}

.tech-product-features li {
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tech-product-features li i {
    color: var(--primary-cyan);
}

.tech-product-image {
    position: relative;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    transition: all 0.4s;
}

.tech-product-image:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 20px 60px rgba(33, 150, 243, 0.3);
}

.tech-product-image i {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== 数据统计 ========== */

.tech-stats {
    padding: 80px 2rem;
    background: linear-gradient(180deg, var(--tech-purple) 0%, var(--tech-dark) 100%);
    position: relative;
    overflow: hidden;
}

/* 背景网格 */
.tech-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(33, 150, 243, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridFloat 20s linear infinite;
}

@keyframes gridFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(30px); }
}

.tech-stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.tech-stat-item {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s;
    overflow: hidden;
}

.tech-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.tech-stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.3);
}

.tech-stat-item:hover::before {
    opacity: 1;
}

.tech-stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    animation: iconFloat 3s ease-in-out infinite;
}

.tech-stat-item:nth-child(2) .tech-stat-icon {
    animation-delay: 0.2s;
}

.tech-stat-item:nth-child(3) .tech-stat-icon {
    animation-delay: 0.4s;
}

.tech-stat-item:nth-child(4) .tech-stat-icon {
    animation-delay: 0.6s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tech-stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.tech-stat-number::after {
    content: attr(data-suffix);
    font-size: 1.5rem;
    color: var(--primary-cyan);
}

.tech-stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
}

.tech-stat-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* 统计卡片的不同颜色主题 */
.tech-stat-item:nth-child(1) .tech-stat-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    -webkit-background-clip: text;
}

.tech-stat-item:nth-child(2) .tech-stat-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff8c61 100%);
    -webkit-background-clip: text;
}

.tech-stat-item:nth-child(3) .tech-stat-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    -webkit-background-clip: text;
}

.tech-stat-item:nth-child(4) .tech-stat-icon {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
}

/* ========== 帮助文档预览 ========== */

.tech-help {
    padding: 100px 2rem;
    background: var(--tech-dark);
}

.tech-help-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-help-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tech-help-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.2);
}

.tech-help-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tech-help-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-help-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ========== CTA区域 ========== */

.tech-cta {
    padding: 100px 2rem;
    background: linear-gradient(180deg, var(--tech-dark) 0%, var(--tech-purple) 100%);
    text-align: center;
    position: relative;
}

.tech-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.tech-cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-cta-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

/* ========== 响应式 ========== */

@media (max-width: 1024px) {
    .tech-hero-title {
        font-size: 3rem;
    }

    .tech-product-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tech-product-item:nth-child(even) {
        direction: ltr;
    }

    .tech-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .tech-nav-links {
        display: none;
    }

    .tech-hero {
        padding: 100px 1rem 60px;
    }

    .tech-hero-title {
        font-size: 2.5rem;
    }

    .tech-hero-cta {
        flex-direction: column;
    }

    .tech-features-grid,
    .tech-help-grid {
        grid-template-columns: 1fr;
    }

    .tech-stats-grid {
        grid-template-columns: 1fr;
    }

    .tech-cta-title {
        font-size: 2rem;
    }

    .tech-section-title {
        font-size: 2rem;
    }
}
