/* 现代科技风格的首页样式 */
:root {
    --primary-color: #228be6;  
    --secondary-color: #0b7285;
    --accent-color: #40c057;
    --dark-bg: #1A1F2E;
    --darker-bg: #141824;
    --light-text: rgba(255, 255, 255, 0.9);
    --medium-text: rgba(255, 255, 255, 0.7);
    --light-border: rgba(255, 255, 255, 0.1);
    --grid-color: rgba(32, 120, 244, 0.2);
    --grid-highlight: rgba(64, 192, 255, 0.4);
    --particle-color: rgba(80, 200, 255, 0.6);
    --glow-color: rgba(32, 100, 255, 0.2);
    --cyber-color: #0af;
    --cyber-glow: 0 0 10px #0af, 0 0 20px #0af, 0 0 40px #0af;
    --cyber-stroke: #222;
}

/* 基础样式 */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--darker-bg);
    color: var(--light-text);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
}

/* 主容器 */
.hero-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* 粒子背景 */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

#particles {
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    will-change: transform;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--particle-color);
    box-shadow: 0 0 10px 2px rgba(80, 200, 255, 0.3);
    pointer-events: none;
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* 网格线条 */
.grid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    transform: translateZ(0);
}

#grid-lines {
    width: 100%;
    height: 100%;
    will-change: transform;
}

.grid-line {
    position: absolute;
    background-color: var(--grid-color);
    z-index: -1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: background-color, box-shadow;
    transform: translateZ(0);
}

.vertical {
    width: 1px;
    height: 100%;
}

.horizontal {
    width: 100%;
    height: 1px;
}

/* 装饰图形 */
.svg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.decorative-shape {
    position: absolute;
    width: 200px;
    height: 200px;
    opacity: 0.15;
    z-index: -1;
    filter: blur(1px);
}

.shape {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1;
    stroke-dasharray: 350;
    stroke-dashoffset: 350;
}

.shape-1 {
    top: 10%;
    right: 15%;
}

.shape-2 {
    bottom: 20%;
    left: 10%;
}

.shape-3 {
    top: 35%;
    left: 20%;
}

.shape-4 {
    bottom: 40%;
    right: 20%;
}

.shape-5 {
    top: 60%;
    right: 30%;
}

/* Logo和品牌名称部分 */
.logo-animation {
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
    width: 100%;
    max-width: 900px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1300px;
    position: relative;
    gap: 3rem;
}

.logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    position: relative;
    left: -100px;
    max-width: 40%;
}

.logo-text {
    height: 100px;
    filter: drop-shadow(0 0 10px rgba(32, 100, 255, 0.7));
    object-fit: contain;
    max-width: 100%;
    transform: scale(1.5);
    transform-origin: center right;
}

.logo-separator {
    font-size: 4rem;
    color: var(--light-border);
    margin: 0 0.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100px;
    position: relative;
    left: -30px;
}

.portfolio-system-text {
    display: flex;
    align-items: center;
    height: 100px;
    flex: 0 0 auto;
    position: relative;
    left: 20px;
    max-width: 60%;
}

/* 普通文本样式 */
.portfolio-title {
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--light-text);
    text-shadow: 0 0 15px rgba(32, 100, 255, 0.5);
    line-height: 1;
    white-space: nowrap;
}

.tagline {
    font-size: 1.2rem;
    color: var(--medium-text);
    margin-bottom: 2rem;
    height: 2rem;
}

.typed-text {
    position: relative;
}

/* 统计卡片部分 */
.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1200px;
    will-change: transform;
}

.stat-card {
    position: relative;
    width: 300px;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(30, 40, 60, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(20px);
    opacity: 0;
    will-change: transform, opacity, box-shadow;
    transform: translateZ(0);
}

.stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 100, 255, 0.2);
    border-color: rgba(32, 120, 244, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(32, 120, 244, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.stat-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

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

.stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value span:last-child {
    font-size: 1.5rem;
    opacity: 0.7;
    margin-left: 0.2rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-text);
    margin-top: 0.5rem;
}

.stat-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.highlight {
    color: var(--accent-color);
    font-weight: 700;
}

/* 进入系统按钮 */
.enter-system {
    margin: 2rem 0 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.enter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(32, 100, 255, 0.2);
}

.enter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--secondary-color) 0%, 
        var(--primary-color) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 100, 255, 0.3);
}

