/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f0f4ff;
    color: #1e293b;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    flex: 1;
}

.navbar-logo {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-item {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.navbar-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 消息提示 */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 16px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 首页英雄区 */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: 20px 0;
    border-radius: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* 搜索栏 */
.search-bar {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
    border-color: #2563eb;
}

.search-bar button {
    padding: 15px 30px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}

/* 品牌标签 */
.brand-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 15px 0;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-label {
    font-size: 14px;
    color: #64748b;
    margin-right: 5px;
}

.brand-tag {
    padding: 8px 16px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    text-decoration: none;
    color: #475569;
}

.brand-tag:hover, .brand-tag.active {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

/* 分类标签 */
.category-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.tag {
    padding: 10px 20px;
    background: white;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    text-decoration: none;
    color: #475569;
}

.tag:hover, .tag.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* 品牌徽章 */
.brand-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
    vertical-align: middle;
}

.search-result-info {
    padding: 15px 20px;
    background: #eff6ff;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 16px;
    color: #1e40af;
}

.clear-search {
    margin-left: 15px;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
}

.clear-search:hover {
    text-decoration: underline;
}

/* 教程网格 */
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tutorial-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tutorial-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.tutorial-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e293b;
}

.tutorial-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
}

.tutorial-app {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 15px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #475569;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
}

.cta-section h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 认证页面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #1e293b;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #64748b;
}

/* 教程详情页 */
.tutorial-detail {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

.tutorial-header {
    text-align: center;
    margin-bottom: 30px;
}

.tutorial-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
}

.tutorial-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

/* 步骤卡片 */
.steps-container {
    margin: 30px 0;
}

.step-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 15px;
    border-left: 4px solid #2563eb;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.step-desc {
    font-size: 18px;
    line-height: 1.6;
}

.step-hl {
    color: #2563eb;
    font-weight: bold;
}

/* 教程操作 */
.tutorial-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

/* 反馈表单 */
.tutorial-feedback {
    background: #f8fafc;
    padding: 25px;
    border-radius: 16px;
    margin-top: 30px;
}

.tutorial-feedback h3 {
    margin-bottom: 20px;
}

/* 仪表盘 */
.dashboard {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

.dashboard-header {
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #2563eb;
}

.stat-number.pending {
    color: #f59e0b;
}

.stat-number.approved {
    color: #10b981;
}

.stat-number.rejected {
    color: #ef4444;
}

.stat-number.helped {
    color: #f59e0b;
}

/* 感谢横幅 */
.thank-you-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    border-left: 5px solid #f59e0b;
}

.thank-you-icon {
    font-size: 48px;
}

.thank-you-text p {
    font-size: 18px;
    color: #92400e;
    margin-bottom: 5px;
}

.thank-you-text strong {
    color: #b45309;
    font-size: 20px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}

.dashboard-actions {
    margin-bottom: 30px;
}

/* 教程列表项 */
.tutorial-list h2 {
    margin-bottom: 20px;
}

.tutorial-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 15px;
}

.tutorial-item-icon {
    font-size: 36px;
}

.tutorial-item-info {
    flex: 1;
}

.tutorial-item-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.tutorial-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
}

.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-draft {
    background: #f1f5f9;
    color: #475569;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.reject-reason {
    color: #ef4444;
    font-size: 14px;
    margin-top: 8px;
}

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

/* 管理后台 */
.admin-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.admin-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    margin-bottom: 20px;
}

.admin-tutorial-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #f59e0b;
}

.admin-tutorial-card.approved {
    border-left-color: #10b981;
}

.admin-tutorial-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.admin-tutorial-icon {
    font-size: 36px;
}

.admin-tutorial-info {
    flex: 1;
}

.admin-tutorial-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.admin-tutorial-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #64748b;
}

.admin-tutorial-steps {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.admin-step {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.admin-step:last-child {
    border-bottom: none;
}

.admin-step .step-number {
    width: 24px;
    height: 24px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 12px;
}

.admin-step .step-icon {
    font-size: 20px;
}

.admin-step .step-desc {
    font-size: 14px;
}

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

.reject-form {
    margin-top: 15px;
    padding: 15px;
    background: #fef2f2;
    border-radius: 8px;
}

/* 用户管理 */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
}

.user-card.user-admin {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
}

.user-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #1e293b;
}

.user-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.username {
    color: #94a3b8;
}

.user-role {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.role-admin {
    background: #fef3c7;
    color: #92400e;
}

.role-contributor {
    background: #dbeafe;
    color: #1e40af;
}

.user-stats {
    font-size: 13px;
    color: #64748b;
}

.user-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

@media (max-width: 768px) {
    .user-card {
        flex-direction: column;
        text-align: center;
    }

    .user-actions {
        flex-direction: column;
        width: 100%;
    }

    .user-actions .btn {
        width: 100%;
    }
}

/* 头像选择器 */
.avatar-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.avatar-option {
    cursor: pointer;
    position: relative;
}

.avatar-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.avatar-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    font-size: 32px;
    background: #f8fafc;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    transition: all 0.2s;
}

.avatar-option:hover .avatar-emoji {
    border-color: #93c5fd;
    transform: scale(1.1);
}

