/* ========================================
   启迪元智官网 - 炫酷现代化样式
   ======================================== */

/* CSS变量 - 现代化配色 */
:root {
    /* 主色调 */
    --primary-dark: #0a0a0a;
    --primary-darker: #050505;
    --secondary-dark: #1a1a1a;
    --accent-gold: #d4af37;
    --accent-gold-light: #f4cf6d;
    --accent-blue: #00d4ff;
    --accent-purple: #a855f7;

    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f4cf6d 100%);
    --gradient-cyber: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    --gradient-dark: linear-gradient(135deg, rgba(10,10,10,0.95) 0%, rgba(26,26,26,0.95) 100%);

    /* 字体 */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* 阴影 */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(212, 175, 55, 0.4);
    --shadow-cyber: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - 暗黑主题背景 */
body {
    font-family: var(--font-family);
    color: #e0e0e0;
    line-height: 1.6;
    background: #0a0a0a;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 76px;
    overflow-x: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-light);
}

/* ========================================
   导航栏 - 玻璃态设计
   ======================================== */
.navbar {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 0.5rem 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 45px;
    width: auto;
    max-width: 250px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    margin-right: 12px;
}

.navbar-logo:hover {
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    transform: translateY(-2px);
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 50%, var(--accent-blue) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    animation: shimmerBrand 3s linear infinite;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    position: relative;
}

@keyframes shimmerBrand {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.navbar-brand:hover .brand-text {
    letter-spacing: 3px;
    transform: scale(1.05);
}


.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: var(--gradient-cyber);
    -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;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

/* ========================================
   Hero Section - 炫酷首屏
   ======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Hero内容容器 */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .row {
    align-items: center;
}

/* Hero标题 - 渐变文字效果 */
.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold-light) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Hero副标题 */
.hero-section .lead {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

/* 徽章样式 */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Hero图标 - 浮动动画 */
.hero-image {
    text-align: center;
    animation: float 4s ease-in-out infinite;
    position: relative;
}

.hero-image i {
    filter: drop-shadow(0 10px 40px rgba(212, 175, 55, 0.4));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* ========================================
   按钮样式 - 现代化设计
   ======================================== */
.btn-primary {
    position: relative;
    background: var(--gradient-cyber);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

/* ========================================
   特性卡片 - 玻璃态3D效果
   ======================================== */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.feature-card {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* 卡片发光边框效果 */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-cyber), var(--accent-purple), var(--accent-gold));
    -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;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(26, 26, 26, 0.8);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

/* 图标样式 */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-cyber);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: inherit;
    border-radius: inherit;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card:hover .feature-icon::after {
    opacity: 0.7;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: var(--gradient-dark);
    backdrop-filter: blur(20px);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.footer h5 {
    color: var(--accent-gold);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    max-width: 200px;
    filter: brightness(1.1);
    margin-bottom: 1rem;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 10px;
    background: rgba(26, 26, 26, 0.5);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2),
                0 0 30px rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3),
                0 0 40px rgba(212, 175, 55, 0.3);
}

/* 覆盖Bootstrap的text-muted，使其在暗黑主题下更清晰 */
.footer .text-muted,
.footer p.text-muted,
.footer div.text-muted,
.footer ul.text-muted,
.footer .text-muted p,
.footer .text-muted a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer li {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 0.8rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer ul li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

    .btn-primary, .btn-outline-light {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }
}

/* ========================================
   Loading动画优化
   ======================================== */
#page-loader {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.loader-content {
    text-align: center;
    color: var(--accent-gold);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.1);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   通用动画类
   ======================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   文字发光效果
   ======================================== */
.glow-text {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5),
                 0 0 20px rgba(212, 175, 55, 0.3),
                 0 0 30px rgba(212, 175, 55, 0.2);
}

/* ========================================
   产品页面样式
   ======================================== */
.product-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
}

.product-card img {
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}
