/* 全局样式 */
:root {
    --primary-color: #0055ff;
    --primary-light: #2979ff;
    --primary-dark: #0044cc;
    --accent-color: #0084ff;
    --accent-dark: #0063cc;
    --accent-light: #57a5ff;
    --accent-purple: #6c5ce7;
    --accent-pink: #fd79a8;
    --accent-teal: #00d2d3;
    --dark-color: #333333;
    --light-color: #ffffff;
    --gray-color: #f5f6fa;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f0f5ff;
    --gradient-1: linear-gradient(45deg, #0055ff, #57a5ff);
    --gradient-2: linear-gradient(45deg, #57a5ff, #b0d4ff);
    --gradient-3: linear-gradient(135deg, #0055ff, #5e7eef);
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    --neon-shadow: 0 0 15px rgba(0, 85, 255, 0.2);
    --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px = 1rem */
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 1.6rem;
    height: 100%;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    font-family: inherit;
}

/* 主容器 */
.main-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    padding: 3rem 5%;
    overflow-x: hidden;
}

/* 背景效果 */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #f0f5ff 0%, #e6efff 100%);
    z-index: -4;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><rect fill="none" stroke="rgba(0,85,255,0.05)" stroke-width="0.25" width="100" height="100" /></svg>');
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: -3;
}

/* 彩色模糊区域 */
.blur-area {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    z-index: -2;
    animation: floatBlur 15s infinite ease-in-out alternate;
}

.blur-1 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle at 30% 30%, var(--accent-teal), var(--primary-color));
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.blur-2 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle at 70% 70%, var(--accent-purple), var(--accent-pink));
    bottom: -15%;
    left: -10%;
    animation-delay: 7.5s;
}

.blur-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle at 50% 50%, #ff9966, #ff5e62);
    top: 40%;
    right: -20%;
    animation-delay: 3.5s;
}

@keyframes floatBlur {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5%, 5%) scale(1.05);
    }
    100% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 顶部导航 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    margin-bottom: 3rem;
}

/* 主要内容 */
.content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 2rem 0;
    gap: 4rem;
}

/* 文字内容部分 */
.text-content {
    flex: 1;
    animation: fadeInLeft 1s ease;
}

.greeting {
    font-size: 2.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 300;
    opacity: 0.9;
}

.name {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 85, 255, 0.1);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-wrapper {
    margin-bottom: 3rem;
}

.professional-title {
    font-size: 3.6rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.9;
}

.description {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 60rem;
}

.skills-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.skill-tag {
    padding: 0.8rem 1.6rem;
    background: rgba(0, 85, 255, 0.05);
    border-radius: 5rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 500;
    border: 1px solid rgba(0, 85, 255, 0.1);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
    color: var(--light-color);
}

.cta-buttons {
    display: flex;
    gap: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    border-radius: 5rem;
    font-weight: 600;
    font-size: 1.6rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn i {
    margin-right: 1rem;
}

.primary-btn {
    background: var(--gradient-1);
    color: var(--light-color);
    box-shadow: 0 5px 15px rgba(0, 85, 255, 0.2);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 85, 255, 0.3);
}

/* 视觉容器 */
.visual-container {
    position: relative;
    width: 40rem;
    height: 45rem;
    animation: fadeInRight 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 技术可视化部分 */
.tech-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 服务器机架 */
.server-rack {
    position: relative;
    width: 24rem;
    height: 30rem;
    background: var(--light-color);
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 85, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 2rem 1rem;
    box-shadow: 0 0 20px rgba(0, 85, 255, 0.1);
    z-index: 2;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.8);
}

.server {
    height: 6rem;
    background: rgba(240, 245, 255, 0.9);
    border-radius: 0.8rem;
    border: 1px solid rgba(0, 85, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.server::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-color);
    animation: blink 2s infinite;
}

.server::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 132, 255, 0.05) 25%, 
        rgba(0, 132, 255, 0.05) 75%, 
        transparent 100%);
    animation: scan 3s linear infinite;
}

.server.s1::before { animation-delay: 0s; }
.server.s2::before { animation-delay: 0.5s; }
.server.s3::before { animation-delay: 1s; }

.server.s1::after { animation-delay: 0s; }
.server.s2::after { animation-delay: 0.7s; }
.server.s3::after { animation-delay: 1.4s; }

.server-label {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.8;
}

/* 数据圆圈 */
.data-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 85, 255, 0.03);
    border: 1px solid rgba(0, 132, 255, 0.1);
    animation: pulse 3s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 1px solid rgba(0, 132, 255, 0.2);
}

.circle.c1 {
    width: 12rem;
    height: 12rem;
    top: 10%;
    left: -30%;
    animation-delay: 0s;
}