.avatar-option input[type="radio"]:checked + .avatar-emoji {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* 教程表单 */
.tutorial-form-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-form-container h1 {
    margin-bottom: 30px;
}

.icon-selector {
    position: relative;
}

.icon-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.icon-option {
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: background 0.2s;
}

.icon-option:hover {
    background: #f1f5f9;
}

.step-input-group {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.step-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.step-input-group .step-number {
    width: auto;
    height: auto;
    background: none;
    color: #2563eb;
    border-radius: 0;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
}

.step-input-fields {
    display: flex;
    gap: 10px;
}

.step-input-fields .step-icon {
    width: 60px;
    text-align: center;
}

.step-input-fields .step-desc {
    flex: 1;
}

/* 步骤图片上传 */
.step-image-upload {
    margin-top: 10px;
}

.image-preview {
    width: 100%;
    min-height: 120px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.image-preview:hover {
    border-color: #2563eb;
}

.image-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.upload-placeholder {
    color: #94a3b8;
    font-size: 14px;
}

/* 教程详情页图片 */
.step-image {
    margin: 15px 0;
    text-align: center;
}

.step-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 错误页面 */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-page h1 {
    font-size: 64px;
    color: #2563eb;
    margin-bottom: 10px;
}

.error-page h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.error-page p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 30px;
}

/* 页脚 */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    padding-bottom: 80px; /* 为移动端底部导航留空间 */
}

.footer p {
    margin-bottom: 5px;
}

/* 移动端底部导航栏 */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #64748b;
    padding: 8px 0;
    transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #2563eb;
}

.mobile-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.mobile-nav-text {
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 768px) {
    /* 桌面端导航栏在移动端隐藏 */
    .navbar {
        padding: 12px 15px;
    }

    .navbar-menu {
        display: none;
    }

    /* 显示移动端底部导航 */
    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }

    /* 为底部导航留空间 */
    body {
        padding-bottom: 70px;
    }

    /* 移动端优化 */
    .hero {
        padding: 40px 15px;
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .search-bar {
        flex-direction: column;
        margin: 15px;
    }

    .search-bar input {
        padding: 14px 16px;
    }

    .search-bar button {
        padding: 14px;
    }

    .category-tags,
    .brand-tags {
        padding: 12px 15px;
        margin: 10px 15px;
    }

    .tag,
    .brand-tag {
        padding: 8px 14px;
        font-size: 13px;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px;
    }

    .tutorial-card {
        padding: 15px;
    }

    .tutorial-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .tutorial-info h3 {
        font-size: 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* 仪表盘移动端 */
    .dashboard {
        padding: 20px 15px;
        margin: 15px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }

    .dashboard-stats {
        flex-direction: column;
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .tutorial-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .tutorial-item-actions {
        flex-direction: column;
        width: 100%;
    }

    .tutorial-item-actions .btn {
        width: 100%;
    }

    /* 教程详情页移动端 */
    .tutorial-detail {
        padding: 20px 15px;
        margin: 15px;
    }

    .tutorial-header h1 {
        font-size: 24px;
    }

    .step-card {
        padding: 20px 15px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .step-icon {
        font-size: 48px;
    }

    .step-desc {
        font-size: 20px;
    }

    .step-navigation {
        padding: 12px 15px;
    }

    .btn-prev,
    .btn-next {
        padding: 14px;
        font-size: 16px;
    }

    /* 个人资料移动端 */
    .profile-container {
        padding: 0 15px;
    }

    .profile-card {
        padding: 20px 15px;
    }

    /* 贡献者页面移动端 */
    .contributors-hero {
        padding: 40px 15px;
        margin: 15px;
    }

    .contributors-hero h1 {
        font-size: 28px;
    }

    .contributors-stats {
        grid-template-columns: repeat(2, 1fr);
        margin: 15px;
    }

    .contributors-list {
        padding: 20px 15px;
        margin: 15px;
    }

    .contributors-grid {
        grid-template-columns: 1fr;
    }

    .contributors-cta {
        padding: 30px 20px;
        margin: 15px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats,
    .admin-stats {
        flex-direction: column;
    }

    .tutorial-item {
        flex-direction: column;
        text-align: center;
    }

    .tutorial-item-actions {
        justify-content: center;
    }

    .admin-tutorial-header {
        flex-direction: column;
        text-align: center;
    }

    .step-input-fields {
        flex-direction: column;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0 15px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.page-link.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-color: transparent;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #94a3b8;
    font-size: 16px;
}

.pagination-info {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 6px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* 贡献者感谢页 */
.contributors-page {
    max-width: 1000px;
    margin: 0 auto;
}

.contributors-hero {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: 20px 0;
    border-radius: 20px;
}

.contributors-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.contributors-hero p {
    font-size: 20px;
    opacity: 0.9;
}

.contributors-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.contributors-stats .stat-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contributors-stats .stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.contributors-stats .stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #10b981;
}

.contributors-stats .stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 5px;
}

.contributors-list {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contributors-list h2 {
    margin-bottom: 25px;
    font-size: 24px;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.contributor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    transition: transform 0.2s;
}

.contributor-card:hover {
    transform: translateY(-3px);
}

.contributor-rank {
    font-size: 24px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

.contributor-avatar {
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.contributor-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1e293b;
}

.contributor-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #64748b;
}

.contributors-cta {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    text-align: center;
    padding: 50px 30px;
    border-radius: 20px;
    margin: 30px 0;
}

.contributors-cta h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contributors-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .contributors-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .contributors-hero h1 {
        font-size: 32px;
    }

    .contributors-grid {
        grid-template-columns: 1fr;
    }
}

/* 个人资料页 */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-header {
    margin-bottom: 25px;
}

.profile-header h1,
.profile-header h2 {
    margin-bottom: 10px;
}

.profile-header p {
    color: #64748b;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.profile-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.profile-form input:focus {
    outline: none;
    border-color: #2563eb;
}

.profile-form input.input-disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.profile-form .form-help {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.profile-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}
