/**
 * Website Custom Styles
 * 基于 Figma 设计规范
 * 配色方案: 主色 #1890FF（科技蓝）、辅色 #52C41A（成功绿）、中性色 #333333、背景 #F5F7FA
 */

/* ========================================
   CSS Variables / 设计令牌
   ======================================== */
:root {
    --color-primary: #1890FF;
    --color-primary-hover: #096dd9;
    --color-primary-light: #e6f4ff;
    --color-success: #52C41A;
    --color-success-light: #f6ffed;
    --color-neutral-900: #1a1a1a;
    --color-neutral-800: #333333;
    --color-neutral-600: #595959;
    --color-neutral-500: #8c8c8c;
    --color-neutral-400: #bfbfbf;
    --color-neutral-200: #e8e8e8;
    --color-neutral-100: #f5f5f5;
    --color-background: #F5F7FA;
    --color-white: #ffffff;
    
    --font-family-heading: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-body: 'Roboto', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ========================================
   Base Styles
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-neutral-800);
    background-color: var(--color-background);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.3;
}

/* ========================================
   Hero Slider Styles
   ======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-slider {
        height: 700px;
    }
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-out;
}

.hero-slide:hover .hero-slide-bg {
    transform: scale(1.05);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 0 2rem;
    }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    max-width: 800px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Hero Slider Dots */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-dot.active,
.hero-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* ========================================
   Feature Grid (快速入口)
   ======================================== */
.feature-grid {
    position: relative;
    z-index: 20;
    margin-top: -4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--color-primary);
    transition: all var(--transition-normal);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-neutral-800);
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--color-neutral-600);
    line-height: 1.7;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-neutral-800);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    color: var(--color-neutral-500);
    font-size: 1rem;
}

/* ========================================
   News Section
   ======================================== */
.news-featured {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal);
}

.news-featured:hover {
    box-shadow: var(--shadow-lg);
}

.news-featured-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-featured:hover .news-featured-image {
    transform: scale(1.05);
}

.news-featured-content {
    padding: 2rem;
    border: 1px solid var(--color-neutral-200);
    border-top: none;
    background: white;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
}

.news-item {
    display: flex;
    gap: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
}

.news-item:hover {
    background: var(--color-neutral-100);
}

.news-item-image {
    width: 128px;
    height: 96px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.news-item:hover .news-item-image img {
    transform: scale(1.05);
}

.news-item-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-neutral-800);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item:hover .news-item-title {
    color: var(--color-primary);
}

/* ========================================
   About Snippet Section
   ======================================== */
.about-section {
    background: var(--color-background);
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: rgba(24, 144, 255, 0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    background: rgba(82, 196, 26, 0.2);
    border-radius: 50%;
    filter: blur(40px);
}

.about-stat-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.about-stat-label {
    font-size: 0.875rem;
    color: var(--color-neutral-600);
    font-weight: 500;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    color: var(--color-success);
    flex-shrink: 0;
}

/* ========================================
   Stats Section
   ======================================== */
.stats-section {
    background: var(--color-neutral-900);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 10;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Inter', monospace;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 3.5rem;
    }
}

.stat-label {
    color: var(--color-neutral-400);
    font-weight: 500;
    font-size: 1.125rem;
}

/* ========================================
   Partners Section
   ======================================== */
.partners-section {
    background: white;
    border-bottom: 1px solid var(--color-neutral-200);
}

.partner-logo {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all var(--transition-normal);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   Button Styles
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-hover);
    gap: 1rem;
}

.btn-outline {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ========================================
   Header Styles
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.site-header.transparent {
    background: transparent;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link.light {
    color: rgba(255, 255, 255, 0.9);
}

.nav-link.light:hover,
.nav-link.light.active {
    color: white;
}

.nav-link.dark {
    color: var(--color-neutral-800);
}

.nav-link.dark:hover,
.nav-link.dark.active {
    color: var(--color-primary);
}

/* ========================================
   Footer Styles
   ======================================== */
.site-footer {
    background: var(--color-neutral-900);
    color: white;
}

.footer-link {
    color: var(--color-neutral-400);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-primary);
}

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-count-up {
    animation: countUp 0.5s ease-out forwards;
}

/* Stagger animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* ========================================
   Utility Classes
   ======================================== */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Container max-width override */
.container {
    max-width: 1280px;
}

/* Aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}
