* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== 浅色主题（默认） ========== */
:root {
    /* 主色调 */
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* 背景色 */
    --bg-body: #f0f2f5;
    --bg-card: rgba(255, 255, 255, 0.98);
    --bg-preview: linear-gradient(145deg, #e8ecf4 0%, #dde3ed 100%);
    
    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-link: #667eea;
    
    /* 边框和分隔线 */
    --border-color: #e5e7eb;
    --border-focus: #667eea;
    
    /* 卡片和输入框 */
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #e5e7eb;
    
    /* 按钮背景 */
    --btn-secondary-bg: #ffffff;
    --btn-secondary-color: #4b5563;
    --btn-outline-bg: #ffffff;
    
    /* 信息卡片 */
    --info-card-bg: #f9fafb;
    --info-url-bg: #f3f4f6;
    --info-url-color: #059669;
    
    /* 示例提示 */
    --example-bg: #f0f4ff;
    --example-color: #667eea;
    --example-link-bg: #ffffff;
    --example-link-color: #764ba2;
    --example-link-border: #d8e0ff;
    
    /* 加载区域 */
    --loading-bg: #f9fafb;
    
    /* 阴影 */
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.1);
    --shadow-card-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.18);
    --shadow-btn-primary: 0 4px 15px rgba(102, 126, 234, 0.3);
    --shadow-nav-btn: 0 4px 16px rgba(0, 0, 0, 0.12);
    
    /* 装饰背景 */
    --deco-circle-1: rgba(102, 126, 234, 0.08);
    --deco-circle-2: rgba(118, 75, 162, 0.06);
    
    /* 页脚 */
    --footer-color: rgba(31, 41, 55, 0.5);
    
    /* Toast */
    --toast-bg: #1f2937;
}

