/* 余音科技 Yuinn.Cn - 全局核心样式 */
/* 设计风格：橘红铂金、写实质感、H5深度优化 */

:root {
    --primary: #FF5722;
    --primary-dark: #E64A19;
    --platinum: #E0E0E0;
    --dark: #0A0A0B;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.65);
    --glass-dark: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    color: var(--dark);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 隐藏版权信息 (代码层面) */
/* 导航栏重构 - 玻璃拟态与智能感知 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

nav.scrolled {
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 42px;
    width: auto;
    vertical-align: middle;
}

.logo span {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* 导航链接布局与极致交互 */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    position: relative;
    /* 为指示器提供参考系 */
}

.nav-links li {
    margin: 0 5px;
    /* 减小基础外边距，配合内边距提升磁吸面积 */
}

.nav-links a {
    text-decoration: none;
    color: #FFFFFF;
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 15px;
    padding: 10px 20px;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 呼吸式字间距与辉光悬停 */
.nav-links a:hover {
    color: var(--primary) !important;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

/* 导航指示器 (灵动磁贴) */
.nav-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 10px rgba(255, 87, 34, 0.4);
    pointer-events: none;
    /* 防止遮挡点击 */
}

/* 滚动状态下的颜色翻转 */
nav.scrolled .logo span,
nav.scrolled .nav-links a {
    color: var(--dark);
    text-shadow: none;
}

nav.scrolled .nav-links a:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: radial-gradient(circle at center, #FFFFFF, #F8F9FA);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 5% 100px;
    position: relative;
}

.hero-content {
    width: 100%;
    z-index: 2;
}

.hero-content h1 {
    line-height: 1.1;
    font-weight: 900;
    color: #FFFFFF;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #FFFFFF 0%, #BDBDBD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    max-width: 700px;
    filter: drop-shadow(20px 20px 50px rgba(0, 0, 0, 0.1));
}

/* 按钮样式 */
.btn-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 16px 42px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 8px 30px rgba(255, 87, 34, 0.35);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-block;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-main::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: 0.8s;
}

.btn-main:hover::after {
    left: 100%;
}

.btn-submit:hover,
.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: var(--primary-dark);
    color: var(--white);
}

/* H5/微信 优化 */
@media (max-width: 768px) {

    /* 移动端深度优化 */
    nav {
        height: 65px;
        padding: 15px 5%;
    }

    .nav-right,
    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 5% 50px;
        height: auto;
        min-height: 100dvh !important;
        /* 解决移动端地址栏遮挡 */
    }

    .hero-content h1 {
        font-size: clamp(32px, 12vw, 48px) !important;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image img {
        max-width: 90%;
        margin-bottom: 50px;
    }

    /* 微信端底部导航 - 悬浮毛玻璃质感 */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 25px;
        left: 5%;
        width: 90%;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 40px;
        justify-content: space-around;
        padding: 10px 5px;
        z-index: 999;
    }

    .mobile-nav-item {
        position: relative;
        text-align: center;
        color: #999;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 33.33%;
        transition: all 0.3s ease;
    }

    .mobile-nav-item i {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        margin-bottom: 4px;
        height: 32px;
        width: 50px;
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .mobile-nav-item.active i {
        background: rgba(255, 87, 34, 0.1);
        color: var(--primary);
        transform: translateY(-2px);
    }

    .mobile-nav-item.active {
        color: var(--dark);
    }

    /* 避免悬浮导航遮挡AI客服按钮 */
    #ai-chat-btn {
        bottom: 120px !important;
        right: 20px !important;
        transform: scale(0.9);
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* 底部 Footer */
footer {
    background: #0A0A0B;
    color: white;
    padding: 100px 5% 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-content h3 {
    font-size: 24px;
    margin-bottom: 25px;
    background: linear-gradient(to right, var(--primary), white);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* 隐藏版权 (DOM 评论) */
/* Yuinn.Cn Signature: 5余音6围绕 */

/* 社交图标与联络卡片动效 */
.social-link {
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    filter: grayscale(1);
    opacity: 0.6;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.15);
    filter: grayscale(0) drop-shadow(0 0 15px currentColor);
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-item:hover .wechat-popup {
    display: block !important;
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}