/* 百度热搜短剧演员榜前端展示系统 - 样式文件 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根元素和基础设置 */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #45b7d1;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.nav-btn.active {
    background: var(--white);
    color: var(--primary-color);
}

/* 主要内容区域 */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* 搜索区域 */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #ff5252;
}

.search-icon {
    font-size: 1.2rem;
}

.search-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 筛选区域 */
.filter-section {
    margin-bottom: 2rem;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.range-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-selector label {
    font-weight: 500;
    color: var(--text-light);
}

.range-select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    cursor: pointer;
}

/* 内容区域 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* 更新时间样式 */
.update-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 107, 107, 0.2);
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.update-time:hover {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.3);
}

.update-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.update-text {
    font-weight: 500;
    color: var(--text-color);
}

/* 数据列表 - 按照图片样式布局 */
.data-list {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

/* 数据项样式 - 图片上下居中左右靠左，文字上下居中左右靠左 */
.data-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    min-height: 240px;
    max-height: none; /* 移除最大高度限制，允许内容自动扩展 */
    align-items: center; /* 整体垂直居中对齐 */
}

.data-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 图片容器 - 上下居中对齐，左右靠左对齐，包含排名徽章 */
.item-image-container {
    width: 200px;
    min-width: 200px;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center; /* 图片垂直居中对齐 */
    justify-content: flex-start; /* 图片水平靠左对齐 */
    margin-left: 10px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* 图片内容居中对齐 */
    transition: var(--transition);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.item-image-container img:hover {
    transform: scale(1.02);
}

/* 排名样式 - 固定在图片左上角 */
.rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--white);
}

/* 第一名排名颜色 */
.rank.rank-1 {
    background: #ff3232;
}

/* 第二名排名颜色 */
.rank.rank-2 {
    background: #ff6600;
}

/* 第三名及以后排名颜色 */
.rank.rank-3-plus {
    background: #faa900;
}

/* 图片占位符 */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 4rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* 内容容器 - 上下居中对齐，左右靠左对齐 */
.item-content-container {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 文字内容垂直居中对齐 */
    align-items: flex-start; /* 文字内容水平靠左对齐 */
    overflow: visible; /* 允许内容溢出，实现自动换行 */
}

/* 标题样式 - 主要标题，居中对齐 */
.title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
    text-align: left; /* 文字左对齐 */
}

/* 副标题样式 - 详细信息，支持自动换行 */
.subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    overflow: visible; /* 允许内容溢出 */
    text-overflow: unset; /* 移除文本截断 */
    white-space: normal; /* 允许换行 */
    word-wrap: break-word; /* 长单词自动换行 */
    word-break: break-all; /* 强制换行 */
    text-align: left; /* 文字左对齐 */
    max-width: 100%; /* 确保不超出容器 */
}

/* 描述样式 - 支持自动换行 */
.description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    overflow: visible; /* 允许内容溢出 */
    text-overflow: unset; /* 移除文本截断 */
    display: block; /* 改为块级元素 */
    white-space: normal; /* 允许换行 */
    word-wrap: break-word; /* 长单词自动换行 */
    word-break: break-all; /* 强制换行 */
    text-align: left; /* 文字左对齐 */
    max-width: 100%; /* 确保不超出容器 */
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    justify-content: flex-start; /* 标签左对齐 */
}

