/* 全局样式 */
body.ui-style-5 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 首页样式 */
.hero {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero .intro {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.module {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.module h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #3498db;
}

.module-desc {
    color: #666;
    margin-bottom: 1.5rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.card h3 a:hover {
    color: #3498db;
}

.card .meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.card .desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.link-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.more-link {
    text-align: right;
    margin-top: 1rem;
}

.more-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.more-link a:hover {
    text-decoration: underline;
}

/* 列表页样式 */
.page-header {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.page-header .intro {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

.list-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.list-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

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

.list-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.list-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.list-item h3 a:hover {
    color: #3498db;
}

.list-item .meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.list-item .tags {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 0.5rem;
}

.list-item .desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.list-item .review {
    font-size: 0.9rem;
    color: #e67e22;
    font-style: italic;
}

.item-badge, .rank-badge, .topic-tag, .date-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-badge {
    background: #ecf0f1;
    color: #34495e;
}

.rank-badge {
    background: #e74c3c;
    color: white;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
}

.topic-tag {
    background: #9b59b6;
    color: white;
}

.date-badge {
    background: #1abc9c;
    color: white;
}

/* 详情页样式 */
.detail-container {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.detail-container h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #3498db;
}

.detail-container section {
    margin-bottom: 2.5rem;
}

.detail-container h2 {
    font-size: 1.4rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    border-left: 4px solid #3498db;
}

.basic-info ul {
    list-style: none;
}

.basic-info li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 1rem;
}

.basic-info li:last-child {
    border-bottom: none;
}

.highlight p, .summary p, .review p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.highlight {
    background: #e8f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.review {
    background: #fff3e0;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.related-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-card h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-card h4 a:hover {
    color: #3498db;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .intro {
        font-size: 0.95rem;
    }

    .card-grid, .related-grid {
        grid-template-columns: 1fr;
    }

    .rank-badge {
        position: static;
        display: block;
        width: fit-content;
        margin-bottom: 0.5rem;
    }

    .detail-container {
        padding: 2rem 1.5rem;
    }

    .detail-container h1 {
        font-size: 1.5rem;
    }
}