@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --primary: #0a84ff;
    --primary-dark: #0066cc;
    --secondary: #ff375f;
    --accent: #00d4aa;
    --dark: #0d0d0d;
    --dark-2: #1a1a1a;
    --dark-3: #2a2a2a;
    --text: #e8e8e8;
    --text-dim: #a0a0a0;
    --border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    padding: 1.2rem 2rem;
    max-width: 100%;
    margin: 0;
}

.navbar .logo {
    margin-right: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 英雄区 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(10, 132, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 55, 95, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

/* ∞ Canvas 动画 */
#infinityCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ∞ 星点层 */
.infinity-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.star {
    position: absolute;
    border-radius: 50%;
    animation: starTwinkle var(--dur, 3s) ease-in-out infinite var(--del, 0s);
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.12; transform: scale(0.8); }
    50%       { opacity: 1;    transform: scale(1.4); }
}

/* ∞ 轨道装饰圆环 */
.infinity-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, 78vw);
    height: min(340px, 39vw);
    pointer-events: none;
    z-index: 1;
}

.orbit-track {
    position: absolute;
    width: min(310px, 36vw);
    height: min(310px, 36vw);
    top: 50%;
    border-radius: 50%;
    pointer-events: none;
}

.orbit-left {
    left: 0;
    transform: translateY(-50%);
    box-shadow:
        0 0 0 1px rgba(10, 132, 255, 0.14),
        0 0 45px rgba(10, 132, 255, 0.10),
        inset 0 0 40px rgba(10, 132, 255, 0.06);
    animation: orbitSpinL 28s linear infinite;
}

.orbit-right {
    right: 0;
    transform: translateY(-50%);
    box-shadow:
        0 0 0 1px rgba(0, 212, 170, 0.14),
        0 0 45px rgba(0, 212, 170, 0.10),
        inset 0 0 40px rgba(0, 212, 170, 0.06);
    animation: orbitSpinR 22s linear infinite;
}

@keyframes orbitSpinL {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

@keyframes orbitSpinR {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(-360deg); }
}

/* ∞ 中央能量核心 */
.infinity-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
}

.core-pulse {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid rgba(10, 132, 255, 0.55);
    animation: corePulseAnim 2.8s ease-out infinite;
}

.core-pulse::after {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 170, 0.35);
    animation: corePulseAnim 2.8s ease-out infinite 0.9s;
}

@keyframes corePulseAnim {
    0%   { transform: scale(0.5); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}

.core-dot {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 8px  3px rgba(10,  132, 255, 0.9),
        0 0 28px 8px rgba(10,  132, 255, 0.45),
        0 0 55px 18px rgba(0, 212, 170, 0.25);
    animation: coreGlow 3s ease-in-out infinite;
}

@keyframes coreGlow {
    0%, 100% {
        box-shadow:
            0 0  8px  3px rgba(10,  132, 255, 0.9),
            0 0 28px  8px rgba(10,  132, 255, 0.45),
            0 0 55px 18px rgba(0,  212, 170, 0.25);
    }
    50% {
        box-shadow:
            0 0 14px  5px rgba(255, 255, 255, 0.95),
            0 0 42px 14px rgba(10,  132, 255, 0.65),
            0 0 75px 24px rgba(0,  212, 170, 0.45);
    }
}

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

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(10, 132, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(10, 132, 255, 0.5);
}

/* 区块标题 */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 产品区 */
.products {
    padding: 8rem 0;
    background: var(--dark-2);
}

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

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transition: height 0.4s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(10, 132, 255, 0.15);
}

.product-card:hover::before {
    height: 100%;
}

