:root {
    /* 主要颜色 */
    --primary-bg: #0F172A;
    --secondary-bg: #1E293B;
    --deep-bg: #0A1122; /* 更深的背景色，用于历史记录信息区域 */
    --accent-color: #7C3AED;
    --accent-light: #9F67FF;
    --primary-color: #7C3AED; /* 添加主要颜色变量 */
    --surface-hover: #3A4A63; /* 添加悬停背景色变量 */
    
    /* 文字颜色 */
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    
    /* 边框和阴影 */
    --border-color: #334155;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    
    /* 其他变量 */
    --max-width: 1200px;
    --container-padding: 2rem;
    --border-radius: 1rem;
    --surface: #1E293B;
    --surface-alt: #2D3B4F;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --success: #10b981;
    --error: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    
    /* 特性标签颜色 */
    --free-color: #10b981; /* 绿色 */
    --powered-color: #3b82f6; /* 蓝色 */
    --login-color: #f59e0b; /* 橙色 */
    --unlimited-color: #8b5cf6; /* 紫色 */
}

/* 图标样式 */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-download {
    background-image: url('../icons/download.svg');
}

.icon-code {
    background-image: url('../icons/code.svg');
}

.icon-close {
    background-image: url('../icons/close.svg');
    width: 16px;
    height: 16px;
    margin-right: 0;
}

/* 确保所有按钮中的图标正确显示 */
button .icon {
    display: inline-block;
    vertical-align: middle;
}

/* 关闭按钮中的图标 */
.close-btn .icon {
    width: 16px;
    height: 16px;
    margin: 0;
    display: block;
}

/* 操作按钮中的图标 */
.action-btn .icon,
.logo-action-btn .icon {
    margin-right: 6px;
}

/* 历史记录中的图标 */
.history-logo-item .logo-action-btn .icon {
    margin-right: 4px;
}

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

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

header {
    background: 
        radial-gradient(circle at 20% 150%, rgba(124, 58, 237, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% -50%, rgba(159, 103, 255, 0.4) 0%, transparent 50%),
        linear-gradient(to right, var(--primary-bg), var(--secondary-bg));
    position: relative;
    color: var(--text-primary);
    padding: 1.5rem var(--container-padding);
    text-align: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(124, 58, 237, 0.1) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(159, 103, 255, 0.1) 50%, transparent 55%);
    background-size: 30px 30px;
    opacity: 0.3;
}

