/* 飞鱼IP - 天蓝色主题框架 */

/* ==================== CSS 变量定义 ==================== */
:root {
    /* 主色调 - 天蓝色系 */
    --fy-primary: #0EA5E9;
    --fy-primary-dark: #0284C7;
    --fy-primary-light: #38BDF8;
    --fy-primary-lighter: #7DD3FC;
    
    /* 辅助色 */
    --fy-secondary: #06B6D4;
    --fy-accent: #22D3EE;
    
    /* 深色系 */
    --fy-dark: #0C4A6E;
    --fy-darker: #083344;
    
    /* 背景色 */
    --fy-bg: #F0F9FF;
    --fy-bg-card: #FFFFFF;
    --fy-bg-dark: #0C4A6E;
    
    /* 文字颜色 */
    --fy-text: #1E293B;
    --fy-text-secondary: #64748B;
    --fy-text-light: #94A3B8;
    --fy-text-white: #FFFFFF;
    
    /* 边框 */
    --fy-border: #E0F2FE;
    --fy-border-light: #F1F5F9;
    
    /* 渐变 */
    --fy-gradient: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
    --fy-gradient-dark: linear-gradient(135deg, #0284C7 0%, #0891B2 100%);
    --fy-gradient-light: linear-gradient(135deg, #38BDF8 0%, #22D3EE 100%);
    
    /* 阴影 */
    --fy-shadow-sm: 0 2px 8px rgba(14, 165, 233, 0.1);
    --fy-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
    --fy-shadow-lg: 0 8px 30px rgba(14, 165, 233, 0.2);
    --fy-shadow-xl: 0 12px 40px rgba(14, 165, 233, 0.25);
    
    /* 圆角 */
    --fy-radius-sm: 8px;
    --fy-radius: 12px;
    --fy-radius-lg: 16px;
    --fy-radius-xl: 20px;
    --fy-radius-full: 9999px;
    
    /* 过渡 */
    --fy-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--fy-text);
    background-color: var(--fy-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 通用容器 ==================== */
.fy-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.fy-section {
    padding: 100px 0;
}

.fy-section-alt {
    background: var(--fy-bg-card);
}

.fy-section-dark {
    background: linear-gradient(180deg, var(--fy-dark) 0%, var(--fy-darker) 100%);
    color: var(--fy-text-white);
}

/* ==================== 导航栏 ==================== */
.fy-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background:
        radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.16), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(34, 211, 238, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(3, 25, 38, 0.94) 0%, rgba(6, 52, 78, 0.94) 48%, rgba(3, 16, 24, 0.96) 100%);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    border-bottom: 1px solid rgba(125, 211, 252, 0.2);
    box-shadow: 0 8px 32px rgba(3, 16, 24, 0.22);
    transition: var(--fy-transition);
}

.fy-header.scrolled {
    background:
        radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.13), transparent 30%),
        linear-gradient(145deg, rgba(3, 16, 24, 0.98) 0%, rgba(6, 52, 78, 0.96) 52%, rgba(3, 16, 24, 0.98) 100%);
    border-bottom-color: rgba(125, 211, 252, 0.28);
    box-shadow: 0 12px 38px rgba(3, 16, 24, 0.38);
}

.fy-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    height: 70px;
}

/* Logo */
.fy-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.fy-logo img {
    height: 38px;
    width: auto;
}

.fy-logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #bae6fd 48%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航链接 */
.fy-nav {
    display: flex;
    gap: 6px;
    align-items: center;
}

.fy-nav a {
    padding: 10px 18px;
    color: rgba(240, 249, 255, 0.88);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--fy-radius-sm);
    border: 1px solid transparent;
    transition: var(--fy-transition);
}

.fy-nav a:hover,
.fy-nav a.active {
    background: rgba(125, 211, 252, 0.15);
    border-color: rgba(125, 211, 252, 0.42);
    color: #ffffff;
    box-shadow: 0 0 22px rgba(56, 189, 248, 0.18);
}

/* 认证按钮 */
.fy-auth-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: var(--fy-radius-full);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--fy-transition);
    border: none;
    cursor: pointer;
}

.fy-auth-nav button,
.fy-auth-nav .group > div:first-child {
    color: rgba(240, 249, 255, 0.92) !important;
    font-weight: 600;
}