.circle.c2 {
    width: 15rem;
    height: 15rem;
    bottom: 10%;
    right: -30%;
    animation-delay: 0.5s;
}

.circle-label {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.8;
}

/* 连接线 */
.connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.lines-svg {
    width: 100%;
    height: 100%;
}

.line {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 1;
    stroke-dasharray: 10;
    stroke-dashoffset: 1000;
    opacity: 0.2;
    animation: dash 20s linear infinite;
}

.l1 { animation-delay: 0s; stroke: var(--primary-color); }
.l2 { animation-delay: 5s; stroke: var(--accent-color); }
.l3 { animation-delay: 2.5s; stroke: var(--accent-purple); }

/* 页脚 */
footer {
    text-align: center;
    color: var(--text-color);
    font-size: 1.4rem;
    opacity: 0.7;
    padding: 1.5rem 0;
    z-index: 5;
}

/* 动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 85, 255, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 85, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 85, 255, 0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes dash {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .visual-container {
        width: 35rem;
        height: 40rem;
    }
    
    .blur-1, .blur-2 {
        width: 45vw;
        height: 45vw;
    }
}

@media screen and (max-width: 992px) {
    html {
        font-size: 50%;
    }

    .content {
        flex-direction: column;
        justify-content: center;
        padding: 0;
    }

    .text-content {
        padding-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .description {
        margin: 2rem auto;
    }

    .visual-container {
        width: 30rem;
        height: 35rem;
    }
    
    .server-rack {
        height: 28rem;
        width: 22rem;
    }
    
    .circle.c1 {
        left: -15%;
    }
    
    .circle.c2 {
        right: -15%;
    }
    
    .blur-1, .blur-2 {
        opacity: 0.25;
        filter: blur(70px);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .main-container {
        padding: 2rem 3%;
    }
    
    .visual-container {
        width: 30rem;
        height: 35rem;
        margin-top: 2rem;
    }
    
    .server-rack {
        height: 26rem;
        width: 22rem;
    }

    .name {
        font-size: 7rem;
    }

    .professional-title {
        font-size: 3.2rem;
    }
    
    .server {
        height: 6rem;
    }
    
    .description {
        font-size: 1.8rem;
        max-width: 90%;
    }
    
    .skill-tag {
        padding: 1rem 2rem;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .btn {
        padding: 1.5rem 3rem;
        font-size: 1.8rem;
    }
    
    .blur-1 {
        width: 60vw;
        height: 60vw;
        top: -20%;
        right: -30%;
        opacity: 0.25;
        filter: blur(60px);
    }
    
    .blur-2 {
        width: 70vw;
        height: 70vw;
        bottom: -30%;
        left: -30%;
        opacity: 0.25;
        filter: blur(60px);
    }
    
    .blur-3 {
        width: 50vw;
        height: 50vw;
        top: 30%;
        right: -30%;
        opacity: 0.25;
        filter: blur(60px);
    }
    
    .server-label, .circle-label {
        font-size: 1.4rem;
    }
    
    .stat-item {
        padding: 1.2rem 2rem;
        width: 85%;
    }
    
    .stat-value {
        font-size: 3.2rem;
    }
    
    .stat-label {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 55%;
    }

    .main-container {
        padding: 2rem;
    }
    
    .content {
        padding-top: 0;
    }
    
    .greeting {
        font-size: 2.2rem;
    }
    
    .name {
        font-size: 6rem;
    }
    
    .professional-title {
        font-size: 3rem;
    }
    
    .description {
        font-size: 1.8rem;
        line-height: 1.6;
        margin-bottom: 3.5rem;
    }
    
    .visual-container {
        width: 28rem;
        height: 32rem;
        margin-top: 3rem;
    }
    
    .server-rack {
        height: 24rem;
        width: 22rem;
    }
    
    .server {
        height: 5.5rem;
    }
    
    .circle {
        display: block;
    }
    
    .circle.c1 {
        width: 10rem;
        height: 10rem;
        left: -10%;
    }
    
    .circle.c2 {
        width: 12rem;
        height: 12rem;
        right: -10%;
    }
    
    .skills-highlights {
        justify-content: center;
        margin-bottom: 4.5rem;
    }
    
    .blur-1, .blur-2, .blur-3 {
        opacity: 0.3;
    }
    
    .server-label, .circle-label {
        font-size: 1.3rem;
        font-weight: 600;
    }
    
    .stat-item {
        padding: 1rem 1.5rem;
        width: 90%;
    }
    
    .stat-value {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 1.2rem;
    }
}

/* 项目统计 */
.stats-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 5;
}

.stat-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    padding: 1.5rem 3rem;
    text-align: center;
    border: 1px solid rgba(0, 85, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 85, 255, 0.1);
    backdrop-filter: blur(5px);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.5s forwards ease;
    width: 80%;
}

.stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-value {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-color);
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 