* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background: #0a0c1b;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 星空背景 */
.cyber-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(1px 1px at 25px 25px, rgba(0, 247, 255, 0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 50px 50px, rgba(0, 247, 255, 0.5) 50%, transparent 50%),
        radial-gradient(1px 1px at 75px 75px, rgba(0, 247, 255, 0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 100px 100px, rgba(255, 255, 255, 0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 125px 125px, rgba(255, 255, 255, 0.5) 50%, transparent 50%),
        #0a0c1b;
    background-size: 150px 150px;
    animation: starMove 100s linear infinite;
    z-index: -2;
}

/* 添加星云效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(0, 247, 255, 0.1) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* 星星移动动画 */
@keyframes starMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 150px 150px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00f7ff, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.highlight {
    font-weight: 300;
    color: #00f7ff;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding: 20px;
}

.nav-item {
    background: rgba(16, 23, 41, 0.6);
    padding: 25px;
    border-radius: 4px;
    border: 1px solid rgba(0, 247, 255, 0.2);
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.05);
}

.cyber-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 247, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(16, 23, 41, 0.8);
    border-color: rgba(0, 247, 255, 0.5);
    box-shadow: 
        0 0 30px rgba(0, 247, 255, 0.2),
        inset 0 0 20px rgba(0, 247, 255, 0.1);
}

.nav-item:hover .cyber-frame {
    border-color: rgba(0, 247, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
}

.nav-item.primary {
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.3), 
        rgba(0, 247, 255, 0.2)
    );
    border-color: rgba(0, 247, 255, 0.4);
}

.nav-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #00f7ff;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.nav-item.primary i {
    color: #00f7ff;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-url {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

/* 添加动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 247, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
    }
}

.nav-item.primary {
    animation: cyber-pulse 2s infinite;
}

@keyframes cyber-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 247, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
    }
}

/* 更新移动端适配相关样式 */

/* 中等屏幕设备 (平板等) */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .nav-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板显示两列 */
        gap: 15px;
        padding: 10px;
    }

    .nav-item {
        padding: 15px;
        min-height: 120px; /* 确保卡片高度一致 */
    }

    .nav-item i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .site-name {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .site-url {
        font-size: 0.8rem;
    }
}

/* 小屏幕设备 (手机) */
@media screen and (max-width: 480px) {
    .container {
        padding: 10px;
    }

    header {
        margin-bottom: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .nav-grid {
        grid-template-columns: 1fr; /* 手机端单列显示 */
        gap: 12px;
        padding: 8px;
    }

    .nav-item {
        padding: 12px;
        min-height: 100px;
    }

    .cyber-frame {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    }

    .nav-item i {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .site-name {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .site-url {
        font-size: 0.75rem;
    }
}

/* 超小屏幕设备优化 */
@media screen and (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.6rem;
    }

    .nav-item {
        padding: 10px;
        min-height: 90px;
    }
}

/* 优化背景效果在移动端的显示 */
@media screen and (max-width: 768px) {
    .cyber-lines {
        background-size: 100px 100px; /* 减小星星间距 */
    }

    body::after {
        background: 
            radial-gradient(circle at 20% 20%, rgba(29, 78, 216, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(0, 247, 255, 0.05) 0%, transparent 60%);
    }

    /* 减少动画强度，提升移动端性能 */
    .nav-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(0, 247, 255, 0.1);
    }

    @keyframes cyber-pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(0, 247, 255, 0.2);
        }
        70% {
            box-shadow: 0 0 0 8px rgba(0, 247, 255, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(0, 247, 255, 0);
        }
    }
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
    color: #fff;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#searchInput:focus {
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.category {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.card-content {
    text-align: center;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.link-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.link-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
}

/* 添加炫光效果 */
.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    background-size: 200% 200%;
    animation: shine 3s infinite;
    border-radius: 15px;
}

@keyframes shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 添加流星效果 */
@keyframes meteor {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(0, 247, 255, 0), rgba(0, 247, 255, 0.6) 50%, rgba(0, 247, 255, 0));
    animation: meteor 5s linear infinite;
    animation-delay: calc(random() * 5s);
    z-index: -1;
}

/* 添加页脚样式 */
.footer {
    margin-top: 3rem;
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(0, 247, 255, 0.1);
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #00f7ff;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

.footer-icp {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 移动端适配页脚 */
@media screen and (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 15px;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-icp {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        margin-top: 1.5rem;
        padding: 12px;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    .footer-icp {
        font-size: 0.75rem;
    }
} 