.fy-auth-nav button {
    padding: 9px 14px;
    border-radius: var(--fy-radius-sm);
    border: 1px solid rgba(125, 211, 252, 0.34);
    background: rgba(240, 249, 255, 0.06);
    transition: var(--fy-transition);
}

.fy-auth-nav button:hover,
.fy-auth-nav .group:hover > div:first-child {
    color: #ffffff !important;
    background: rgba(125, 211, 252, 0.16) !important;
    border-color: rgba(186, 230, 253, 0.62);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

.fy-btn-login {
    background: rgba(240, 249, 255, 0.06);
    color: #e0f2fe;
    border: 2px solid rgba(125, 211, 252, 0.58);
}

.fy-btn-login:hover {
    background: rgba(125, 211, 252, 0.18);
    color: #ffffff;
    border-color: rgba(186, 230, 253, 0.9);
}

.fy-btn-register {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 52%, #0ea5e9 100%);
    color: var(--fy-text-white);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.28);
}

.fy-btn-register:hover {
    box-shadow: var(--fy-shadow);
    transform: translateY(-2px);
}

/* ==================== 横幅区域 ==================== */
.fy-banner {
    background:
        radial-gradient(circle at 50% 42%, rgba(14, 165, 233, 0.18), transparent 34%),
        linear-gradient(145deg, #031926 0%, #06344e 42%, #072b3d 70%, #031018 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* 短横幅（用于子页面） */
.fy-banner-short {
    padding: 80px 0 60px;
    min-height: 500px;
}

/* 带背景图的短横幅 */
.fy-banner-short.has-bg {
    background:
        radial-gradient(circle at 18% 24%, rgba(125, 211, 252, 0.3) 0%, transparent 28%),
        radial-gradient(circle at 82% 26%, rgba(34, 211, 238, 0.24) 0%, transparent 24%),
        radial-gradient(circle at 52% 78%, rgba(14, 165, 233, 0.18) 0%, transparent 32%),
        linear-gradient(145deg, #031926 0%, #06344e 42%, #072b3d 70%, #031018 100%);
    background-size: auto;
    background-position: center;
}

.fy-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(125, 211, 252, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 211, 252, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.16) 0%, transparent 44%),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.14) 0%, transparent 40%);
    background-size: 72px 72px, 72px 72px, auto, auto;
    opacity: 0.85;
}

.fy-banner-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.fy-banner-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.fy-banner-text h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--fy-text-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.fy-banner-text h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--fy-text-white);
    line-height: 1.3;
    margin-bottom: 24px;
}

.fy-banner-features {
    margin-bottom: 36px;
}

.fy-banner-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 14px;
    list-style: none;
}

.fy-banner-features li::before {
    content: '';
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.fy-banner-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 通用按钮 */
.fy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--fy-radius-full);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--fy-transition);
    border: none;
    cursor: pointer;
}

.fy-btn-primary {
    background: var(--fy-text-white);
    color: var(--fy-primary);
    box-shadow: var(--fy-shadow);
}

.fy-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--fy-shadow-lg);
}

.fy-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--fy-text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.fy-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.fy-btn i {
    font-size: 18px;
}

/* 横幅图片 */
.fy-banner-image {
    position: relative;
}

.fy-banner-image::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4), rgba(6, 182, 212, 0.2));
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.fy-banner-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(14, 165, 233, 0.15));
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}

.fy-banner-image img {
    width: 100%;
    max-width: 1043px;
    height: auto;
    border-radius: var(--fy-radius-xl);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 8px 25px rgba(14, 165, 233, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.fy-banner-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3), 0 10px 35px rgba(14, 165, 233, 0.2);
}

/* ==================== 区块标题 ==================== */
.fy-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.fy-section-kicker {
    display: inline-block;
    color: var(--fy-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.fy-section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--fy-text);
    margin-bottom: 18px;
    line-height: 1.3;
}

.fy-section-desc {
    font-size: 17px;
    color: var(--fy-text-secondary);
    line-height: 1.8;
}

/* ==================== 功能卡片网格 ==================== */
.fy-card-grid {
    display: grid;
    gap: 24px;
}

.fy-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.fy-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.fy-card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* 功能卡片 */
.fy-card {
    background: var(--fy-bg-card);
    border: 1px solid transparent;
    border-radius: var(--fy-radius-lg);
    padding: 32px 28px;
    transition: var(--fy-transition);
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(var(--fy-bg-card), var(--fy-bg-card)), linear-gradient(135deg, rgba(14, 165, 233, 0.5), rgba(99, 102, 241, 0.5));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.fy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--fy-gradient);
}