.header-content {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0.5rem 0;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.site-logo {
    width: 50px;
    height: 50px;
    margin-right: 0.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
    font-family: ui-serif, LibreBaskerville, Georgia, Cambria, "Times New Roman", Times, serif;
    text-shadow: 0 2px 10px rgba(124, 58, 237, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin: 1.5rem auto;
    color: white;
    max-width: 800px;
    text-align: center;
    font-family: 'Playfair Display', serif !important;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(124, 58, 237, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    display: block;
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* 添加一个微妙的下划线效果 */
h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.8), rgba(159, 103, 255, 0.4));
    margin: 0.5rem auto 0;
    border-radius: 3px;
}

/* 移除副标题背景 */
h2::after {
    display: none;
}

/* 语言选择器样式 */
.lang-selector {
    position: relative;
    margin-left: 1rem;
    z-index: 10;
    flex-shrink: 0;
}

.current-lang {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.current-lang:hover {
    background-color: rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(30, 30, 40, 0.95);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 150px;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background-color: rgba(124, 58, 237, 0.2);
}

/* 标签样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 2rem;
    max-width: 90%;
}

.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: rgba(124, 58, 237, 0.15);
    color: var(--text-primary);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    height: 2.5rem;
}

.tag:hover {
    background-color: rgba(124, 58, 237, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.free-tag {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.free-tag:hover {
    background-color: rgba(16, 185, 129, 0.25);
}

.powered-tag {
    background-color: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

.powered-tag:hover {
    background-color: rgba(79, 70, 229, 0.25);
}

.login-tag {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.login-tag:hover {
    background-color: rgba(245, 158, 11, 0.25);
}

.unlimited-tag {
    background-color: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
}

.unlimited-tag:hover {
    background-color: rgba(236, 72, 153, 0.25);
}

/* 媒体查询，确保在小屏幕上布局正确 */
@media (max-width: 768px) {
    .top-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .lang-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
        margin: 1rem 0;
    }
    
    .tags {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        height: 2.2rem;
    }
    
    .current-lang {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

section {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    overflow: hidden;
}

.logo-generator {
    padding: 2.5rem;
    margin-bottom: 6rem; /* 增加底部间距 */
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.description-container {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.description-container textarea {
    flex: 1;
}

.random-btn {
    height: calc(100% - 2rem); /* 与输入框高度一致，减去label的高度 */
    padding: 0 1rem;
    white-space: nowrap;
    font-size: 0.875rem;
    align-self: flex-end; /* 底部对齐 */
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--surface);
    color: var(--text-primary);
    font-family: inherit; /* 使用与body相同的字体 */
    appearance: none; /* 移除默认样式 */
    -webkit-appearance: none; /* Safari和Chrome */
    -moz-appearance: none; /* Firefox */
}

/* 处理自动填充状态 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--text-primary) !important;
    -webkit-box-shadow: 0 0 0 30px var(--surface) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* 添加输入验证错误状态 */
input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input:disabled, textarea:disabled {
    background-color: var(--surface-alt);
    opacity: 0.8;
    cursor: not-allowed;
    border-color: var(--border-color);
}

input::placeholder, textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    font-family: inherit; /* 使用与body相同的字体 */
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled,
button.disabled {
    background-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
    pointer-events: none;
}

#loading {
    text-align: center;
    margin: 3rem 0;
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.spinner {
    width: 70px;
    height: 70px;
    border: 3px solid rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.2));
}

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

#loading-status {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerText 2s infinite;
    line-height: 1.5;
    max-width: 280px;
}

@keyframes shimmerText {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

#progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

#progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    width: 0%;
    transition: width 1s ease-in-out;
    position: relative;
    box-shadow: 0 0 8px var(--accent-color);
}

#progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

#progress-text {
    font-size: 1.125rem;
    color: var(--accent-light);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
    line-height: 1.5;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-size: 1.125rem;
    color: var(--accent-light);
    margin: 1rem 0;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

.loading-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.status-message {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-message::before {
    content: '⏱';
    font-size: 1rem;
}

.estimated-time {
    color: var(--accent-light);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

/* 错误提示样式优化 */
.error-message {
    background-color: rgba(220, 38, 38, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.error-message.show {
    transform: translateY(0);
    opacity: 1;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-icon {
    font-size: 1.25rem;
}

.error-text {
    flex: 1;
    font-weight: 500;
}

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

.retry-btn {
    padding: 0.5rem 1rem;
    background-color: var(--error-color);
    color: var(--text-primary);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.retry-btn:hover {
    background-color: var(--accent-hover);
}

.logo-container {
    display: inline-flex;
    background: transparent;
    width: 80px;
    height: 80px;
    min-height: auto;
    margin-bottom: 0;
    padding: 0;
    box-shadow: none;
}

.logo-container svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background-color: var(--text-primary);
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.download-btn {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

footer {
    text-align: center;
    padding: 3rem var(--container-padding);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    header {
        padding: 3rem var(--container-padding);
    }
    
    .logo-generator {
        padding: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* 历史记录部分样式 */
.history-section {
    margin-top: 4rem; /* 增加顶部间距 */
    padding: 0;
    background: transparent;
}

.history-section h3,
.result-container h3,
.showcases-container h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem; /* 减小标题和卡片之间的间距 */
    color: var(--text-primary);
    text-align: left;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 进一步减小卡片之间的间距 */
    margin-top: 0.5rem; /* 减小顶部间距 */
}

.no-history {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-top: 1rem;
}

.history-item {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

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

.history-card {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0.5rem; /* 减小卡片底部间距 */
    display: flex;
    flex-direction: column;
}

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

.history-logo {
    background: transparent;
    display: block; /* 改为block以避免flex布局可能引起的间隙 */
    padding: 0;
    overflow: hidden;
    border: none;
    margin: 0;
    font-size: 0; /* 消除可能的空白间隙 */
    line-height: 0; /* 消除可能的行高间隙 */
    width: 100%; /* 确保宽度为100% */
}

/* 历史记录中的Logo网格 */
.history-logo-grid {
    display: flex; /* 改用flex布局以确保完全平均分配 */
    flex-wrap: nowrap; /* 禁止换行 */
    width: 100%;
    font-size: 0; /* 消除可能的空白间隙 */
    line-height: 0; /* 消除可能的行高间隙 */
    background-color: var(--secondary-bg); /* 与卡片背景色一致 */
    min-height: 0; /* 修复Flex容器中的最小高度问题 */
}

.history-logo-item {
    position: relative;
    background-color: transparent; /* 改为透明背景 */
    overflow: hidden;
    flex: 1; /* 平均分配空间 */
    aspect-ratio: 1; /* 保持1:1的宽高比（正方形） */
    height: auto; /* 移除固定高度，让宽度决定高度 */
    cursor: pointer;
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 0;
    font-size: 0; /* 消除可能的空白间隙 */
    line-height: 0; /* 消除可能的行高间隙 */
    box-sizing: border-box; /* 确保边框不会增加元素尺寸 */
    min-width: 0; /* 允许flex项目缩小到比内容更小 */
}

/* 空白占位符样式 */
.history-logo-item.empty {
    background-color: var(--secondary-bg);
    cursor: default;
}

.history-logo-item svg {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保SVG完全适应容器 */
    display: block;
    border: none;
    vertical-align: top; /* 防止底部出现间隙 */
    background-color: transparent; /* 确保SVG背景透明 */
    max-width: 100%; /* 确保不超出容器 */
    max-height: 100%; /* 确保不超出容器 */
}

.history-logo-item svg rect[fill="#FFFFFF"],
.history-logo-item svg rect[fill="#ffffff"],
.history-logo-item svg rect[fill="white"] {
    fill: transparent !important; /* 移除SVG中的白色矩形背景 */
}

.history-logo-item svg image {
    width: 100%;
    height: 100%;
}

.history-logo-item:hover {
    filter: brightness(1.1);
}

/* 历史记录Logo项的操作按钮 */
.history-logo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.5rem;
    display: flex;
    justify-content: space-around;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

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

.history-logo-item .logo-action-btn {
    background-color: rgba(124, 58, 237, 0.3) !important;
    color: var(--text-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    margin: 0;
    flex: 1;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(159, 103, 255, 0.3);
}

.history-logo-item .logo-action-btn:hover {
    background-color: rgba(124, 58, 237, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

.history-logo-item .logo-action-btn .icon {
    margin-right: 4px;
}

.history-info {
    padding: 1.5rem;
    background: var(--deep-bg); /* 使用更深色的背景 */
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* 减小整体间距 */
}

.history-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem; /* 减小底部间距 */
}

.history-info-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.history-info-header small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

.history-info p {
    margin-top: 0.25rem; /* 减小顶部间距 */
    margin-bottom: 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    line-height: 1.4; /* 减小行高 */
}

.history-info p:hover {
    color: var(--accent-color);
}

.history-info p[data-copied="true"] {
    color: var(--success-color);
    font-weight: 500;
}

/* 复制成功的toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(50% + 3rem)); /* 水平居中，垂直方向往下移动3个toast高度 */
    background-color: var(--accent-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center; /* 确保文本居中 */
}

.toast.show {
    opacity: 1;
}

.no-history {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* 加载中的Logo项样式 */
.logo-item.loading {
    background-color: var(--secondary-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 1;
    min-height: 200px;
    cursor: default;
    border: 2px solid transparent;
    box-shadow: none;
    animation: loading-pulse 2s infinite;
}

/* 添加紫色光效边框动画 */
.logo-item.loading::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 1rem;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(124, 58, 237, 0.6) 25%, /* 降低透明度 */
        rgba(159, 103, 255, 0.7) 50%, /* 降低透明度 */
        rgba(124, 58, 237, 0.6) 75%, /* 降低透明度 */
        transparent 100%
    );
    z-index: -1;
    animation: border-glow 2s linear infinite;
}

@keyframes border-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 使用伪元素显示"Generating..."文字 */
.logo-item.loading::after {
    content: attr(data-text);
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

@keyframes loading-pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* 加载动画容器 */
.logo-item.loading .loading-animation {
    height: 60px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 点脉冲加载动画 */
.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 100%;
}

.dot-pulse {
    position: relative;
    left: -9999px;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9F67FF;
    color: #9F67FF;
    box-shadow: 9999px 0 0 -5px #9F67FF;
    animation: dot-pulse 1.5s infinite linear;
    animation-delay: 0.25s;
    margin: 0 auto;
}

.dot-pulse::before, .dot-pulse::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #9F67FF;
    color: #9F67FF;
}

.dot-pulse::before {
    box-shadow: 9984px 0 0 -5px #9F67FF;
    animation: dot-pulse-before 1.5s infinite linear;
    animation-delay: 0s;
}

.dot-pulse::after {
    box-shadow: 10014px 0 0 -5px #9F67FF;
    animation: dot-pulse-after 1.5s infinite linear;
    animation-delay: 0.5s;
}

@keyframes dot-pulse-before {
    0% {
        box-shadow: 9984px 0 0 -5px #9F67FF;
    }
    30% {
        box-shadow: 9984px 0 0 2px #9F67FF;
    }
    60%, 100% {
        box-shadow: 9984px 0 0 -5px #9F67FF;
    }
}

@keyframes dot-pulse {
    0% {
        box-shadow: 9999px 0 0 -5px #9F67FF;
    }
    30% {
        box-shadow: 9999px 0 0 2px #9F67FF;
    }
    60%, 100% {
        box-shadow: 9999px 0 0 -5px #9F67FF;
    }
}

@keyframes dot-pulse-after {
    0% {
        box-shadow: 10014px 0 0 -5px #9F67FF;
    }
    30% {
        box-shadow: 10014px 0 0 2px #9F67FF;
    }
    60%, 100% {
        box-shadow: 10014px 0 0 -5px #9F67FF;
    }
}

.loading-time {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: center;
    margin: 0;
    width: 100%;
    display: block;
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

/* 结果容器样式 */
.result-container {
    margin-top: 4rem; /* 增加顶部间距 */
    margin-bottom: 6rem; /* 增加底部间距 */
    display: none;
}

/* 重新生成按钮样式 */
.regenerate-btn {
    display: block;
    margin: 1rem auto 2rem;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    border-radius: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.regenerate-btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.regenerate-btn:disabled {
    background-color: var(--surface-alt);
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

/* Logo网格样式 */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: 1fr;
    }
}

/* 基本Logo项样式 */
.logo-item {
    position: relative;
    background-color: var(--secondary-bg);
    border-radius: 1rem;
    padding: 0;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.logo-item svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-item svg image {
    width: 100%;
    height: 100%;
}

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

/* Logo项悬停操作 */
.logo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

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

.logo-action-btn {
    background-color: rgba(124, 58, 237, 0.3) !important; /* 使用更深的主题色 */
    color: var(--text-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(159, 103, 255, 0.3);
}

.logo-action-btn:hover {
    background-color: rgba(124, 58, 237, 0.5) !important; /* 悬停时使用更深的颜色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

/* 修改下载按钮文本 */
.logo-action-btn span.download-text {
    display: none !important; /* 使用!important确保隐藏 */
}

/* 优化错误项样式 */
.logo-item.error {
    position: relative;
    background-color: var(--secondary-bg);
    cursor: default;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item.error svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 确保错误占位图使用深色背景和浅色文本 */
.logo-item.error svg rect {
    fill: #1E293B !important; /* 使用深色背景 */
}

.logo-item.error svg text {
    fill: #F1F5F9 !important; /* 使用浅色文本 */
}

.logo-item.error svg circle {
    fill: #2D3B4F !important; /* 使用深色圆形背景 */
}

.logo-item.error svg path {
    stroke: #94A3B8 !important; /* 使用浅色线条 */
}

.error-retry-button {
    margin-top: 1rem;
}

.logo-item.error:hover {
    transform: none;
    box-shadow: none;
}

/* 表单操作按钮样式 */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.form-actions button {
    min-width: 100px;
}

/* 加载状态优化 */
.loading-container {
    text-align: center;
    margin: 3rem auto;
    max-width: 400px;
    background: var(--surface);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-color),
        transparent
    );
    animation: pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { opacity: 0.6; }
}

.secondary-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--surface-alt);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.secondary-btn:active {
    transform: translateY(1px);
}

.secondary-btn:disabled,
.secondary-btn.disabled {
    background-color: var(--surface);
    border-color: var(--border-color);
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Logo网格样式 */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .logo-grid {
        grid-template-columns: 1fr;
    }
}

/* 基本Logo项样式 */
.logo-item {
    position: relative;
    background-color: var(--secondary-bg);
    border-radius: 1rem;
    padding: 0;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.logo-item svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-item svg image {
    width: 100%;
    height: 100%;
}

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

/* Logo项悬停操作 */
.logo-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

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

.logo-action-btn {
    background-color: rgba(124, 58, 237, 0.3) !important; /* 使用更深的主题色 */
    color: var(--text-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(159, 103, 255, 0.3);
}

.logo-action-btn:hover {
    background-color: rgba(124, 58, 237, 0.5) !important; /* 悬停时使用更深的颜色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

/* 修改下载按钮文本 */
.logo-action-btn span.download-text {
    display: none !important; /* 使用!important确保隐藏 */
}

/* 优化错误项样式 */
.logo-item.error {
    position: relative;
    background-color: var(--secondary-bg);
    cursor: default;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-item.error svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 确保错误占位图使用深色背景和浅色文本 */
.logo-item.error svg rect {
    fill: #1E293B !important; /* 使用深色背景 */
}

.logo-item.error svg text {
    fill: #F1F5F9 !important; /* 使用浅色文本 */
}

.logo-item.error svg circle {
    fill: #2D3B4F !important; /* 使用深色圆形背景 */
}

.logo-item.error svg path {
    stroke: #94A3B8 !important; /* 使用浅色线条 */
}

/* 移除错误重试按钮样式 */
.error-retry-button {
    display: none;
}

.logo-item.error:hover {
    transform: none;
    box-shadow: none;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 防止滚动 */
}

.modal.active {
    display: flex;
}

/* 当模态框激活时禁止body滚动 */
body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-md);
    animation: modalFadeIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-logo-display {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--text-primary);
    min-height: 500px;
    overflow: hidden;
}

.modal-logo-display svg {
    max-width: 100%;
    max-height: 100%;
    width: 500px;
    height: 500px;
    display: block;
}

.modal-logo-display svg image {
    width: 100%;
    height: 100%;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    background: var(--surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.action-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.action-btn .icon {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .showcases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .left-buttons, .action-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .showcases-grid {
        grid-template-columns: 1fr;
    }
    
    .style-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

.left-buttons {
    display: flex;
    gap: 0.5rem;
}

/* 星球系统风格的Explore Inspiration模块 */
.universe-container {
    position: relative;
    width: 100%;
    height: 800px; /* 增加高度，为放大的行星提供更多空间 */
    margin: 5rem 0; /* 增加上下间距 */
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    perspective: 1200px; /* 增强透视效果 */
    transform-style: preserve-3d; /* 保持3D变换 */
    isolation: isolate; /* 创建新的层叠上下文 */
}

.universe-title {
    position: absolute;
    top: -3rem; /* 将标题上移，增加与内容的间距 */
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
    font-size: 2rem;
    z-index: 10;
    text-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
    margin-bottom: 2rem;
}

.universe-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #7c3aed, #4f46e5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.8);
    z-index: 5;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.8); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 0 60px rgba(124, 58, 237, 0.9); transform: translate(-50%, -50%) scale(1.05); }
}

.universe-center img {
    width: 100px;
    height: 100px;
    filter: brightness(1.2);
}

.universe-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(70deg); /* 添加X轴旋转，创造3D效果 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.planet-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    z-index: 2;
    will-change: transform;
    min-height: 400px; /* 确保有足够空间显示信息卡片 */
}

.planet {
    position: absolute;
    border-radius: 50%;
    background-color: transparent;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    transform-origin: center center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    top: 0;
    left: 0;
}

.planet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    border-radius: 50%;
    pointer-events: none;
}

.planet img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: transparent; /* 确保图片背景透明 */
}

/* 修改hover效果，确保位置固定，缩放比例为5 */
.planet:hover {
    transform: scale(5) !important;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.8);
    filter: brightness(1.1);
    z-index: 10000;
    image-rendering: -webkit-optimize-contrast; /* 提高图片清晰度 */
    image-rendering: crisp-edges; /* 提高图片边缘清晰度 */
    backface-visibility: hidden; /* 减少变换时的模糊 */
    -webkit-font-smoothing: subpixel-antialiased; /* 提高文本渲染质量 */
}

/* 调整信息卡片位置和显示效果 */
.planet-info {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 0.75rem; /* 保持圆角矩形 */
    padding: 1.5rem;
    color: var(--text-primary);
    text-align: left; /* 改为左对齐 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10000;
    width: auto;
    min-width: 320px;
    max-width: 500px; /* 增加最大宽度，确保Brand Name信息展示完整 */
    transform: none !important; /* 防止变换导致的显示问题 */
}

/* 左上方的行星 -> 信息卡片显示在右侧 */
.planet-container.left-position.top-position .planet-info {
    left: 100px; /* 增加距离，避免遮挡行星 */
    top: 0;
    transform: none !important;
}

/* 右上方的行星 -> 信息卡片显示在左侧 */
.planet-container.right-position.top-position .planet-info {
    right: 100px; /* 增加距离，避免遮挡行星 */
    top: 0;
    left: auto;
    transform: none !important;
}

/* 左下方的行星 -> 信息卡片显示在右侧 */
.planet-container.left-position.bottom-position .planet-info {
    left: 100px; /* 增加距离，避免遮挡行星 */
    bottom: 0;
    top: auto;
    transform: none !important;
}

/* 右下方的行星 -> 信息卡片显示在左侧 */
.planet-container.right-position.bottom-position .planet-info {
    right: 100px; /* 增加距离，避免遮挡行星 */
    bottom: 0;
    left: auto;
    top: auto;
    transform: none !important;
}

/* 当行星接近Generated Logos History模块时，信息卡片显示在上方 */
.planet-container.near-history .planet-info {
    bottom: auto !important; /* 移除强制底部定位 */
    top: -150px !important; /* 将信息卡片定位到行星上方，增加距离避免遮挡 */
    transform: none !important;
}

/* 当行星接近Generated Logos History模块且在左侧时，信息卡片显示在右上方 */
.planet-container.near-history.left-position .planet-info {
    left: 100px !important; /* 增加距离，避免遮挡行星 */
    right: auto !important;
    border-radius: 0.75rem !important; /* 恢复所有圆角 */
}

/* 当行星接近Generated Logos History模块且在右侧时，信息卡片显示在左上方 */
.planet-container.near-history.right-position .planet-info {
    right: 100px !important; /* 增加距离，避免遮挡行星 */
    left: auto !important;
    border-radius: 0.75rem !important; /* 恢复所有圆角 */
}

/* 确保行星容器在hover时也提升层级 */
.planet-container:hover {
    z-index: 9999 !important;
}

.planet-container:hover .planet-info {
    opacity: 1;
    visibility: visible;
    display: block !important; /* 强制显示 */
}

/* 移除Brand Name未输入时的错误提示区域 */
.validation-error {
    display: none !important;
}

/* 移除输入框的错误状态样式 */
input:invalid:not(:focus):not(:placeholder-shown),
textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--border-color);
    box-shadow: none;
}

/* 移除自定义必填字段提示消息 */
input:required:invalid:not(:focus):not(:placeholder-shown)::after,
textarea:required:invalid:not(:focus):not(:placeholder-shown)::after {
    content: none;
}

/* 确保行星容器在hover时保持位置 */
.planet-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    z-index: 2;
    will-change: transform;
    min-height: 400px;
}

/* 确保行星容器在hover时也提升层级 */
.planet-container:hover {
    z-index: 9998 !important;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes orbit3d {
    0% { 
        transform: rotateZ(0deg) translateX(var(--orbit-radius)) rotateZ(0deg) translateY(calc(var(--orbit-y-offset) * 1px)) translateZ(calc(var(--orbit-z-offset) * 1px)); 
    }
    100% { 
        transform: rotateZ(360deg) translateX(var(--orbit-radius)) rotateZ(-360deg) translateY(calc(var(--orbit-y-offset) * 1px)) translateZ(calc(var(--orbit-z-offset) * 1px)); 
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .universe-container {
        height: 600px;
    }
    
    .universe-center {
        width: 120px;
        height: 120px;
    }
    
    .universe-center img {
        width: 80px;
        height: 80px;
    }
    
    .planet:hover {
        transform: scale(3) !important;
    }
    
    .planet-info {
        min-width: 280px;
        max-width: 400px;
        padding: 1.25rem;
    }
    
    /* 当行星接近Generated Logos History模块时，信息卡片显示在上方 */
    .planet-container.near-history .planet-info {
        top: -130px !important;
    }
    
    /* 当行星接近Generated Logos History模块且在左侧时，信息卡片显示在右上方 */
    .planet-container.near-history.left-position .planet-info {
        left: 60px !important;
    }
    
    /* 当行星接近Generated Logos History模块且在右侧时，信息卡片显示在左上方 */
    .planet-container.near-history.right-position .planet-info {
        right: 60px !important;
    }
    
    /* 左上方的行星 -> 信息卡片显示在右下方 */
    .planet-container.left-position.top-position .planet-info {
        left: 70px;
        top: 0;
        transform: translateY(-50%);
    }
    
    /* 右上方的行星 -> 信息卡片显示在左下方 */
    .planet-container.right-position.top-position .planet-info {
        right: 70px;
        top: 0;
        transform: translateY(-50%);
    }
    
    /* 左下方的行星 -> 信息卡片显示在右上方 */
    .planet-container.left-position.bottom-position .planet-info {
        left: 70px;
        bottom: 0;
        transform: translateY(50%);
    }
    
    /* 右下方的行星 -> 信息卡片显示在左上方 */
    .planet-container.right-position.bottom-position .planet-info {
        right: 70px;
        bottom: 0;
        transform: translateY(50%);
    }
    
    .planet-name {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .planet-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .universe-container {
        height: 500px;
    }
    
    .universe-center {
        width: 100px;
        height: 100px;
    }
    
    .universe-center img {
        width: 60px;
        height: 60px;
    }
    
    .planet:hover {
        transform: scale(2) !important;
    }
    
    .planet-info {
        min-width: 240px;
        max-width: 320px;
        padding: 1rem;
    }
    
    /* 当行星接近Generated Logos History模块时，信息卡片显示在上方 */
    .planet-container.near-history .planet-info {
        top: -110px !important;
    }
    
    /* 当行星接近Generated Logos History模块且在左侧时，信息卡片显示在右上方 */
    .planet-container.near-history.left-position .planet-info {
        left: 50px !important;
    }
    
    /* 当行星接近Generated Logos History模块且在右侧时，信息卡片显示在左上方 */
    .planet-container.near-history.right-position .planet-info {
        right: 50px !important;
    }
    
    /* 左上方的行星 -> 信息卡片显示在右下方 */
    .planet-container.left-position.top-position .planet-info {
        left: 50px;
        top: 0;
        transform: translateY(-50%);
    }
    
    /* 右上方的行星 -> 信息卡片显示在左下方 */
    .planet-container.right-position.top-position .planet-info {
        right: 50px;
        top: 0;
        transform: translateY(-50%);
    }
    
    /* 左下方的行星 -> 信息卡片显示在右上方 */
    .planet-container.left-position.bottom-position .planet-info {
        left: 50px;
        bottom: 0;
        transform: translateY(50%);
    }
    
    /* 右下方的行星 -> 信息卡片显示在左上方 */
    .planet-container.right-position.bottom-position .planet-info {
        right: 50px;
        bottom: 0;
        transform: translateY(50%);
    }
    
    .planet-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .planet-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* 表单验证错误样式 */
.input-error {
    border-color: var(--error) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.validation-error {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    color: var(--error);
    font-size: 0.875rem;
    animation: fadeIn 0.3s ease;
    padding: 0.5rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.error-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--error);
}

.error-message {
    flex: 1;
}

/* 自定义必填字段提示 */
input:required:invalid:not(:focus):not(:placeholder-shown),
textarea:required:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 输入提示样式 */
.input-hint {
    display: none;
}

.form-group:hover .input-hint {
    display: none;
}

/* 输入错误状态下显示提示 */
input:invalid:not(:focus):not(:placeholder-shown) + .input-hint,
.description-container + .input-hint {
    display: none;
}

input:invalid:not(:focus):not(:placeholder-shown) + .input-hint {
    display: block;
    color: var(--error);
    animation: fadeIn 0.3s ease;
}

/* 自定义验证消息样式 */
input:invalid:not(:focus):not(:placeholder-shown),
textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 添加一个全局样式，确保所有行星容器都有正确的层叠顺序 */
.universe-container * {
    transform-style: preserve-3d;
}

/* 确保行星信息卡片在最上层 */
.planet-info {
    z-index: 10000 !important;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* 行星名称居中对齐 */
.planet-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-light);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal; /* 允许换行 */
    text-align: center; /* 名称居中对齐 */
}

/* 行星描述左对齐 */
.planet-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
    display: block; /* 改为block显示 */
    overflow: visible; /* 允许内容完整显示 */
    white-space: normal; /* 允许换行 */
    text-overflow: initial; /* 移除省略号 */
    margin: 0;
    text-align: left; /* 描述左对齐 */
}

/* 关闭按钮样式 */
.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--text-primary);
    opacity: 0.9;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 特性标签样式 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.feature-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 不同颜色的特性标签 */
.free-tag {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.powered-tag {
    background-color: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

.login-tag {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.unlimited-tag {
    background-color: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
}

@media (max-width: 768px) {
    .feature-tags {
        gap: 0.5rem;
    }
    
    .feature-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .feature-tags {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-tag {
        width: 80%;
        text-align: center;
    }
}

/* 添加Show More/Collapse按钮样式 */
.toggle-history-btn {
    display: block;
    margin: 1rem auto 2rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.toggle-history-btn:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

/* 顶部容器样式 */
.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

/* 语言选择器样式 */
.lang-selector {
    position: relative;
    margin-left: 1rem;
    z-index: 10;
}

.current-lang {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.current-lang:hover {
    background-color: rgba(124, 58, 237, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--secondary-bg);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    display: none;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.lang-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background-color: rgba(124, 58, 237, 0.2);
}

@media (max-width: 768px) {
    .lang-selector {
        margin-top: 0.5rem;
    }
    
    .current-lang {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .lang-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* 隐私政策和服务条款页面样式 */
.policy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--secondary-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    line-height: 1.8;
}

.policy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
    font-family: ui-serif, LibreBaskerville, Georgia, Cambria, "Times New Roman", Times, serif;
    text-shadow: 0 2px 10px rgba(124, 58, 237, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* 优化h2样式，与内容左对齐 */
.policy-page h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.2rem;
    color: var(--accent-light);
    text-align: left;
    font-weight: 700;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.5px;
    transform: none;
    left: auto;
    position: static;
    width: auto;
    display: block;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    padding-bottom: 0.5rem;
}

.policy-page h2::after {
    display: none;
}

.policy-page p, .policy-page ul, .policy-page ol {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 800px;
}

.policy-page ul, .policy-page ol {
    padding-left: 2.5rem;
    margin-top: 1rem;
}

.policy-page li {
    margin-bottom: 0.8rem;
    position: relative;
}

.policy-page a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px dotted rgba(124, 58, 237, 0.3);
    padding-bottom: 1px;
}

.policy-page a:hover {
    text-decoration: none;
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

/* 优化政策页面顶部信息位置，与首页保持一致 */
.policy-page .top-container {
    padding: 0.5rem 0;
    margin-bottom: 3rem;
    justify-content: space-between; /* 改为space-between，与首页一致 */
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    padding-bottom: 1rem;
}

.policy-page .header-content {
    padding: 0 1rem;
    text-align: center;
    width: 100%;
}

.policy-page .title-row {
    justify-content: flex-start; /* 改为flex-start，与首页一致 */
    margin-bottom: 0;
    gap: 0;
    display: flex;
    align-items: center;
}

.policy-page .logo-container {
    margin-right: 0.5rem; /* 与首页保持一致 */
    display: flex;
    align-items: center;
}

.policy-page .site-logo {
    width: 50px; /* 与首页保持一致 */
    height: 50px; /* 与首页保持一致 */
    margin-right: 0.5rem; /* 与首页保持一致 */
}

.policy-page h1 {
    font-size: 2.5rem; /* 与首页保持一致 */
    font-weight: 800;
    margin: 0;
    text-align: left;
}

/* 添加最后更新时间样式 */
.policy-page .last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding-bottom: 1.5rem;
}

/* 添加段落间距 */
.policy-page section {
    margin-bottom: 2.5rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .policy-page {
        padding: 1.5rem;
    }
    
    .policy-page h1 {
        font-size: 2rem;
    }
    
    .policy-page h2 {
        font-size: 1.3rem;
        margin: 2rem 0 1rem;
    }
    
    .policy-page p, .policy-page ul, .policy-page ol {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .policy-page .top-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .policy-page .lang-selector {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .policy-page .last-updated {
        margin-bottom: 2rem;
    }
}

/* 副标题样式 */
.subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin: 1.5rem auto;
    color: white;
    max-width: 800px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(124, 58, 237, 0.8), 0 0 15px rgba(0, 0, 0, 0.5);
    padding: 0 1rem;
    display: block;
    width: 100%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.subtitle::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.8), rgba(159, 103, 255, 0.4));
    margin: 0.5rem auto 0;
    border-radius: 3px;
}

/* 修改下载按钮颜色，使用主题色 */
.logo-action-btn {
    background-color: rgba(124, 58, 237, 0.3) !important; /* 使用更深的主题色 */
    color: var(--text-primary);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    margin: 0 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(159, 103, 255, 0.3);
}

.logo-action-btn:hover {
    background-color: rgba(124, 58, 237, 0.5) !important; /* 悬停时使用更深的颜色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

.logo-action-btn .icon {
    margin-right: 4px;
}

/* 确保历史卡片中的按钮也使用相同样式 */
.history-logo-item .logo-action-btn {
    background-color: rgba(124, 58, 237, 0.3) !important;
    border: 1px solid rgba(159, 103, 255, 0.3);
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    margin: 0 0.25rem;
    color: var(--text-primary);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-logo-item .logo-action-btn:hover {
    background-color: rgba(124, 58, 237, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
    border-color: rgba(159, 103, 255, 0.5);
}

/* 修改下载按钮文本 */
.logo-action-btn span.download-text {
    display: none !important; /* 使用!important确保隐藏 */
}

/* 确保历史卡片中的按钮也隐藏Download文本 */
.history-logo-item .logo-action-btn span.download-text {
    display: none !important;
}