/* ========================================
   新捷建站 - 全局样式文件
   数码科技风 | 银灰 + 深黑 + 浅蓝
   ======================================== */

/* CSS Reset & 基础变量 */
:root {
    --color-primary: #00d4ff;
    --color-primary-dark: #0099cc;
    --color-secondary: #c0c5ce;
    --color-bg-dark: #0a0e14;
    --color-bg-card: #121821;
    --color-bg-card-hover: #1a2230;
    --color-text-main: #ffffff;
    --color-text-muted: #8892a0;
    --color-border: #2a3441;
    --gradient-main: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --gradient-card: linear-gradient(145deg, rgba(0,212,255,0.1) 0%, rgba(0,102,255,0.05) 100%);
    --shadow-card: 0 10px 40px rgba(0, 212, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(0, 102, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   导航栏样式 - 悬浮卡片分层设计
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-main);
    z-index: 1001;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    box-shadow: var(--shadow-glow);
}

.logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 24px;
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-main);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端菜单 */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 14, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 10px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 15px 20px;
        font-size: 16px;
    }

    .header-container {
        padding: 0 20px;
    }
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: var(--color-bg-card);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--color-bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.social-icon:hover {
    background: var(--gradient-main);
    color: var(--color-text-main);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-main);
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-contact i {
    color: var(--color-primary);
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 14px;
}

.footer-beian {
    color: var(--color-text-muted);
    font-size: 14px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-container {
        padding: 0 20px;
    }
}

/* ========================================
   通用组件样式
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 30px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-title span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--color-text-main);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
}

/* 卡片通用样式 */
.card {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px);
    background: var(--color-bg-card-hover);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 212, 255, 0.3);
}

.card:hover::before {
    transform: scaleX(1);
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .container {
        padding: 0 20px;
    }
}
