/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #ff6b9b;
}

button {
    cursor: pointer;
    border: none;
    background-color: #ff6b9b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #ff4b8b;
}

/* 页眉样式 */
header {
    background: linear-gradient(135deg, #ff6b9b, #ff9e6b);
    color: white;
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 搜索部分样式 */
.search-section {
    padding: 50px 0;
    background-color: white;
    text-align: center;
}

.search-section h2 {
    margin-bottom: 30px;
    color: #333;
}

.search-box {
    display: flex;
    margin: 20px 0;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #ff69b4;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.1);
}

.search-box button {
    padding: 12px 25px;
    background: #ff69b4;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #ff4aa5;
}

.popular-tags {
    margin: 20px 0;
}

.popular-tags p {
    display: inline-block;
    margin-right: 10px;
    color: #666;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 5px 12px;
    margin: 5px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #ff6b9b;
    color: white;
}

/* AI生成器部分样式 */
.ai-generator {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.ai-generator h2 {
    text-align: center;
    margin-bottom: 30px;
}

.generator-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) minmax(350px, 2fr);
    gap: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 600px;
    height: 800px;
    overflow: hidden;
}

.options-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(100% - 60px);
}

.button-container {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: white;
    position: static;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.05);
    z-index: 5;
    margin-top: 5px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.option-group select,
.option-group input,
.option-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.option-group textarea {
    height: 60px;
    resize: vertical;
    margin-bottom: 5px;
}

#generate-button, .generate-button {
    padding: 15px;
    font-size: 18px;
    background-color: #ff6b9b;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#generate-button:hover, .generate-button:hover {
    background-color: #ff4b8b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.retry-button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff6b9b;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.retry-button:hover {
    background-color: #ff4b8b;
}

.preview {
    display: flex;
    flex-direction: column;
    min-height: 500px;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
}

.preview h3 {
    display: none; /* 隐藏Preview标题 */
}

#result-image {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background-color: #fff;
    box-shadow: none;
    min-height: 600px;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#result-image p {
    font-size: 1.2rem;
    color: #888;
    text-align: center;
    max-width: 80%;
}

.loading-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 107, 155, 0.3);
    border-radius: 50%;
    border-top-color: #ff6b9b;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-indicator p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.time-estimate {
    font-size: 16px !important;
    color: #666 !important;
}

#time-remaining {
    font-weight: bold;
    color: #ff6b9b;
}

/* 画廊部分样式 */
.gallery {
    padding: 50px 0;
    background-color: white;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 30px;
}

.filter-options {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: transparent;
    color: #333;
    border: 1px solid #ddd;
    margin: 0 5px;
    padding: 8px 15px;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #ff6b9b;
    color: white;
    border-color: #ff6b9b;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background-color: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 15px;
    background-color: white;
}

.gallery-item-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.gallery-item-info p {
    color: #666;
    font-size: 14px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .generator-container {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 10px;
        min-height: auto;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .options {
        padding-right: 5px;
        max-height: calc(100% - 55px);
    }
    
    .option-group {
        margin-bottom: 8px;
    }
    
    .option-group label {
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .option-group select,
    .option-group input,
    .option-group textarea {
        padding: 8px;
        font-size: 15px;
    }
    
    .option-group textarea {
        height: 50px;
    }
    
    .button-container {
        padding: 8px 0;
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 2rem;
    text-align: center;
    background-color: white;
}

.empty-state p {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 1rem;
}

.empty-state-subtitle {
    font-size: 1.2rem !important;
    color: #999 !important;
}

/* 搜索结果样式 */
.search-results-message {
    text-align: center;
    margin: 10px 0;
    color: #333;
    font-weight: 500;
}

.no-results-message {
    text-align: center;
    padding: 30px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 20px 0;
    color: #666;
}

.no-results-message p:first-child {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

/* 网站信息区域样式 */
.site-info {
    background-color: #f9f5f8;
    padding: 50px 0;
    margin-top: 40px;
}

.site-info h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.site-info h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #ff69b4, #ff1493);
}

.info-block {
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-block h3 {
    color: #ff69b4;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid #f0e0e8;
    padding-bottom: 10px;
}

.info-block p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

/* 使用步骤样式 */
.usage-steps {
    counter-reset: step;
    margin-left: 0;
    padding-left: 0;
}

.usage-steps li {
    list-style-type: none;
    position: relative;
    padding-left: 40px;
    margin-bottom: 20px;
    counter-increment: step;
}

.usage-steps li:before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: #ff69b4;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-weight: bold;
}

.usage-steps li strong {
    color: #333;
}

/* 趋势网格样式 */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.trend-item {
    background-color: #fdfafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.trend-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trend-item h4 {
    color: #ff4aa5;
    margin-bottom: 10px;
}

.trend-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* FAQ样式 */
.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.faq-item {
    background-color: #fdfafc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.faq-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* 优势列表样式 */
.benefits-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.benefits-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 15px;
}

.benefits-list li:before {
    content: '•';
    color: #ff69b4;
    font-size: 1.5em;
    position: absolute;
    left: -10px;
    top: -5px;
}

.benefits-list li strong {
    color: #333;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .trends-grid, .faq-container {
        grid-template-columns: 1fr;
    }
    
    .info-block {
        padding: 20px 15px;
    }
    
    .site-info h2 {
        font-size: 1.7rem;
    }
    
    .info-block h3 {
        font-size: 1.3rem;
    }
} 