/* 思帆出海 - 公共样式文件 */
:root {
    --primary-blue: #00D4FF;
    --dark-blue: #0066CC;
    --bg-black: #0A0A0A;
    --card-bg: #1A1A1A;
    --text-secondary: #B8BCC8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-black);
    color: white;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* 自定义滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1A1A1A; }
::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark-blue); }

/* 导航栏样式 */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.85);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.15);
}

/* 语言选择器样式 */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    min-width: 100px;
    backdrop-filter: blur(10px);
}

.language-trigger:hover {
    border-color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.language-trigger.active {
    border-color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.language-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.language-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--primary-blue);
}

.language-trigger.active .language-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    font-size: 14px;
}

.language-option:hover {
    background: rgba(0, 212, 255, 0.15);
    padding-left: 20px;
}

.language-option.active {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-blue);
}

.language-option .flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 语言切换动画 */
.language-switch-animation {
    animation: languageSwitch 0.6s ease;
}

@keyframes languageSwitch {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.8) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* 粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: particle-float 20s infinite linear;
    opacity: 0.7;
}

@keyframes particle-float {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* 增强科技感粒子效果 */
.tech-particle {
    position: absolute;
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    animation: tech-float 25s infinite ease-in-out;
    pointer-events: none;
}

@keyframes tech-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -50px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-80px, 80px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(120px, 40px) scale(1.1);
        opacity: 0.5;
    }
}

/* 英雄区域背景动画 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0A0A0A 0%, #001122 100%);
    overflow: hidden;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s infinite ease-in-out;
    opacity: 0.7;
}

.orb1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    top: -250px;
    right: -150px;
    animation-delay: 0s;
}

.orb2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.4) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
    animation-delay: 5s;
}

.orb3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.3) 0%, transparent 70%);
    top: 30%;
    left: 60%;
    animation-delay: 10s;
}

.orb4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 70%);
    top: 60%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(40px, -40px) scale(1.15) rotate(90deg); }
    50% { transform: translate(-30px, 30px) scale(0.9) rotate(180deg); }
    75% { transform: translate(30px, 40px) scale(1.05) rotate(270deg); }
}

/* 网格背景 */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 15s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* 文字渐变效果 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #9333EA 0%, #EC4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--bg-black);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* 特性卡片 */
.feature-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary-blue);
    box-shadow: 0 25px 50px rgba(0, 212, 255, 0.25);
}

/* 服务卡片 */
.service-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 102, 204, 0.1) 100%);
}

/* 数字动画 */
.counter {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 标签页切换 */
.tab-button {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.tab-content {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 脉冲动画 */
.pulse-slow {
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(0, 212, 255, 0);
    }
}

/* 团队成员卡片 */
.team-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.team-avatar {
    position: relative;
    overflow: hidden;
}

.team-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 212, 255, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-avatar::after {
    opacity: 1;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-blue), transparent);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 0 2rem;
}

.timeline-content.text-right {
    text-align: right;
}

.timeline-content.text-left {
    text-align: left;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    z-index: 2;
    border: 3px solid #1a1a1a;
}

/* 表单样式 */
.form-input {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    background: rgba(26, 26, 26, 1);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单按钮样式增强 */
#mobileMenuToggle {
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1000;
}

#mobileMenuToggle:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: scale(1.05);
}

#mobileMenuToggle:active {
    transform: scale(0.95);
}

/* 添加视觉指示器 */
#mobileMenuToggle::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mobileMenuToggle:not([data-initialized])::after {
    opacity: 1;
    animation: pulse 2s infinite;
}

/* 确保在移动端显示 */
@media (max-width: 768px) {
    #mobileMenuToggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* 移动端菜单关闭按钮 */
#mobileMenuClose {
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#mobileMenuClose:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

#mobileMenuClose:active {
    transform: scale(0.95);
}

/* 移动端菜单链接样式 */
.mobile-menu .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.mobile-menu .nav-link:hover::before {
    left: 100%;
}

.mobile-menu .nav-link:hover {
    color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(10px);
}

/* 导航链接 */
.nav-link {
    position: relative;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    text-decoration: none;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    width: 100%;
}

/* 社交图标 */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--primary-blue);
}

/* 产品特性图标 */
.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* 加载动画 */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* AI分析进度条动画 */
@keyframes loading {
    0% { width: 0%; }
    10% { width: 15%; }
    20% { width: 25%; }
    30% { width: 35%; }
    40% { width: 45%; }
    50% { width: 55%; }
    60% { width: 65%; }
    70% { width: 75%; }
    80% { width: 85%; }
    90% { width: 92%; }
    95% { width: 98%; }
    100% { width: 100%; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.4);
    }
}

.ai-loading {
    animation: loading 3s ease-in-out infinite;
}

.ai-status-dot {
    animation: pulse-glow 2s ease-in-out infinite;
}

.ai-percentage {
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .counter {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 40px;
        margin-bottom: 40px;
    }

    .timeline-content {
        padding: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content.text-right {
        text-align: left !important;
        padding-right: 0 !important;
    }

    .timeline-content.pl-8,
    .timeline-content.pr-8 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}