/* 科技感背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 星空效果 */
.background-animation::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: #000;
    overflow-x: hidden;
}

.container {
    background-color: rgba(10, 15, 30, 0.85);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(0, 100, 255, 0.3);
    max-width: 900px;
    width: 90%;
    display: flex;
    flex-direction: column;
    min-height: 85vh;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00dbde, #fc00ff, #00dbde, #fc00ff);
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 17px;
    animation: borderAnimation 8s ease infinite;
}

@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Logo 样式 */
.logo {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.logo h1 {
    font-size: 2.8rem;
    margin: 0;
    background: linear-gradient(45deg, #00dbde, #fc00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(100, 150, 255, 0.5);
    letter-spacing: 2px;
    position: relative;
}

.logo h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #00dbde, transparent);
    border-radius: 50%;
}

.tagline {
    display: block;
    font-size: 1rem;
    color: #aaa;
    margin-top: 8px;
    letter-spacing: 3px;
}

/* 导航样式 */
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 25px 0;
    position: relative;
}

nav ul::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00dbde, transparent);
}

nav li {
    margin: 10px 15px;
}

.nav-item {
    text-decoration: none;
    color: #aaa;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(100, 150, 255, 0.2);
    background: rgba(20, 30, 60, 0.3);
}

.nav-item:hover {
    color: #fff;
    background: rgba(50, 100, 200, 0.3);
    box-shadow: 0 0 15px rgba(100, 150, 255, 0.4);
    transform: translateY(-3px);
}

.nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.nav-item:hover::before {
    left: 100%;
}

/* 主要内容区域 */
main {
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#content {
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    background: rgba(20, 30, 60, 0.3);
    border: 1px solid rgba(100, 150, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

/* 欢迎内容样式 */
.welcome-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #00dbde;
    text-shadow: 0 0 10px rgba(0, 219, 222, 0.5);
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(1px, 9999px, 83px, 0); }
    90% { clip: rect(72px, 9999px, 11px, 0); }
    95% { clip: rect(60px, 9999px, 89px, 0); }
    100% { clip: rect(52px, 9999px, 74px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 32px, 0); }
    5% { clip: rect(52px, 9999px, 26px, 0); }
    10% { clip: rect(79px, 9999px, 15px, 0); }
    15% { clip: rect(75px, 9999px, 6px, 0); }
    20% { clip: rect(67px, 9999px, 60px, 0); }
    25% { clip: rect(14px, 9999px, 12px, 0); }
    30% { clip: rect(1px, 9999px, 23px, 0); }
    35% { clip: rect(86px, 9999px, 73px, 0); }
    40% { clip: rect(28px, 9999px, 68px, 0); }
    45% { clip: rect(77px, 9999px, 44px, 0); }
    50% { clip: rect(55px, 9999px, 49px, 0); }
    55% { clip: rect(29px, 9999px, 19px, 0); }
    60% { clip: rect(37px, 9999px, 33px, 0); }
    65% { clip: rect(2px, 9999px, 83px, 0); }
    70% { clip: rect(34px, 9999px, 48px, 0); }
    75% { clip: rect(94px, 9999px, 22px, 0); }
    80% { clip: rect(85px, 9999px, 10px, 0); }
    85% { clip: rect(71px, 9999px, 89px, 0); }
    90% { clip: rect(1px, 9999px, 66px, 0); }
    95% { clip: rect(20px, 9999px, 10px, 0); }
    100% { clip: rect(24px, 9999px, 40px, 0); }
}

.welcome-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* 技术网格 */
.tech-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(30, 40, 80, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 120px;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(100, 150, 255, 0.3);
    background: rgba(50, 100, 200, 0.3);
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tech-item span {
    color: #aaa;
    font-size: 0.9rem;
}

/* 页脚样式 */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 150, 255, 0.5), transparent);
}

footer p {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.beian-link {
    text-decoration: none;
    color: #666;
    display: inline-flex;
    align-items: center;
    margin: 5px 10px;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: #00dbde;
}

.beian-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.countdown {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    background-color: rgba(30, 40, 80, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(100, 150, 255, 0.2);
}

/* 新增的内容包装器样式 */
.content-wrapper {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.content-wrapper h2 {
    color: #00dbde;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.content-wrapper p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.content-wrapper a {
    color: #00dbde;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-wrapper a:hover {
    color: #fc00ff;
    text-decoration: underline;
}

/* 作品集样式 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.portfolio-item {
    background: rgba(30, 40, 80, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(100, 150, 255, 0.3);
    background: rgba(50, 100, 200, 0.3);
}

.portfolio-item h3 {
    color: #00dbde;
    margin-top: 0;
    margin-bottom: 10px;
}

.portfolio-item p {
    color: #aaa;
    font-size: 0.95rem;
}

/* 博客样式 */
.blog-list {
    margin-top: 20px;
}

.blog-item {
    background: rgba(30, 40, 80, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 150, 255, 0.3);
    background: rgba(50, 100, 200, 0.3);
}

.blog-item h3 {
    color: #00dbde;
    margin-top: 0;
    margin-bottom: 5px;
}

.date {
    color: #00dbde;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-item p {
    color: #aaa;
    font-size: 0.95rem;
}

/* 联系方式样式 */
.contact-info {
    text-align: center;
    padding: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 15px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(30, 40, 80, 0.4);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 30px;
    color: #00dbde;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(50, 100, 200, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 150, 255, 0.3);
}

/* 激活状态的导航项 */
.nav-item.active {
    color: #fff;
    background: rgba(50, 100, 200, 0.5);
    box-shadow: 0 0 15px rgba(100, 150, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        width: 95%;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    nav li {
        margin: 8px 10px;
    }
    
    .nav-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tech-grid {
        gap: 15px;
    }
    
    .tech-item {
        padding: 15px;
        min-width: 100px;
    }
    
    .welcome-content h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-link {
        width: 80%;
        margin: 0 auto;
    }
}