/* CSS 变量在 header.php 的 <style> 标签中定义 */

body {
    background-color: #f3f4f6;
    font-family: 'Inter', -apple-system, 'Noto Sans SC', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 10px; }

#poster-canvas {
    width: 480px;
    min-height: 680px;
    background-color: var(--bg-color);
    padding: 50px 35px;
    color: var(--text-main);
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2);
    transform-origin: top center;
}

#draggable-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: move;
    z-index: 50;
    display: none;
    max-width: 300px;
}
#draggable-logo img { width: 100%; height: auto; pointer-events: none; }

.header-title { font-family: var(--font-main-title); font-size: var(--title-size); line-height: 1.1; margin-bottom: 8px; }
.header-subtitle { font-family: var(--font-sub-title); font-size: var(--subtitle-size); line-height: 1.2; margin-bottom: 30px; }

.section-title {
    font-family: var(--font-zh-ko);
    font-size: var(--category-size);
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 25px;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 6px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.item-name {
    font-family: var(--font-zh-ko);
    font-size: var(--item-size);
    flex: 1;
    padding-right: 15px;
    line-height: 1.4;
}

.price-container {
    font-family: var(--font-price);
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.old-price {
    display: var(--old-price-display);
    position: relative;
    color: var(--color-old-price);
    font-size: calc(var(--price-size) - 4px);
    white-space: nowrap;
    line-height: 1.2;
    opacity: 0.8;
}

.new-price {
    font-weight: 700;
    font-size: var(--price-size);
    color: var(--color-new-price);
    white-space: nowrap;
    line-height: 1.2;
}

.footer { margin-top: 50px; text-align: center; }
.footer-logo { font-family: var(--font-main-title); font-size: 30px; }
.footer-tagline { font-family: var(--font-zh-ko); font-size: 10px; color: #888; }

[contenteditable]:focus { outline: none; background: rgba(99, 102, 241, 0.05); border-radius: 4px; }

.ui-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(241, 245, 249, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.header-left { display: flex; align-items: center; gap: 8px; }
.section-icon { width: 24px; height: 24px; background: #eef2ff; color: #4f46e5; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.section-label { font-size: 12px; font-weight: 700; color: #1e293b; letter-spacing: 0.05em; }
.field-label { font-size: 10px; color: #94a3b8; font-weight: 600; margin-bottom: 4px; display: block; }

select, textarea, input[type="text"] { width: 100%; font-size: 13px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; padding: 10px 14px; outline: none; }
input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; background: #f1f5f9; border-radius: 10px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; background: #4f46e5; border: 2px solid white; border-radius: 50%; cursor: pointer; }

.btn-modern-primary { background: #4f46e5; color: white; border-radius: 12px; font-weight: 600; padding: 10px 20px; display: flex; align-items: center; gap: 8px; }
.btn-modern-secondary { background: white; border: 1px solid #e2e8f0; border-radius: 12px; color: #475569; font-weight: 600; padding: 8px 16px; transition: all 0.2s; text-align: center; }