.enter-btn:hover::before {
    opacity: 1;
}

.btn-text {
    margin-right: 0.5rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

/* 图表区域样式 */
.charts-showcase {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 0.25rem;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.chart-container {
    display: block;
    position: relative;
    width: 100%;
    border-radius: 15px;
    background: rgba(10, 20, 40, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border: 1px solid rgba(32, 120, 244, 0.2);
    overflow: hidden;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(32, 120, 244, 0.1),
        inset 0 0 20px rgba(32, 120, 244, 0.05);
    transform: translateZ(0);
    transition: all 0.3s ease-out;
}

.chart-container:hover {
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(32, 120, 244, 0.2),
        inset 0 0 30px rgba(32, 120, 244, 0.08);
    border-color: rgba(32, 120, 244, 0.3);
    transform: translateY(-5px);
}

/* 添加扫描线动画 */
.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(32, 120, 244, 0.7) 50%,
        transparent 100%);
    animation: scanline 4s linear infinite;
    opacity: 0.6;
}

/* 添加底部脉动光线 */
.chart-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(32, 180, 244, 0.5) 100%);
    animation: glowLine 3s ease-in-out infinite alternate;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes glowLine {
    0% {
        width: 30%;
        opacity: 0.3;
    }
    100% {
        width: 70%;
        opacity: 0.7;
    }
}

.chart-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    text-shadow: 0 0 10px rgba(32, 100, 255, 0.5);
}

.chart-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%);
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(15, 25, 45, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(54, 166, 242, 0.1);
    transform: translateZ(0);
    will-change: transform;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* 添加科技感网格背景 */
.chart-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(54, 166, 242, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(54, 166, 242, 0.01) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    opacity: 0.4;
    animation: gridPulse 4s ease-in-out infinite;
}

/* 添加右上角科技感装饰 - 使用其他元素避免冲突 */
.chart-corner-decoration {
    position: absolute;
    width: 15px;
    height: 15px;
    border-top: 2px solid rgba(54, 166, 242, 0.8);
    border-left: 2px solid rgba(54, 166, 242, 0.8);
    top: 10px;
    left: 10px;
    z-index: 2;
    animation: cornerPulse 2s infinite alternate;
}

.chart-corner-decoration.top-right {
    border-top: 2px solid rgba(54, 166, 242, 0.8);
    border-right: 2px solid rgba(54, 166, 242, 0.8);
    border-left: none;
    top: 10px;
    right: 10px;
    left: auto;
    animation-delay: 0.5s;
}

.chart-corner-decoration.bottom-left {
    border-bottom: 2px solid rgba(54, 166, 242, 0.8);
    border-left: 2px solid rgba(54, 166, 242, 0.8);
    border-top: none;
    bottom: 10px;
    left: 10px;
    top: auto;
    animation-delay: 1s;
}

.chart-corner-decoration.bottom-right {
    border-bottom: 2px solid rgba(54, 166, 242, 0.8);
    border-right: 2px solid rgba(54, 166, 242, 0.8);
    border-top: none;
    border-left: none;
    bottom: 10px;
    right: 10px;
    top: auto;
    left: auto;
    animation-delay: 1.5s;
}

/* 添加网格脉动效果 */
@keyframes gridPulse {
    0% {
        opacity: 0.3;
        background-size: 20px 20px;
    }
    50% {
        opacity: 0.5;
        background-size: 22px 22px;
    }
    100% {
        opacity: 0.3;
        background-size: 20px 20px;
    }
}

.performance-chart {
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(-20px);
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* 图表指示器样式 */
.chart-indicators {
    display: none;
}

.indicator {
    display: none;
}

/* 新增科技装饰元素 */
.tech-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tech-line {
    position: absolute;
    background-color: rgba(54, 166, 242, 0.2);
    z-index: 1;
}

.tech-line.horizontal {
    height: 1px;
    width: 60%;
    top: 30px;
    left: 20%;
    transform-origin: center;
    animation: techLinePulse 4s infinite alternate;
}

.tech-line.vertical {
    width: 1px;
    height: 60%;
    top: 20%;
    right: 30px;
    transform-origin: center;
    animation: techLinePulse 4s infinite alternate-reverse;
}

.tech-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(54, 166, 242, 0.4);
    top: 20px;
    right: 20px;
    animation: techCirclePulse 4s infinite alternate;
}

.tech-data-point {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(54, 166, 242, 0.8);
    border-radius: 50%;
    bottom: 40px;
    left: 30px;
    box-shadow: 0 0 8px rgba(54, 166, 242, 0.5);
    animation: techDataBlink 3s infinite alternate;
}

.tech-data-point.right {
    right: 40px;
    left: auto;
    top: 40px;
    bottom: auto;
    animation-delay: 1.5s;
}

@keyframes techLinePulse {
    0% {
        box-shadow: 0 0 4px rgba(54, 166, 242, 0.3);
        opacity: 0.3;
    }
    50% {
        box-shadow: 0 0 8px rgba(54, 166, 242, 0.5);
        opacity: 0.8;
    }
    100% {
        box-shadow: 0 0 4px rgba(54, 166, 242, 0.3);
        opacity: 0.3;
    }
}

@keyframes techCirclePulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 5px rgba(54, 166, 242, 0.2);
        border-color: rgba(54, 166, 242, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(54, 166, 242, 0.4);
        border-color: rgba(54, 166, 242, 0.6);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 5px rgba(54, 166, 242, 0.2);
        border-color: rgba(54, 166, 242, 0.2);
    }
}

