/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-width: 800px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background: #f9fafb;
    min-height: 100vh;
    color: #000000e6;
    display: flex;
}

/* ===== 右侧主内容（为固定侧边栏留出空间） ===== */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0 32px 0;
    min-height: 100vh;
    background: #ffffff;
    margin-left: var(--sidebar-width);
}

/* ===== 对话框部分（居中，最大宽度780px） ===== */
.dialog-section {
    width: 100%;
    max-width: 780px;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-area {
    text-align: center;
    margin-bottom: 36px;
    margin-top: 15vh;
}

.brand-area .brand-icon-large {
    width: 56px;
    height: 56px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 24px;
    font-weight: 700;
    background: #ffffff;
    margin: 0 auto 12px;
}

.brand-area .brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.brand-area .brand-title .highlight {
    color: #dc2626;
}

.brand-area .brand-sub {
    font-size: 14px;
    color: #9ca3af;
    margin-top: 4px;
    font-weight: 400;
}

.dialog-box {
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.dialog-box:focus-within {
    border-color: #d1d5db;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* 拖拽上传视觉反馈 */
.dialog-box.drag-over {
    border-color: #dc2626;
    border-style: dashed;
    border-width: 2px;
    background: rgba(220, 38, 38, 0.02);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.12);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.image-preview-area {
    display: none;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.image-preview-area.has-images {
    display: flex;
}

.preview-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
    overflow: visible;
    cursor: pointer;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.preview-item .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.preview-item .remove-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(4px);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
}

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

.dialog-box textarea {
    width: 100%;
    border: none;
    outline: none;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    background: transparent;
    color: #1f2937;
    min-height: 100px;
    max-height: 180px;
    line-height: 1.6;
    font-weight: 400;
}

.dialog-box textarea::placeholder {
    color: #b0bcca;
    font-weight: 400;
    font-size: 14px;
}

/* ===== 已选参数标签（尺寸/数量/模型） ===== */
.param-chips {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.param-chips.has-chips {
    display: flex;
}

.param-chip {
    display: none;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    padding: 6px 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
}

.param-chip .chip-icon {
    font-size: 16px;
    line-height: 1;
}

.param-chip .chip-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.param-chip .chip-label {
    font-size: 11px;
    color: #98a0ab;
    line-height: 1.2;
}

.param-chip .chip-value {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.param-chip.chip-size {
    border-color: #5b9be0;
    background: #e8f2fc;
}

.param-chip.chip-size .chip-value {
    color: #1c57a8;
}

.param-chip.chip-count {
    border-color: #c9a2e0;
    background: #f6edfb;
}

.param-chip.chip-count .chip-value {
    color: #8a2ea8;
}

.param-chip.chip-dm {
    border-color: #c13535;
    background: #f8f0f0;
}

.param-chip.chip-dm .chip-value {
    color: #333;
}

/* ===== 自定义模型选择器 ===== */
.custom-select {
    position: relative;
    min-width: 160px;
    max-width: 220px;
}

.custom-select .selected {
    padding: 6px 28px 6px 10px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.custom-select .selected:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.custom-select .options {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px #e5e7eb;
    padding: 6px;
    list-style: none;
    margin: 0;
    z-index: 200;
    display: none;
}

.custom-select .options.visible {
    display: block;
    animation: popupInUp 0.15s ease-out;
}

@keyframes popupInUp {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-select .options li {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.custom-select .options li:last-child {
    margin-bottom: 0;
}

.custom-select .options li:hover:not(.disabled) {
    background: #f3f4f6;
}

.custom-select .options li.selected {
    background: #fef2f2;
}

.custom-select .options li.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.custom-select .options li .label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.custom-select .options li.selected .label {
    color: #dc2626;
}

.custom-select .options li .advantage {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}

/* 排队数量徽章 */
.custom-select .options li .queue-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    color: #f59e0b;
    line-height: 1.4;
}

.custom-select .options li .queue-badge .queue-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    animation: queuePulse 1.5s ease-in-out infinite;
}

@keyframes queuePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.custom-select .options::-webkit-scrollbar {
    width: 5px;
}

.custom-select .options::-webkit-scrollbar-thumb {
    background: #d0d4dc;
    border-radius: 3px;
}

.custom-select .options::-webkit-scrollbar-track {
    background: transparent;
}

.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.action-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-bar button {
    height: 36px;
    min-width: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding: 0 10px;
}

.action-bar button:hover {
    background: #f3f4f6;
    color: #4b5563;
}

/* ===== 新工具栏按钮样式 ===== */
.toolbar-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    height: auto;
    min-width: auto;
    font-family: inherit;
}

.toolbar-btn-new:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.toolbar-btn-new.active {
    background: #f3f4f6;
    color: #1f2937;
}

.toolbar-btn-new svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.toolbar-btn-new .btn-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1f2937;
    flex-shrink: 0;
}

.toolbar-btn-new .btn-dot-square {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #9ca3af;
    flex-shrink: 0;
}

.action-bar .send-btn {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-bar .send-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
    transform: translateY(-1px);
}

.action-bar .send-btn:active {
    transform: scale(0.96);
}

.action-bar .send-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

#fileInput {
    display: none;
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.prompt-item {
    padding: 8px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 450;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.prompt-item svg {
    color: #9ca3af;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.prompt-item:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.prompt-item:hover svg {
    color: #dc2626;
}

.prompt-item .badge {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 10px;
    padding: 1px 10px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid #e5e7eb;
}

.footer-info {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #9ca3af;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.footer-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-info svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #b0bcca;
}

.footer-info .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #d1d5db;
}

.footer-info .brand-dot {
    width: 6px;
    height: 6px;
}

/* ===== 最近项目（全宽，单行，响应式） ===== */
.recent-projects {
    width: 100%;
    padding: 0 32px;
    margin-top: 34px;
}

.recent-projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.recent-projects-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.2px;
}

.recent-projects-header .view-all {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.recent-projects-header .view-all:hover {
    color: #dc2626;
}

.recent-projects-header .view-all svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Grid 响应式布局，单行显示 —— grid-auto-rows:0 让超出行高度为0 */
.projects-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr;
    grid-auto-rows: 0;
    gap: 18px;
    width: 100%;
    overflow: hidden;
    padding: 4px 0;
    margin: -4px 0;
}

.project-card {
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.07);
    border-color: #d1d5db;
}

.project-card .project-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-card .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.04);
}

