/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066FF;
    --primary-light: #3385FF;
    --primary-dark: #0052CC;
    --primary-bg: rgba(0, 102, 255, 0.08);
    --accent: #00D4AA;
    --text-main: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-light: #fff;
    --bg-main: #f8faff;
    --bg-card: #fff;
    --border: #e8ecf4;
    --shadow: 0 4px 20px rgba(0, 102, 255, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 102, 255, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====== 英雄区域 ====== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #e8f4ff 50%, #d0e8ff 100%);
    overflow: hidden;
    padding: 40px 20px;
}

/* 左上角Logo和标题 */
.hero-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

/* 右上角登录按钮 */
.hero-login {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.25);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.login-btn svg {
    width: 18px;
    height: 18px;
}

/* 科技动画背景 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 170, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 170, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.floating-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite;
}

.floating-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.floating-particles span:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.floating-particles span:nth-child(3) { left: 35%; top: 40%; animation-delay: 4s; }
.floating-particles span:nth-child(4) { left: 50%; top: 70%; animation-delay: 1s; }
.floating-particles span:nth-child(5) { left: 65%; top: 30%; animation-delay: 3s; }
.floating-particles span:nth-child(6) { left: 75%; top: 60%; animation-delay: 5s; }
.floating-particles span:nth-child(7) { left: 85%; top: 20%; animation-delay: 2.5s; }
.floating-particles span:nth-child(8) { left: 90%; top: 80%; animation-delay: 1.5s; }
.floating-particles span:nth-child(9) { left: 5%; top: 50%; animation-delay: 4.5s; }
.floating-particles span:nth-child(10) { left: 45%; top: 90%; animation-delay: 3.5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-100px) scale(1.5);
        opacity: 0.3;
    }
}

.server-icon, .cloud-icon, .shield-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    color: rgba(0, 212, 170, 0.15);
    animation: iconFloat 8s ease-in-out infinite;
}

.server-icon {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.cloud-icon {
    top: 25%;
    right: 15%;
    width: 100px;
    height: 100px;
    animation-delay: 2s;
}

.shield-icon {
    bottom: 20%;
    left: 20%;
    width: 70px;
    height: 70px;
    animation-delay: 4s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* 英雄内容 */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.3;
}

.title-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.price-highlight {
    color: var(--primary);
    font-size: 1.3em;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* 价格展示 */
.price-showcase {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.price-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.15);
    border-radius: 16px;
    padding: 24px 30px;
    min-width: 160px;
    transition: all 0.3s ease;
    position: relative;
}

.price-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
}

.price-card.featured {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    transform: scale(1.05);
}

.price-card.featured:hover {
    transform: scale(1.08);
}

.price-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: #001a4d;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.price-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.price-card.featured .price-label {
    color: rgba(255, 255, 255, 0.9);
}

.price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
}

.price-card.featured .price-value {
    color: var(--text-light);
}

.price-value span {
    font-size: 20px;
    font-weight: 600;
}

.price-value em {
    font-size: 14px;
    font-style: normal;
    opacity: 0.8;
}

.price-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.price-card.featured .price-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* 按钮 */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #00FF88);
    color: #001a4d;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 170, 0.5);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 102, 255, 0.15);
}

/* 特性列表 */
.hero-features {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.feature-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 8px auto 0;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ====== 产品区域 ====== */
.products-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #d0e8ff 0%, #e8f4ff 15%, var(--bg-main) 40%, var(--bg-main) 100%);
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* 产品标签导航 */
.product-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 20px;
}

.tab-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.tab-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #001a4d;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.tab-btn.active .tab-badge {
    background: #fff;
}

/* 产品内容 */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* 产品卡片 */
.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.product-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.product-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary-bg), transparent);
}

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-bg);
}

.product-features {
    list-style: none;
    margin-bottom: 24px;
}

.product-features li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    gap: 8px;
}

