:root {
    --primary: #5e60dd;
    --primary-light: #8B5CF6;
    --primary-dark: #6D28D9;
    --secondary: #10B981;
    --accent: #2196F3;
    --accent-light: #FBBF24;
    --dark: #1F2937;
    --darker: #111827;
    --light: #F9FAFB;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-lg: 16px;

    --header-height: 80px;
    --footer-height: 300px;
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Playfair Display,Georgia,Cambria,Times New Roman,Times,"serif";
}

body {
    background-color: white;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.container {
    /*max-width: 1440px;*/
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}


/* Header Styles */
header {
    background-color: white;
    /*box-shadow: var(--shadow);*/
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    height: 60px;
}
#image-form{
    flex:1;
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 防止压缩 */
}
/* 为图片添加懒加载支持和尺寸 */
.preview-video, #generated-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /*aspect-ratio: 1/1;*/
    /*object-fit: cover;*/
    loading: lazy; /* 启用原生懒加载 */
    /*contain: layout style paint;*/
}


.logo:hover .logo-icon {
    transform: rotate(90deg);
    transition: transform 0.5s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 36px;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
    overflow: hidden;
}

nav a.active:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav a:hover:before, nav a.active:before {
    left: 0;
}

/* Main Generator Section */
.generator-section {
    padding: 20px 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.preview-container {
    flex: 1;
    /*background: var(--light);*/
    border-radius: var(--radius-lg);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    /*box-shadow: var(--shadow);*/
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    /*aspect-ratio: 1/1;*/
    contain: layout style paint;
}

.preview-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.preview-container:hover:before {
    transform: scaleX(1);
}

.preview-placeholder {
    text-align: center;
    color: var(--gray);
    transition: var(--transition);
}

.preview-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--gray-light);
    transition: var(--transition);
}

.preview-container:hover .preview-placeholder i {
    color: var(--primary-light);
    transform: scale(1.05);
}

.preview-image {
    max-width: 100%;
    max-height: 600px;
    border-radius: var(--radius);
    display: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    animation: fadeIn 0.5s ease;
}
.image-input-group .preview-image{
    max-height: 100px;
    margin-top:10px;
}

.input-container {
    flex: 1;
}

.recognition-result {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.recognition-result h3 {
    margin-top: 0;
    color: #333;
}

.recognition-result pre {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}
.mode-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #F3F4F6;
    padding: 6px;
    border-radius: var(--radius);
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mode-btn,.mode-btn-model {
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--gray);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

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

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

.mode-btn.active,.mode-btn-model.active {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5);
}

.mode-btn i {
    font-size: 18px;
}
.mode-selector .mode-btn {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 18px;
    background: transparent;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    border-radius: 8px;
    transition: var(--transition);
    gap: 8px;
    overflow: hidden;
}
.mode-selector .mode-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.input-group {
    position: relative;
    /*margin-bottom: 25px;*/
}

.input-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--darker);
    transition: var(--transition);
}

.text-input {
    width: 100%;
    padding: 18px;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 16px;
    transition: var(--transition);
    resize: vertical;
    min-height: 100px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.text-input-single{
    min-height: auto;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.file-upload {
    display: none;
}

.upload-area {
    border: 2px dashed var(--gray-light);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #F9FAFB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    position: relative;
    overflow: hidden;
}
.mt10{

}

.upload-area:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.05), transparent);
    transition: left 0.6s ease;
}

.upload-area:hover:before {
    left: 100%;
}

.upload-area:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.upload-area i {
    font-size: 36px;
    color: var(--gray);
    margin-bottom: 6px;
    transition: var(--transition);
}

.upload-area:hover i {
    color: var(--primary);
    transform: scale(1.1) translateY(-5px);
}

.upload-text {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--darker);
    font-weight: 500;
}

.upload-subtext {
    color: var(--gray);
    font-size: 14px;
}

.settings-grid {
    display: grid;
    /*grid-template-columns: repeat(2, 1fr);*/
    gap: 10px;
    /*margin-bottom: 30px;*/
}

.setting-item {
    margin-bottom: 12px;
    position: relative;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--darker);
}

.select-style {
    width: 100%;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.select-style:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.generate-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.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 ease;
}

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

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

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

.generate-btn i {
    transition: var(--transition);
}

.generate-btn:hover i {
    transform: scale(1.2) rotate(15deg);
}

/* Loading Animation */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 300px;
}

.loading-content .spinner {
    margin: 0 auto 20px;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
    position: relative;
}

.spinner:after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1.5s ease-in-out infinite;
}
/* How-to Section */
.how-to-section {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 60px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.how-to-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-title,h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--darker);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.step:hover:before {
    transform: scaleX(1);
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.2);
    transition: var(--transition);
}

.step:hover .step-number {
    transform: scale(1.1) rotate(10deg);
}

.step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--darker);
}

.step-description {
    color: var(--gray);
    line-height: 1.7;
}

/* Prompt Tips Section */
.prompt-tips {
    background: white;
    margin-bottom: 60px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.tip-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tip-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s ease;
}

.tip-card:hover:before {
    transform: scaleY(1);
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    width: 70px;
    height: 70px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.tip-card:hover .tip-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.tip-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--darker);
}

.tip-content {
    color: var(--gray);
    line-height: 1.7;
}

/* Community Section */
.community-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.community-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.community-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    position: relative;
    line-height: 1.7;
}

.community-btn {
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.community-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.community-btn i {
    transition: var(--transition);
}

.community-btn:hover i {
    transform: scale(1.2);
}

/* FAQ Section */
.faq-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
}

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

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    position: relative;
}

.faq-question:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    transform: scaleX(1);
}