/* ========== 深色主题（Safari 自动适配） ========== */
@media (prefers-color-scheme: dark) {
    :root {
        /* 主色调 - 保持一致 */
        --primary-start: #8b9dff;
        --primary-end: #a885d8;
        --primary-gradient: linear-gradient(135deg, #8b9dff 0%, #a885d8 100%);
        
        /* 背景色 */
        --bg-body: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #1f1f35 100%);
        --bg-card: rgba(30, 30, 45, 0.98);
        --bg-preview: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
        
        /* 文字颜色 */
        --text-primary: #f3f4f6;
        --text-secondary: #9ca3af;
        --text-muted: #6b7280;
        --text-link: #8b9dff;
        
        /* 边框和分隔线 */
        --border-color: #374151;
        --border-focus: #8b9dff;
        
        /* 卡片和输入框 */
        --card-bg: #1f1f2e;
        --input-bg: #1f1f2e;
        --input-border: #374151;
        
        /* 按钮背景 */
        --btn-secondary-bg: #1f1f2e;
        --btn-secondary-color: #d1d5db;
        --btn-outline-bg: #1f1f2e;
        
        /* 信息卡片 */
        --info-card-bg: #252542;
        --info-url-bg: #252542;
        --info-url-color: #6ee7b7;
        
        /* 示例提示 */
        --example-bg: rgba(102, 126, 234, 0.12);
        --example-color: #8b9dff;
        --example-link-bg: #1f1f2e;
        --example-link-color: #a885d8;
        --example-link-border: #374151;
        
        /* 加载区域 */
        --loading-bg: #1f1f2e;
        
        /* 阴影 */
        --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
        --shadow-card-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
        --shadow-btn-primary: 0 4px 15px rgba(139, 157, 255, 0.3);
        --shadow-nav-btn: 0 4px 16px rgba(0, 0, 0, 0.25);
        
        /* 装饰背景 */
        --deco-circle-1: rgba(102, 126, 234, 0.1);
        --deco-circle-2: rgba(118, 75, 162, 0.08);
        
        /* 页脚 */
        --footer-color: rgba(255, 255, 255, 0.4);
        
        /* Toast */
        --toast-bg: #111827;
    }
    
    /* 深色模式特定覆盖 */
    body {
        background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #1f1f35 100%);
    }
    
    body::before {
        background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.12) 0%, transparent 50%);
    }
    
    body::after {
        background: radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    }
    
    .card {
        background: rgba(30, 30, 45, 0.98);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .card:hover {
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    }
    
    .logo {
        background: linear-gradient(135deg, #8b9dff 0%, #a885d8 100%);
        box-shadow: 0 10px 25px -5px rgba(139, 157, 255, 0.4);
    }
    
    .title {
        background: linear-gradient(135deg, #8b9dff 0%, #a885d8 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
    
    .subtitle {
        color: #9ca3af;
    }
    
    .badge {
        background: rgba(75, 85, 99, 0.3);
        color: #d1d5db;
    }
    
    .badge-primary {
        background: linear-gradient(135deg, rgba(139, 157, 255, 0.2) 0%, rgba(168, 133, 216, 0.2) 100%);
        color: #8b9dff;
    }
    
    .input-field {
        background: #1f1f2e;
        border-color: #374151;
        color: #e5e7eb;
    }
    
    .input-field:focus {
        border-color: #8b9dff;
        box-shadow: 0 0 0 4px rgba(139, 157, 255, 0.1);
    }
    
    .input-label {
        color: #d1d5db;
    }
    
    .example-hint {
        background: rgba(102, 126, 234, 0.12);
    }
    
    .example-text {
        color: #8b9dff;
    }
    
    .example-link {
        background: #1f1f2e;
        color: #a885d8;
        border-color: #374151;
    }
    
    .example-link:hover {
        background: #8b9dff;
        color: #1a1a2e;
        border-color: #8b9dff;
    }
    
    .btn-fill-example:hover {
        background: rgba(139, 157, 255, 0.15);
    }
    
    .btn-primary {
        background: linear-gradient(135deg, #8b9dff 0%, #a885d8 100%);
        box-shadow: 0 4px 15px rgba(139, 157, 255, 0.3);
    }
    
    .btn-primary:hover {
        box-shadow: 0 8px 25px rgba(139, 157, 255, 0.4);
    }
    
    .btn-secondary {
        background: #1f1f2e;
        color: #d1d5db;
        border-color: #374151;
    }
    
    .btn-secondary:hover {
        background: #2d2d44;
        border-color: #8b9dff;
        color: #8b9dff;
    }
    
    .loading {
        background: #1f1f2e;
    }
    
    .loading-text {
        color: #9ca3af;
    }
    
    .spinner {
        border-color: #374151;
        border-top-color: #8b9dff;
    }
    
    .preview-card {
        background: #1f1f2e;
    }
    
    .image-preview-wrapper {
        background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    }
    
    .image-info {
        background: #1a1a2e;
        border-top-color: #374151;
    }
    
    .info-card {
        background: #252542;
    }
    
    .info-label {
        color: #6b7280;
    }
    
    .info-value {
        color: #e5e7eb;
    }
    
    .info-url {
        background: #252542;
        color: #6ee7b7;
    }
    
    .url-list-heading {
        color: #e5e7eb;
    }
    
    .image-url-list li {
        background: rgba(37, 37, 66, 0.9);
    }
    
    .image-url-list li:hover {
        background: rgba(45, 45, 68, 0.95);
        border-color: rgba(139, 157, 255, 0.4);
    }
    
    .image-url-list li.is-active {
        border-color: #8b9dff;
        background: rgba(102, 126, 234, 0.15);
        box-shadow: 0 0 0 1px rgba(139, 157, 255, 0.25);
    }
    
    .image-url-list-link {
        color: #6ee7b7;
    }
    
    .preview-nav-btn {
        background: rgba(45, 45, 68, 0.95);
        color: #e5e7eb;
    }
    
    .preview-nav-btn:hover {
        background: #2d2d44;
        color: #8b9dff;
    }
    
    .preview-counter {
        background: rgba(0, 0, 0, 0.5);
        color: #f3f4f6;
    }
    
    .btn-outline {
        background: #1f1f2e;
        border-color: #374151;
        color: #d1d5db;
    }
    
    .btn-outline:hover {
        background: #2d2d44;
        border-color: #8b9dff;
        color: #8b9dff;
    }
    
    .watermark-badge {
        background: rgba(0, 0, 0, 0.65);
        color: #34d399;
    }
    
    .footer {
        color: rgba(255, 255, 255, 0.4);
    }
    
    .toast {
        background: #111827;
        color: #f3f4f6;
    }
    
    /* 深色模式下图片预览阴影调整 */
    .image-preview {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    
    .image-preview:hover {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    }
}

/* ========== 基础样式 ========== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    padding: 16px;
    position: relative;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* 装饰性背景元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, var(--deco-circle-1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 80%, var(--deco-circle-2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 主卡片 */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 48px;
    padding: 28px 24px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }
    .card {
        padding: 20px 16px;
        border-radius: 32px;
    }
}

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

/* 头部区域 */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.logo {
    width: 72px;
    height: 72px;
    background: var(--primary-gradient);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 36px;
    box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 28px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

@media (max-width: 640px) {
    .title {
        font-size: 24px;
    }
    .logo {
        width: 60px;
        height: 60px;
        font-size: 30px;
        border-radius: 24px;
    }
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #4b5563;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.badge-primary {
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: var(--text-link);
}

/* 输入区域 */
.input-section {
    margin-bottom: 24px;
}

.input-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.input-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.input-field {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--input-border);
    border-radius: 28px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--input-bg);
    font-family: monospace;
    color: var(--text-primary);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-appearance: none;
}

.input-field:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* 示例链接提示 */
.example-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 12px;
    background: var(--example-bg);
    border-radius: 20px;
    margin-top: 8px;
    transition: background 0.3s ease;
}

.example-text {
    font-size: 12px;
    color: var(--example-color);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

.example-link {
    font-family: monospace;
    font-size: 11px;
    background: var(--example-link-bg);
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--example-link-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--example-link-border);
}

.example-link:hover {
    background: var(--primary-start);
    color: white;
    border-color: var(--primary-start);
}

.btn-fill-example {
    background: transparent;
    border: none;
    color: var(--text-link);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-fill-example:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-btn-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-color);
    border: 2px solid var(--border-color);
}

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