.project-card .project-thumb .thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #b0bcca;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumb .thumb-placeholder {
    transform: scale(1.04);
}

.project-card .project-thumb .thumb-placeholder svg {
    width: 28px;
    height: 28px;
}

.project-card .project-thumb .thumb-placeholder span {
    font-size: 10px;
    font-weight: 450;
}

.project-card .project-info {
    padding: 12px 14px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 64px;
}

.project-card .project-info .project-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.project-card .project-info .project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.project-card .project-info .project-date {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-card .project-info .project-date svg {
    width: 11px;
    color: #b0bcca;
    flex-shrink: 0;
}

.project-card .project-info .project-tag {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    padding: 1px 10px;
    border-radius: 30px;
    border: 1px solid #e5e7eb;
}

/* 新建项目卡片特殊样式 */
.project-card.new-project {
    border-style: dashed;
    border-color: #d1d5db;
    background: #fafbfc;
}
.project-card.new-project:hover {
    border-color: #dc2626;
    background: #fef2f2;
    transform: translateY(-4px);
}
.project-card.new-project .project-thumb {
    background: transparent;
}
.project-card.new-project .project-thumb .thumb-placeholder svg {
    width: 40px;
    height: 40px;
    color: #9ca3af;
}
.project-card.new-project .project-info .project-name {
    color: #6b7280;
}

/* 新建项目卡片加载状态 */
.project-card.loading {
    pointer-events: none;
    opacity: 0.6;
}


/* ===== 创意广场（全宽，瀑布流，最多5列） ===== */
.creative-plaza {
    width: 100%;
    padding: 0 32px;
    margin-top: 48px;
}

.plaza-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.plaza-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.2px;
}

.plaza-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.plaza-filters .filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 450;
}

.plaza-filters .filter-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.plaza-filters .filter-btn.active {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

.plaza-search {
    position: relative;
    display: flex;
    align-items: center;
}

.plaza-search input {
    padding: 6px 14px 6px 36px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    font-size: 13px;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s ease;
    width: 200px;
    font-family: inherit;
}

.plaza-search input:focus {
    border-color: #dc2626;
}

.plaza-search input::placeholder {
    color: #b0bcca;
}

.plaza-search svg {
    position: absolute;
    left: 12px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #b0bcca;
}

.plaza-masonry {
    column-count: 5;
    column-gap: 16px;
    padding-top: 4px;
}

@media (max-width: 1200px) {
    .plaza-masonry {
        column-count: 4;
    }
}

@media (max-width: 992px) {
    .plaza-masonry {
        column-count: 3;
    }
}

.plaza-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
}

