:root {
    --primary-color: #4facfe;
    --primary-light: rgba(79, 172, 254, 0.2);
    --primary-dark: #2a93fc;
    --secondary-color: #00f2fe;
    --accent-color: #7367f0;
    --bg-color: #0a1929;
    --card-bg: rgba(18, 36, 64, 0.6);
    --card-border: rgba(79, 172, 254, 0.15);
    --text-color: #e6f1ff;
    --text-muted: rgba(230, 241, 255, 0.7);
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --tech-bg-color: rgba(10, 25, 41, 0.95);
    --tech-line-color: rgba(79, 172, 254, 0.15);
    --tech-dot-color: rgba(79, 172, 254, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f8f9fa;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(18, 36, 64, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.slogan {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-auth {
    position: relative;
}

.auth-btn {
    background-color: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    transition: var(--transition);
}

.auth-btn:hover {
    background-color: rgba(79, 172, 254, 0.2);
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-profile-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-profile-btn span {
    color: var(--text-color);
    font-weight: 500;
}

.language-selector {
    position: relative;
}

.current-lang {
    background-color: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.current-lang:hover {
    background-color: rgba(79, 172, 254, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(18, 36, 64, 0.95);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    min-width: 120px;
    z-index: 10;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.language-selector:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown button {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.lang-dropdown button:hover {
    background-color: rgba(79, 172, 254, 0.15);
}

/* 隐藏当前选中的语言 */
.lang-dropdown button[data-lang].active {
    display: none;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 3rem;
    background-color: rgba(18, 36, 64, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: none;
    transition: all 0.3s ease;
}

section:hover {
    background-color: rgba(18, 36, 64, 0.3);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Description Section */
.description {
    text-align: center;
    padding: 3rem 2rem;
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.description:hover {
    background-color: transparent;
}

.main-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.main-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.description h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

.description p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Prompt Section */
.prompt-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.prompt-title-container h2 {
    margin-bottom: 0;
}

.prompt-input-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prompt-input {
    flex: 1;
}

textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    background-color: rgba(10, 25, 41, 0.3);
    color: var(--text-color);
    box-shadow: none;
    transition: background-color 0.3s ease;
}

textarea:focus {
    background-color: rgba(10, 25, 41, 0.4);
    outline: none;
}

.upload-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.upload-image-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(79, 172, 254, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.upload-image-btn:hover {
    background-color: rgba(79, 172, 254, 0.2);
    box-shadow: none;
}

.upload-image-btn i {
    font-size: 1.5rem;
}

.upload-image-btn.has-image {
    background-color: var(--primary-color);
    color: white;
}

.upload-success-message {
    position: absolute;
    top: -30px;
    right: 0;
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

.industry-prompts-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.industry-prompts {
    flex: 1;
}

.industry-prompts h3 {
    margin-bottom: 1.2rem;
}

.prompts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 1.5rem;
    min-height: 90px;
}

.prompt-btn {
    background-color: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
    color: var(--text-color);
    padding: 0.3rem 0.7rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.prompt-btn:hover {
    background-color: rgba(79, 172, 254, 0.2);
}

.prompt-btn.active {
    background-color: rgba(79, 172, 254, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(79, 172, 254, 0.4);
}

.generate-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
}

#generate-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#generate-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: btnShine 3s infinite linear;
    z-index: 1;
}

@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

#generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.6);
}

#generate-btn:disabled {
    background: linear-gradient(45deg, #8c96a5, #a0a8b5);
    box-shadow: none;
    cursor: not-allowed;
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Generation Preview - Single View Mode */
.generation-preview {
    transition: opacity 0.5s ease;
}

.single-view-container {
    width: 100%;
    min-height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
}

.generation-process {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.process-animation {
    width: 100%;
    height: 250px;
    background-color: rgba(18, 36, 64, 0.2);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

/* Results Grid */
.results-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    min-height: 250px;
    transition: opacity 0.5s ease;
    margin: 0 auto;
}

.result-item {
    flex: 1;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: rgba(18, 36, 64, 0.2);
    box-shadow: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    max-width: 250px;
    max-height: 250px;
    margin: 0;
    border: none;
}

.result-item:hover {
    transform: scale(1.03);
    background-color: rgba(18, 36, 64, 0.3);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.2);
}

.result-item.selected {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.result-item.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: opacity 0.3s ease-in-out;
}

/* Footer Styles */
footer {
    background-color: rgba(10, 25, 41, 0.3);
    color: #f5f5f5;
    padding: 2rem 5%;
    margin-top: 3rem;
    border-top: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-description {
    max-width: 800px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .prompt-title-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .prompt-input-container {
        flex-direction: column;
    }
    
    .industry-prompts-container {
        flex-direction: column;
    }
    
    .generate-btn-container {
        padding-top: 1rem;
        width: 100%;
    }
    
    #generate-btn {
        width: 100%;
    }
    
    .preview-container {
        flex-direction: column;
    }
    
    .styles-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .results-grid {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .result-item {
        flex: 0 0 calc(50% - 0.4rem);
        max-width: 200px;
        max-height: 200px;
    }
    
    .process-animation {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .results-grid {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .result-item {
        flex: 0 0 100%;
        max-width: 250px;
        max-height: 250px;
    }
}

/* RTL Support for Arabic */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .lang-dropdown {
    left: 0;
    right: auto;
}

[lang="ar"] .brand {
    flex-direction: row-reverse;
}

[lang="ar"] .styles-grid,
[lang="ar"] .prompts-container {
    direction: rtl;
}

/* Arabic Font Support */
[lang="ar"] body {
    font-family: 'Segoe UI', Tahoma, 'Arial Unicode MS', sans-serif;
}

/* Loading Animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    height: 100%;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(79, 172, 254, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.waiting-message {
    font-size: 1.1rem;
    color: var(--primary-color);
    text-align: center;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.waiting-message:hover {
    background-color: rgba(79, 172, 254, 0.15);
    transform: scale(1.05);
}

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

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.feature-tag {
    background-color: rgba(79, 172, 254, 0.1);
    color: var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: none;
    box-shadow: none;
}

.feature-tag:hover {
    background-color: rgba(79, 172, 254, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.2);
}

/* Stats Section */
.stats-section {
    padding: 3rem 2rem;
    background-color: var(--card-bg);
    text-align: center;
}

.stats-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
    margin-bottom: 0.5rem;
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(79, 172, 254, 0) 0%, 
        rgba(0, 242, 254, 0.7) 50%, 
        rgba(79, 172, 254, 0) 100%);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.testimonials-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonials-scroll {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
    padding: 1rem 0;
}

.testimonial {
    min-width: 300px;
    background-color: rgba(18, 36, 64, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: none;
    text-align: left;
    border: none;
}

.testimonial:hover {
    background-color: rgba(18, 36, 64, 0.3);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--text-muted);
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .testimonials-scroll {
        animation: scroll 20s linear infinite;
    }
}

/* 科技感背景 */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--tech-bg-color);
    background-image: linear-gradient(135deg, #0a1929 0%, #112240 100%);
    overflow: hidden;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--tech-line-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--tech-line-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.25;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    animation: gridPulse 8s infinite ease-in-out;
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tech-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--tech-dot-color);
    pointer-events: none;
    transition: transform 0.3s ease;
    box-shadow: 0 0 5px rgba(79, 172, 254, 0.5);
    animation: particleGlow 3s infinite ease-in-out;
    animation-delay: calc(var(--particle-delay) * 1s);
}

.tech-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.2s ease;
    mix-blend-mode: difference;
}

.tech-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.tech-cursor-trail {
    position: fixed;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.2) 0%, rgba(79, 172, 254, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 适配移动设备 */
@media (max-width: 768px) {
    .tech-cursor, .tech-cursor-trail {
        display: none; /* 在移动设备上隐藏自定义光标 */
    }
    
    .tech-grid {
        background-size: 30px 30px; /* 在移动设备上缩小网格尺寸 */
    }
}

/* 页面内容样式调整，增加科技感 */
body {
    background-color: transparent;
    color: #f8f9fa;
}

.card, .style-item, .prompt-btn, .feature-tag, .testimonial {
    backdrop-filter: blur(5px);
    background-color: rgba(18, 36, 64, 0.2);
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover, .style-item:hover, .prompt-btn:hover {
    background-color: rgba(18, 36, 64, 0.3);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.15);
}

/* 按钮悬停效果增强 */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.2);
}

/* 增强网格动画效果 */
@keyframes gridPulse {
    0% { opacity: 0.15; }
    50% { opacity: 0.25; }
    100% { opacity: 0.15; }
}

/* 增强粒子效果 */
@keyframes particleGlow {
    0% { box-shadow: 0 0 5px rgba(79, 172, 254, 0.3); }
    50% { box-shadow: 0 0 10px rgba(0, 242, 254, 0.5); }
    100% { box-shadow: 0 0 5px rgba(79, 172, 254, 0.3); }
}

/* 添加流光效果 */
.tech-flow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(79, 172, 254, 0) 0%,
        rgba(79, 172, 254, 0.02) 25%, 
        rgba(0, 242, 254, 0.05) 50%, 
        rgba(79, 172, 254, 0.02) 75%, 
        rgba(79, 172, 254, 0) 100%);
    background-size: 400% 400%;
    animation: flowAnimation 15s ease infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes flowAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 标题特效 */
#main-title {
    position: relative;
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

#main-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(79, 172, 254, 0) 0%, 
        rgba(0, 242, 254, 0.7) 50%, 
        rgba(79, 172, 254, 0) 100%);
    animation: glowLine 3s ease-in-out infinite;
}

@keyframes glowLine {
    0% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0.3; transform: scaleX(0.8); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
    border: 1px solid var(--card-border);
    animation: modalFadeIn 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.password-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: normal;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    background-color: rgba(18, 36, 64, 0.8);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
}

.form-group input.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.password-length-hint {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease;
}

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

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.switch-btn {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.switch-btn:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.user-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.4);
}

.user-info {
    width: 100%;
    color: var(--text-color);
}

.user-info p {
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}

#profile-generated-images {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.user-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 15px;
}

.user-actions .action-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.user-actions .action-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.5);
}

#logout-btn {
    background-color: #e74c3c;
}

#logout-btn:hover {
    background-color: #c0392b;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.5);
}

#change-password-btn {
    background-color: #3498db;
}

