/* 全局变量 */

/**
*@Author: Swk
*@CreateTime: 2026/04/26 下午2:19
*@tip: CloudImg
*/

:root{
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --bg: #f0f2f5;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-solid: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.4);
    --border: rgba(0, 0, 0, 0.08);
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --primary: #1a1a1a;
    --primary-hover: #333333;
    --primary-text: #ffffff;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

[data-theme="dark"]{
    --bg: #0a0a0a;
    --surface: rgba(28, 28, 30, 0.75);
    --surface-solid: #1c1c1e;
    --glass-border: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --primary: #f5f5f5;
    --primary-hover: #e0e0e0;
    --primary-text: #0a0a0a;
    --accent: #60a5fa;
    --accent-hover: #3b82f6;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
}

/* 全局样式 */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html{
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body{
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* 导航栏 */
.nav{
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

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

.logo{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon{
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--primary-text);
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

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

.nav-btn{
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover{
    color: var(--text);
    background: rgba(0,0,0,0.04);
}

[data-theme="dark"] .nav-btn:hover{
    background: rgba(255,255,255,0.06);
}

.nav-btn.primary{
    background: var(--primary);
    color: var(--primary-text);
    font-size: 13px;
    padding: 8px 16px;
}

.nav-btn.primary:hover{
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* 主题切换按钮 */
.theme-toggle{
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    margin-left: 4px;
    flex-shrink: 0;
}

.theme-toggle input{
    display: none;
}

.toggle-track{
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #87CEEB 0%, #E0F6FF 50%, #FFE4B5 100%);
    border-radius: 14px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.1),
        0 2px 8px rgba(135, 206, 235, 0.3);
    overflow: hidden;
}

.theme-toggle input:checked + .toggle-track{
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0,0,0,0.3),
        0 2px 8px rgba(15, 52, 96, 0.4);
}

.toggle-sun,
.toggle-moon{
    position: absolute;
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.toggle-sun{
    left: 6px;
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

.toggle-moon{
    right: 6px;
    opacity: 0.3;
    transform: translateY(-50%) scale(0.8) rotate(-30deg);
}

.theme-toggle input:checked + .toggle-track .toggle-sun{
    opacity: 0.3;
    transform: translateY(-50%) scale(0.8) rotate(30deg);
}

.theme-toggle input:checked + .toggle-track .toggle-moon{
    opacity: 1;
    transform: translateY(-50%) scale(1) rotate(0deg);
}

.toggle-thumb{
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.2),
        0 0 12px rgba(255, 215, 0, 0.4),
        inset 0 -2px 4px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,0.3);
    z-index: 2;
}

.toggle-thumb::before{
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    box-shadow: 
        8px 2px 0 -2px rgba(255,255,255,0.4),
        3px 8px 0 -3px rgba(255,255,255,0.3);
}

.theme-toggle input:checked + .toggle-track .toggle-thumb{
    left: 26px;
    background: linear-gradient(135deg, #E8E8E8 0%, #C0C0C0 100%);
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.3),
        0 0 12px rgba(200, 200, 200, 0.3),
        inset 0 -2px 4px rgba(0,0,0,0.1),
        inset 0 2px 4px rgba(255,255,255,0.5);
}

.theme-toggle input:checked + .toggle-track .toggle-thumb::before{
    background: transparent;
    box-shadow: 
        6px 3px 0 -1px rgba(100,100,100,0.3),
        10px 7px 0 -2px rgba(100,100,100,0.2),
        3px 10px 0 -2px rgba(100,100,100,0.2);
}

/* 星星闪烁动画 */
@keyframes twinkle{
    0%, 100%{ opacity: 0.3; transform: scale(0.8); }
    50%{ opacity: 1; transform: scale(1.2); }
}

.toggle-track::after{
    content: '✦';
    position: absolute;
    top: 4px;
    right: 10px;
    font-size: 6px;
    color: rgba(255,255,255,0.6);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.theme-toggle input:checked + .toggle-track::after{
    opacity: 1;
    animation: twinkle 2s ease-in-out infinite;
}

.toggle-track::before{
    content: '☁';
    position: absolute;
    top: 2px;
    left: 14px;
    font-size: 10px;
    opacity: 0.4;
    transition: opacity 0.5s ease;
}

.theme-toggle input:checked + .toggle-track::before{
    opacity: 0;
}

/* 主容器 */
.main{
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* Hero 部分 */
.hero{
    text-align: center;
    padding: 40px 0 48px;
}

.hero h1{
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p{
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    font-weight: 400;
}

/* 上传区域 */
.upload-section{
    margin-bottom: 40px;
}

.upload-zone{
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upload-zone:hover{
    border-color: var(--text-secondary);
    background: var(--surface-solid);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.upload-zone.dragover{
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.08);
    transform: scale(1.01);
}

.upload-zone.uploading{
    pointer-events: none;
    opacity: 0.7;
}

.upload-icon{
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
    font-size: 28px;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.upload-zone:hover .upload-icon{
    transform: translateY(-4px) scale(1.05);
}

.upload-zone h3{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.upload-zone p{
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.upload-btn{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.upload-btn:hover{
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.upload-zone input{
    display: none;
}

/* 上传进度 */
.upload-progress{
    display: none;
    max-width: 400px;
    margin: 16px auto 0;
}

.upload-progress.active{
    display: block;
    animation: fadeIn 0.3s ease;
}

.progress-bar{
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.progress-text{
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

/* 结果区域 */
.result-section{
    display: none;
    margin-bottom: 40px;
}

.result-section.show{
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeIn{
    from{ opacity: 0; }
    to{ opacity: 1; }
}

@keyframes fadeInUp{
    from{
        opacity: 0;
        transform: translateY(30px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card{
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.result-preview{
    padding: 24px;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

.result-preview img{
    max-height: 240px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    cursor: zoom-in;
    transition: var(--transition);
}

.result-preview img:hover{
    transform: scale(1.02);
}

.result-info{
    padding: 20px;
}

.result-meta{
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.result-meta span{
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.result-links{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-row{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.link-row:hover{
    border-color: var(--text-secondary);
}

.link-row label{
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 60px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.link-row input{
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 12px;
    color: var(--text);
    outline: none;
}

.link-row .copy-btn{
    padding: 6px 12px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    -webkit-touch-callout: none;
    user-select: none;
}

.link-row .copy-btn:hover{
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.link-row .copy-btn.copied{
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

/* 批量上传 */
.batch-results{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.batch-item{
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.batch-item:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.batch-item .batch-img{
    width: 100%;
    height: 140px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.batch-item:hover .batch-img{
    transform: scale(1.05);
}

.batch-item .batch-info{
    padding: 12px;
}

.batch-item .batch-filename{
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-item .batch-actions{
    display: flex;
    gap: 6px;
}

.batch-item .batch-actions button{
    flex: 1;
    padding: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.batch-item .batch-actions button:hover{
    background: var(--primary);
    color: var(--primary-text);
    border-color: var(--primary);
}

/* 历史记录 */
.history-section{
    margin-bottom: 40px;
}

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

.section-header h2{
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header .section-desc{
    font-size: 13px;
    color: var(--text-muted);
}

.empty-state{
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon{
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p{
    font-size: 14px;
    font-weight: 500;
}

.history-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.history-item{
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

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

.history-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.history-item:hover img{
    transform: scale(1.08);
}

/**
*@Author: Swk
*@CreateTime: 2026/04/26 下午2:19
*@tip: CloudImg
*/

.history-item .history-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

.history-item:hover .history-overlay{
    opacity: 1;
}

.history-item .history-date{
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.history-item .history-size{
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

.history-item .history-actions{
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
    transform: translateY(-4px);
}

.history-item:hover .history-actions{
    opacity: 1;
    transform: translateY(0);
}

.history-actions button{
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.history-actions button:hover{
    background: var(--danger);
    transform: scale(1.1);
}

/* 认证卡片 */
.auth-card{
    max-width: 420px;
    margin: 40px auto;
    background: var(--surface);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-header{
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2{
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

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

.auth-tabs{
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.auth-tab{
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active{
    background: var(--surface-solid);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.auth-form{
    display: none;
}

.auth-form.active{
    display: block;
    animation: fadeIn 0.4s ease;
}

.input-group{
    margin-bottom: 16px;
}

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

.input-group input{
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.input-group input:focus{
    border-color: var(--text);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

[data-theme="dark"] .input-group input:focus{
    box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}

.auth-submit{
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: var(--primary-text);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
}

.auth-submit:hover{
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.guest-link{
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.guest-link a{
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.guest-link a:hover{
    text-decoration: underline;
}

/* 模态框 */
.modal{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    place-items: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show{
    display: grid;
    opacity: 1;
}

.modal-content{
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img{
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.modal-close{
    position: absolute;
    top: -44px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.modal-close:hover{
    background: rgba(0,0,0,0.8);
    transform: rotate(90deg);
}

.modal-info{
    position: absolute;
    bottom: -44px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

/* 页脚 */
.footer{
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer p{
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer a{
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover{
    color: var(--text);
}

/* 响应式 */
@media (max-width: 640px){
    .nav-inner{
        padding: 0 16px;
        height: 56px;
    }
    
    .logo{
        font-size: 16px;
    }
    
    .logo-icon{
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .nav-btn{
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-btn.primary{
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .theme-toggle{
        width: 48px;
        height: 26px;
        margin-left: 2px;
    }
    
    .toggle-thumb{
        width: 22px;
        height: 22px;
        top: 2px;
        left: 2px;
    }
    
    .theme-toggle input:checked + .toggle-track .toggle-thumb{
        left: 24px;
    }
    
    .main{
        padding: 20px 16px;
    }
    
    .hero{
        padding: 24px 0 32px;
    }
    
    .hero h1{
        font-size: 28px;
    }
    
    .hero p{
        font-size: 14px;
    }
    
    .upload-zone{
        padding: 32px 20px;
    }
    
    .upload-icon{
        width: 52px;
        height: 52px;
        font-size: 24px;
    }
    
    .upload-zone h3{
        font-size: 16px;
    }
    
    .upload-zone p{
        font-size: 12px;
    }
    
    .upload-btn{
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .result-preview{
        padding: 16px;
        min-height: 120px;
    }
    
    .result-preview img{
        max-height: 180px;
    }
    
    .result-info{
        padding: 16px;
    }
    
    .result-meta{
        gap: 10px;
    }
    
    .result-meta span{
        font-size: 11px;
    }
    
    .link-row{
        padding: 8px 10px;
        gap: 6px;
    }
    
    .link-row label{
        min-width: 50px;
        font-size: 9px;
    }
    
    .link-row input{
        font-size: 11px;
    }
    
    .link-row .copy-btn{
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .batch-results{
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .batch-item .batch-img{
        height: 120px;
    }
    
    .history-grid{
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .history-item .history-actions{
        opacity: 1;
        transform: none;
    }
    
    .history-actions button{
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .auth-card{
        margin: 20px 16px;
        padding: 28px 20px;
    }
    
    .auth-header h2{
        font-size: 22px;
    }
    
    .modal-content img{
        max-height: 70vh;
    }
    
    .modal-close{
        top: -40px;
        width: 36px;
        height: 36px;
    }
}

/* 加载动画 */
.spinner{
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin{
    to{ transform: rotate(360deg); }
}
