/* 会员中心页面样式 */
.member-page {
    min-height: 100vh;
    padding: 60px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.member-page .container {
    display: flex;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 侧边栏 */
.member-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-nav {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sidebar-nav a {
    display: block;
    padding: 12px 24px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #1e293b;
}

.sidebar-nav a.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-left-color: #6366f1;
}

/* 内容区域 */
.member-content {
    flex: 1;
    min-width: 0;
}

/* 欢迎卡片 */
.welcome-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 28px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.welcome-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.welcome-info h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.welcome-info p {
    color: #64748b;
    font-size: 13px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.2);
}

.stat-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #6366f1;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
}

/* 快捷操作 */
.quick-actions h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
}

.action-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.action-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.action-card span {
    font-size: 13px;
    font-weight: 500;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.btn-create {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* 分类标签 */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.category-tab.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #6366f1;
}

/* 二维码列表 */
.qr-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.qr-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.qr-card.hidden {
    display: none;
}

.qr-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.qr-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.qr-icon img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.qr-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.qr-link {
    font-size: 12px;
    color: #6366f1;
    margin-bottom: 3px;
    word-break: break-all;
}

.qr-stats {
    font-size: 11px;
    color: #94a3b8;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.page-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #1e293b;
    border-color: #6366f1;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 6px;
}

.page-num {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-num:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #1e293b;
}

.page-num.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-color: #6366f1;
}

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

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.btn-edit {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.btn-edit:hover {
    background: rgba(99, 102, 241, 0.2);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* 表单样式 */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #64748b;
    font-size: 13px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    background: #f8fafc;
}

.form-group select option {
    background: #ffffff;
    color: #1e293b;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.form-group input::placeholder {
    color: #94a3b8;
}

/* 二维码图标 */
.qr-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.qr-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 账户设置 */
.account-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.account-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: #64748b;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* 安全选项 */
.security-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
}

.security-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-icon {
    font-size: 18px;
}

.security-info span:last-child {
    font-size: 14px;
    color: #1e293b;
}

.security-status {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.security-status.enabled {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.security-status.disabled {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
}

/* 危险区域 */
.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.03);
}

.btn-danger {
    width: 100%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.danger-note {
    text-align: center;
    margin-top: 14px;
    font-size: 12px;
    color: #94a3b8;
}

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    padding: 0 6px;
}

.modal-content form {
    padding: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f8fafc;
    color: #64748b;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #f1f5f9;
}