.plaza-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.plaza-item .plaza-image {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.plaza-item .plaza-image img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.plaza-item:hover .plaza-image img {
    transform: scale(1.03);
}

.plaza-item .plaza-image .image-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    padding: 20px 12px 10px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plaza-item:hover .plaza-image .image-title-overlay {
    opacity: 1;
}

.plaza-item .plaza-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px 12px 12px;
    background: #ffffff;
}

.plaza-item .plaza-info .designer {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.plaza-item .plaza-info .designer .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    overflow: hidden;
}

.plaza-item .plaza-info .designer .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plaza-item .plaza-info .designer .name {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plaza-item .plaza-info .heat {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 8px;
}

.plaza-item .plaza-info .heat i {
    color: #dc2626;
    font-size: 12px;
}

.preview-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    padding: 6px;
    display: none;
    max-width: 400px;
    max-height: 400px;
    overflow: hidden;
}

.preview-tooltip img {
    display: block;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 6px;
}

/* ===== 新增：工具栏样式 ===== */
.dialog-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
    flex-wrap: wrap;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 28px;
    position: relative;
}

.toolbar-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.toolbar-btn i {
    font-size: 14px;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
    flex-shrink: 0;
}

.toolbar-right-group {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.toolbar-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 28px;
    min-width: 70px;
    position: relative;
    font-family: inherit;
}

.toolbar-trigger:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.toolbar-trigger .arrow {
    font-size: 9px;
    margin-left: auto;
    transition: transform 0.2s;
}

.toolbar-trigger.open .arrow {
    transform: rotate(180deg);
}

.toolbar-trigger .trigger-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.floating-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px #e5e7eb;
    min-width: 220px;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px 0;
    display: none;
    z-index: 100;
    animation: panel-in 0.2s ease;
}

.floating-panel.open {
    display: block;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.floating-panel::-webkit-scrollbar {
    width: 4px;
}

.floating-panel::-webkit-scrollbar-thumb {
    background: #d0d4dc;
    border-radius: 4px;
}

.model-panel {
    min-width: 240px;
    left: auto;
    right: 0;
    padding: 0;
}

.model-item {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
}

.model-item:last-child {
    border-bottom: none;
}

.model-item:hover {
    background: #f3f4f6;
}

.model-item.active {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.model-item .model-name {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.model-item .model-desc {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
    line-height: 1.4;
}

.model-item .model-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    padding: 0 6px;
    border-radius: 3px;
    margin-top: 3px;
    align-self: flex-start;
}

.send-btn-icon {
    border: none;
    background: #dc2626;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}

.send-btn-icon:hover {
    background: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

.send-btn-icon:active {
    transform: scale(0.9);
}

.chat-input-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px 0 2px;
    margin-top: 4px;
}

.chat-input-bottom .hint {
    font-size: 11px;
    color: #9ca3af;
}

.chat-input-bottom .hint .key {
    display: inline-block;
    background: #f3f4f6;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 10px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.chat-input-bottom .char-count {
    font-size: 11px;
    color: #9ca3af;
}

/* ===== 生图尺寸面板 ===== */
.setting-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14), 0 0 0 1px #e5e7eb;
    width: 340px;
    max-height: 600px;
    display: none;
    flex-direction: column;
    z-index: 200;
    animation: panel-in 0.2s ease;
    overflow: hidden;
    padding: 0;
}

.setting-panel.open {
    display: flex;
}

.setting-panel .panel-header {
    padding: 12px 14px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    position: sticky;
    top: 0;
    z-index: 2;
}

.setting-panel .panel-header .panel-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.setting-panel .panel-header .panel-title .panel-hint {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}

.setting-panel .panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 8px;
    scrollbar-width: thin;
    scrollbar-color: #d0d4dc transparent;
}

.setting-panel .panel-scroll::-webkit-scrollbar {
    width: 5px;
}

.setting-panel .panel-scroll::-webkit-scrollbar-thumb {
    background: #d0d4dc;
    border-radius: 4px;
}