.product-features .label {
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-features .label.highlight {
    color: var(--primary);
    font-weight: 600;
}

.product-features .value {
    color: var(--text-main);
    font-weight: 500;
    white-space: nowrap;
    text-align: right;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid var(--primary-bg);
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.product-price span {
    font-size: 16px;
    font-weight: 600;
}

.product-price em {
    font-size: 14px;
    font-style: normal;
    color: var(--text-secondary);
    font-weight: 400;
}

.buy-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

/* ====== 优势区域 ====== */
.advantage-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-main) 0%, #fff 100%);
}

.advantage-container {
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-item {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.advantage-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--primary-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
}

.advantage-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====== 页脚 ====== */
.footer {
    background: linear-gradient(135deg, #001a4d 0%, #003380 100%);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 12px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ====== 响应式设计 ====== */
@media (max-width: 992px) {
    .hero {
        padding: 60px 20px;
    }
    
    .price-showcase {
        gap: 16px;
    }
    
    .price-card {
        padding: 20px 24px;
        min-width: 140px;
    }
    
    .server-icon, .cloud-icon, .shield-icon {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 16px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* 手机端Logo */
    .hero-header {
        top: 12px;
        left: 12px;
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
    }
    
    .logo-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .logo-title {
        font-size: 18px;
    }
    
    /* 手机端登录按钮 */
    .hero-login {
        top: 12px;
        right: 12px;
    }
    
    .login-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .login-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .title-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    /* 价格卡片横向排列不换行 */
    .price-showcase {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 24px;
        flex-wrap: nowrap;
    }
    
    .price-card {
        flex: 1;
        min-width: 0;
        padding: 14px 12px;
    }
    
    .price-card.featured {
        transform: scale(1);
    }
    
    .price-label {
        font-size: 12px;
    }
    
    .price-value {
        font-size: 22px;
    }
    
    .price-value span {
        font-size: 14px;
    }
    
    .price-desc {
        font-size: 10px;
    }
    
    /* 按钮横向排列 */
    .hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .btn-primary, .btn-secondary {
        flex: 1;
        padding: 14px 20px;
        font-size: 15px;
        white-space: nowrap;
        justify-content: center;
        text-align: center;
    }
    
    /* 特性标签紧凑 */
    .hero-features {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .feature-item {
        font-size: 12px;
    }
    
    /* 分类菜单横向滚动不换行 */
    .product-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 8px 0 10px 0;
        margin-bottom: 30px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: center;
    }
    
    .product-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        padding: 14px 20px 10px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .tab-badge {
        font-size: 10px;
        padding: 2px 6px;
        top: -4px;
        right: -4px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
    }
    
    .server-icon, .cloud-icon, .shield-icon {
        display: none;
    }
    
    /* 手机端滚动提示文字 */
    .scroll-hint span {
        display: none;
    }
    
    .scroll-hint::before {
        content: '向下滑动';
        color: var(--text-secondary);
        font-size: 12px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 10px;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 18px;
    }
    
    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .price-showcase {
        gap: 8px;
    }
    
    .price-card {
        padding: 10px 8px;
    }
    
    .price-label {
        font-size: 11px;
    }
    
    .price-value {
        font-size: 18px;
    }
    
    .price-value span {
        font-size: 12px;
    }
    
    .price-desc {
        font-size: 9px;
    }
    
    .price-badge {
        font-size: 9px;
        padding: 2px 6px;
        top: -6px;
        right: -6px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .feature-item {
        font-size: 11px;
    }
    
    .products-section,
    .advantage-section {
        padding: 40px 10px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .product-card {
        padding: 14px;
    }
    
    .product-header h3 {
        font-size: 16px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .product-features li {
        padding: 7px 0;
        font-size: 12px;
    }
    
    .product-footer {
        flex-direction: row;
        gap: 10px;
    }
    
    .product-price {
        font-size: 22px;
    }
    
    .buy-btn {
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .advantage-item {
        padding: 16px;
    }
    
    .advantage-icon {
        width: 44px;
        height: 44px;
    }
    
    .advantage-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .advantage-item h3 {
        font-size: 15px;
    }
    
    .advantage-item p {
        font-size: 12px;
    }
    
    .footer {
        padding: 24px 10px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-links span {
        margin: 0 8px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}