.faq-question:hover {
    background: #F9FAFB;
    color: var(--primary);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    color: var(--gray);
    line-height: 1.7;
}

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

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* Footer */
footer {
    background: var(--darker);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:before {
    content: '›';
    color: var(--primary);
    font-weight: bold;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a:hover:before {
    transform: translateX(3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 14px;
}
.footer-bottom a{
    color: #9CA3AF;
}


.body-content {
    text-align: center;
    margin: 30px auto 0;
}

.dropdown-content a:first-child{
    padding-top: 20px;
}
.body-content h1 {
    font-weight: 800;
    /*background: linear-gradient(90deg, var(--primary), var(--accent));*/
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
    /*background-clip: text;*/
    text-align: center;
}
.body-content p {
    font-size: 0.9rem;
    color: var(--gray);
    text-align: left;
    margin: 10px auto;
}

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 968px) {
    .generator-section {
        flex-direction: column;
    }

    .steps-container {
        flex-direction: column;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .community-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .aspect-btn {
        min-width: 55px;
        padding: 4px 2px;
        font-size: 10px;
    }

    .aspect-preview {
        margin-bottom: 3px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .mode-selector {
        width: 100%;
    }

    .mode-btn {
        flex: 1;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .community-title {
        font-size: 1.8rem;
    }

    .generator-section {
        padding: 40px 0;
    }

    .how-to-section, .prompt-tips, .faq-section {
        padding: 60px 0;
    }
}
.aspect-ratio-picker {
    display: flex;
    gap: 10px; /* 减小按钮间距 */
    margin-top: 8px;
    flex-wrap: wrap;
}
.aspect-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: var(--light);
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
}

.aspect-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 58, 237, 0.5);
}

.aspect-btn.active {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7C3AED;
}

.aspect-preview {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.aspect-preview::before {
    content: '';
    display: block;
    background: linear-gradient(135deg, #7C3AED 0%, #a78bfa 100%);
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3);
}

/* Different aspect ratio previews */
.aspect-preview.landscape::before {
    width: 48px;
    height: 27px;
}

.aspect-preview.portrait::before {
    width: 27px;
    height: 48px;
}

.aspect-preview.square::before {
    width: 36px;
    height: 36px;
}

.aspect-preview.standard::before {
    width: 48px;
    height: 36px;
}

.aspect-preview.vertical::before {
    width: 36px;
    height: 48px;
}

.aspect-preview.ultrawide::before {
    width: 56px;
    height: 24px;
}

.aspect-btn span {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .aspect-ratio-picker {
        grid-template-columns: repeat(2, 1fr);
    }

    .aspect-preview::before {
        transform: scale(0.9);
    }
}

/* Use Cases Section */
.use-cases-section {
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 60px 0;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
}

.use-cases-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.use-case-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.use-case-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.5s ease;
}

.use-case-card:hover:before {
    transform: scaleY(1);
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
    width: 70px;
    height: 70px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.use-case-card:hover .use-case-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.use-case-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--darker);
}

.use-case-description {
    color: var(--gray);
    line-height: 1.7;
}

/* Features Section */
.features-section {
    background: white;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.feature-item:hover:before {
    transform: scaleX(1);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--darker);
}

.feature-description {
    color: var(--gray);
    line-height: 1.7;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonials-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:before {
    content: """;
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -20px;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Final CTA Section */
.final-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--darker);
    /*background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);*/
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
    /*background-clip: text;*/
}

.cta-description {
    font-size: 1.2rem;
    color: var(--gray);
    margin: 0 auto 30px;
    line-height: 1.7;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 18px 35px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.cta-button: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 ease;
}

.cta-button:hover:before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.cta-button i {
    transition: var(--transition);
}

.cta-button:hover i {
    transform: scale(1.2);
}

/* Responsive Design Updates */
@media (max-width: 968px) {
    .use-cases-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .use-cases-section,
    .features-section,
    .testimonials-section,
    .final-cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}
.image-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: none;
    gap: 10px;
    z-index: 10;
}

.preview-container:hover .image-controls {
    display: flex;
}

.image-control-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.image-control-btn:hover {
    background: rgba(124, 58, 237, 0.9);
    color: white;
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

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

.close-modal:hover {
    color: #ccc;
}
.preview-container-out{
    display: block;
    padding:2px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /*min-height: 662px;*/
    position: relative;
    overflow: hidden;
    transition: var(--transition);

}
#output{
    min-height: 450px;
}

.copy-btn {
    align-self: flex-end;
    background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.preview-container-result {
    /*background: var(--light);*/
    /*border-radius: var(--radius-lg);*/
    /*box-shadow: var(--shadow);*/
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.result-header {
    padding: 20px;
    background: white;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--darker);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.result-content {
    flex: 1;
    overflow: auto;
    position: relative;
    margin:20px;
}

.no-results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    height: 100%;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 20px;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--darker);
    margin-bottom: 10px;
}

.no-results-description {
    color: var(--gray);
    max-width: 350px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.no-results-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
    font-size: 0.9rem;
}

.text-output {
    min-height: 400px;
    margin-bottom: 15px;
}
/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode header {
    background-color: #2d2d2d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode nav a {
    color: #e0e0e0;
}

body.dark-mode nav a:hover,
body.dark-mode nav a.active {
    color: var(--primary-light);
}

/*body.dark-mode .preview-container,*/
/*body.dark-mode .input-container {*/
/*    background-color: #2d2d2d;*/
/*    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);*/
/*}*/

body.dark-mode .text-input,
body.dark-mode .select-style {
    background-color: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .mode-selector {
    background: #3d3d3d;
}

body.dark-mode .mode-btn {
    color: #aaa;
}

body.dark-mode .mode-btn.active {
    background: #4d4d4d;
    color: var(--primary-light);
}

body.dark-mode .upload-area {
    background: #3d3d3d;
    border-color: #555;
}

body.dark-mode .upload-area:hover {
    border-color: var(--primary-light);
}

body.dark-mode .upload-text {
    color: #e0e0e0;
}

body.dark-mode .upload-subtext {
    color: #aaa;
}

body.dark-mode footer {
    background: #222;
}

body.dark-mode .footer-links a {
    color: #aaa;
}

body.dark-mode .footer-links a:hover {
    color: white;
}

body.dark-mode .how-to-section,
body.dark-mode .faq-section,
body.dark-mode .prompt-tips,
body.dark-mode .final-cta-section,
body.dark-mode .use-cases-section,
body.dark-mode .use-case-card,
body.dark-mode .features-section,
body.dark-mode .feature-item,
body.dark-mode .result-header,
body.dark-mode .preview-container,
body.dark-mode .aspect-btn,
body.dark-mode .radio-label,
body.dark-mode .history-section,
body.dark-mode .model-info-box,
body.dark-mode .dropdown-content,
body.dark-mode .tool-card
{
    background: #252525;
}

body.dark-mode .step,
body.dark-mode .tip-card {
    background: #2d2d2d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .step-title,
body.dark-mode .tip-title,
body.dark-mode .use-case-title,
body.dark-mode .feature-title,
body.dark-mode .result-title,
body.dark-mode .no-results-title,
body.dark-mode .setting-label,
body.dark-mode .aspect-btn span,
body.dark-mode .input-label,
body.dark-mode .history-title,
body.dark-mode .logo,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode  p,
{
    color: #e0e0e0;
}

body.dark-mode .step-description,
body.dark-mode .tip-content {
    color: #aaa;
}

body.dark-mode .faq-item {
    background: #2d2d2d;
}

body.dark-mode .faq-answer {
    color: #aaa;
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .section-subtitle {
    color: #aaa;
}
.premium-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, #e67001 100%);
    border-radius: 50%;
    color: white;
    font-size: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.premium-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.premium-option input:disabled + .premium-badge {
    opacity: 0.6;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.checkbox-group {
    margin-top: 8px;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    background: #F9FAFB;
    border: 1px solid var(--gray-light);
}

.radio-label:hover, .checkbox-label:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.radio-label input, .checkbox-label input {
    margin: 0;
}

.radio-label input:checked + span,
.checkbox-label input:checked + span {
    background: rgba(124, 58, 237, 0.1);
}

/* 在 style.css 文件中添加以下样式 */
.advanced-settings-toggle {
    text-align: center;
    margin: 15px 0;
}

.toggle-advanced-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toggle-advanced-btn:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.toggle-advanced-btn i {
    transition: transform 0.3s ease;
}

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

.advanced-settings {
    transition: all 0.3s ease;
}

/* Google登录按钮样式 */
.google-login-btn {
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    font-size: 14px;
}

.google-login-btn:hover {
    box-shadow: 0 2px 8px 0 rgba(0,0,0,.3);
}

.google-login-btn img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* 登录模态框 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.login-modal.show {
    display: flex;
}

.login-modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.login-modal-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.login-modal-content p {
    margin-bottom: 25px;
    color: #666;
}

.google-login-modal-btn {
    background-color: #4285F4;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background-color 0.3s;
}

.google-login-modal-btn:hover {
    background-color: #3367D6;
}

.google-login-modal-btn img {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #999;
}
.aspect-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.aspect-btn.disabled:hover {
    background-color: inherit;
}


.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 500;
    color: #333;
}

.credits-info {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(124, 58, 237, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 2px;
}

.credits-icon {
    width: 16px;
    height: 16px;
}

.credits-count {
    font-weight: 600;
    color: #7C3AED;
    font-size: 14px;
}

.insufficient-credits {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.credits-required {
    color: #dc3545;
}

.insufficient-credits .credits-label {
    color: #dc3545;
}
.model-info-box {
    background: #f0f8ff;
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #e9ecef;
    font-size: 14px;
}

.model-label {
    color: #6c757d;
    font-weight: 500;
}

.model-type {
    font-weight: bold;
    color: #007bff;
}
.premium-features-description {
    padding: 10px;
    background-color: #f0f8ff;
    border-left: 3px solid #1e90ff;
    border-radius: 4px;
}

.premium-intro-text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}


main .container,footer .container{
    max-width: 1280px;
    margin: 0 auto;
}

/* 导航菜单左右对齐布局 */
.main-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.has-dropdown{
    position: relative;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
}

.nav-right {
    margin-right: 20px;
}
.dropdown-trigger {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-trigger:hover {
    color: #007bff;
}

.dropdown-icon {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}
.more{
    font-weight: bold;
}
.dropdown-content a {
    color: #333;
    padding: 12px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
}

.has-dropdown:hover .dropdown-content {
    display: block;
}


.dropdown-icon {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}
.mobile-menu-items {
    display: contents;
}

@media (max-width: 768px) {
    .main-nav {
        position: static;
        transform: none;
        height: auto;
        overflow-y: visible;
        box-shadow: none;
        padding: 0;
    }
    .main-nav.mobile-menu-show {
        transform: none;
    }
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav.mobile-menu-show {
        transform: translateX(0);
    }

    .nav-left, .nav-right {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .nav-left {
        margin-bottom: 20px;
    }
    .nav-right{
        margin-right: 0;
    }

    .nav-left li, .nav-right li {
        width: 100%;
        /*margin-bottom: 15px;*/
        padding: 0 20px;
    }

    .nav-left a, .nav-right a {
        display: block;
        padding: 12px 0;
        width: 100%;
    }
    .has-dropdown {
        position: relative;
    }

    .dropdown-content {
        position: static;
        display: none;
        background: #f9fafb;
        box-shadow: none;
        border-radius: 8px;
        margin-top: 10px;
        padding-left: 15px;
    }
    .dropdown-content.active {
        display: block;
    }
    .dropdown-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


    .user-info {
        flex-direction: row;
        gap: 8px;
    }

    .credits-info {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .mobile-menu-items.show {
        display: flex;
    }
}


.examples-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.examples-section .section-title {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: bold;
}

.examples-section .section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.examples-container {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.example-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
}

.example-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.example-video-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 225px;
}

.example-prompt {
    margin-bottom: 20px;
    text-align: left;
}

.example-prompt h4 {
    margin-bottom: 10px;
    color: #333;
}

.example-prompt pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    text-align: left;
}

.example-features ul {
    list-style-type: disc;
    padding-left: 20px;
    text-align: left;
}

.example-features li {
    margin-bottom: 8px;
    color: #555;
}
.example-prompt pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    font-size: 0.9rem;
    text-align: left;
    white-space: pre-wrap; /* 添加这行 */
    word-wrap: break-word; /* 添加这行 */
    max-height: 200px; /* 添加这行 */
}
@media (max-width: 768px) {
    .examples-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .example-item {
        padding: 20px;
        margin: 0 10px;
    }

    .example-video-container {
        min-height: 180px;
    }

    .examples-section {
        padding: 40px 0;
    }

    .examples-section .section-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .examples-section .section-subtitle {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .example-prompt pre {
        font-size: 0.85rem;
        padding: 12px;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .example-item {
        padding: 15px;
        margin: 0 5px;
    }

    .example-video-container {
        min-height: 150px;
    }

    .example-title {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .example-prompt pre {
        padding: 12px;
        font-size: 0.8rem;
    }
    .example-prompt pre {
        font-size: 0.8rem;
        max-height: 120px;
    }
}
/* 模型卡片样式 */
.model-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--gray-light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.model-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.model-card .model-icon {
    width: 40px;
    height: 40px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 18px;
}

.model-card .model-text {
    margin-bottom: 4px;
}

.model-card .model-name {
    font-weight: 60 of 800;
    color: var(--dark);
    font-size: 14px;
}

.model-card .model-desc {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.3;
    margin-top: 10px;
}

.model-card .model-price {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 4px;
}

/* Premium 标签样式 */
.premium-option .model-card {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}

.premium-option .model-card:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
}

.premium-option .model-card .model-price {
    color: var(--accent);
}


.model-picker .aspect-btn{
    padding: 0;
    border-radius: 12px;
}
.mt10{
    margin-top: 10px;
}
.category-section {
    padding: 20px 0;
}

.category-header {
    text-align: center;
    margin-bottom: 20px;
}

.breadcrumb {
    margin-bottom: 16px;
    text-align: left;
    font-size: 0.8rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.category-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.tool-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray-light);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tool-image {
    height: 160px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
}

.tool-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.tool-card:hover .tool-image img {
    transform: scale(1.05);
}

.tool-content {
    padding: 20px;
}

.tool-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--darker);
}

.tool-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
    max-height: 4.8rem; /* 限制最大高度为3行文本 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 限制显示3行 */
    -webkit-box-orient: vertical;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    gap: 5px;
}

.tool-link:hover {
    color: var(--primary-dark);
    gap: 8px;
}

.tool-link i {
    transition: var(--transition);
}

.tool-link:hover i {
    transform: translateX(3px);
}



@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}
.cd-image-container {
    position: relative;
    width: 100%;
    max-width: 768px;
    margin: 0em auto;
}
.cd-image-container img {
    display: block;
    max-width: 100%;
}

.cd-image-label {
    position: absolute;
    bottom: 0;
    right: 0;
    color: #ffffff;
    padding: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    opacity: 0;
    -webkit-transform: translateY(20px);
    -moz-transform: translateY(20px);
    -ms-transform: translateY(20px);
    -o-transform: translateY(20px);
    transform: translateY(20px);
    -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0.3s 0.7s;
    -moz-transition: -moz-transform 0.3s 0.7s, opacity 0.3s 0.7s;
    transition: transform 0.3s 0.7s, opacity 0.3s 0.7s;
}
.cd-image-label.is-hidden {
    visibility: hidden;
}
.is-visible .cd-image-label {
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.cd-resize-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    /* Force Hardware Acceleration in WebKit */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.cd-resize-img img {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
}
.cd-resize-img .cd-image-label {
    right: auto;
    left: 0;
}
.is-visible .cd-resize-img {
    width: 50%;
    /* bounce in animation of the modified image */
    -webkit-animation: cd-bounce-in 0.7s;
    -moz-animation: cd-bounce-in 0.7s;
    animation: cd-bounce-in 0.7s;
}

@-webkit-keyframes cd-bounce-in {
    0% {
        width: 0;
    }
    60% {
        width: 55%;
    }
    100% {
        width: 50%;
    }
}
@-moz-keyframes cd-bounce-in {
    0% {
        width: 0;
    }
    60% {
        width: 55%;
    }
    100% {
        width: 50%;
    }
}
@keyframes cd-bounce-in {
    0% {
        width: 0;
    }
    60% {
        width: 55%;
    }
    100% {
        width: 50%;
    }
}
.cd-handle {
    position: absolute;
    height: 44px;
    width: 44px;
    /* center the element */
    left: 50%;
    top: 50%;
    margin-left: -22px;
    margin-top: -22px;
    border-radius: 50%;
    background: #dc717d url("/tools/aimore/imgfk/js/slider/img/cd-arrows.svg") no-repeat center center;
    cursor: move;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0) scale(0);
    -moz-transform: translate3d(0, 0, 0) scale(0);
    -ms-transform: translate3d(0, 0, 0) scale(0);
    -o-transform: translate3d(0, 0, 0) scale(0);
    transform: translate3d(0, 0, 0) scale(0);
}
.cd-handle.draggable {
    /* change background color when element is active */
    background-color: #445b7c;
}
.is-visible .cd-handle {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0) scale(1);
    -moz-transform: translate3d(0, 0, 0) scale(1);
    -ms-transform: translate3d(0, 0, 0) scale(1);
    -o-transform: translate3d(0, 0, 0) scale(1);
    transform: translate3d(0, 0, 0) scale(1);
    -webkit-transition: -webkit-transform 0.3s 0.7s, opacity 0s 0.7s;
    -moz-transition: -moz-transform 0.3s 0.7s, opacity 0s 0.7s;
    transition: transform 0.3s 0.7s, opacity 0s 0.7s;
}



.modified-img{
    text-align: center;
}
.modified-img img{
    max-width: 98%;
    border-radius: 10px;
}
.mb10{
    margin-bottom: 10px;
}
.plan-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.pricing-section {
    padding: 30px ;
    /*background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);*/
}

.pricing-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212529;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin: 0 auto 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin: 0 auto;
}

.pricing-card {
    /*background: white;*/
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 15px 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.pricing-card.popular {
    border: 2px solid #007bff;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: -40px;
    background: #007bff;
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    /*color: #7c3aed;*/
}

.plan-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
}

.plan-description {
    color: #6c757d;
    margin-bottom: 14px;
}

.plan-points {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 16px 0 0;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.plan-features {
    text-align: left;
}

.plan-feature {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.plan-feature i {
    color: #28a745;
    margin-right: 10px;
}

.plan-btn {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 80%;
    margin: 15px 0;
    position: relative;
}

.plan-btn:hover {
    background: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.plan-btn .loading {
    display: none;
}

.plan-btn.processing .loading {
    display: inline-block;
}

.plan-btn.processing .btn-text {
    display: none;
}

.point-value {
    /*color: #007bff;*/
    font-weight: 700;
}

.security-badge {
    text-align: center;
    margin: 20px 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.security-badge i {
    color: #28a745;
    margin-right: 5px;
}

@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

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

    .pricing-card.popular {
        transform: scale(1.02);
    }
}

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

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .plan-name {
        font-size: 1.3rem;
    }

    .plan-price {
        font-size: 2rem;
    }

    .plan-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

.legal-links {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
}

.legal-links a {
    color: #007bff;
    margin: 0 10px;
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}
.paypal-btn{
    background-color: #003087;
    display: inline-block;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    width: 80%;
    margin: 15px 0;
    position: relative;
}
.paypal-btn:hover{
    background-color: #0049b9;
}
 .remark-text {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
@media (max-width: 768px) {
    .remark-text{display: none;}
    .preview-container{min-height: auto;}
    .generator-section{padding: 0;}
    .plan-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .plan-btn {
        width: calc(50% - 5px);
    }
}

.image-model-btn {
    min-width: 58px;
    padding: 12px 8px;
    border: none;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.image-model-btn.active {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.5);
}
.image-model-btn span {
    display: block;
    line-height: 1.2;
}
.content-policy-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.content-policy-warning i {
    font-size: 18px;
    margin-top: 3px;
    color: #ffc107;
}

.content-policy-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #856404;
}

.prompt-showcase-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 60px 0;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.prompt-showcase-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--darker);
    position: relative;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.prompt-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.prompt-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.prompt-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.prompt-card:hover:before {
    transform: scaleX(1);
}

.prompt-video-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.prompt-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prompt-card:hover .prompt-video {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.prompt-card:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay i {
    color: var(--primary);
    font-size: 20px;
    margin-left: 3px;
}

.prompt-content {
    padding: 12px;
}

.prompt-description {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prompt-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}


.prompt-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.try-btn {
    background: linear-gradient(135deg, #ffd336, #ffb700);
    color: #333;
    border: none;
}

.try-btn:hover {
    background: linear-gradient(135deg, #ffc400, #e6a700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 54, 0.4);
}

.copy-btn {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .prompt-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .prompt-showcase-section {
        padding: 40px 0;
        margin: 30px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .prompt-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .prompt-content {
        padding: 15px;
    }


    .prompt-actions {
        flex-direction: column;
        gap: 8px;
    }

    .action-btn {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.7rem;
    }

    .prompt-video-wrapper {
        height: 160px;
    }

    .prompt-card {
        border-radius: 12px;
    }
}

/* 动画效果 */
.prompt-card {
    animation: fadeInUp 0.6s ease-out;
}

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

.prompt-card:nth-child(1) { animation-delay: 0.1s; }
.prompt-card:nth-child(2) { animation-delay: 0.2s; }
.prompt-card:nth-child(3) { animation-delay: 0.3s; }
.prompt-card:nth-child(4) { animation-delay: 0.4s; }
.prompt-card:nth-child(5) { animation-delay: 0.5s; }
.prompt-card:nth-child(6) { animation-delay: 0.6s; }
.prompt-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 10px 20px;
    border: 1px solid var(--gray-light);
    border-radius: 25px;
    background: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.control-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.2);
}

.control-btn.refresh {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
}

.control-btn.refresh:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}


.control-btn.refresh:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Maintenance Mode Styles */
.model-card.maintenance {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
    pointer-events: none;
}

.model-card.maintenance:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.8) 10px,
        rgba(200, 200, 200, 0.3) 10px,
        rgba(200, 200, 200, 0.3) 20px
    );
    border-radius: 12px;
    z-index: 1;
}

.model-card.maintenance:after {
    content: 'Under Maintenance';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mode-btn-model.maintenance {
    cursor: not-allowed;
    pointer-events: none;
}

.mode-btn-model.maintenance:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--gray-light);
}

/* Dark mode support for maintenance */
body.dark-mode .model-card.maintenance:after {
    background: linear-gradient(135deg, #495057, #343a40);
    color: #f8f9fa;
}
/* 模型选择网格布局 */
.model-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

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

@media (max-width: 768px) {
    .model-picker-grid {
        grid-template-columns: 1fr;
    }
}

/* 模型卡片按钮 */
.mode-btn-model {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.mode-btn-model:hover {
    border-color: #4a9eff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.2);
}

.mode-btn-model.active {
    border-color: #4a9eff;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.model-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.mode-btn-model.active .model-icon {
    background: linear-gradient(135deg, #4a9eff 0%, #0066ff 100%);
}

.model-text {
    flex: 1;
    min-width: 0;
}

.model-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.model-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
    white-space: nowrap;
}

/* 参数选择按钮样式 */
.param-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.param-options button {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.param-options button:hover {
    border-color: #4a9eff;
    background: #f0f9ff;
}

.param-options button.active {
    border-color: #4a9eff;
    background: #4a9eff;
    color: white;
}

/* 开关切换样式 */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: #4a9eff;
}

input:checked + .slider-toggle:before {
    transform: translateX(24px);
}

/* 表单输入样式 */
.form-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4a9eff;
}

.form-textarea {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

/* 滑块样式 */
.param-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a9eff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.param-slider::-webkit-slider-thumb:hover {
    background: #0066ff;
    transform: scale(1.2);
}

.slider-value {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a9eff;
}

/* 模型参数容器 */
.model-params-container {
    background: white;
    border-radius: 12px;
    margin-top: 20px;
}
/* 折叠面板样式 */
.param-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.param-section-header {
    padding: 12px 15px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.param-section-header:hover {
    background: #f0f1f2;
}

.param-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.param-section-title i {
    color: #4a9eff;
}

.param-section-icon {
    transition: transform 0.3s ease;
}

.param-section.active .param-section-icon {
    transform: rotate(180deg);
}

.param-section-content {
    display: none;
    padding: 15px;
    background: white;
}

.param-section.active .param-section-content {
    display: block;
}

/* 快速操作按钮 */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.quick-action-btn:hover {
    border-color: #4a9eff;
    background: #f0f9ff;
}

.quick-action-btn.active {
    border-color: #4a9eff;
    background: #4a9eff;
    color: white;
}
.model-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Compact Params Layout */
.params-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.params-row:last-child {
    margin-bottom: 0;
}

.setting-item-col {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
}

.setting-item-full {
    width: 100%;
}

.setting-label-sm {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark);
    display: block;
    margin-bottom: 6px;
}

.vidfk-select-sm {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.vidfk-select-sm:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}


.form-input-sm {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--dark);
    transition: var(--transition);
    background: white;
    min-height: 38px;
}

.form-input-sm:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.form-textarea-sm {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 13px;
    color: var(--dark);
    resize: vertical;
    transition: var(--transition);
    background: white;
    font-family: inherit;
    min-height: 38px;
}

.form-textarea-sm:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.switch-toggle-sm {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin-top: 8px;
}

.switch-toggle-sm input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle-sm {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-light);
    transition: 0.3s;
    border-radius: 22px;
}

.slider-toggle-sm:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider-toggle-sm {
    background-color: var(--primary);
}

input:checked + .slider-toggle-sm:before {
    transform: translateX(18px);
}

.slider-value-sm {
    text-align: center;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}


/* Drag and Drop Styles */
.upload-area-full.drag-over {
    border: 2px dashed var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.upload-area-full {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Dark Mode Support for Compact Params */
body.dark-mode .vidfk-select-sm,
body.dark-mode .form-input-sm,
body.dark-mode .form-textarea-sm {
    background: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .slider-toggle-sm {
    background-color: #555;
}

body.dark-mode input:checked + .slider-toggle-sm {
    background-color: var(--primary);
}

/* Main Layout */
.vidfk-container {
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.vidfk-left-panel {
    flex: 1;
    min-width: 0;
}

.vidfk-right-panel {
    width: 446px;
    flex-shrink: 0;
}

/* Upload Preview Container */
.upload-preview-container {
    background: white;
    border-radius: 12px;
    padding: 24px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.upload-preview-container:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.upload-area-full {
    width: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    transition: var(--transition);
}

.upload-content {
    text-align: center;
    max-width: 420px;
}

.upload-main-btn {
    background: #FCD34D;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(252, 211, 77, 0.25);
}

.upload-main-btn:hover {
    background: #FBBF24;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 211, 77, 0.35);
}

.upload-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 18px 0 8px;
}

.upload-desc {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 20px;
}

.upload-hint {
    font-size: 13px;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.key-badge {
    display: inline-block;
    padding: 4px 10px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    background: rgba(124, 58, 237, 0.05);
}

/* Image Preview Grid */
.image-preview-container {
    width: 100%;
    position: relative;
}

.preview-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.preview-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-image-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.image-number-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0,0,0,0.75);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255,0,0,0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.remove-image-btn:hover {
    transform: scale(1.1);
    background: rgba(255,0,0,0.95);
}

.preview-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.btn-change-images {
    background: rgba(255,255,255,0.95);
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-change-images:hover {
    background: white;
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Settings Scroll Content */
.settings-scroll-content {
    background: white;
    border-radius: 12px;
    padding: 12px;
    max-height: 660px;
    overflow-y: auto;
    overflow-x:hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.settings-scroll-content::-webkit-scrollbar {
    width: 6px;
}

.settings-scroll-content::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 3px;
}

.settings-scroll-content::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 3px;
}

.settings-scroll-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Fixed Bottom Section */
.settings-fixed-bottom {
    background: white;
    border-radius: 12px;
    padding: 12px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    bottom: 0;
    /*z-index: 100;*/
}


/* Form Groups */
.vidfk-form-group {
    margin-bottom: 12px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vidfk-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    display: block;
}


.vidfk-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark);
    resize: vertical;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

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

.vidfk-textarea::placeholder {
    color: var(--gray);
}

.translate-row {
    margin-top: 6px;
}

/* Video Settings Grid */
.video-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.setting-select-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vidfk-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.vidfk-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Radio Labels */
.vidfk-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
    background: white;
}

.vidfk-radio-label:hover {
    border-color: var(--primary);
    background: var(--light);
}

.vidfk-radio-label input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.radio-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    flex: 1;
}

.vidfk-radio-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    text-transform: uppercase;
    display: inline-block;
}

.aspect-btn:hover {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
}

.aspect-preview {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.aspect-preview::before {
    content: '';
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.aspect-preview.landscape::before {
    width: 40px;
    height: 23px;
}

.aspect-preview.portrait::before {
    width: 23px;
    height: 40px;
}

.aspect-preview.square::before {
    width: 32px;
    height: 32px;
}

.aspect-preview.standard::before {
    width: 40px;
    height: 30px;
}

.aspect-preview.vertical::before {
    width: 30px;
    height: 40px;
}

.aspect-preview.ultrawide::before {
    width: 48px;
    height: 20px;
}

.aspect-btn span {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* Generate Button */
.vidfk-generate-btn {
    width: 100%;
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(252, 211, 77, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vidfk-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(252, 211, 77, 0.4);
}

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

.vidfk-generate-btn i {
    transition: var(--transition);
}

.vidfk-generate-btn:hover i {
    transform: scale(1.1) rotate(10deg);
}

/* Bottom Info */
.vidfk-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--gray-light);
}

.bottom-info-item {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bottom-info-item svg {
    fill: currentColor;
}

/* Responsive */
@media (max-width: 1024px) {
    .vidfk-container {
        flex-direction: column;
    }

    .vidfk-right-panel {
        width: 100%;
    }

    .settings-scroll-content {
        max-height: none;
        overflow-y: visible;
    }

    .video-settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .settings-fixed-bottom {
        position: relative;
        bottom: auto;
    }
}

@media (max-width: 768px) {
    .vidfk-left-panel,
    .vidfk-right-panel {
        width: 100%;
    }

    .upload-preview-container {
        min-height: 400px;
    }

    .video-settings-grid {
        grid-template-columns: 1fr;
    }

    .vidfk-radio-inline {
        grid-template-columns: 1fr;
    }

    .aspect-ratio-picker {
        justify-content: center;
    }

    .aspect-btn {
        min-width: 60px;
    }

    .params-row {
        flex-direction: column;
    }

    .setting-item-col {
        width: 100%;
    }
}

/* Dark Mode Support */
body.dark-mode .upload-preview-container,
body.dark-mode .settings-scroll-content {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

body.dark-mode .upload-area-full {
    background: #3d3d3d;
    border-color: #555;
}

body.dark-mode .vidfk-textarea,
body.dark-mode .vidfk-select,
body.dark-mode .vidfk-radio-label {
    background: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .vidfk-tips-box {
    background: #3d3d3d;
    border-color: #555;
}

body.dark-mode .tips-text {
    color: #aaa;
}

body.dark-mode .tips-text strong {
    color: #e0e0e0;
}

body.dark-mode .vidfk-label {
    color: #e0e0e0;
}

body.dark-mode .aspect-btn {
    background: #3d3d3d;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .aspect-btn.active {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
}

/* Model Select Dropdown Styles */
.model-select-dropdown {
    position: relative;
    margin-bottom: 20px;
}

.model-select-btn {
    width: 100%;
    background: white;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    gap: 12px;
}

.model-select-btn:hover {
    border-color: var(--primary);
    background: var(--light);
}

.selected-model-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    flex: 1;
}

.selected-model-info {
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
}

.model-select-btn i {
    color: var(--gray);
    transition: transform 0.3s ease;
}

.model-select-dropdown.active i {
    transform: rotate(180deg);
}

.model-dropdown-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    max-height: 480px;
    overflow-y: auto;
    z-index: 1000;
    border: 2px solid var(--primary);
    padding: 8px;
}

.model-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.model-dropdown-content::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 3px;
}

.model-dropdown-content::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 3px;
}

.model-dropdown-item {
    width: 100%;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    margin-bottom: 4px;
}

.model-dropdown-item:hover {
    background: var(--light);
    border-color: var(--primary);
}

.model-dropdown-item.active {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--primary);
}

.model-dropdown-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.model-dropdown-icon i {
    color: white;
    font-size: 20px;
}

.model-dropdown-text {
    flex: 1;
    min-width: 0;
}

.model-dropdown-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-dropdown-desc {
    font-size: 11px;
    color: var(--gray);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-dropdown-price {
    background: linear-gradient(135deg, #FCD34D 0%, #FBBF24 100%);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(252, 211, 77, 0.3);
}

/* Switch Toggle */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-light);
    transition: 0.3s;
    border-radius: 26px;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider-toggle {
    background-color: var(--primary);
}

input:checked + .slider-toggle:before {
    transform: translateX(24px);
}

/* Form Input */
.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
    background: white;
}

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

.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark);
    resize: vertical;
    transition: var(--transition);
    background: white;
    font-family: inherit;
}

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

/* Duration Slider */
.param-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-light);
    outline: none;
    -webkit-appearance: none;
}

.param-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.param-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.slider-value {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Dark Mode Support */
body.dark-mode .model-select-btn,
body.dark-mode .model-dropdown-content,
body.dark-mode .model-params-container,
body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: #3d3d3d;
    border-color: #555;
}

body.dark-mode .selected-model-name,
body.dark-mode .setting-label,
body.dark-mode .form-input,
body.dark-mode .form-textarea {
    color: #e0e0e0;
}

body.dark-mode .model-dropdown-item:hover {
    background: #4a4a4a;
}

body.dark-mode .model-dropdown-item.active {
    background: rgba(124, 58, 237, 0.15);
}

body.dark-mode .param-options button {
    background: #4a4a4a;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .param-options button.active {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--primary);
    color: var(--primary);
}

body.dark-mode .slider-toggle {
    background-color: #555;
}

body.dark-mode input:checked + .slider-toggle {
    background-color: var(--primary);
}


   /* ========== Tooltip Styles ========== */
   .tooltip-icon {
       position: relative;
       display: inline-flex;
       align-items: center;
       justify-content: center;
       width: 18px;
       height: 18px;
       margin-left: 6px;
       cursor: pointer;
       color: var(--primary);
       transition: var(--transition);
   }

.tooltip-icon:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.tooltip-icon i {
    font-size: 14px;
}

.tooltip-box {
    position: fixed;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 280px;
    min-width: 200px;
    white-space: normal;
    text-align: left;
    pointer-events: none;
    z-index: 99999;
    display: none;
}

.tooltip-box.show {
    display: block;
}

/* Dark Mode Support */
body.dark-mode .tooltip-icon {
    color: #9ca3af;
}

body.dark-mode .tooltip-icon:hover {
    color: var(--primary);
}

body.dark-mode .tooltip-box {
    background: #374151;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Label Row */
.label-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}
.example-description{
    color: gray;
    margin-top: 10px;
    font-size: 12px;
}

/* Detail Section Styles */
.detail-section{
    background: white;
    margin: 60px 0;
}

.detail-section.container{
    max-width:1200px;
}

.detail-section h2{
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--darker);
    margin: 50px 0 25px;
    position: relative;
    padding-bottom: 12px;
    padding-left: 20px;
    border-left: 5px solid transparent;
    background: linear-gradient(135deg, rgba(94, 96, 221, 0.05) 0%, rgba(33, 150, 243, 0.03) 100%);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.detail-section h2:hover{
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.detail-section h2:first-child{
    margin-top: 0;
    background: linear-gradient(135deg, rgba(94, 96, 221, 0.08) 0%, rgba(33, 150, 243, 0.05) 100%);
}

.detail-section h2:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.detail-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--darker);
    margin: 35px 0 20px;
    padding-left: 18px;
    position: relative;
    line-height: 1.4;
}

.detail-section h3:before{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(94, 96, 221, 0.3);
}

.detail-section p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--gray);
    margin-bottom: 22px;
    text-align: justify;
    letter-spacing: 0.01em;
    padding-left: 5px;
}

.detail-section p strong {
    color: var(--darker);
    font-weight: 600;
    position: relative;
    padding: 0 3px;
    background: linear-gradient(180deg, rgba(94, 96, 221, 0.1) 0%, transparent 100%);
    border-radius: 3px;
}

.detail-section ul,
.detail-section ol {
    margin: 28px 0;
    padding-left: 35px;
    background: linear-gradient(135deg, rgba(94, 96, 221, 0.03) 0%, rgba(33, 150, 243, 0.02) 100%);
    padding: 20px 20px 20px 40px;
    border-radius: var(--radius);
    border-left: 3px solid rgba(94, 96, 221, 0.2);
}

.detail-section li {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--gray);
    margin-bottom: 16px;
    position: relative;
    padding-left: 10px;
}

.detail-section ul li:before{
    content: '•';
    color: var(--primary);
    font-weight: bold;
    font-size: 1.6rem;
    position: absolute;
    left: -25px;
    top: -2px;
    text-shadow: 0 2px 4px rgba(94, 96, 221, 0.2);
}

.detail-section ol li {
    counter-increment: list-item;
    padding-left: 40px;
    list-style: none;
}

.detail-section ol li:before{
    content: counter(list-item) '.';
    color: var(--primary);
    font-weight: 600;
    position: absolute;
    left: 5px;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-section hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(94, 96, 221, 0) 0%,
        rgba(94, 96, 221, 0.3) 50%,
        rgba(33, 150, 243, 0) 100%
    );
    margin: 50px 0;
    position: relative;
}

.detail-section hr:after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(94, 96, 221, 0.4);
}


/* Responsive Design for Detail Section */
@media (max-width: 768px) {
    .detail-section h2 {
        font-size: 1.6rem;
        padding-left: 15px;
        margin: 35px 0 20px;
    }

    .detail-section h2:after {
        width: 40px;
        left: 15px;
    }

    .detail-section h3 {
        font-size: 1.3rem;
        padding-left: 12px;
    }

    .detail-section h3:before {
        height: 60%;
        width: 3px;
    }

    .detail-section p {
        font-size: 1rem;
        text-align: left;
        padding-left: 0;
    }

    .detail-section ul,
    .detail-section ol {
        padding: 15px 15px 15px 30px;
        margin: 20px 0;
    }

    .detail-section li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .detail-section ul li:before {
        font-size: 1.4rem;
        left: -20px;
    }

    .detail-section ol li {
        padding-left: 35px;
    }
}

@media (max-width: 480px) {
    .detail-section {
        margin: 40px 0;
    }

    .detail-section h2 {
        font-size: 1.4rem;
        padding-left: 12px;
    }

    .detail-section h2:after {
        width: 30px;
        left: 12px;
        height: 2px;
    }

    .detail-section h3 {
        font-size: 1.2rem;
        padding-left: 10px;
    }

    .detail-section h3:before {
        width: 2px;
        height: 50%;
    }

    .detail-section p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 18px;
    }

    .detail-section ul,
    .detail-section ol {
        padding: 12px 12px 12px 25px;
        border-left-width: 2px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .detail-section h2 {
        background: linear-gradient(135deg, rgba(94, 96, 221, 0.15) 0%, rgba(33, 150, 243, 0.08) 100%);
        color: #f3f4f6;
    }

    .detail-section h2:first-child {
        background: linear-gradient(135deg, rgba(94, 96, 221, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
    }

    .detail-section h3 {
        color: #f3f4f6;
    }

    .detail-section p {
        color: #d1d5db;
    }

    .detail-section p strong {
        background: linear-gradient(180deg, rgba(94, 96, 221, 0.25) 0%, transparent 100%);
        color: #e5e7eb;
    }

    .detail-section ul,
    .detail-section ol {
        background: linear-gradient(135deg, rgba(94, 96, 221, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
        border-left-color: rgba(94, 96, 221, 0.4);
    }

    .detail-section li {
        color: #d1d5db;
    }
}
/* High Contrast Mode */
@media (forced-colors: active) {
    .detail-section h2 {
        border-left: 4px solid CanvasText;
    }

    .detail-section h3:before {
        background: CanvasText;
    }

    .detail-section p strong {
        font-weight: 700;
        text-decoration: underline;
    }

    .detail-section ul li:before {
        color: CanvasText;
    }

    .detail-section ol li:before {
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
        background: none;
    }
}

/* Table Styles */
.detail-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.detail-section table:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.detail-section thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.detail-section thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: relative;
}

.detail-section thead th:first-child {
    padding-left: 25px;
}

.detail-section thead th:last-child {
    padding-right: 25px;
}

.detail-section tbody tr {
    border-bottom: 1px solid rgba(94, 96, 221, 0.08);
    transition: var(--transition);
}

.detail-section tbody tr:last-child {
    border-bottom: none;
}

.detail-section tbody tr:hover {
    background: linear-gradient(90deg, rgba(94, 96, 221, 0.04) 0%, rgba(33, 150, 243, 0.03) 100%);
}

.detail-section tbody td {
    padding: 18px 20px;
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    vertical-align: top;
}

.detail-section tbody td:first-child {
    padding-left: 25px;
    font-weight: 600;
    color: var(--darker);
    width: 25%;
}

.detail-section tbody td:last-child {
    padding-right: 25px;
}

.detail-section tbody td strong {
    color: var(--primary);
    font-weight: 600;
    background: linear-gradient(180deg, rgba(94, 96, 221, 0.08) 0%, transparent 100%);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

/* Responsive Table */
@media (max-width: 768px) {
    .detail-section table {
        font-size: 0.9rem;
    }

    .detail-section thead th,
    .detail-section tbody td {
        padding: 14px 15px;
    }

    .detail-section thead th {
        font-size: 0.85rem;
        padding: 14px 15px;
    }
}

@media (max-width: 480px) {
    .detail-section table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .detail-section table::-webkit-scrollbar {
        height: 6px;
    }

    .detail-section table::-webkit-scrollbar-track {
        background: rgba(94, 96, 221, 0.05);
        border-radius: 3px;
    }

    .detail-section table::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 3px;
    }

    .detail-section table::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    }
}

/* Dark Mode Table */
@media (prefers-color-scheme: dark) {
    .detail-section table {
        background: #1f2937;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .detail-section thead {
        background: linear-gradient(135deg, #4c4dc9 0%, #7c3aed 100%);
    }

    .detail-section tbody tr {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .detail-section tbody tr:hover {
        background: linear-gradient(90deg, rgba(94, 96, 221, 0.15) 0%, rgba(33, 150, 243, 0.1) 100%);
    }

    .detail-section tbody td {
        color: #d1d5db;
    }

    .detail-section tbody td:first-child {
        color: #e5e7eb;
    }

    .detail-section tbody td strong {
        background: linear-gradient(180deg, rgba(94, 96, 221, 0.25) 0%, transparent 100%);
        color: #e5e7eb;
    }
}

/* Print Table Styles */
@media print {
    .detail-section table {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .detail-section thead {
        background: #5e60dd !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .detail-section tbody tr:hover {
        background: none;
    }

    .detail-section tbody td {
        padding: 12px;
    }
}