@media (max-width: 640px) {
    .button-group {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 加载动画 */
.loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
    background: var(--loading-bg);
    border-radius: 32px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.loading.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid var(--primary-start);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
    transition: border-color 0.3s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.loading-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    transition: color 0.3s ease;
}

/* 图片展示区域 */
.image-container {
    display: none;
    margin-top: 24px;
    animation: fadeInUp 0.5s ease;
}

.image-container.show {
    display: block;
}

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

.preview-card {
    background: var(--info-card-bg);
    border-radius: 32px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.image-preview-wrapper {
    background: var(--bg-preview);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 320px;
    position: relative;
    transition: background 0.3s ease;
}

.preview-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-nav-btn);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    padding-bottom: 4px;
}

.preview-nav-btn:hover {
    background: #fff;
    color: var(--primary-start);
    transform: translateY(-50%) scale(1.05);
}

.preview-nav-prev {
    left: 12px;
}

.preview-nav-next {
    right: 12px;
}

.preview-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    pointer-events: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.image-preview:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* 水印提示 */
.watermark-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.image-info {
    padding: 20px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.info-card {
    background: var(--info-card-bg);
    padding: 12px;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.3s ease;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.info-url {
    background: var(--info-url-bg);
    padding: 14px;
    border-radius: 20px;
    margin-top: 12px;
    word-break: break-all;
    font-size: 11px;
    font-family: monospace;
    color: var(--info-url-color);
    line-height: 1.5;
    transition: background 0.3s ease, color 0.3s ease;
}

.url-list-heading {
    margin-bottom: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.url-list-heading strong {
    font-size: 13px;
    font-weight: 600;
}

.image-url-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: url-idx;
}

.image-url-list li {
    counter-increment: url-idx;
    position: relative;
    padding: 10px 10px 10px 2.5rem;
    margin-bottom: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    line-height: 1.45;
}

.image-url-list li:last-child {
    margin-bottom: 0;
}

.image-url-list li::before {
    content: counter(url-idx);
    position: absolute;
    left: 10px;
    top: 12px;
    transform: none;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    flex-shrink: 0;
}

.image-url-list li:hover {
    border-color: rgba(102, 126, 234, 0.35);
    background: rgba(255, 255, 255, 0.9);
}

.image-url-list li.is-active {
    border-color: var(--primary-start);
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.2);
}

.image-url-list-link {
    word-break: break-all;
    font-family: monospace;
    font-size: 11px;
    color: var(--info-url-color);
    transition: color 0.3s ease;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.btn-outline {
    flex: 1;
    padding: 12px;
    background: var(--btn-outline-bg);
    border: 2px solid var(--border-color);
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--primary-start);
    color: var(--primary-start);
    background: var(--btn-outline-bg);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .image-preview-wrapper {
        padding: 16px;
        min-height: 260px;
    }
    .preview-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    .preview-nav-prev {
        left: 6px;
    }
    .preview-nav-next {
        right: 6px;
    }
    .watermark-badge {
        bottom: 12px;
        right: 12px;
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* 提示消息 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--toast-bg);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.toast-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

@media (max-width: 640px) {
    .toast {
        white-space: normal;
        max-width: 85%;
        text-align: center;
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* 页脚 */
.footer {
    text-align: center;
    font-size: 12px;
    color: var(--footer-color);
    margin-top: 20px;
    padding: 16px;
    transition: color 0.3s ease;
}

.footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 动画 */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Safari 特定样式 */
@supports (-webkit-appearance: -apple-pay-button) {
    .card {
        -webkit-backdrop-filter: blur(10px);
    }
    
    .preview-counter,
    .watermark-badge,
    .toast {
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Safari 深色模式增强 */
@media (prefers-color-scheme: dark) and (version > 0) {
    /* Safari 15+ 深色模式优化 */
    .card {
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .input-field {
        -webkit-text-fill-color: var(--text-primary);
    }
}