.fy-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.fy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fy-shadow-lg), 0 0 40px rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

.fy-card:hover::after {
    transform: scale(1.5);
}

.fy-card-icon {
    width: 64px;
    height: 64px;
    background: var(--fy-gradient-light);
    border-radius: var(--fy-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.fy-card-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    filter: blur(4px);
}

.fy-card-icon i {
    font-size: 28px;
    color: var(--fy-text-white);
}

.fy-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--fy-text);
    margin-bottom: 12px;
}

.fy-card-text {
    font-size: 15px;
    color: var(--fy-text-secondary);
    line-height: 1.7;
}

/* ==================== 数据统计 ==================== */
.fy-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fy-stat {
    text-align: center;
    padding: 28px 20px;
    background: var(--fy-bg);
    border-radius: var(--fy-radius-lg);
    border: 1px solid var(--fy-border);
}

.fy-stat:nth-child(1) {
    background: #E0F2FE;
    border-color: #BAE6FD;
}

.fy-stat:nth-child(2) {
    background: #FEF3C7;
    border-color: #FDE68A;
}

.fy-stat:nth-child(3) {
    background: #DCFCE7;
    border-color: #BBF7D0;
}

.fy-stat:nth-child(4) {
    background: #EDE9FE;
    border-color: #DDD6FE;
}

.fy-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--fy-primary);
    margin-bottom: 8px;
}

.fy-stat-label {
    font-size: 14px;
    color: var(--fy-text-secondary);
}

/* ==================== 流程步骤 ==================== */
.fy-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.fy-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--fy-gradient);
    z-index: 0;
}

.fy-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.fy-step-number {
    width: 80px;
    height: 80px;
    background: var(--fy-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--fy-text-white);
    margin: 0 auto 24px;
    box-shadow: var(--fy-shadow);
}

.fy-step-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--fy-text);
    margin-bottom: 12px;
}

.fy-step-text {
    font-size: 15px;
    color: var(--fy-text-secondary);
    line-height: 1.7;
}

/* ==================== 联系卡片 ==================== */
.fy-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fy-contact-card {
    background: var(--fy-bg-card);
    border: 1px solid var(--fy-border);
    border-radius: var(--fy-radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--fy-transition);
}

.fy-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--fy-shadow-lg);
}

.fy-contact-icon {
    width: 72px;
    height: 72px;
    background: var(--fy-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.fy-contact-icon i {
    font-size: 30px;
    color: var(--fy-text-white);
}

.fy-contact-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fy-text);
    margin-bottom: 10px;
}

.fy-contact-info {
    font-size: 22px;
    font-weight: 600;
    color: var(--fy-primary);
    margin-bottom: 8px;
}

.fy-contact-time {
    font-size: 14px;
    color: var(--fy-text-secondary);
}

/* ==================== 页脚 ==================== */
.fy-footer {
    background: linear-gradient(180deg, var(--fy-dark) 0%, var(--fy-darker) 100%);
    color: var(--fy-text-white);
    padding: 80px 0 30px;
}

.fy-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.fy-footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.fy-footer h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--fy-text-white);
}

.fy-footer-links {
    list-style: none;
}

.fy-footer-links li {
    margin-bottom: 12px;
}

.fy-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--fy-transition);
}

.fy-footer-links a:hover {
    color: var(--fy-accent);
}

.fy-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .fy-banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .fy-banner-image {
        display: none;
    }
    
    .fy-banner-text h2 {
        font-size: 32px;
    }
    
    .fy-card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fy-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fy-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fy-steps::before {
        display: none;
    }
    
    .fy-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fy-nav {
        display: none;
    }
    
    .fy-section {
        padding: 70px 0;
    }
    
    .fy-section-title {
        font-size: 28px;
    }
    
    .fy-card-grid-4,
    .fy-card-grid-3,
    .fy-card-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .fy-stats {
        grid-template-columns: 1fr;
    }
    
    .fy-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .fy-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .fy-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .fy-banner {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .fy-banner-buttons {
        flex-direction: column;
    }
    
    .fy-btn {
        width: 100%;
    }
}
