/* 深空字节官方网站 - 全局样式 */

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

:root {
    --primary-blue: #0066FF;
    --tech-black: #121826;
    --vibrant-orange: #FFB100;
    --title-black: #121826;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-gray: #EEEEEE;
    --deep-space-bg: #0A0F1D;
    --bg-white: #FFFFFF;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* 字体 */
@font-face {
    font-family: 'Inter';
    src: local('Inter'), local('Roboto');
}

/* 全局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 24, 38, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 0;
}

.navbar.scrolled {
    background: rgba(10, 15, 29, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0044AA 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: 'A';
    color: white;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
}

.logo-icon::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--vibrant-orange);
    border-radius: 50%;
    right: 6px;
    bottom: 6px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    color: white;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.logo-text span:last-child {
    color: var(--text-light);
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: white;
    background: rgba(0, 102, 255, 0.2);
}

.nav-cta {
    background: var(--primary-blue);
    color: white !important;
    font-weight: 600;
    padding: 10px 20px !important;
}

.nav-cta:hover {
    background: #0052CC !important;
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 页面头部 */
.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--deep-space-bg) 0%, #0F172A 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="white" opacity="0.3"/><circle cx="50" cy="30" r="1.5" fill="white" opacity="0.2"/><circle cx="80" cy="70" r="1" fill="white" opacity="0.4"/></svg>');
    background-size: 200px 200px;
    opacity: 0.5;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* 节 */
.section {
    padding: 100px 0;
}

.section-gray {
    background: #F8F9FA;
}

.section-dark {
    background: var(--deep-space-bg);
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--title-black);
    margin-bottom: 12px;
}

.section-dark .section-title h2 {
    color: white;
}

.section-title p {
    font-size: 16px;
    color: var(--text-gray);
}

.section-dark .section-title p {
    color: rgba(255, 255, 255, 0.7);
}

/* 卡片 */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-content {
    padding: 28px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: #0052CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* 网格布局 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 页脚 */
.footer {
    background: var(--tech-black);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-slogan {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
}

.footer-column h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    gap: 12px;
}

.footer-contact li span {
    color: rgba(255, 255, 255, 0.4);
    min-width: 60px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-icp {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-icp a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-icp a:hover {
    color: var(--primary-blue);
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0;
    background: #F8F9FA;
    border-bottom: 1px solid var(--border-gray);
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-list {
    display: flex;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-list a {
    color: var(--text-gray);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    color: var(--primary-blue);
}

.breadcrumb-list span {
    color: var(--text-light);
}

.breadcrumb-list .current {
    color: var(--text-dark);
}

/* 响应式 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .navbar.mobile-open .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        gap: 4px;
        padding: 12px;
        border-radius: 12px;
        background: rgba(10, 15, 29, 0.98);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
    }

    .navbar.mobile-open .nav-link {
        width: 100%;
        padding: 12px 14px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }

    .section {
        padding: 60px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
