/* ========================================
   图像魔法师 - 现代化深色主题样式
   ======================================== */

:root {
    /* 主色调 - 赛博朋克风格 */
    --primary-cyan: #00f5ff;
    --primary-magenta: #ff00aa;
    --primary-purple: #7b2dff;
    
    /* 背景色 */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.8);
    --bg-card-hover: rgba(30, 30, 45, 0.9);
    
    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* 边框和阴影 */
    --border-glow: rgba(0, 245, 255, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.2);
    
    /* 动画时长 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
}

/* 重置样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   背景效果
   ======================================== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-cyan), transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-magenta), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-purple), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ========================================
   容器和布局
   ======================================== */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   头部样式
   ======================================== */
.header {
    text-align: center;
    padding: 3rem 0;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.logo-icon {
    font-size: 3rem;
    color: var(--primary-cyan);
    text-shadow: 0 0 20px var(--primary-cyan);
    animation: pulse 2s ease-in-out infinite;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* ========================================
   主内容区域
   ======================================== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ========================================
   上传区域
   ======================================== */
.upload-section {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.upload-zone {
    border: 2px dashed var(--border-glow);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 245, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 0, 170, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
    opacity: 1;
}

.upload-content {
    position: relative;
    z-index: 1;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary-cyan);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.upload-zone h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.upload-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.supported-formats {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

/* ========================================
   预览区域
   ======================================== */
.preview-section {
    animation: fadeIn 0.5s ease-out;
}

.preview-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.preview-box {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-cyan);
}

.processed .preview-label::before {
    background: var(--primary-magenta);
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 水印框选相关样式 */
.selection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    display: none;
    z-index: 10;
}

.selection-canvas.active {
    display: block;
}

.selection-hint {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(255, 0, 170, 0.9), rgba(123, 45, 255, 0.9));
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: none !important;
    z-index: 11;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(255, 0, 170, 0.3);
}

.selection-hint.active {
    display: block !important;
}

@keyframes pulse-hint {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.watermark-regions-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    display: none;
    z-index: 11;
}

.watermark-regions-info.active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.watermark-regions-info .count {
    color: var(--primary-magenta);
    font-weight: 600;
}

.clear-regions-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.clear-regions-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-magenta);
    color: var(--primary-magenta);
}

/* 棋盘格背景（用于透明图片预览） */
.checkerboard {
    background-image: 
        linear-gradient(45deg, #2a2a3a 25%, transparent 25%),
        linear-gradient(-45deg, #2a2a3a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2a2a3a 75%),
        linear-gradient(-45deg, transparent 75%, #2a2a3a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #1a1a2a;
}

.preview-arrow {
    width: 40px;
    height: 40px;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

/* 处理中遮罩 */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.processing-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 245, 255, 0.2);
    border-top-color: var(--primary-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   工具选择区域
   ======================================== */
.tools-section {
    animation: fadeInUp 0.5s ease-out;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 245, 255, 0.05) 0%, 
        transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tool-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.selected {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.tool-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.enhance-icon {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(0, 245, 255, 0.05));
    color: var(--primary-cyan);
}

.watermark-icon {
    background: linear-gradient(135deg, rgba(255, 0, 170, 0.2), rgba(255, 0, 170, 0.05));
    color: var(--primary-magenta);
}

.background-icon {
    background: linear-gradient(135deg, rgba(123, 45, 255, 0.2), rgba(123, 45, 255, 0.05));
    color: var(--primary-purple);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tool-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
}

/* ========================================
   按钮样式
   ======================================== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    font-family: inherit;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 245, 255, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   下载区域
   ======================================== */
.download-section {
    animation: fadeIn 0.5s ease-out;
}

.download-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: #4ade80;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.download-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-download {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: var(--bg-dark);
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 222, 128, 0.4);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-replace {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    color: white;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-replace:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.4);
}

/* ========================================
   导航栏
   ======================================== */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
}

/* ========================================
   功能介绍区域
   ======================================== */
.features-section,
.tutorial-section,
.faq-section,
.about-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   使用教程区域
   ======================================== */
.tutorial-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tutorial-step {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--bg-dark);
    margin: 0 auto 1rem;
}

.tutorial-step h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tutorial-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   FAQ区域
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   关于我们区域
   ======================================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   法律页面样式
   ======================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: var(--primary-cyan);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.legal-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section a {
    color: var(--primary-cyan);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* ========================================
   动画关键帧
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .nav-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .upload-zone {
        padding: 2.5rem 1.5rem;
    }
    
    .preview-container {
        flex-direction: column;
    }
    
    .preview-arrow {
        transform: rotate(90deg);
    }
    
    .preview-box {
        min-width: 100%;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .tutorial-step {
        max-width: 100%;
    }
    
    .about-stats {
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ========================================
   滚动条样式
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 255, 0.5);
}

/* ========================================
   选择高亮
   ======================================== */
::selection {
    background: rgba(0, 245, 255, 0.3);
    color: var(--text-primary);
}

/* ========================================
   颜色选取放大镜
   ======================================== */
.color-picker-magnifier {
    position: absolute;
    background: rgba(20, 20, 30, 0.95);
    border: 2px solid #ffaa00;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 170, 0, 0.3);
    z-index: 1000;
    pointer-events: none;
}

.color-picker-magnifier canvas {
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    image-rendering: pixelated;
}

.color-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.color-value {
    font-size: 12px;
    font-family: monospace;
    color: #ffaa00;
}

/* 内联放大镜样式 - 显示在图片上 */
.inline-magnifier {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 4px; /* 微圆角 */
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: none;
    z-index: 100;
    background: #1a1a2e;
}

.inline-magnifier canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 取景框样式 */
.cursor-box {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 99;
    border-radius: 0;
}