.tag {
    background: var(--bg-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    white-space: nowrap; /* 标签内容不换行 */
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误消息 */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-icon {
    font-size: 2rem;
}

.error-message p {
    color: #c53030;
    font-weight: 500;
}

.retry-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.retry-btn:hover {
    background: #ff5252;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
}

.back-to-top:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 页面底部 */
.footer {
    background: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav {
        justify-content: center;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tabs {
        justify-content: center;
    }
    
    .data-list {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .data-item {
        flex-direction: column;
        min-height: auto;
        max-height: none;
        align-items: stretch; /* 移动端恢复默认对齐 */
    }
    
    .item-image-container {
        width: 100%;
        height: 250px;
        min-width: auto;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        align-items: center; /* 移动端图片居中 */
        justify-content: center;
        margin-left: 0;
    }
    
    .item-image-container img {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
        object-position: center; /* 移动端图片居中 */
    }
    
    .image-placeholder {
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .item-content-container {
        padding: 2rem;
        align-items: flex-start; /* 移动端文字左对齐 */
        justify-content: flex-start; /* 移动端文字向上对齐 */
    }
    
    /* 移动端排名徽章位置调整 */
    .rank {
        top: 15px;
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    /* 移动端更新时间样式调整 */
    .update-time {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* 响应式设计 - 手机设备 */
@media (max-width: 480px) {
    .main {
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .search-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .filter-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .item-image-container {
        height: 220px;
    }
    
    .item-content-container {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    /* 手机端排名徽章位置调整 */
    .rank {
        top: 12px;
        left: 12px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* 手机端更新时间样式调整 */
    .update-time {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .update-icon {
        font-size: 0.9rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e2e8f0;
        --text-light: #94a3b8;
        --bg-color: #1e293b;
        --white: #334155;
        --border-color: #475569;
    }
    
    .data-item {
        background: var(--white);
    }
    
    .search-input,
    .filter-select,
    .range-select {
        background: var(--white);
        color: var(--text-color);
    }
    
    .update-time {
        background: rgba(255, 107, 107, 0.2);
        border-color: rgba(255, 107, 107, 0.3);
    }
    
    .update-time:hover {
        background: rgba(255, 107, 107, 0.25);
        border-color: rgba(255, 107, 107, 0.4);
    }
}

/* 打印样式 */
@media print {
    .header,
    .search-section,
    .filter-section,
    .back-to-top,
    .footer {
        display: none;
    }
    
    .main {
        padding: 0;
    }
    
    .data-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .item-image-container {
        display: none;
    }
    
    .update-time {
        display: none;
    }
}

/* 无障碍访问支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #d32f2f;
        --text-color: #000000;
        --text-light: #424242;
        --border-color: #000000;
    }
    
    .data-item {
        border-left-width: 6px;
    }
    
    .rank {
        border-width: 3px;
    }
}

/* 焦点可见性支持 */
.nav-btn:focus,
.filter-tab:focus,
.search-input:focus,
.filter-select:focus,
.range-select:focus,
.retry-btn:focus,
.back-to-top:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== Quark系列页面专用优化样式 ===== */
/* 只为Quark系列页面应用特殊样式，不影响其他页面 */

/* Quark数据项特殊布局 - 更紧凑美观 */
[id*="quark-"] .data-item {
    min-height: 280px;
    border-left: 4px solid #ff6b6b;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[id*="quark-"] .data-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-left-color: #e55a5a;
}

/* Quark图片容器优化 */
[id*="quark-"] .item-image-container {
    width: 180px;
    min-width: 180px;
    height: 280px;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f1f3f4, #e8eaed);
}

[id*="quark-"] .item-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

[id*="quark-"] .data-item:hover .item-image-container img {
    transform: scale(1.05);
}

/* Quark内容容器优化 - 网格布局 */
[id*="quark-"] .item-content-container {
    flex: 1;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0.8rem;
    align-content: start;
}

/* Quark标题优化 */
[id*="quark-"] .title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Quark描述优化 */
[id*="quark-"] .description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Quark信息网格布局 */
[id*="quark-"] .quark-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin-top: auto;
}

/* Quark信息项优化 */
[id*="quark-"] .quark-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.1);
    transition: all 0.2s ease;
}

[id*="quark-"] .quark-info-item:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

[id*="quark-"] .quark-info-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[id*="quark-"] .quark-info-value {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

/* Quark特殊字段样式 */
[id*="quark-"] .quark-info-item.hot-score .quark-info-value {
    color: #ff6b6b;
    font-size: 1rem;
}

[id*="quark-"] .quark-info-item.rating .quark-info-value {
    color: #4ecdc4;
    font-size: 1rem;
}

[id*="quark-"] .quark-info-item.year .quark-info-value {
    color: #45b7d1;
}

[id*="quark-"] .quark-info-item.genre .quark-info-value {
    color: #9b59b6;
}

/* Quark标签优化 */
[id*="quark-"] .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
    justify-content: center;
}

[id*="quark-"] .tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Quark排名徽章优化 */
[id*="quark-"] .rank {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    font-weight: 700;
    font-size: 1.1rem;
}

/* 隐藏原有的subtitle样式，使用新的网格布局 */
[id*="quark-"] .subtitle {
    display: none;
}

/* Quark页面响应式优化 */
@media (max-width: 768px) {
    [id*="quark-"] .data-item {
        flex-direction: column;
        min-height: auto;
    }
    
    [id*="quark-"] .item-image-container {
        width: 100%;
        height: 200px;
        border-radius: 12px 12px 0 0;
    }
    
    [id*="quark-"] .item-content-container {
        padding: 1.2rem;
    }
    
    [id*="quark-"] .quark-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    [id*="quark-"] .quark-info-item {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    [id*="quark-"] .quark-info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Quark分页控件样式 ===== */
.quark-pagination {
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    max-width: 800px;
    width: 100%;
    grid-column: 1 / -1; /* 跨越所有grid列 */
    justify-self: center; /* 在grid中居中 */
}

.pagination-info {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.pagination-info span {
    display: block;
    margin: 0.3rem 0;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    padding: 0.6rem 1rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #ff6b6b;
    color: #ff6b6b;
    transform: translateY(-1px);
}

.page-btn.active {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #ffffff;
    font-weight: 600;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    transform: none;
    background: #ffffff;
    border-color: #e9ecef;
    color: #666;
}

.page-ellipsis {
    padding: 0.6rem 0.5rem;
    color: #999;
    font-size: 0.9rem;
}

.prev-btn, .next-btn {
    font-weight: 500;
    min-width: 80px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .quark-pagination {
        padding: 1rem;
    }
    
    .pagination-buttons {
        gap: 0.3rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .prev-btn, .next-btn {
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .pagination-info {
        font-size: 0.8rem;
    }
    
    .page-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 30px;
    }
    
    .prev-btn, .next-btn {
        min-width: 60px;
    }
}

/* ===== API接口信息展示样式 ===== */

/* API信息容器 */
.api-info-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* API信息头部 */
.api-info-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #ff6b6b;
}

.api-info-header h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.api-info-desc {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

/* API端点列表 */
.api-endpoints-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* API端点项 */
.api-endpoint-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.api-endpoint-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #ff6b6b;
}

.endpoint-path {
    flex: 1;
    margin-right: 1rem;
}

.endpoint-path code {
    background: #f8f9fa;
    color: #e74c3c;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
    display: inline-block;
    min-width: 200px;
}

.endpoint-name {
    flex: 1;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
    padding-left: 1rem;
    border-left: 2px solid #ff6b6b;
}

/* API信息底部 */
.api-info-footer {
    background: rgba(255, 107, 107, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.api-info-footer p {
    margin: 0.5rem 0;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.6;
}

.api-info-footer strong {
    color: #ff6b6b;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .api-info-container {
        padding: 1.5rem;
    }
    
    .api-endpoint-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .endpoint-path {
        margin-right: 0;
        margin-bottom: 0.8rem;
        width: 100%;
    }
    
    .endpoint-path code {
        width: 100%;
        min-width: auto;
        display: block;
        text-align: center;
    }
    
    .endpoint-name {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid #ff6b6b;
        padding-top: 0.8rem;
        width: 100%;
    }
    
    .api-info-header h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .api-info-container {
        padding: 1rem;
    }
    
    .api-endpoints-list {
        gap: 0.8rem;
    }
    
    .api-endpoint-item {
        padding: 0.8rem;
    }
    
    .endpoint-path code {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .endpoint-name {
        font-size: 0.9rem;
    }
}