
/* 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;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    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);
    width: 100%;
    max-width: 135px;
    text-align: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.switch-btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 135px;
    text-align: center;
}

.switch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.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);
}

/* 响应式调整 */
@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;
    top: 5%;
}

.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;
}
/* 图标动画效果 */
.animated {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.pulse {
    animation-name: pulse;
}

/* 联系方式模态框样式 */
.contact-content {
    max-width: 600px;
    padding: 1rem;
    top: 15%;
}

.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;
}


.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%);
}


/* 隐私政策模态框样式 */
.privacy-content {
    max-width: 850px;
    max-height: 400vh;
    overflow-y: auto;
    padding: 30px;
    font-size: 1.2rem;
    top: 5%;
}

.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;
}



/* 服务条款模态框样式 */
.terms-content {
    max-width: 850px;
    max-height: 400vh;
    overflow-y: auto;
    padding: 30px;
    font-size: 1.2rem;
    top: 5%;
}

.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;
    }
}

/* 原图查看模态框样式 */
.image-modal-content {
    max-width: 54%; /* 原来是90%，乘以0.6 */
    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);
}

