/* 通用样式（PC+移动） */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

header h1 {
    color: #007bff;
    margin-bottom: 15px;
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    transition: background 0.3s;
}

nav a:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
}

main {
    padding: 20px 0;
}

h2 {
    margin-bottom: 20px;
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

button,
.btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

button:hover,
.btn:hover {
    background: #0056b3;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
}

/* 表格样式 */
table {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #ddd;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background: #f8f9fa;
    font-weight: bold;
}

table tr:hover {
    background: #f8f9fa;
}

/* 卡片样式 */
.stat-card,
.summary-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-number,
.points-number {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-top: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: inline-block;
}

.pagination .current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination a:hover {
    background: #f0f0f0;
    text-decoration: none;
}

/* 提示信息 */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 作品网格 */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.design-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.design-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.design-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.design-info {
    padding: 15px;
}

.design-info h3 {
    margin-bottom: 10px;
}

.design-info h3 a {
    color: #333;
}

.design-info h3 a:hover {
    color: #007bff;
}

.designer,
.stats {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    nav {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .design-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 8px;
    }
}