#change-password-btn:hover {
    background-color: #2980b9;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

/* Responsive styles for modals */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .submit-btn, .switch-btn {
        width: 100%;
    }
}

/* 用户评价区域 */
.testimonials-section {
    margin: 60px 0;
    overflow: hidden;
    position: relative;
}

.testimonials-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    padding: 20px 0;
}

.testimonial {
    min-width: 300px;
    max-width: 300px;
    margin: 0 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

/* 添加五星评分样式 */
.testimonial-stars {
    display: flex;
    margin-bottom: 10px;
    color: #FFD700; /* 金色星星 */
}

.testimonial-star {
    font-size: 18px;
    margin-right: 2px;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: right;
}

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

/* 参考图片样式 */
.reference-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

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

.remove-reference-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background-color 0.2s ease;
}

.remove-reference-image:hover {
    background-color: rgba(255, 0, 0, 0.8);
}

/* 调整提示输入容器样式以适应参考图片 */
.prompt-input-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* 管理员数据分析面板样式 */
.admin-panel-content {
    max-width: 90%;
    width: 1200px;
    padding: 2rem;
    margin: 5% auto;
    overflow-y: auto;
    max-height: 85vh;
}

.admin-btn {
    background-color: #2c3e50;
    color: white;
    margin-left: 10px;
}

