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

:root {
    --primary: #8B9FD4;
    --primary-light: #A5B8E8;
    --primary-dark: #6B7FB4;
    --bg-main: #EEF2F7;
    --bg-card: #FFFFFF;
    --text-main: #333333;
    --text-secondary: #666666;
    --border: #E0E6ED;
    --success: #52C41A;
    --danger: #FF4D4F;
    --warning: #FAAD14;
    --shadow: 0 4px 20px rgba(139, 159, 212, 0.15);
    --shadow-hover: 0 8px 30px rgba(139, 159, 212, 0.25);
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* ===== 登录页面 ===== */
.login-page {
    background: linear-gradient(135deg, #E8ECF4 0%, #D4DBE8 50%, #C4CFE0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

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

.logo-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.login-header h1 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #FAFBFC;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 159, 212, 0.1);
    background: #FFFFFF;
}

.error-message {
    background: #FFF2F0;
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.hidden {
    display: none !important;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 159, 212, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
}

.back-link {
    color: var(--primary);
    font-size: 14px;
}

/* 装饰圆圈 */
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #FFE5E5, #FFD4D4);
    top: -100px;
    right: -50px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #E5EFFF, #D4E4FF);
    bottom: -50px;
    left: -50px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #E5FFE5, #D4FFD4);
    bottom: 50px;
    right: 100px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.btn-logout {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary) !important;
}

.btn-logout:hover {
    border-color: var(--danger);
    color: var(--danger) !important;
}

.btn-login-nav {
    padding: 8px 20px;
    background: var(--primary);
    color: white !important;
    border-radius: 6px;
}

.btn-login-nav:hover {
    background: var(--primary-light);
}

.nav-user {
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
}

/* ===== 主页 ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 上传区域 */
.drop-zone {
    background: var(--bg-card);
    border: 2px dashed var(--primary-light);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto 40px;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: var(--primary);
    background: #F8FAFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--primary);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.drop-text {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: 500;
}

.drop-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.btn-browse {
    padding: 10px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-browse:hover {
    background: var(--primary-light);
}

/* 上传进度 */
.progress-container {
    max-width: 600px;
    margin: 0 auto 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 上传结果 */
.upload-results {
    max-width: 600px;
    margin: 0 auto 40px;
}

.results-title {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.result-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.result-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--border);
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-url {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action.success {
    border-color: var(--success);
    color: var(--success);
}

/* 图片画廊 */
.gallery-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    color: var(--text-main);
}

.view-all {
    color: var(--primary);
    font-size: 14px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.image-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.image-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 10px 12px;
}

.image-name {
    font-size: 13px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

/* 游客提示 */
.guest-notice {
    margin-top: 60px;
}

.notice-card {
    background: linear-gradient(135deg, #F8FAFF 0%, #EEF2F7 100%);
    border-radius: var(--radius);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--border);
}

.notice-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.notice-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.notice-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: var(--primary-light);
}

/* ===== 模态框 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-content.small {
    max-width: 400px;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--bg-main);
}

.preview-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.preview-info {
    display: flex;
    gap: 10px;
}

.url-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--bg-main);
}

.btn-copy {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-copy:hover {
    background: var(--primary-light);
}

/* 预览详情 */
.preview-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    width: 80px;
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-row span {
    flex: 1;
    color: var(--text-main);
    font-size: 13px;
    word-break: break-all;
}

.preview-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.link-input-group {
    display: flex;
    gap: 8px;
}

.link-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    background: var(--bg-main);
}

.link-input-group .btn-copy {
    padding: 8px 16px;
    font-size: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ===== 管理后台 ===== */
.admin-page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 220px;
    background: var(--bg-card);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.sidebar-nav {
    padding: 16px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s;
}

.sidebar-link:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

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

.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 24px 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 24px;
    color: var(--text-main);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-name {
    color: var(--text-main);
    font-weight: 500;
}

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

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.search-box {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-search {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    padding: 10px 20px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-danger:disabled {
    background: var(--border);
    cursor: not-allowed;
    opacity: 0.6;
}

/* 数据表格 */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: var(--bg-main);
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #FAFBFC;
}

.data-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.table-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.table-thumb:hover {
    transform: scale(1.05);
}

.loading-cell {
    text-align: center;
    padding: 40px !important;
    color: var(--text-secondary);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination button {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-main);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== 提示框 ===== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .sidebar {
        width: 180px;
    }
    
    .admin-main {
        margin-left: 180px;
        padding: 20px;
    }
    
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: none;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 30px 24px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ===== 修改密码页面 ===== */
.password-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 560px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.password-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.password-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.password-header h2 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.password-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.password-form .form-group {
    margin-bottom: 22px;
}

.password-form label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 14px;
}

.label-text {
    color: var(--text-main);
}

.required {
    color: var(--danger);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #FAFBFC;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 159, 212, 0.1);
    background: #FFFFFF;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: color 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: var(--primary);
    background: var(--bg-main);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* 密码强度 */
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

.strength-fill.weak {
    width: 33%;
    background: var(--danger);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.strength-text.weak { color: var(--danger); }
.strength-text.medium { color: var(--warning); }
.strength-text.strong { color: var(--success); }

/* 密码匹配提示 */
.match-hint {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.match-hint .match-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
}

.match-hint:not(.error) .match-icon {
    background: var(--success);
    color: white;
}

.match-hint:not(.error) .match-text {
    color: var(--success);
}

.match-hint.error .match-icon {
    background: var(--danger);
    color: white;
}

.match-hint.error .match-text {
    color: var(--danger);
}

/* 消息框 */
.message-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message-box.success {
    background: #F6FFED;
    color: var(--success);
    border: 1px solid #B7EB8F;
}

.message-box.error {
    background: #FFF2F0;
    color: var(--danger);
    border: 1px solid #FFCCC7;
}

/* 表单按钮 */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
}

.btn-primary-large {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 159, 212, 0.4);
}

.btn-primary-large:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 密码安全提示 */
.password-tips {
    margin-top: 32px;
    padding: 20px;
    background: #F8FAFF;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.password-tips h3 {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
}

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

.password-tips li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 13px;
    padding-left: 20px;
    position: relative;
}

.password-tips li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary);
}
