/* ========================================
   北京微奇科技有限公司 - 科技官网样式表
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --bg-dark: #f8fafc;
    --bg-dark-2: #f1f5f9;
    --bg-dark-3: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --border-radius: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 粒子画布 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 32px;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.tag {
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    font-size: 14px;
    color: var(--secondary-color);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.element-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.element-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Sections
   ======================================== */
.section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

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

.section-tag {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.6) 50%, transparent 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.about-text .lead-text {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-content: center;
}

.stat-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-unit {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding-left: calc(50% + 40px);
    padding-bottom: 48px;
}

.timeline-item:nth-child(even) {
    padding-left: 0;
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.2);
}

.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   Business Section
   ======================================== */
.business-section {
    background: var(--bg-dark-2);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.business-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 32px;
    transition: var(--transition-smooth);
}

.business-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
}

.business-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.business-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-dark);
}

/* ========================================
   Advantages Section
   ======================================== */
.advantages-section {
    background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.8) 50%, transparent 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.advantage-item {
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(59, 130, 246, 0.2);
}

.advantage-item:hover::before {
    opacity: 1;
}

.advantage-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(59, 130, 246, 0.12);
    margin-bottom: 16px;
}

.advantage-item h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.advantage-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    background: var(--bg-dark-2);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    padding: 48px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--border-radius);
    padding: 48px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 18px 32px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    background: rgba(241, 245, 249, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

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

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(99, 102, 241, 0.05);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(0, -40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(-5deg);
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 1;
    }
    50% {
        transform: rotate(45deg) translateY(10px);
        opacity: 0.5;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-tags {
        gap: 8px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 24px 16px;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .business-card {
        padding: 32px 24px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}
