/* 全局样式与变量 */
:root {
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    /* 清新渐变背景 */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* 背景光斑动画 */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #ffb8d2;
    top: 10%;
    left: 15%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #a1c4fd;
    bottom: 20%;
    right: 10%;
    animation-delay: -3s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #e2c2ff;
    top: 40%;
    left: 50%;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 毛玻璃通用类 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

/* 搜索框 */
.search-box {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box i {
    color: var(--text-sub);
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: var(--text-main);
}

/* 导航分类容器 */
.category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 链接卡片网格 */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* 单个链接卡片 */
.link-card {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-icon {
    font-size: 2rem;
    margin-right: 15px;
    color: #6c5ce7;
    width: 40px;
    text-align: center;
}

.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-sub);
    /* 超出省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* 响应式 */
@media (max-width: 600px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}