.product-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.product-card:nth-child(2) .product-icon { animation-delay: 0.6s; }
.product-card:nth-child(3) .product-icon { animation-delay: 1.2s; }

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.product-desc {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.product-tags {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* 服务区 */
.services {
    padding: 8rem 0;
    background: var(--dark);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-item {
    display: flex;
    gap: 3rem;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transition: height 0.4s ease;
}

.service-item:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

.service-item:hover::before {
    height: 100%;
}

.service-number {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: var(--dark-3);
    -webkit-text-stroke: 1px var(--primary);
    min-width: 100px;
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-content p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1.2rem;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(10, 132, 255, 0.2);
    transform: scale(1.05);
}

/* 优势区 */
.advantages {
    padding: 8rem 0;
    background: var(--dark-2);
}

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

.advantage-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.2);
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.advantage-card:nth-child(2) .advantage-icon {
    animation-delay: 0.3s;
}

.advantage-card:nth-child(3) .advantage-icon {
    animation-delay: 0.6s;
}

.advantage-card:nth-child(4) .advantage-icon {
    animation-delay: 0.9s;
}

.advantage-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.advantage-card p {
    color: var(--text-dim);
    line-height: 1.8;
}

/* 联系区 */
.contact {
    padding: 8rem 0;
    background: var(--dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.contact-info > p {
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 1.8rem;
}

.contact-form {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    background: var(--dark-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

.contact-form button {
    width: 100%;
}

/* 页脚 */
.footer {
    padding: 3rem 0;
    background: var(--dark-2);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
}

.footer-icp {
    margin-top: 0.6rem;
    font-size: 0.85rem;
}

.footer-icp a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ── 响应式：平板（≤ 1024px） ─────────────────────────── */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── 响应式：手机（≤ 768px） ──────────────────────────── */
@media (max-width: 768px) {

    /* 导航栏 */
    .navbar .container {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 0.9rem 1.2rem;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.4rem 1.2rem;
        padding: 0.4rem 0 0.2rem;
        border-top: 1px solid var(--border);
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .lang-toggle {
        margin-left: 0;
    }

    /* Hero 标题 */
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

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

    /* 区块标题 */
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 2.5rem;
    }

    /* 产品区 */
    .products {
        padding: 5rem 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        padding: 2rem 1.5rem;
    }

    .product-card h3 {
        font-size: 1.4rem;
    }

    /* 服务区 */
    .services {
        padding: 5rem 0;
    }

    .service-item {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }

    .service-number {
        font-size: 2.5rem;
        min-width: unset;
    }

    .service-content h3 {
        font-size: 1.4rem;
    }

    .service-tags {
        gap: 0.6rem;
    }

    /* 优势区 */
    .advantages {
        padding: 5rem 0;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .advantage-card {
        padding: 1.8rem 1rem;
    }

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

    .advantage-card h4 {
        font-size: 1.2rem;
    }

    /* 联系区 */
    .contact {
        padding: 5rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    /* 容器内边距 */
    .container {
        padding: 0 1.2rem;
    }
}

/* ── 响应式：小手机（≤ 480px） ────────────────────────── */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

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

    .tag {
        font-size: 0.82rem;
        padding: 0.4rem 0.9rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }
}

/* ── 自定义鼠标光标（仅 hover 设备） ─────────────────────── */

/* cursor-dot：鼠标周围的柔和光晕，不遮挡系统指针 */
.cursor-dot {
    position: fixed;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px 6px rgba(10, 132, 255, 0.35);
    transition: box-shadow .15s ease, width .15s ease, height .15s ease;
    will-change: left, top;
}

.cursor-dot.is-clicking {
    box-shadow: 0 0 18px 9px rgba(0, 212, 170, 0.55);
}


/* 点击涟漪（JS 动态创建） */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    border: 1.5px solid rgba(10, 132, 255, 0.8);
    pointer-events: none;
    z-index: 99996;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: transform .65s cubic-bezier(.2, 0, .5, 1),
                opacity   .65s ease;
    will-change: transform, opacity;
}

/* 滚动动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.service-item,
.advantage-card {
    animation: fadeIn 0.8s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

/* ── 语言切换 ─────────────────────────────────────────── */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 2rem;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    color: var(--primary);
    background: rgba(10, 132, 255, 0.12);
}

.lang-divider {
    color: var(--border);
    font-size: 0.85rem;
    user-select: none;
}