.admin-btn:hover {
    background-color: #34495e;
}

.analytics-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.analytics-section {
    background-color: rgba(18, 36, 64, 0.4);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.analytics-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(79, 172, 254, 0.2);
    padding-bottom: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: rgba(18, 36, 64, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.traffic-chart {
    background-color: rgba(18, 36, 64, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    min-width: 100px;
    color: var(--text-color);
}

.chart-bar {
    flex: 1;
    height: 20px;
    background-color: rgba(18, 36, 64, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

.chart-value {
    min-width: 60px;
    text-align: right;
    color: var(--text-muted);
}

.user-accounts-section {
    overflow-x: auto;
}

.user-table-container {
    width: 100%;
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(79, 172, 254, 0.1);
}

.user-table th {
    background-color: rgba(18, 36, 64, 0.5);
    color: var(--primary-color);
    position: sticky;
    top: 0;
}

.user-table tr:hover {
    background-color: rgba(79, 172, 254, 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-panel-content {
        padding: 1rem;
        width: 95%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .chart-label, .chart-value {
        min-width: auto;
    }
    
    .user-table th, 
    .user-table td {
        padding: 0.7rem;
    }
}

/* 管理员按钮样式 */
.admin-btn {
    background-color: #2c3e50;
    color: white;
    margin-left: 10px;
}

.admin-btn:hover {
    background-color: #34495e;
}

/* 用户管理面板样式 */
.user-manage-content {
    max-width: 90%;
    width: 1200px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: rgba(18, 36, 64, 0.8);
    backdrop-filter: blur(10px);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: var(--text-color);
}

.user-table th, 
.user-table td {
    border: 1px solid rgba(79, 172, 254, 0.15);
    padding: 12px;
    text-align: left;
}

.user-table th {
    background-color: rgba(10, 25, 41, 0.8);
    color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.user-table tr:nth-child(even) {
    background-color: rgba(18, 36, 64, 0.4);
}

.user-table tr:nth-child(odd) {
    background-color: rgba(10, 25, 41, 0.6);
}

.user-table tr:hover {
    background-color: rgba(79, 172, 254, 0.15);
}

.reset-password-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
    font-weight: 500;
}

.reset-password-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
}

/* 导航菜单样式 */
.nav-menu {
    margin-left: 20px;
}

.menu-items {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-items li {
    margin-right: 20px;
}

.menu-item {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.menu-item:hover {
    color: var(--primary-color);
}

.menu-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.menu-item:hover:after {
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .menu-items {
        flex-wrap: wrap;
    }
    
    .menu-items li {
        margin-right: 15px;
        margin-bottom: 5px;
    }
}

/* 功能特点模态框样式 */
.features-content {
    max-width: 900px;
    padding: 3rem;
}

.features-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.features-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

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

.feature-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(18, 36, 64, 0.2);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(18, 36, 64, 0.3);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.15));
    font-size: 1.8rem;
    color: #4facfe;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #f8f9fa;
    font-weight: 600;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-content {
        padding: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
}

/* 图标动画效果 */
.animated {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.pulse {
    animation-name: pulse;
}

/* 联系方式模态框样式 */
.contact-content {
    max-width: 600px;
    padding: 3rem;
}

.contact-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    background: rgba(18, 36, 64, 0.2);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    background: rgba(18, 36, 64, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.15));
    font-size: 2rem;
    color: #4facfe;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.15);
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #f8f9fa;
    font-weight: 600;
}

.contact-email {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.copy-btn, .mail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 172, 254, 0.15);
    color: var(--text-color);
    border: 1px solid rgba(79, 172, 254, 0.3);
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-decoration: none;
}

.copy-btn:hover, .mail-btn:hover {
    background: rgba(79, 172, 254, 0.25);
    transform: translateY(-2px);
}

.copy-btn i, .mail-btn i {
    font-size: 1rem;
}

.contact-message {
    text-align: center;
    color: var(--text-muted);
    line-height: 1.6;
    background: rgba(18, 36, 64, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.contact-message p:not(:last-child) {
    margin-bottom: 0.8rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .contact-content {
        padding: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1.2rem;
    }
    
    .contact-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .copy-btn, .mail-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 评论留言模态框样式 */
.comments-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

.comments-container h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: rgba(18, 36, 64, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    animation: fade-in 0.3s ease-out;
}

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

.comment-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
    border-color: rgba(79, 172, 254, 0.3);
}

.comment-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.comment-user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
    box-shadow: 0 3px 8px rgba(79, 172, 254, 0.2);
}

.comment-user span {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 500;
    word-break: break-all;
}

.user-job {
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    background-color: rgba(79, 172, 254, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.comment-content {
    flex: 1;
}

.comment-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ffcc00;
    font-size: 1rem;
}

.comment-rating i {
    margin-right: 3px;
}

.comment-rating span {
    margin-left: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.comment-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-color);
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.new-comment {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: rgba(18, 36, 64, 0.5);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-label {
    color: var(--text-color);
    font-weight: 500;
}

.star-rating {
    display: flex;
    gap: 5px;
    color: #ffcc00;
    font-size: 1.2rem;
    cursor: pointer;
}

.star-rating i {
    transition: all 0.2s ease;
}

.star-rating i:hover {
    transform: scale(1.2);
}

#rating-text {
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    padding: 12px;
    background-color: rgba(18, 36, 64, 0.4);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.new-comment textarea {
    min-height: 120px;
    padding: 12px;
    background-color: rgba(18, 36, 64, 0.4);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
    line-height: 1.5;
}

.new-comment textarea:focus,
.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 172, 254, 0.2);
}

#submit-comment {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-end;
}

#submit-comment:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

#submit-comment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #8a8a8a 0%, #a0a0a0 100%);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .comments-content {
        width: 95%;
    }
    
    .comment-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .comment-user {
        flex-direction: row;
        width: 100%;
        gap: 15px;
        align-items: center;
    }
    
    .user-job {
        margin-top: 0;
    }
    
    .comment-time {
        text-align: left;
    }
    
    .rating-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* 隐私政策模态框样式 */
.privacy-content {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}

.privacy-title {
    color: var(--text-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-last-updated {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-style: italic;
}

.privacy-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.privacy-section {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(79, 172, 254, 0.15);
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.privacy-section h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    margin-right: 10px;
    border-radius: 3px;
}

.privacy-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.privacy-section strong {
    color: var(--text-color);
    font-weight: 600;
}

.privacy-section ul {
    list-style-type: none;
    padding-left: 10px;
}

.privacy-section li {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.privacy-section li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 20px;
    }
    
    .privacy-section h3 {
        font-size: 1.1rem;
    }
    
    .privacy-section p,
    .privacy-section li {
        font-size: 0.95rem;
    }
}

/* 服务条款模态框样式 */
.terms-content {
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
}

.terms-title {
    color: var(--text-color);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-last-updated {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-style: italic;
}

.terms-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.terms-section {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(79, 172, 254, 0.15);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.terms-section h3::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    margin-right: 10px;
    border-radius: 3px;
}

.terms-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.terms-section strong {
    color: var(--text-color);
    font-weight: 600;
}

.terms-section ul {
    list-style-type: none;
    padding-left: 10px;
}

.terms-section li {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.terms-section li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .terms-content {
        padding: 20px;
    }
    
    .terms-section h3 {
        font-size: 1.1rem;
    }
    
    .terms-section p,
    .terms-section li {
        font-size: 0.95rem;
    }
}

/* Add styles for the login-to-comment section */
.login-to-comment {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.login-to-comment p {
    font-size: 16px;
    color: #555;
}

.login-link {
    background: none;
    border: none;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

.login-link:hover {
    color: #0056b3;
}

/* 原图查看模态框样式 */
.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.original-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    overflow: auto;
    max-height: 70vh;
}

.original-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.download-image-btn {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
}

.download-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.3);
}

@media (max-width: 768px) {
    .image-modal-content {
        width: 95%;
        padding: 0.5rem;
    }
    
    .original-image-container {
        max-height: 60vh;
    }
    
    .download-image-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* 图片加载状态 */
.loading-item {
    position: relative;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.loading-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, 
        transparent, 
        rgba(79, 172, 254, 0.15), 
        rgba(79, 172, 254, 0.2), 
        rgba(79, 172, 254, 0.15), 
        transparent);
    animation: loading-shine 1.8s infinite ease-in-out;
}

.loading-item::after {
    content: attr(data-wait-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0.7;
    white-space: nowrap;
}

@keyframes loading-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 确保结果图片淡入效果 */
.result-img {
    transition: opacity 0.3s ease-in-out;
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
} 