/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 密码验证模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.password-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.password-container h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.password-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    background: white;
}

#passwordInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    color: #333;
}

#passwordInput::placeholder {
    color: #999;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* 管理模态框样式 */
.manage-modal {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.modal-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.add-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.add-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.sites-list h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.sites-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.site-item:hover {
    border-color: #667eea;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.site-item-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.site-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.site-item-icon i {
    font-size: 18px;
    color: #667eea;
}

.site-item-details h4 {
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.site-item-details p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.site-item-actions {
    display: flex;
    gap: 10px;
}

.edit-btn, .delete-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.edit-btn {
    background: #ffc107;
    color: #333;
}

.edit-btn:hover {
    background: #e0a800;
    transform: translateY(-1px);
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.delete-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* 编辑模态框样式 */
.edit-modal {
    max-width: 500px;
    width: 95%;
}

.edit-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.edit-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.save-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.cancel-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
    background: #5a6268;
}

/* 图标上传样式 */
.icon-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.icon-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.icon-option:hover {
    border-color: #667eea;
}

.icon-option input[type="radio"] {
    margin-right: 8px;
}

.icon-option label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0;
}

.icon-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.icon-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.upload-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
}

.remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 网站截图预览样式 */
.screenshot-preview {
    display: inline-block;
    position: relative;
    margin-top: 10px;
}

.screenshot-preview img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.screenshot-preview .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
}

.screenshot-preview .remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* 主内容区域 */
.main-content {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 150, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(100, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 98%, rgba(0, 255, 255, 0.1) 100%),
        linear-gradient(0deg, transparent 98%, rgba(0, 150, 255, 0.1) 100%),
        radial-gradient(2px 2px at 20px 30px, rgba(0, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 150, 255, 0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(100, 0, 255, 0.8), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(0, 150, 255, 0.8), transparent);
    background-size: 50px 50px, 50px 50px, 200px 100px, 200px 100px, 200px 100px, 200px 100px, 200px 100px;
    pointer-events: none;
    animation: gridMove 20s linear infinite, particles 15s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes particles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* 头部样式 */
.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    padding: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo i {
    margin-right: 12px;
    color: #00ffff;
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    from { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 10px rgba(0, 255, 255, 0.5)); }
    to { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.8)); }
}

.logout-btn {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: #333;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 154, 158, 0.5);
    background: linear-gradient(135deg, #ff8a80, #f8bbd9);
}

.manage-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.manage-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
    background: linear-gradient(135deg, #2196f3, #00bcd4);
}


/* 主容器 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
    box-sizing: border-box;
}

/* 通用区域样式 */
section {
    margin-bottom: 40px;
}

section h3 {
    display: flex;
    align-items: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

section h3 i {
    margin-right: 12px;
    color: #667eea;
    font-size: 26px;
}

/* 快速访问 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quick-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quick-item i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #667eea;
}

.quick-item span {
    font-size: 16px;
    font-weight: 600;
}

/* 个人开发区域 */
.personal-dev-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.personal-dev-section h3 {
    display: flex;
    align-items: center;
    font-size: 28px;
    color: white;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #00ffff, #0096ff, #00ffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.personal-dev-section h3 i {
    margin-right: 15px;
    font-size: 32px;
    color: #00ffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.author-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.author-tabs {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.author-tab {
    padding: 10px 18px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.author-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.author-tab.active {
    background: linear-gradient(135deg, #00ffff, #0096ff);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    text-shadow: none;
    font-weight: 700;
}

.author-tab.active:hover {
    background: linear-gradient(135deg, #0096ff, #00ffff);
    transform: translateY(-2px) scale(1.05);
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-width: 100%;
    width: 100%;
}

.personal-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.personal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 150, 255, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.personal-card:hover::before {
    opacity: 1;
}

.personal-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.personal-card:hover::after {
    opacity: 1;
}

.personal-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
}

.personal-card:active {
    transform: translateY(-4px) scale(1.01);
}

.card-screenshot {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.personal-card:hover .card-screenshot {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

.card-content {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
    width: 100%;
}

.card-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.personal-card:hover .card-content h4 {
    color: #00ffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-content p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 工具集合 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.tool-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.tool-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-item i {
    font-size: 28px;
    margin-bottom: 12px;
    color: #667eea;
}

.tool-item span {
    font-size: 14px;
    font-weight: 600;
}

/* 响应式设计 */
/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .personal-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

/* 中等屏幕 (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .personal-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* 平板和小屏幕 (768px以下) */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .header-content {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .manage-btn, .logout-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .author-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .author-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .main-container {
        padding: 20px 15px;
    }
    
    .personal-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .personal-card {
        padding: 10px;
    }
    
    .card-screenshot {
        height: 80px;
        margin-bottom: 8px;
    }
    
    .card-content h4 {
        font-size: 13px;
    }
    
    .card-content p {
        font-size: 10px;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .card-icon i {
        font-size: 18px;
    }
    
    .card-content h4 {
        font-size: 14px;
    }
    
    .card-content p {
        font-size: 11px;
    }
}

/* 手机端 (480px以下) */
@media (max-width: 480px) {
    .password-container h2 {
        font-size: 24px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        flex-direction: row;
    }
    
    .main-container {
        padding: 15px 10px;
    }
    
    .personal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .personal-card {
        padding: 8px;
    }
    
    .card-screenshot {
        height: 70px;
        margin-bottom: 6px;
    }
    
    .card-content h4 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .card-content p {
        font-size: 9px;
        -webkit-line-clamp: 2;
    }
    
    .card-icon {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .card-icon i {
        font-size: 16px;
    }
    
    .card-content h4 {
        font-size: 13px;
    }
    
    .card-content p {
        font-size: 10px;
    }
    
    .personal-dev-section h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.personal-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.personal-card:nth-child(1) { animation-delay: 0.1s; }
.personal-card:nth-child(2) { animation-delay: 0.2s; }
.personal-card:nth-child(3) { animation-delay: 0.3s; }
.personal-card:nth-child(4) { animation-delay: 0.4s; }
.personal-card:nth-child(5) { animation-delay: 0.5s; }
.personal-card:nth-child(6) { animation-delay: 0.6s; }
.personal-card:nth-child(7) { animation-delay: 0.7s; }
.personal-card:nth-child(8) { animation-delay: 0.8s; }
.personal-card:nth-child(9) { animation-delay: 0.9s; }
.personal-card:nth-child(10) { animation-delay: 1.0s; }

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
