/* 自定义样式:覆盖/补充 Tailwind */

/* 全局字体与背景 */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
                 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;
    background-color: #0A1628;
    color: #F1F5F9;
    overflow-x: hidden;
}

/* 选区颜色 */
::selection {
    background-color: rgba(212, 168, 87, 0.4);
    color: #FFFFFF;
}

/* 导航滚动后样式 */
.navbar-scrolled {
    background-color: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* 数据大字渐变 */
.text-gradient-gold {
    background: linear-gradient(135deg, #D4A857 0%, #F1C97E 50%, #D4A857 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(135deg, #38BDF8 0%, #1E5AFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 卡片光边 */
.card-glow {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.card-glow:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 12px 40px rgba(30, 90, 255, 0.2);
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent, rgba(212, 168, 87, 0.3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* 按钮光晕 */
.btn-glow {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #D4A857, #38BDF8, #D4A857);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
    opacity: 0.6;
}

/* 品牌 Logo 灰度 */
.brand-logo {
    filter: grayscale(0.4) brightness(0.9);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Hero 背景层 */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

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

/* 滚动指示器 */
.scroll-indicator {
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(8px); opacity: 1; }
}

/* 数字滚动初始隐藏 */
.count-up {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.count-up.visible {
    opacity: 1;
}

/* 分隔线 */
.divider-glow {
    height: 1px;
    background: linear-gradient(90deg, transparent, #38BDF8, transparent);
    opacity: 0.4;
}

/* 响应式:小屏幕微调 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    .stat-number {
        font-size: 3rem !important;
    }
}

/* 数据条左侧金色边 */
.stat-bar {
    border-left: 4px solid #D4A857;
    transition: all 0.3s ease;
}

.stat-bar:hover {
    border-left-color: #38BDF8;
    transform: translateX(4px);
}

/* Footer 装饰 */
.footer-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38BDF8, transparent);
}

/* 锚点高亮 */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D4A857;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
    color: #D4A857;
}