/* Luolin Network Landing Page - 自定义样式 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 页面加载动画 ========== */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* ========== Hero 区域 ========== */
.hero-section {
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0.9) 100%);
}

/* Hero 浮动装饰粒子 */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-section::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-section::after {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    50% { transform: translate(30px, -30px) scale(1.1); opacity: 0.8; }
}

/* Hero 标题渐变动画 */
.hero-section h1 {
    background: linear-gradient(135deg, #FAF8F5 0%, #C9A962 50%, #FAF8F5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

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

/* CTA 区域背景 */
.cta-section {
    background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.cta-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
}

/* CTA 装饰线条 */
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(201, 169, 98, 0.5));
    z-index: 2;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* ========== 导航栏效果 ========== */
header {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* 导航链接下划线动画 */
header nav a {
    position: relative;
    overflow: hidden;
}

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

header nav a:hover::after {
    width: 100%;
}

/* Logo 悬停效果 */
header > div:first-child {
    transition: transform 0.3s ease;
}

header > div:first-child:hover {
    transform: scale(1.02);
}

header > div:first-child .border {
    transition: all 0.3s ease;
}

header > div:first-child:hover .border {
    border-color: #C9A962;
    box-shadow: 0 0 15px rgba(201, 169, 98, 0.3);
}

/* ========== 按钮效果 ========== */
button {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 主按钮悬停效果 */
button.bg-gold {
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

button.bg-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 98, 0.4);
}

button.bg-gold:active {
    transform: translateY(0);
}

/* 按钮波纹效果 */
button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button:hover::before {
    width: 300px;
    height: 300px;
}

/* 边框按钮效果 */
button.border {
    transition: all 0.3s ease;
}

button.border:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: #C9A962 !important;
    transform: translateY(-2px);
}

/* ========== 服务卡片效果 ========== */
#services .border {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

#services .border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #C9A962, transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

#services .border:hover::before {
    transform: translateX(100%);
}

#services .border:hover {
    border-color: rgba(201, 169, 98, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(201, 169, 98, 0.1);
}

/* 服务卡片图标动画 */
#services .border .w-12 {
    transition: all 0.4s ease;
}

#services .border:hover .w-12 {
    transform: scale(1.1) rotate(5deg);
    border-color: #C9A962;
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
}

/* ========== 流程步骤卡片效果 ========== */
.grid .border {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.grid .border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to top, rgba(201, 169, 98, 0.1), transparent);
    transition: height 0.4s ease;
}

.grid .border:hover::after {
    height: 100%;
}

.grid .border:hover {
    border-color: rgba(201, 169, 98, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 步骤数字动画 */
.grid .border .text-5xl {
    transition: all 0.4s ease;
}

.grid .border:hover .text-5xl {
    transform: scale(1.2);
    color: rgba(201, 169, 98, 0.4) !important;
}

/* ========== 数据统计动画 ========== */
#about .flex-col {
    transition: all 0.3s ease;
}

#about .flex-col:hover {
    transform: translateX(10px);
}

#about .font-display.text-gold {
    transition: all 0.4s ease;
    display: inline-block;
}

#about .flex-col:hover .font-display.text-gold {
    transform: scale(1.08);
    text-shadow: 0 0 30px rgba(201, 169, 98, 0.5);
}

/* ========== 滚动动画 ========== */
.animate-ready {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 延迟动画类 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ========== 页脚效果 ========== */
footer a {
    position: relative;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #C9A962 !important;
    padding-left: 5px;
}

/* 社交图标效果 */
footer .w-10 {
    transition: all 0.3s ease;
}

footer .w-10:hover {
    background: rgba(201, 169, 98, 0.1);
    border-color: #C9A962 !important;
    transform: translateY(-3px);
}

footer .w-10:hover i {
    color: #C9A962 !important;
}

/* ========== 分隔线装饰 ========== */
.border-b::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A962;
    transition: width 0.5s ease;
}

#about .border-b {
    position: relative;
}

#about .border-b:hover::after {
    width: 100%;
}

/* ========== 页面整体字体平滑渲染 ========== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========== 响应式调整 ========== */
@media (max-width: 1280px) {
    header,
    section,
    footer {
        padding-left: 60px !important;
        padding-right: 60px !important;
    }

    #services .grid,
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    #about {
        flex-direction: column;
        gap: 60px;
    }

    #about > div:last-child {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px !important;
    }

    header nav {
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 40px !important;
    }

    #services .grid,
    .grid.grid-cols-4 {
        grid-template-columns: 1fr;
    }

    #about > div:last-child {
        flex-direction: column;
    }

    footer .flex.gap-20:first-child {
        flex-direction: column;
        gap: 40px;
    }

    footer .flex.gap-20 .flex.gap-20 {
        flex-wrap: wrap;
        gap: 30px;
    }
}

/* ========== 自定义滚动条 ========== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.4), rgba(201, 169, 98, 0.2));
    border-radius: 5px;
    border: 2px solid #0A0A0A;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(201, 169, 98, 0.6), rgba(201, 169, 98, 0.4));
}

/* ========== 选中文本颜色 ========== */
::selection {
    background: rgba(201, 169, 98, 0.3);
    color: #FAF8F5;
}

/* ========== 光标跟随效果容器 ========== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========== 文字渐显效果 ========== */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}

/* ========== 脉冲动画 ========== */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ========== 渐变边框效果 ========== */
.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #C9A962, transparent, #C9A962);
    -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;
}

.gradient-border:hover::before {
    opacity: 1;
}

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

.hero-section .relative.z-10 > * {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-section .relative.z-10 > *:nth-child(1) { animation-delay: 0.1s; }
.hero-section .relative.z-10 > *:nth-child(2) { animation-delay: 0.3s; }
.hero-section .relative.z-10 > *:nth-child(3) { animation-delay: 0.5s; }