@keyframes techDataBlink {
    0% {
        transform: scale(0.8);
        opacity: 0.4;
        box-shadow: 0 0 3px rgba(54, 166, 242, 0.3);
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 10px rgba(54, 166, 242, 0.8);
    }
    100% {
        transform: scale(0.8);
        opacity: 0.4;
        box-shadow: 0 0 3px rgba(54, 166, 242, 0.3);
    }
}

@keyframes cornerPulse {
    0% {
        opacity: 0.4;
        border-color: rgba(54, 166, 242, 0.4);
    }
    100% {
        opacity: 0.8;
        border-color: rgba(54, 166, 242, 0.8);
    }
}

/* 页脚样式 */
.footer {
    width: 100%;
    background-color: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--medium-text);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--medium-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* 动画关键帧 - 优化性能关键帧 */
@keyframes pulse {
    0% {
        transform: scale(1) translateZ(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.05) translateZ(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translateZ(0);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式样式 */
@media (max-width: 992px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 90%;
        max-width: 400px;
    }
    
    .logo-container {
        gap: 1rem;
    }
    
    .logo-wrapper {
        left: -50px;
        max-width: 40%;
    }
    
    .logo-text {
        transform: scale(1.3);
    }
    
    .logo-separator {
        left: -15px;
    }
    
    .portfolio-system-text {
        left: 10px;
    }
    
    .portfolio-title {
        font-size: 2.6rem;
    }
    
    .counter {
        font-size: 2.2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 1.5rem;
    }
    
    .stats-container {
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.2rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo-wrapper {
        left: 0;
        max-width: 70%;
        justify-content: center;
        height: 80px;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .logo-text {
        height: 80px;
        transform: scale(1.2);
        transform-origin: center center;
    }
    
    .portfolio-system-text {
        left: 0;
        max-width: 100%;
        justify-content: center;
        height: 60px;
    }
    
    .portfolio-title {
        font-size: 2.2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chart-wrapper {
        height: 220px;
    }
} 