.modal-content .btn-submit {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.modal-content .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* 上传区域 */
.upload-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-section input[type="text"] {
    flex: 1;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #6366f1;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
    justify-content: center;
}

.upload-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.upload-btn svg {
    width: 20px;
    height: 20px;
}

.upload-btn .upload-icon {
    font-size: 20px;
}

/* 文字链接样式 */
.upload-text-link {
    color: #6366f1;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.upload-text-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* 表单提示 */
.form-hint {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 6px;
    margin-bottom: 0;
}

/* 帮助链接 */
.help-link {
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    margin-left: 6px;
    font-weight: normal;
}

.help-link:hover {
    text-decoration: underline;
}

/* 帮助弹窗 */
.help-modal {
    max-width: 580px;
}

.help-content {
    padding: 20px;
}

.help-step {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.help-step h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.help-step p {
    font-size: 13px;
    color: #64748b;
}

.help-step p a {
    color: #6366f1;
    text-decoration: none;
}

.help-step p a:hover {
    text-decoration: underline;
}

.help-tip {
    margin-top: 18px;
    padding: 14px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
    border-left: 3px solid #6366f1;
}

.help-tip strong {
    color: #6366f1;
}

/* 域名绑定样式 */
.domain-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.domain-intro {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.domain-intro h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
}

.domain-intro p {
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
}

.domain-intro code {
    background: rgba(99, 102, 241, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 13px;
    color: #6366f1;
}

.benefits {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    font-size: 13px;
    color: #64748b;
}

.benefit-icon {
    font-size: 18px;
}

.domain-form-card,
.domain-list-card,
.tips-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.domain-form-card h3,
.domain-list-card h3,
.tips-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

.dns-info {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    border-left: 3px solid #6366f1;
}

.dns-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
}

.dns-info p {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 13px;
}

.dns-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dns-record:last-child {
    border-bottom: none;
}

.dns-label {
    color: #64748b;
    font-size: 13px;
}

.dns-record code {
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #6366f1;
    font-family: 'Courier New', monospace;
}

.domain-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.domain-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.domain-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: #f1f5f9;
}

.domain-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.domain-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.domain-status {
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.domain-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.domain-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.domain-status.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.domain-actions {
    display: flex;
    gap: 16px;
}

.domain-actions .action-link {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.domain-actions .action-link:hover {
    color: #6366f1;
}

.domain-actions .action-link.delete {
    color: #ef4444;
}

.domain-actions .action-link.delete:hover {
    color: #f87171;
}

.tips-card ul {
    list-style: none;
    padding: 0;
}

.tips-card li {
    padding: 10px 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tips-card li:last-child {
    border-bottom: none;
}

.tips-card li::before {
    content: '•';
    color: #6366f1;
    margin-right: 10px;
    font-size: 16px;
}

/* 响应式 */
@media (max-width: 900px) {
    .member-page .container {
        flex-direction: column;
    }

    .member-sidebar {
        width: 100%;
    }

    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar-nav a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 18px;
    }

    .sidebar-nav a.active {
        border-left: none;
        border-bottom-color: #6366f1;
    }
}

@media (max-width: 600px) {
    .qr-card {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .qr-actions {
        width: 100%;
        justify-content: flex-end;
    }

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

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

/* ===== 教程列表页面 ===== */
.tutorials-section {
    padding: 50px 0;
}

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

.tutorial-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.12);
}

.tutorial-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

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

.tutorial-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
}

.tutorial-meta {
    font-size: 11px;
    color: #94a3b8;
}

/* ===== 教程内容页面 ===== */
.tutorial-content-page {
    padding: 35px 0;
}

.tutorial-content-page .container {
    display: flex;
    gap: 35px;
}

.tutorial-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tutorial-sidebar h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tutorial-sidebar ul {
    list-style: none;
    padding: 0;
}

.tutorial-sidebar li {
    margin-bottom: 6px;
}

.tutorial-sidebar a {
    display: block;
    padding: 10px 14px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tutorial-sidebar a:hover {
    background: rgba(99, 102, 241, 0.08);
    color: #1e293b;
}

.tutorial-sidebar a.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.tutorial-main {
    flex: 1;
    min-width: 0;
}

.tutorial-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.back-link {
    display: inline-block;
    font-size: 13px;
    color: #6366f1;
    text-decoration: none;
    margin-bottom: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.tutorial-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.tutorial-header .tutorial-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}

.tutorial-body {
    color: #64748b;
}

.tutorial-section {
    margin-bottom: 35px;
}

.tutorial-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tutorial-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.tutorial-section ul {
    padding-left: 20px;
    margin-bottom: 18px;
}

.tutorial-section li {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.tutorial-section li strong {
    color: #1e293b;
}

.step-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.step-card .step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card .step-content {
    flex: 1;
}

.step-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.step-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.code-block {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #6366f1;
    line-height: 1.8;
}

.code-block p {
    margin: 0 0 6px 0;
}

.code-block p:last-child {
    margin-bottom: 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.info-table th,
.info-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.info-table th {
    background: rgba(99, 102, 241, 0.08);
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
}

.info-table td {
    font-size: 13px;
    color: #64748b;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 20px;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #6366f1;
}

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

.faq-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.tutorial-footer {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.next-tutorial {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.next-tutorial:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* 响应式 - 教程页面 */
@media (max-width: 900px) {
    .tutorial-content-page .container {
        flex-direction: column;
    }

    .tutorial-sidebar {
        width: 100%;
        position: static;
    }

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

@media (max-width: 600px) {
    .tutorials-section {
        padding: 35px 0;
    }

    .tutorial-card {
        padding: 20px;
    }

    .step-card {
        flex-direction: column;
        gap: 14px;
    }

    .info-table {
        font-size: 11px;
    }

    .info-table th,
    .info-table td {
        padding: 8px 10px;
    }
}
