/* GUIWEI Website Styles - 明亮科技风 */

/* 使用系统字体，避免加载大字体文件 */
/* 如需自定义字体，可使用 CDN 字体服务 */

/* 基础设置 */
:root {
    --primary-blue: #0066ff;
    --primary-cyan: #00b4d8;
}

/* 系统字体堆栈 - 无需下载 */
* {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

body {
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

h1 {
    font-weight: 900;
    letter-spacing: 0.03em;
}

h2 {
    font-weight: 700;
}

h3 {
    font-weight: 600;
}

p {
    line-height: 1.8;
}

/* 统计数字动画 */
.stat-number {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-item {
    animation: countUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* 移动端统计区竖排 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .stat-item {
        padding: 1rem;
        background: rgba(255,255,255,0.1);
        border-radius: 12px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* Hero Section with Video Background */
.hero-section {
    position: relative;
    min-height: 100vh;
}

.hero-fallback {
    z-index: -1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video:not([autoplay]) {
    display: none;
}

/* 视频遮罩 */
.video-overlay {
    background: linear-gradient(
        180deg, 
        rgba(0, 102, 255, 0.1) 0%, 
        rgba(0, 102, 255, 0.3) 50%,
        rgba(0, 102, 255, 0.5) 100%
    );
}

/* 导航栏 */
nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Logo 容器 */
.logo-container {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: transparent;
}

.logo-container img {
    height: 32px;
    width: auto;
}

/* 产品卡片 */
.product-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 102, 255, 0.1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
    border-color: var(--primary-blue);
}

.product-card img {
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* 优势卡片 */
.advantage-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    transition: all 0.3s ease;
}

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

/* 统计数字 */
.stat-number {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 统计区域内的数字使用白色（因为背景是蓝色） */
.stat-item .stat-number {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
}

/* 产品图片容器 */
.product-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.product-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 102, 255, 0.1), transparent);
    pointer-events: none;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-blue));
    border-radius: 4px;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    -webkit-animation: fadeInUp 0.6s ease forwards;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@-webkit-keyframes float {
    0%, 100% { -webkit-transform: translateY(0); }
    50% { -webkit-transform: translateY(-8px); }
}

.float-animation {
    -webkit-animation: float 3s ease-in-out infinite;
    animation: float 3s ease-in-out infinite;
}

.video-container video {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

video::-internal-media-controls-download-button {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
}

/* 产品区块背景 */
.product-section:nth-child(even) {
    background: #f8fafc;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #f8fafc, #ffffff);
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue);
}

/* 字体增强 */
.btn-primary, .btn-outline {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-link {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.product-card h3 {
    font-weight: 700;
}

.product-card p {
    font-weight: 400;
    line-height: 1.7;
}

/* 数字使用等宽特征 */
.stat-number {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* 引用文字加粗 */
.advantage-card h3 {
    font-weight: 700;
}

/* 链接文字 */
a {
    font-weight: 500;
}