* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, 'Helvetica Neue', Helvetica, 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* 星空粒子画布 */
#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 光晕效果 */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.glow-orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 50%;
    right: -50px;
    animation-delay: -7s;
}

.glow-orb-3 {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #a8c0ff, #3f2b96);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* 首页按钮 */
.shouye {
    position: fixed;
    top: 20px;
    right: 0px;
    z-index: 1000;
}

.shouye a {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 14px 23px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff !important;
    text-decoration: none;
    margin-right: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shouye a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 0px 20px rgba(255, 255, 255, 0.3);
}

.shouye h3 {
    margin: 0;
    font-size: 18px;
    cursor: pointer;
}

/* 主背景 */
.m-maintenance-background-image {
    position: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    /* 添加蓝色波浪效果滤镜 */
    filter: saturate(1.2) brightness(1.1);
}

/* 主内容区域 */
.m-maintenance-main-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    z-index: 10;
    padding: 20px;
}

/* 底部区域 */
.bottom-section {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1.2s ease-out forwards;
}

/* 头像区域 */
.img-area {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 40px;
}

.img-area .img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    animation: pulse 3s ease-in-out infinite;
}

.img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8), rgba(240, 147, 251, 0.8)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotate 4s linear infinite;
    z-index: 1;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: rotate 2s linear infinite reverse;
    z-index: -1;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 50px rgba(255, 255, 255, 0.5); }
}

/* 标题 */
.hero-title {
    padding: 10px 20px;
    position: relative;
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.title-text {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #000000 0%, #6392b3 50%, #155b7d 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

.title-glow {
        position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
}

.title-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(15px);
    border-radius: 15px;
    z-index: -2;
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.3);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* 副标题 */
.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    padding: 15px 25px;
}

.hero-subtitle #jinrishici-sentence {
    font-size: 23px;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #000000 0%, #6392b3 50%, #155b7d 100%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
    background-size: 200% 200%;
}

.subtitle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
}

/* 进入按钮 */
.enter-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    padding: 14px 35px;
    color: #fff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.enter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.enter-button:hover::before {
    left: 100%;
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.9), rgba(102, 126, 234, 0.9));
}

.enter-button i {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* 滚动指示器 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease-out 1s forwards, bounce 2s ease-in-out 2s infinite;
    opacity: 0;
}

.scroll-indicator span {
    display: block;
    width: 26px;
    height: 26px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
    0%, 100% { opacity: 0.4; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; transform: rotate(45deg) translate(0, 0); }
}

/* 个人信息部分 */
.personal-info {
    position: relative;
    z-index: 10;
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.7) 100%);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

/* 卡片样式 */
.info-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.info-card:nth-child(1) { animation-delay: 0.2s; }
.info-card:nth-child(2) { animation-delay: 0.4s; }
.info-card:nth-child(3) { animation-delay: 0.6s; }

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.info-card h2 {
    font-size: 26px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #a8c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

.info-card ul {
    list-style: none;
    text-align: left;
}

.info-card li {
    font-size: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-card li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.skill-icon, .service-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.card-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 50%;
    filter: blur(30px);
}

/* 页脚 */
footer {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* 页脚顶部布局 */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content .social-links {
    margin: 0;
}

.friend-links {
    margin: 0;
    border-radius: 15px;
    flex: 1;
    min-width: 300px;
}

.footer-content .footer-tagline,
.footer-content .footer-copyright {
    text-align: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 30px;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* 友情链接 */
.friend-links-title {
    font-size: 18px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.friend-links-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.friend-links-list li a {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.friend-links-list li a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.3);
}

.footer-tagline {
    font-size: 16px;
    margin: 20px 0 15px;
    opacity: 0.8;
    background: linear-gradient(135deg, #e0c3fc, #8ec5fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    opacity: 0.6;
    text-align: center;
}

/* 动画关键帧 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .enter-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    
    .info-container {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .glow-orb {
        opacity: 0.2;
    }
}

/* 页面加载动画 */
body.loaded {
    opacity: 1;
}

.shouye, .m-maintenance-main-wrapper, .personal-info, footer {
    opacity: 0;
    animation: contentFadeIn 1s ease-out forwards;
}

.shouye { animation-delay: 0.5s; }
.m-maintenance-main-wrapper { animation-delay: 0.8s; }
.personal-info { animation-delay: 1.2s; }
footer { animation-delay: 1.5s; }

@keyframes contentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