.setting-panel .panel-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.setting-panel .panel-footer {
    padding: 8px 14px 12px;
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
    border-radius: 0 0 12px 12px;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* 尺寸网格 */
.size-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.size-grid-bottom {
    display: none;
}

.size-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.size-card:hover {
    border-color: #d1d5db;
}

.size-card.active {
    border-color: #dc2626;
    background: #fef2f2;
}

.size-card .size-text {
    flex: 1;
    min-width: 0;
    margin-left: 10px;
}

.size-card .size-text .size-name {
    font-size: 15px;
    font-weight: 700;
    color: #1b1b1b;
    line-height: 1.25;
    word-break: break-all;
}

.size-card.active .size-text .size-name {
    color: #dc2626;
}

.size-card .size-text .size-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.35;
    margin-top: 2px;
    word-break: break-all;
}

.size-card.active .size-text .size-desc {
    color: #ef4444;
}

.size-card .size-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    /*background: #f3f4f6;*/
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-card.active .size-preview {
    background: #fee2e2;
}

.size-card .size-preview .preview-rect {
    border-radius: 4px;
    background: #e5e7eb;
}

.size-card.active .size-preview .preview-rect {
    background: #fca5a5;
}

.size-card .size-preview .preview-label,
.size-card .size-preview .preview-dims,
.size-card .size-preview .preview-mm,
.size-card .size-preview .preview-dpi {
    display: none;
}

/* 尺寸详情 */
.size-detail .detail-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 6px;
    font-weight: 500;
}

.size-detail .detail-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.size-detail .detail-inputs input[type="number"] {
    width: 68px;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    color: #1f2937;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.size-detail .detail-inputs input[type="number"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.size-detail .detail-inputs input[type="number"]:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.size-detail .detail-inputs .dim-label {
    font-size: 12px;
    color: #6b7280;
}

.size-detail .detail-inputs .dim-unit {
    font-size: 11px;
    color: #9ca3af;
}

.size-detail .detail-auto-text {
    font-size: 13px;
    color: #6b7280;
    padding: 4px 0;
}

.size-detail .detail-extras {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e5e7eb;
    flex-wrap: wrap;
}

.size-detail .detail-extras .extra-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9ca3af;
}

.size-detail .detail-extras .extra-item .extra-val {
    color: #6b7280;
    font-weight: 500;
}

.size-detail .detail-extras .extra-item input[type="number"] {
    width: 52px;
    padding: 2px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    font-size: 11px;
    color: #1f2937;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.size-detail .detail-extras .extra-item input[type="number"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.06);
}

/* 数量面板 */
.count-panel {
    min-width: 320px;
    max-width: 360px;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.count-panel .panel-header {
    padding: 16px 20px 12px;
    border-radius: 16px 16px 0 0;
}

.count-panel .panel-header .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.count-panel .panel-header .panel-title .panel-hint {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}

.count-panel .panel-scroll {
    padding: 12px 20px 8px;
}

.count-panel .panel-footer {
    padding: 12px 20px 16px;
    border-radius: 0 0 16px 16px;
}

.count-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.count-card {
    padding: 12px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    min-width: auto;
}

.count-card:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.count-card.active {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 600;
}

/* 自定义数量按钮 */
.count-custom-btn {
    grid-column: 1 / -1;
    padding: 12px 8px;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    font-family: inherit;
}

.count-custom-btn:hover {
    border-color: #d1d5db;
    color: #6b7280;
}

.count-custom-btn.active {
    border-color: #dc2626;
    border-style: solid;
    background: #fef2f2;
    color: #dc2626;
}

/* 数量详情区域 */
.count-detail {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 8px;
}

.count-detail .detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.count-detail .detail-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-detail .detail-inputs input[type="number"] {
    width: 64px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.count-detail .detail-inputs input[type="number"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.count-detail .detail-inputs .dim-unit {
    font-size: 13px;
    color: #9ca3af;
}

.count-detail .detail-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* 自定义输入区域 */
.custom-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    padding: 0 4px;
}

.custom-input-area input[type="number"] {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #dc2626;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.custom-input-area input[type="number"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.custom-input-area input[type="number"]::placeholder {
    color: #9ca3af;
}

.custom-confirm-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background: #dc2626;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.custom-confirm-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

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

/* ===== 设计模型弹窗 ===== */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: overlay-in 0.25s ease;
}
.product-modal-overlay.open {
    display: flex;
}
@keyframes overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 860px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.25);
    animation: modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.product-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e4e7ec;
    flex-shrink: 0;
}
.product-modal .modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.product-modal .modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    color: #8a8aa8;
    cursor: pointer;
    transition: 0.25s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-modal .modal-close:hover {
    background: #f0f2f5;
    color: #1a1a2e;
}

.product-modal .modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 300px;
}

