/*
*组件样式
*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;}

header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;}

.subtitle {
    color: #7f8c8d;
    font-size: 14px;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.5;}

.feature-notice {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 13px;}

.demo-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e0e6ed;}

.section-title {
    color: #3498db;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f8ff;
    font-size: 18px;}

.controls {
    display: block;
    margin-bottom: 20px;
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e6ed;}

.control-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;}

.control-group {
    display: inline-block;
    vertical-align: top;
    min-width: 200px;
    margin-right: 20px;
    margin-bottom: 10px;
    flex: 1;}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;}

.control-group input,
.control-group select {
    padding: 8px 10px;
    border: 1px solid #d1d9e6;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    max-width: 250px;}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;}

.button-group button {
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 120px;}

.button-group button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);}

.button-group button:active {
    transform: translateY(0);}

.button-group button:nth-child(2) {
    background-color: #2ecc71;}

.button-group button:nth-child(2):hover {
    background-color: #27ae60;}

.button-group button:nth-child(3) {
    background-color: #e74c3c;}

.button-group button:nth-child(3):hover {
    background-color: #c0392b;}

.button-group button:nth-child(5) {
    background-color: #9b59b6;}

.button-group button:nth-child(5):hover {
    background-color: #8e44ad;}

.pagination-container {
    display: block;
    text-align: center;
    margin: 30px 0;
    min-height: 80px;}

/* 翻页条基础样式 - 使用li元素 */
.pagination-nav {
    display: inline-block;}

 

.ui-pagination-container {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;}

.ui-pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;}

.ui-pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 4px;
    background-color: #f8fafc;
    color: #4a5568;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    user-select: none;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    font-family: inherit;
    outline: none;}

.ui-pagination-button:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
    transform: translateY(-1px);}

.ui-pagination-button:focus {
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    border-color: #3498db;}

.ui-pagination-button.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;}

.ui-pagination-button.active:hover {
    background-color: #2980b9;
    border-color: #2980b9;}

.ui-pagination-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f1f5f9;}

.ui-pagination-button.disabled:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
    transform: none;}

.ui-pagination-button.ellipsis {
    cursor: default;
    background-color: transparent;
    border-color: transparent;
    min-width: auto;}

.ui-pagination-button.ellipsis:hover {
    background-color: transparent;
    border-color: transparent;
    transform: none;}

/* 导航文本按钮样式 */
.ui-pagination-button.nav-button {
    padding: 0 16px;
    font-weight: 500;}

.current-info {
    background-color: #e8f4fc;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    font-size: 14px;
    border: 1px solid #d1ecf1;}

.module-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    border: 1px solid #e9ecef;}

.module-info h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;}

.code-preview {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px solid #34495e;
    overflow-x: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;}

.code-preview pre {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;}

.code-preview code {
    color: #ecf0f1;}

.info-box {
    background-color: #f0f9ff;
    border-left: 4px solid #3498db;
    padding: 15px;
    border-radius: 0 6px 6px 0;
    margin-top: 20px;
    font-size: 13px;}

.info-box h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;}

.info-box p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;}

footer {
    margin-top: 30px;
    text-align: center;
    color: #7f8c8d;
    font-size: 12px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    width: 100%;}

/* 响应式设计 */
@media (max-width: 768px) {
    .ui-pagination-button {
        min-width: 32px;
        height: 32px;
        padding: 0 10px;
        font-size: 13px;}
    
    .ui-pagination-button.nav-button {
        padding: 0 12px;
        font-size: 12px;}
    
    .demo-section {
        padding: 15px;}
    
    .control-group {
        min-width: 150px;
        margin-right: 10px;}
    
    .ui-pagination-container {
        gap: 4px;}
}

@media (max-width: 480px) {
    .ui-pagination-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;}
    
    .ui-pagination-button {
        min-width: 30px;
        height: 30px;
        margin: 2px;
        font-size: 12px;}
    
    .ui-pagination-button.nav-button {
        padding: 0 8px;
        font-size: 11px;}
    
    .button-group {
        flex-direction: column;}
    
    .button-group button {
        width: 100%;}
    
    .control-group {
        min-width: 100%;
        margin-right: 0;}
