/* 海角网企业官网 - 首页样式 */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0891b2;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #1f2937;
    --bg-overlay: rgba(37, 99, 235, 0.05);
    
    --gradient-primary: linear-gradient(135deg, #2563eb, #3b82f6);
    --gradient-secondary: linear-gradient(135deg, #0891b2, #06b6d4);
    --gradient-accent: linear-gradient(135deg, #f59e0b, #fbbf24);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --animation-duration: 0.5s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-container {
    min-height: 100vh;
    position: relative;
}

/* 动态背景 */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(8, 145, 178, 0.04));
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-primary);
    top: 10%;
    right: 10%;
    animation-delay: -5s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--gradient-accent);
    top: 60%;
    right: 40%;
    animation-delay: -15s;
}

@keyframes orbFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg); 
    }
    25% { 
        transform: translate(-30px, -20px) scale(1.1) rotate(90deg); 
    }
    50% { 
        transform: translate(25px, -30px) scale(0.9) rotate(180deg); 
    }
    75% { 
        transform: translate(-20px, 25px) scale(1.05) rotate(270deg); 
    }
}

/* 头部导航 */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
}

.brand-title:hover {
    transform: scale(1.05);
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-item {
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.nav-item.premium-nav {
    background: var(--gradient-primary);
    color: white;
}

.nav-item.premium-nav:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-secondary, .btn-primary {
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

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

/* 主要内容 */
.main-content {
    padding-top: 80px;
}

/* 英雄区域 */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(8, 145, 178, 0.05));
    position: relative;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--radius-2xl);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight-word {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat-group {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

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

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary-large, .btn-secondary-large {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary-large {
    background: var(--gradient-primary);
    color: white;
}

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

.btn-secondary-large {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(31, 41, 55, 0.1);
}

.btn-secondary-large:hover {
    background: white;
    box-shadow: var(--shadow-lg);
}

.visual-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.card-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    animation: cardFloat 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -10%;
    display: flex;
    align-items: center;
    gap: 8px;
    animation-delay: -1s;
}

.card-2 {
    bottom: 30%;
    left: -10%;
    display: flex;
    align-items: center;
    gap: 8px;
    animation-delay: -3s;
}

.card-3 {
    top: 70%;
    right: 15%;
    display: flex;
    align-items: center;
    gap: 8px;
    animation-delay: -5s;
}

.card-icon {
    font-size: 16px;
}

.card-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* 功能特色 */
.features-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(37, 99, 235, 0.05);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

/* 功能统计 */
.feature-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

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

/* 合作伙伴 */
.partners-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.partner-item {
    background: white;
    padding: 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.partner-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 16px;
}

.partner-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 新闻动态 */
.news-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.news-item {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-item.featured {
    border: 2px solid var(--primary-color);
}

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 24px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

/* 网站展示 */
.website-showcase {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.site-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.site-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.site-card.featured {
    border: 2px solid var(--primary-color);
}

.site-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.site-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.site-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 200px;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.site-card:hover .site-overlay {
    opacity: 1;
}

.visit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.visit-btn:hover {
    transform: scale(1.05);
}

.site-info {
    padding: 24px;
}

.site-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.site-category {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.site-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.site-metrics {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light);
}

/* 用户评价 */
.user-reviews {
    padding: 100px 0;
    background: var(--bg-primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.review-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.review-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.reviewer-title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.rating-stars {
    font-size: 12px;
}

.review-content {
    font-style: italic;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
    border: none;
}

.review-meta {
    font-size: 12px;
    color: var(--text-light);
    text-align: right;
}

/* CTA区域 */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-primary, .btn-cta-secondary, .btn-cta-outline {
    padding: 16px 32px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta-primary {
    background: white;
    color: var(--primary-color);
}

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

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* 页脚 */
.main-footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-intro {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-legal {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.contact-info p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .showcase-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}