:root {
    --bg-color: #030305;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    --gradient-glow: linear-gradient(90deg, #ff007f, #7928ca, #ff007f);

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 隐藏默认光标，移动端也无所谓因为不会显示 */
    cursor: none;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-secondary) var(--bg-color);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 自定义光标 */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 1001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--accent-secondary);
}

/* 动态背景 - 升级版星云效果 */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.25;
    animation: drift 25s infinite alternate ease-in-out;
}

.bg-glow-1 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--accent-primary), transparent 60%);
    top: -20vh;
    left: -20vw;
}

.bg-glow-2 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
    bottom: -10vh;
    right: -10vw;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.2;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translate(10vw, 15vh) scale(1.1) rotate(10deg);
        opacity: 0.2;
    }
}

/* 基础通用类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 150px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-gradient {
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* 高级按钮式样 - 霓虹发光边框 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--glass-bg);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
    transition: opacity 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover::before {
    opacity: 0.8;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    color: white;
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: padding 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(3, 3, 5, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.logo-m {
    color: white;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:not(.btn):hover {
    color: white;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* 多语言切换按钮 */
.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    z-index: 100;
}

.lang-toggle:hover {
    background: var(--accent-primary);
    transform: translateY(-2px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* 英雄区 (Hero) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    position: relative;
    background-image: url('hero-bg.png');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.65);
    /* 暗化遮罩以便文字清晰 */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85);
    /* 在带图背景上变亮一点 */
    margin-bottom: 50px;
    max-width: 700px;
    margin-inline: auto;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
}

/* 关于我们与主旨愿景 (Company Info) */
.company-info {
    position: relative;
    padding-bottom: 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    border-left: 3px solid var(--accent-primary);
    padding: 40px;
    border-radius: 0 20px 20px 0;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.info-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    transform: translateX(5px);
    border-color: var(--accent-secondary);
}

.info-card .section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: left;
}

.info-card .section-desc {
    text-align: justify;
    margin: 0;
}

/* 核心业务 */
.core-business {
    position: relative;
    background-image: url('about-bg.png');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.core-business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-color), rgba(3, 3, 5, 0.7) 30%, rgba(3, 3, 5, 0.7) 70%, var(--bg-color));
    z-index: 0;
}

.core-business .container {
    position: relative;
    z-index: 1;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.business-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 50px;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Hover 发光边缘特效 */
.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition);
}

.business-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.1);
}

.business-card:hover::before {
    background: var(--gradient-primary);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 30px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.business-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--accent-primary);
}

.business-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.business-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 旗下品牌卡片 3D Effect准备 */
.brand-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
    perspective: 1000px;
    /* 为 VanillaTilt 提供景深 */
}

.brand-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 30px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    /* Safari需要 */
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.brand-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
    pointer-events: none;
}

/* 品牌专属渐变光晕 */
.brand-card:nth-child(1) .brand-bg {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 70%);
}

.brand-card:nth-child(2) .brand-bg {
    background: radial-gradient(circle at center, rgba(244, 114, 182, 0.15), transparent 70%);
}

.brand-card:nth-child(3) .brand-bg {
    background: radial-gradient(circle at center, rgba(74, 222, 128, 0.15), transparent 70%);
}

.brand-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.brand-card:hover .brand-bg {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

.brand-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateZ(40px);
    /* 3D悬浮效果 */
}

.brand-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
    transition: var(--transition);
}

.brand-card:hover .brand-icon {
    background: rgba(255, 255, 255, 0.1);
}

.icon-cloud {
    color: #38bdf8;
}

.icon-ip {
    color: #f472b6;
}

.icon-code {
    color: #4ade80;
}

.brand-card h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.brand-domain {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-card p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    flex-grow: 1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.brand-link {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    transform: translateZ(20px);
}

.brand-link svg {
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-link {
    gap: 15px;
    color: var(--accent-primary);
}

.brand-card:hover .brand-link svg {
    transform: translateX(5px);
}

/* 页脚 */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 0 40px;
    background: #020202;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 15px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 动画揭示类 */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, visibility;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

/* --- SVG 动态图标动画 --- */
/* Float: 上下轻微浮动 */
.anim-svg.float-anim {
    animation: svgFloat 3s ease-in-out infinite;
}

@keyframes svgFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Pulse: 大小轻微脉冲 */
.anim-svg.pulse-anim {
    animation: svgPulse 2.8s ease-in-out infinite;
    transform-origin: center;
}

@keyframes svgPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
}

/* Cloud: 云团悬浮漂移 */
.anim-svg.cloud-anim {
    animation: svgCloud 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes svgCloud {

    0%,
    100% {
        transform: translateY(0) scaleX(1);
    }

    50% {
        transform: translateY(-5px) scaleX(1.05);
    }
}

/* Shield/IP: 坚不可摧的轻微盾牌摆动 */
.anim-svg.shield-anim {
    animation: svgShield 4s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
    transform-origin: center;
}

@keyframes svgShield {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.05) rotate(3deg);
        filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.4));
    }

    75% {
        transform: scale(1.05) rotate(-3deg);
        filter: drop-shadow(0 0 8px rgba(244, 114, 182, 0.4));
    }
}

/* Code: 代码括号律动 */
.anim-svg.code-anim {
    animation: svgCode 1.5s ease-in-out infinite alternate;
}

@keyframes svgCode {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5));
    }
}

/* 核心：Hover 时令人惊叹的流光矢量绘制动画 (SVG Line Drawing Effect) */
.business-card:hover .anim-svg path,
.business-card:hover .anim-svg rect,
.business-card:hover .anim-svg line,
.business-card:hover .anim-svg polyline,
.brand-card:hover .anim-svg path,
.brand-card:hover .anim-svg polyline {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: svgDashDraw 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes svgDashDraw {
    0% {
        stroke-dashoffset: 200;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* 响应式 */
@media (max-width: 768px) {

    /* 移动端禁用自定义光标以防止冲突 */
    * {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding: 80px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}