.modal-categories {
    width: 160px;
    flex-shrink: 0;
    background: #f0f2f5;
    padding: 12px 0;
    overflow-y: auto;
    border-right: 1px solid #e4e7ec;
}
.modal-categories::-webkit-scrollbar { width: 3px; }
.modal-categories::-webkit-scrollbar-thumb { background: #d0d4dc; border-radius: 4px; }

.category-item {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #5a5a7a;
    cursor: pointer;
    transition: 0.25s;
    border-left: 3px solid transparent;
}
.category-item:hover { background: rgba(0, 0, 0, 0.04); color: #1a1a2e; }
.category-item.active {
    background: #ffffff;
    color: #e53935;
    border-left-color: #e53935;
}

.modal-models {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
    background: #ffffff;
}
.modal-models::-webkit-scrollbar { width: 4px; }
.modal-models::-webkit-scrollbar-thumb { background: #d0d4dc; border-radius: 4px; }

.models-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.model-card {
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.model-card:hover {
    border-color: #d0d4dc;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.model-card .model-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}

.model-card .model-thumb-wrap {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f2f5;
    position: relative;
    cursor: default;
    border-radius: 0;
    border: none;
}
.model-card .model-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.model-card .model-thumb-preview {
    position: fixed;
    z-index: 99999;
    background: #ffffff;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.model-card .model-thumb-preview.visible {
    opacity: 1;
}
.model-card .model-thumb-preview img {
    max-width: 320px;
    max-height: 320px;
    border-radius: 6px;
    display: block;
}

.model-card .model-info {
    padding: 16px 20px 12px;
}
.model-card .model-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.model-card .model-prompt {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dc2626;
}
.model-card .model-tag-inline {
    display: inline-block;
    font-size: 11px;
    color: #e53935;
    margin-top: 4px;
}

.model-card .model-actions {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: center;
}
.model-card .use-btn {
    padding: 10px 32px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #dc2626;
    color: #fff;
    width: 100%;
}
.model-card .use-btn:hover { background: #b91c1c; }
.model-card .use-btn.used {
    background: #f0f2f5;
    color: #8a8aa8;
    cursor: default;
}

.empty-models {
    text-align: center;
    padding: 40px 20px;
    color: #8a8aa8;
    font-size: 14px;
}

/* ===== 响应式 ===== */

@media (max-width: 1500px) {
    .projects-row {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .projects-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .projects-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 大屏最多6列 */
@media (min-width: 1400px) {
    .projects-row {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== 注册/登录弹窗 ===== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-overlay.open {
    display: flex;
    animation: overlay-in 0.25s ease;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal {
    background: #ffffff;
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    padding: 40px 36px 32px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: auth-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes auth-modal-in {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.auth-modal-close svg {
    width: 20px;
    height: 20px;
}

.auth-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

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

.auth-brand-icon {
    width: 48px;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 20px;
    font-weight: 700;
    background: #ffffff;
    margin: 0 auto 16px;
}

.auth-modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.auth-modal-header p {
    font-size: 13px;
    color: #9ca3af;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.auth-tab.active {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-tab:hover:not(.active) {
    color: #1f2937;
}

.auth-form-container {
    position: relative;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: form-fade 0.25s ease;
}

@keyframes form-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #b0bcca;
    pointer-events: none;
    transition: color 0.2s ease;
}

.auth-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    font-family: inherit;
}

.auth-input::placeholder {
    color: #b0bcca;
}

.auth-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.auth-input:focus+.auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: #dc2626;
}

.auth-input-with-btn {
    padding-right: 110px;
}

.auth-code-btn {
    position: absolute;
    right: 8px;
    padding: 8px 14px;
    border: none;
    background: #dc2626;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.auth-code-btn:hover {
    background: #b91c1c;
}

.auth-code-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

.auth-toggle-pwd {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0bcca;
    transition: color 0.2s ease;
}

.auth-toggle-pwd svg {
    width: 18px;
    height: 18px;
}

.auth-toggle-pwd:hover {
    color: #6b7280;
}

.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #dc2626;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-family: inherit;
}

.auth-submit-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

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

.auth-agreement {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 16px;
    line-height: 1.6;
}

.auth-agreement a {
    color: #dc2626;
    text-decoration: none;
}

.auth-agreement a:hover {
    text-decoration: underline;
}

.auth-forgot {
    text-align: center;
    margin-top: 16px;
}

.auth-forgot a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.auth-forgot a:hover {
    color: #dc2626;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 20px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-divider span {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}

.auth-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.auth-social-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s ease;
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-social-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}