/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 莫兰迪色系 - 柔和优雅的配色方案 */
    --primary-color: #7F9DAC;        /* 雾霾蓝 - 主色调 */
    --primary-dark: #6B8694;         /* 深雾蓝 - 主色调暗色 */
    --secondary-color: #B89E94;      /* 豆沙粉 - 辅助色 */
    --accent-color: #C5A8A0;         /* 藕粉 - 强调色 */
    
    /* 背景色 - 深色莫兰迪 */
    --bg-color: #3E4856;             /* 深灰蓝 - 主背景 */
    --bg-light: #4A5568;             /* 中灰蓝 - 次级背景 */
    --bg-card: #5A6574;              /* 浅灰蓝 - 卡片背景 */
    --bg-hover: #626F7E;             /* 悬停背景 */
    
    /* 文字色 */
    --text-color: #E8E4E1;           /* 浅灰米 - 主要文字 */
    --text-muted: #A0AEC0;           /* 灰蓝 - 次要文字 */
    --text-soft: #8A9BA8;            /* 柔和灰蓝 - 辅助文字 */
    
    /* 边框色 */
    --border-color: #697784;         /* 中灰 - 边框 */
    --border-light: #7A8694;         /* 浅灰 - 浅色边框 */
    
    /* 功能色 - 莫兰迪版本 */
    --success-color: #8FA888;        /* 橄榄绿 - 成功 */
    --warning-color: #C9B28E;        /* 燕麦黄 - 警告 */
    --danger-color: #C5A8A0;         /* 藕粉 - 危险 */
    --info-color: #9BA8B3;           /* 雾灰 - 信息 */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(62, 72, 86, 0.95);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(127, 157, 172, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand h2,
a.nav-brand {
    color: #A8B5C0;
    font-size: 1.5rem;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-brand h2:hover,
a.nav-brand:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: rgba(127, 157, 172, 0.1);
}

.nav-menu a:hover::after {
    width: 80%;
}

.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(127, 157, 172, 0.15);
}

.nav-menu a.active::after {
    width: 80%;
}

