/* ===================================
   科猎工作室 - 创意科技风
   =================================== */

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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0a0a0f;
    --darker: #050508;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    cursor: default;
}

.container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 加载动画 ========== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2.5s forwards;
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loader-text {
    font-size: 1.5rem;
    letter-spacing: 8px;
    margin: 20px 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(99, 102, 241, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    width: 0;
    height: 100%;
    background: var(--gradient);
    animation: loading 2.5s ease forwards;
}

@keyframes loading {
    to { width: 100%; }
}



/* ========== 鼠标光晕效果 ========== */
.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

.mouse-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
}

/* 悬停时的光晕增强 */
.mouse-glow.hover {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.15) 40%, transparent 70%);
}

.mouse-glow.hover::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    animation: ripple 1s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* 拖尾粒子动画 */
@keyframes trailFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(0, 50px) scale(0.9); }
    75% { transform: translate(-50px, 0) scale(1.05); }
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--light);
}

.logo-symbol {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link span:first-child {
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--light);
}

.nav-link:hover span:first-child {
    opacity: 1;
    transform: translateX(0);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--light);
    transition: all 0.3s;
}

/* ========== Hero 区域 ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

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

.hero-label {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: var(--gray);
}

.label-line {
    width: 60px;
    height: 1px;
    background: var(--gradient);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.title-line {
    display: block;
    font-weight: 800;
    opacity: 0;
    transform: translateY(50px);
    animation: revealUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.7s; }
.title-line:nth-child(4) { animation-delay: 0.9s; }

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line.gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.2s forwards;
    max-width: 100%;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.4s forwards;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 1px solid rgba(99, 102, 241, 0.5);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.6s forwards;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========== 通用 Section ========== */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== 业务板块 ========== */
.services {
    background: rgba(10, 10, 15, 0.5);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    overflow: hidden;
}

.service-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
    padding: 30px;
    background: var(--dark);
    transition: all 0.4s;
    cursor: pointer;
}

.service-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.service-item:hover .service-number {
    opacity: 1;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.service-icon {
    font-size: 2.5rem;
}

.service-content h3 {
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 700;
}

.service-content p {
    color: var(--gray);
    line-height: 1.8;
}

.service-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
}

.service-tags li {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    color: var(--gray);
    white-space: nowrap;
}

/* ========== 技术栈 Marquee ========== */
.tech-showcase {
    padding: 80px 0;
    background: rgba(10, 10, 15, 0.5);
    overflow: hidden;
}

.tech-marquee {
    display: flex;
    gap: 20px;
}

.tech-track {
    display: flex;
    gap: 20px;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

.tech-item {
    flex-shrink: 0;
    padding: 20px 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    transition: all 0.3s;
}

.tech-item:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tech-item span {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== 关于我们 ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-text {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--primary);
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-unit {
    font-size: 1.5rem;
    color: var(--primary);
    margin-left: 5px;
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* 代码卡片 */
.visual-card {
    background: var(--dark);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    gap: 8px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.card-dot.red { background: #ff5f56; }
.card-dot.yellow { background: #ffbd2e; }
.card-dot.green { background: #27ca40; }

.card-body {
    padding: 30px;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 2;
}

.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-string { color: #98c379; }

/* ========== 联系我们 ========== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 30px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.4s;
    cursor: pointer;
}

.contact-card:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.card-hint {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 15px;
}

/* ========== 页脚 ========== */
.footer {
    padding: 60px 0 40px;
    background: var(--dark);
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 10px;
}

.footer-slogan {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.beian-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.beian-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

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

.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .container { 
        width: 90%;
        padding: 0 20px; 
    }
    
    .hero-title { font-size: 3rem; }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
    }
    
    .service-number {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .container { 
        width: 95%;
        padding: 0 15px; 
    }
    
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    
    .hero-title { font-size: 2rem; }
    .hero-cta { flex-direction: column; }
    .hero-btns { flex-direction: column; }
    
    .section-title { font-size: 1.8rem; }
    
    .about-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-info { text-align: center; }
    
    .beian-links {
        justify-content: center;
    }
    
    .service-tags {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    
    .section-title { font-size: 2rem; }
    
    .about-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-info { text-align: center; }
}
