* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f5f5;
    padding: 10px;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #007aff;
}

.btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
}

.btn:hover {
    background: #005bbf;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: auto;
}

.bottom-nav a {
    text-decoration: none;
    color: #007aff;
    font-size: 14px;
    font-weight: 500;
}

.bottom-nav a:hover {
    text-decoration: underline;
}

.card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.justify-between {
    display: flex;
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

/* 贡献榜样式 */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.ranking-index {
    width: 30px;
    font-weight: bold;
    color: #888;
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #007aff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
}

.ranking-stats {
    font-size: 12px;
    color: #888;
}

.ranking-actions button {
    background: none;
    border: none;
    color: #007aff;
    font-size: 20px;
    cursor: pointer;
    margin: 0 5px;
}

/* 新闻卡片 */
.news-card {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.news-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.news-summary {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.news-meta {
    font-size: 10px;
    color: #999;
}

/* 管理员标签页 */
.nav-tabs {
    list-style: none;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
}

.nav-tabs li a {
    text-decoration: none;
    padding: 8px 16px;
    background: #eee;
    border-radius: 20px;
    color: #333;
    font-size: 14px;
}

.nav-tabs li a.active {
    background: #007aff;
    color: white;
}
/* 备案号样式 */
.beian {
    text-align: center;
    margin-top: 15px;
    padding-bottom: 10px;
}
.beian a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}
.beian a:hover {
    text-decoration: underline;
}
/* 注册页专用样式（可全局使用） */
.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
}
.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}
.hint {
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
.error-hint {
    color: #dc3545;
}
.success-hint {
    color: #28a745;
}
.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    margin: 0;
    cursor: pointer;
}
.btn-circle:hover {
    background: #e0e0e0;
}
.social-login {
    margin-top: 20px;
    text-align: center;
}
.social-login p {
    margin-bottom: 10px;
    color: #666;
}