/* Hero区域 */
.hero {
    padding: 5rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(127, 157, 172, 0.08) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

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

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

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

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--text-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* 工具预览区域 */
.tool-preview {
    background: linear-gradient(135deg, rgba(62, 72, 86, 0.9), rgba(90, 101, 116, 0.9));
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(127, 157, 172, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.shape-selector h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shape-options {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.shape-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.shape-category h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.shape-btn {
    padding: 0.7rem 1.3rem;
    border: 2px solid rgba(127, 157, 172, 0.3);
    background: rgba(90, 101, 116, 0.5);
    color: var(--text-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 80px;
    position: relative;
    overflow: hidden;
}

.shape-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.shape-btn:hover::before {
    left: 100%;
}

.shape-btn:hover {
    border-color: var(--primary-color);
    background: rgba(127, 157, 172, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(127, 157, 172, 0.3);
}

.shape-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 20px rgba(127, 157, 172, 0.4);
}

.size-display {
    display: flex;
    gap: 3rem;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(90, 101, 116, 0.6);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(127, 157, 172, 0.2);
}

.size-display span {
    font-size: 1rem;
    color: var(--text-muted);
}

.size-display strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
}

.prompt-section {
    margin-top: 2.5rem;
}

.prompt-section textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid rgba(127, 157, 172, 0.3);
    background: rgba(90, 101, 116, 0.6);
    color: var(--text-color);
    border-radius: 16px;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1.25rem;
    font-family: inherit;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.prompt-section textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.prompt-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(90, 101, 116, 0.8);
    box-shadow: 0 0 0 4px rgba(127, 157, 172, 0.1);
}

.verify-section {
    margin-bottom: 1.5rem;
}

.verify-section label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.verify-section label:hover {
    background: rgba(127, 157, 172, 0.1);
}

.verify-section input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.verify-section span {
    font-size: 0.95rem;
    color: var(--text-color);
}

.generate-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(127, 157, 172, 0.3);
}

.generate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.generate-btn:hover::before {
    left: 100%;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(127, 157, 172, 0.5);
}

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

.generate-btn i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* 功能介绍区域 */
.features {
    padding: 4rem 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* 使用步骤 */
.steps {
    padding: 4rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
}

.cta-section {
    text-align: center;
}

.cta-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 157, 172, 0.3);
}

/* FAQ区域 */
.faq {
    padding: 4rem 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: var(--bg-light);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-links {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links span {
    color: var(--border-color);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 工具页面布局 */
.tool-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* 侧边栏 */
.sidebar {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 80px;
    border: 1px solid var(--border-color);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 历史记录区域头部 */
.sidebar-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sidebar-section-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-history-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.clear-history-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transform: scale(1.05);
}

/* 历史记录列表 */
.history-list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 历史记录项 */
.history-item {
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.history-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(127, 157, 172, 0.15);
}

/* 历史记录项图片容器 */
.history-item-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

.history-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-item:hover .history-item-image img {
    transform: scale(1.05);
}

/* 历史记录项覆盖层 */
.history-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-item:hover .history-item-overlay {
    opacity: 1;
}

/* 历史记录删除按钮 */
.history-delete-btn {
    background: var(--danger-color);
    border: none;
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.history-delete-btn:hover {
    background: #B89898;
    transform: scale(1.1);
}

/* 历史记录项内容 */
.history-item-content {
    padding: 0.75rem;
}

.history-item-prompt {
    font-size: 0.85rem;
    color: var(--text-color);
    margin: 0 0 0.35rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.history-item-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    display: block;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 2rem 0;
}

.prompt-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-btn {
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.suggestion-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

/* 主内容区 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-section,
.output-section {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.input-section h2,
.output-section h2 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group select {
    cursor: pointer;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.advanced-settings {
    margin: 1.5rem 0;
}

.toggle-advanced {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    transition: all 0.3s;
}

.toggle-advanced:hover {
    border-color: var(--primary-color);
}

.toggle-advanced i:last-child {
    transition: transform 0.3s;
}

.toggle-advanced.active i:last-child {
    transform: rotate(180deg);
}

.advanced-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.advanced-panel.active {
    max-height: 500px;
    margin-top: 1rem;
}

.slider-group {
    margin-top: 1rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.slider-group input[type="range"] {
    width: 100%;
    margin-bottom: 0.25rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.generate-btn-large {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.generate-btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 157, 172, 0.3);
}

.generate-btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 输出区域 */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.output-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover:not(:disabled) {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    min-height: 400px;
}

.empty-output {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    padding: 4rem 2rem;
}

.empty-output i {
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-output p {
    margin: 0.5rem 0;
}

.hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.image-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.image-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-card-actions {
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    justify-content: space-around;
}

.image-card-actions button {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s;
}

.image-card-actions button:hover {
    background: var(--primary-color);
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.loading-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-btn:hover {
    background: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .tool-page {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* 导航栏移动端优化 */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-brand h2 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .language-switcher-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .language-dropdown {
        right: 0;
        left: auto;
        max-width: 90vw;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .shape-options {
        flex-direction: column;
        align-items: center;
    }
    
    .settings-row {
        grid-template-columns: 1fr;
    }
    
    .output-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 图生图功能样式 ==================== */

/* 功能切换标签 */
.tool-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tool-tab {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-tab i {
    font-size: 1.2rem;
}

.tool-tab:hover {
    color: var(--text-color);
    background: var(--bg-hover);
}

.tool-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-card);
}

/* 工具面板 */
.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

/* 图片上传区域 */
.image-upload-area {
    position: relative;
    margin-top: 0.5rem;
}

.upload-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-card);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-placeholder:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
}

.upload-placeholder.drag-over {
    border-color: var(--primary-color);
    background: var(--bg-hover);
    transform: scale(1.02);
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.upload-placeholder p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.upload-btn {
    margin: 1rem auto;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.upload-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(127, 157, 172, 0.3);
}

.upload-info {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* 图片预览 */
.image-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
    padding: 1rem;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.remove-image-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(197, 168, 160, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.remove-image-btn:hover {
    background: var(--danger-color);
    transform: scale(1.1);
}

.image-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.image-info span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 转换强度滑块 */
.strength-value {
    float: right;
    background: var(--primary-color);
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-light);
    outline: none;
    -webkit-appearance: none;
    margin: 1rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* 提示文本 */
.hint {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tool-tabs {
        gap: 0.5rem;
    }
    
    .tool-tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .tool-tab i {
        font-size: 1rem;
    }
    
    .upload-placeholder {
        padding: 2rem 1rem;
    }
    
    .upload-placeholder i {
        font-size: 2rem;
    }
    
    .image-preview img {
        max-height: 300px;
    }
}

  
 