/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 定义主题颜色变量 */
    --primary-color: #00a8ff;
    --primary-glow: rgba(0, 168, 255, 0.3);
    --secondary-color: #0097e6;
    --dark-bg: #0a192f;
    --darker-bg: #060d1b;
    --card-bg: rgba(17, 34, 64, 0.7);
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    /*整体风格色*/
    --accent-color: #64ffda;
    --gradient-start: #0a192f;
    --gradient-end: #020c1b;
    --card-border: rgba(100, 255, 218, 0.1);
    --card-hover-border: rgba(100, 255, 218, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    min-height: 100vh;
    position: relative;
}

/* 添加背景网格效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--card-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--card-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

/* 顶部导航栏样式 */
.header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

.logo h1 {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.5;
}

/* 主要内容区布局 */
.main-container {
    display: flex;
    position: relative;
    height: 100vh;
    padding-top: 70px;
    overflow: hidden;
}

/* 左侧导航栏样式 */
.side-nav {
    width: 280px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
    border-right: 1px solid var(--card-border);
    overflow: hidden;
}

.nav-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    /* 永远隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-content::-webkit-scrollbar {
    display: none;
}

/* 产品导航列表样式 */
.product-nav {
    list-style: none;
    height: calc(100% - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding-right: 5px;
}

.product-nav::-webkit-scrollbar {
    display: none;
}

/* 移除之前的滚动条相关样式 */
.product-nav:hover {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-nav:hover::-webkit-scrollbar {
    display: none;
}

/* 滚动提示箭头容器 */
.scroll-hint {
    position: fixed;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 当内容超出时显示提示箭头 */
.product-nav.has-overflow .scroll-hint {
    display: flex;
}

/* 科技感箭头容器 */
.scroll-hint-arrow {
    position: relative;
    width: 30px;
    height: 30px;
    animation: float 2s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 箭头主体 */
.scroll-hint-arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* 箭头装饰线 */
.scroll-hint-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary-glow);
    opacity: 0.5;
}

/* 添加装饰性圆环 */
.scroll-hint-arrow .circle {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 4s linear infinite;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.scroll-hint-arrow .circle::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* 添加脉冲效果 */
.scroll-hint-arrow .pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0;
    animation: pulse 2s infinite;
}

/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 旋转动画 */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* 添加发光效果 */
.scroll-hint::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(180deg, 
        transparent,
        var(--accent-color) 50%,
        transparent
    );
    opacity: 0.1;
    filter: blur(4px);
}

/* 导航列表项样式 */
.product-nav li {
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
}

/* 导航链接样式 */
.nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: visible;
    margin-right: 5px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(100, 255, 218, 0.1),
        transparent
    );
    transition: 0.5s;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background-color: rgba(100, 255, 218, 0.05);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.nav-link.active {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* 公司信息样式 */
.company-info {
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    height: 80px;
    min-height: 80px;
    text-align: center;
    position: sticky;
    bottom: 0;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.company-info h2 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: normal;
}

.icp {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.icp a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.icp a:hover {
    color: var(--accent-color);
    opacity: 1;
    text-decoration: underline;
}

/* 右侧内容区样式 */
.content-area {
    flex: 1;
    margin-left: 280px;
    padding: 2rem;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.product-section {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

.product-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(100, 255, 218, 0.03) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.product-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-color: var(--card-hover-border);
}

.product-section h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 0 0 10px var(--primary-glow);
    position: relative;
    display: inline-block;
}

.product-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.product-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 产品图片容器样式 */
.product-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* 图片容器样式 */
.image-container {
    position: relative;
    width: 100%;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    /* 设置9:16的宽高比 */
    aspect-ratio: 9/16;
    /* 调整最大宽度限制，适应4列布局 */
    max-width: 400px; /* 调整最大宽度 */
    margin: 0 auto;
}

/* 骨架屏动画 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 骨架屏样式 */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--card-bg) 25%,
        var(--darker-bg) 50%,
        var(--card-bg) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    /* 保持与容器相同的宽高比 */
    aspect-ratio: 9/16;
}

