:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #fd79a8;
    --dark: #2d3436;
    --light: #f9f9f9;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --gradient: linear-gradient(135deg, #6c5ce7, #a29bfe, #fd79a8);
    --gradient-reverse: linear-gradient(135deg, #fd79a8, #a29bfe, #6c5ce7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f8f9ff;
    position: relative;
    overflow-x: hidden;
    background: radial-gradient(circle at 25% 25%, rgba(108, 92, 231, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(253, 121, 168, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 10%, rgba(255, 204, 0, 0.1) 0%, transparent 40%);
}

/* 灵动背景效果 */
.dynamic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.6;
    filter: blur(10px);
    animation: float-particle 20s infinite linear;
    z-index: -1;
}

@keyframes float-particle {
    0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
}
25% {
    transform: translate(100px, -50px) rotate(90deg) scale(1.2);
}
50% {
    transform: translate(50px, 100px) rotate(180deg) scale(0.8);
}
75% {
    transform: translate(-100px, 50px) rotate(270deg) scale(1.3);
}
100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
}
}

.floating-line {
    position: absolute;
    height: 1px;
    background: var(--gradient);
    opacity: 0.3;
    animation: float-line 15s infinite linear;
    z-index: -1;
}

@keyframes float-line {
    0% {
    transform: translateX(-100%) rotate(0deg);
}
100% {
    transform: translateX(100%) rotate(360deg);
}
}

.floating-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
    animation: pulse-dot 3s infinite alternate;
    z-index: -1;
}

@keyframes pulse-dot {
    0% {
    transform: scale(1);
    opacity: 0.6;
}
100% {
    transform: scale(3);
    opacity: 0;
}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* 左侧内容区域 */
.main-content {
    flex: 1;
}

/* Logo和Slogan容器 */
.logo-slogan-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 搜索框容器 */
.search-container {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 搜索输入框 */
.search-input {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 30px 0 0 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    width: 220px;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

/* 搜索按钮 */
.search-btn {
    padding: 10px 15px;
    background: var(--gradient);
    border: none;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

/* 分页导航样式更新 */
.pagination-sticky {
    position: sticky;
    bottom: 30px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s ease;
}

.pagination-info {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 15px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.pagination-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover,.pagination-btn.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}



/* 首页和末页按钮特殊样式 */
.pagination-btn.first,
.pagination-btn.last {
    min-width: 60px;
}

/* 响应式搜索框 */
@media (max-width: 768px) {
    .search-container {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }

    .search-input {
        width: 100%;
        border-radius: 30px 0 0 30px;
    }

    .search-btn {
        border-radius: 0 30px 30px 0;
    }
}

@media (max-width: 480px) {
    .pagination-btns {
        gap: 5px;
    }

    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 35px;
    }
}

/* Logo和Slogan区域 */
.site-header {
    display: flex;
    align-items: center;
    padding: 30px 0;
    margin-bottom: 30px;
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
    box-shadow: 0 0 5px var(--primary);
}
to {
    box-shadow: 0 0 20px var(--accent);
}
}

.site-logo {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
}

.site-slogan {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 20px;
    color: var(--dark);
    margin-left: 25px;
    font-weight: 400;
    position: relative;
    padding-left: 25px;
}

.site-slogan::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 70%;
    background: var(--accent);
    transform: translateY(-50%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1);
}
50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    font-size: 20px;
    animation: float 2s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
