/* 题库大全页面样式 */

/* 面包屑导航样式已移至 common.css */

/* 主内容区域 */
.main-content {
    padding: 30px 0 50px;
    background-color: var(--bg-body);
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 左侧主要内容 */
.left-content {
    flex: 1;
}

/* 题库分类卡片 */
.bank-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    z-index: 0;
    border-radius: var(--radius-lg);
}

.category-card.pink::before {
    background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 100%);
}

.category-card.blue::before {
    background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
}

.category-card.purple::before {
    background: linear-gradient(135deg, #ba68c8 0%, #7b1fa2 100%);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.category-card.pink .card-icon {
    background: linear-gradient(135deg, #ff6b9d 0%, #c2185b 100%);
}

.category-card.blue .card-icon {
    background: linear-gradient(135deg, #4fc3f7 0%, #0288d1 100%);
}

.category-card.purple .card-icon {
    background: linear-gradient(135deg, #ba68c8 0%, #7b1fa2 100%);
}

.card-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.card-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(215, 67, 57, 0.3);
}

/* 题库标签页 */
.bank-tabs {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 30px;
}

.tab-item {
    padding: 18px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

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

.tab-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px 2px 0 0;
}

/* 题库列表 */
.bank-list {
    padding: 20px 30px;
}

.bank-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.bank-item:last-child {
    border-bottom: none;
}

.bank-item:hover {
    background-color: #fafafa;
    margin: 0 -20px;
    padding: 20px;
    border-radius: var(--radius-md);
}

.item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
}

.item-title {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.item-progress {
    margin-right: 30px;
    min-width: 60px;
    text-align: center;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.item-actions {
    display: flex;
    gap: 10px;
}

.btn-continue,
.btn-restart,
.btn-practice {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-continue {
    background: var(--primary-gradient);
    color: white;
}

.btn-continue:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(215, 67, 57, 0.3);
}

.btn-restart {
    background: #f5f5f5;
    color: var(--text-secondary);
}

.btn-restart:hover {
    background: #e8e8e8;
}

.btn-practice {
    background: #e3f2fd;
    color: #2196F3;
}

.btn-practice:hover {
    background: #bbdefb;
}

/* 右侧边栏 */
.right-sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* 我的记录 */
.my-records {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.record-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #fafafa;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s;
}

.record-item:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
}

.record-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.record-icon.yellow {
    background: linear-gradient(135deg, #ffd54f 0%, #ffa726 100%);
}

.record-icon.blue {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
}

.record-icon.purple {
    background: linear-gradient(135deg, #ba68c8 0%, #ab47bc 100%);
}

.record-icon.green {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
}

.record-item:hover .record-icon {
    transform: scale(1.1);
}

.record-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 模考大赛 */
.exam-contest {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contest-banner {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contest-banner svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contest-info {
    padding: 20px;
}

.contest-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.contest-time {
    margin-bottom: 20px;
}

.time-item {
    display: flex;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.6;
}

.time-label {
    color: var(--text-secondary);
    min-width: 80px;
    flex-shrink: 0;
}

.time-value {
    color: var(--text-primary);
}

.btn-signup {
    display: block;
    width: 100%;
    padding: 12px;
    background: #e0e0e0;
    color: var(--text-secondary);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: not-allowed;
}

.btn-signup.active {
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-signup.active:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(215, 67, 57, 0.3);
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .bank-categories {
        grid-template-columns: 1fr;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .right-sidebar {
        width: 100%;
    }

    .records-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .bank-categories {
        gap: 15px;
    }

    .category-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .records-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bank-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .item-title {
        width: 100%;
        margin-bottom: 10px;
    }

    .item-progress {
        margin-right: auto;
    }
}