/* 图片样式 */
.product-images img {
    position: relative; /* 改为相对定位 */
    width: 100%;
    height: auto; /* 高度自适应 */
    object-fit: contain; /* 改为contain以保持图片比例 */
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
    display: block; /* 确保图片正确显示 */
}

/* 图片加载完成后的样式 */
.product-images img.loaded {
    opacity: 1;
    transform: scale(1);
}

/* 图片加载失败时的样式 */
.image-container.error::after {
    content: '\f071'; /* Font Awesome 警告图标 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 2rem;
    opacity: 0.5;
}

/* 图片悬停效果 */
.image-container:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.image-container:hover img {
    transform: scale(1.02); /* 减小缩放幅度，避免图片变形 */
}

/* 图片加载进度条 */
.image-progress {
    position: absolute;
    bottom: 0;
    left: 0;
        width: 100%;
    height: 2px;
    background: var(--card-border);
    overflow: hidden;
}

.image-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
    }

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-images {
        grid-template-columns: repeat(3, 1fr); /* 中等屏幕显示3列 */
    }
}

@media (max-width: 992px) {
    .product-images {
        grid-template-columns: repeat(2, 1fr); /* 平板显示2列 */
    }
}

@media (max-width: 576px) {
    .product-images {
        grid-template-columns: 1fr; /* 手机显示1列 */
    }
    
    .image-container {
        max-width: 100%; /* 移动端下使用全宽 */
    }
}

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

/* 图片懒加载占位样式 */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 添加动画效果 */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }
    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

.product-section:hover h2 {
    animation: glow 2s infinite;
}

/* Loading组件样式 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-container.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    position: relative;
    width: 120px;
    height: 120px;
}

/* 三层加载动画容器 */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

/* 加载圆环基础样式 */
.loading-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
}

/* 第一层圆环 - 顺时针 */
.loading-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
    animation: spin-clockwise 2s linear infinite;
}

/* 第二层圆环 - 逆时针 */
.loading-circle:nth-child(2) {
    width: 80%;
    height: 80%;
    border-bottom-color: var(--primary-color);
    border-left-color: var(--primary-color);
    animation: spin-counter-clockwise 1.5s linear infinite;
}

/* 第三层圆环 - 顺时针 */
.loading-circle:nth-child(3) {
    width: 60%;
    height: 60%;
    border-top-color: var(--secondary-color);
    border-right-color: var(--secondary-color);
    animation: spin-clockwise 1s linear infinite;
}

/* 加载文字样式 */
.loading-text {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--primary-glow);
    white-space: nowrap;
    min-width: 200px;
}

/* 顺时针旋转动画 */
@keyframes spin-clockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 逆时针旋转动画 */
@keyframes spin-counter-clockwise {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
}
}

/* 添加发光效果 */
.loading-circle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.3;
    background: inherit;
}

.loading-circle:nth-child(1)::after {
    background: var(--accent-color);
}

.loading-circle:nth-child(2)::after {
    background: var(--primary-color);
}

.loading-circle:nth-child(3)::after {
    background: var(--secondary-color);
}

/* 添加淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-section {
    animation: fadeIn 0.5s ease-out;
}

/* 添加控制滚动条的样式 */
body.loading {
    overflow: hidden;
}

/* 空状态样式 */
.empty-state {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    max-width: 600px;
    border: 1px solid var(--card-border);
    animation: fadeIn 0.5s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(100, 255, 218, 0.03) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.empty-state h2 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px var(--primary-glow);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.empty-state-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.empty-state-decoration .tech-circle {
    position: absolute;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.1;
}

.empty-state-decoration .tech-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -20px;
    left: -20px;
    animation: rotate 20s linear infinite;
}

.empty-state-decoration .tech-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -40px;
    right: -40px;
    animation: rotate 30s linear infinite reverse;
}

.empty-state-decoration .tech-circle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} 