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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 70px; /* Add padding for fixed navbar */
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #764ba2;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #667eea;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

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

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3); }
    to { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.5); }
}

.subtitle {
    font-size: 1.5rem;
    color: #f0f8ff;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 60px;
}

/* Hero Styles Section */
.hero-styles-section {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-styles-section .styles-header {
    margin-bottom: 40px;
}

.hero-styles-section .styles-title-section {
    text-align: center;
}

.hero-styles-section .styles-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-styles-section h2 {
    color: #fff;
    font-size: 2.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-styles-section .styles-subtitle {
    color: #fff;
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-styles-section .styles-scroll-container {
    position: relative;
    overflow: visible;
    margin: 0 -20px;
    padding: 0 20px;
}

.hero-styles-section .styles-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    /* 确保可以滚动 */
    white-space: nowrap;
    width: 100%;
}

.hero-styles-section .styles-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.hero-styles-section .styles-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 157, 0.5);
    border-radius: 4px;
}

.hero-styles-section .styles-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 157, 0.8);
}

.hero-styles-section .styles-grid {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 0 10px;
    /* 确保flex项目不会换行 */
    flex-wrap: nowrap;
    /* 确保内容可以横向扩展 */
    width: max-content;
}

.hero-styles-section .style-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-styles-section .style-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 157, 0.5);
}

.hero-styles-section .style-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hero-styles-section .style-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-styles-section .style-card:hover .style-image img {
    transform: scale(1.05);
}

.hero-styles-section .style-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.8), rgba(196, 69, 105, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-styles-section .style-card:hover .style-overlay {
    opacity: 1;
}

.hero-styles-section .try-style-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-styles-section .try-style-btn:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-styles-section .style-info {
    padding: 20px;
    text-align: center;
}

.hero-styles-section .style-name {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.hero-styles-section .style-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* 添加滚动指示器 */
.hero-styles-section .scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-styles-section .scroll-indicator:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-styles-section .scroll-left {
    left: 10px;
}

.hero-styles-section .scroll-right {
    right: 10px;
}

.hero-styles-section .scroll-indicator svg {
    width: 20px;
    height: 20px;
    fill: #c44569;
}

/* 自动滚动动画 */
@keyframes autoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.hero-styles-section .auto-scroll {
    animation: autoScroll 30s linear infinite;
}

/* Main Content */
.main-content {
    background: #fff;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Generator Section */
.generator-section {
    padding: 40px;
    background: linear-gradient(145deg, #f8f9ff 0%, #e8f4fd 100%);
    border-bottom: 1px solid #e0e7ff;
}

/* Styles Showcase Section */
.styles-showcase-section {
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e7ff;
}

/* Styles Header */
.styles-header {
    margin-bottom: 40px;
}

.styles-title-section {
    text-align: center;
}

.styles-label {
    display: block;
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.styles-showcase-container h2 {
    color: #2d3436;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.styles-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Styles Scroll Container */
.styles-scroll-container {
    position: relative;
    overflow: hidden;
    margin: 0 -20px;
    padding: 0 20px;
}

.styles-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 0;
}

.styles-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Styles Grid - Horizontal Layout */
.styles-grid {
    display: flex;
    gap: 20px;
    min-width: max-content;
    padding: 0 10px;
}

/* Style Card */
.style-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    flex: 0 0 280px; /* Fixed width for horizontal scroll */
    min-height: 320px;
}

.style-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.style-card:hover .style-overlay {
    opacity: 1;
}

/* Style Image */
.style-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

/* Style Overlay */
.style-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,157,0.9) 0%, rgba(196,69,105,0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Try Style Button */
.try-style-btn {
    background: white;
    color: #c44569;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.try-style-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Style Info */
.style-info {
    padding: 15px 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
}

.style-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.style-description {
    display: none; /* Hide description for cleaner look */
}

.generator-container h2 {
    text-align: center;
    color: #4c1d95;
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
}

.generator-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.input-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e7ff;
    transition: border-color 0.3s ease;
}

.input-container:focus-within {
    border-color: #667eea;
}

#promptInput {
    width: 100%;
    min-height: 120px;
    border: none;
    outline: none;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    color: #333;
}

#promptInput::placeholder {
    color: #9ca3af;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 15px;
}

.char-count {
    color: #6b7280;
    font-size: 0.9rem;
}

.generate-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.generate-btn {
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 140px;
    justify-content: center;
}

.labubu-btn {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
}

.labubu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.ghibli-btn {
    background: linear-gradient(145deg, #10b981 0%, #059669 100%);
}

.ghibli-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

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

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

.usage-info {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 0.9rem;
}

.usage-info span {
    font-weight: 600;
    color: #4c1d95;
}

/* Result Section */
.result-section {
    padding: 40px;
}

.image-result {
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

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

.image-result h3 {
    color: #4c1d95;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.image-container {
    position: relative;
    display: inline-block;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #f8f9ff;
    padding: 20px;
}

#generatedImage {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Image Actions */
.image-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.save-btn {
    background: linear-gradient(145deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.download-btn {
    margin-top: 0;
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

/* Saved Images Section */
.saved-images-section {
    padding: 60px 40px;
    background: linear-gradient(145deg, #faf5ff 0%, #f3e8ff 100%);
    border-top: 1px solid #e9d5ff;
}

.saved-images-container h2 {
    text-align: center;
    color: #4c1d95;
    font-size: 2.2rem;
    margin-bottom: 30px;
    position: relative;
}

.saved-images-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
    border-radius: 2px;
}

.saved-images-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.clear-saved-btn {
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-saved-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.saved-count {
    color: #6b21a8;
    font-weight: 600;
    font-size: 1rem;
}

.saved-count span {
    color: #8b5cf6;
    font-weight: 700;
}

.saved-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.saved-image-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.saved-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #8b5cf6;
}

.saved-image-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

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

.saved-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.saved-image-card:hover .saved-image-overlay {
    opacity: 1;
}

.saved-image-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-saved {
    background: linear-gradient(145deg, #059669 0%, #047857 100%);
    color: white;
}

.download-saved:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(5, 150, 105, 0.4);
}

.delete-saved {
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.delete-saved:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

.saved-image-info {
    padding: 15px;
}

.saved-image-prompt {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 500;
}

.saved-image-date {
    color: #6b7280;
    font-size: 0.8rem;
}

.no-saved-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.1rem;
}

.no-saved-images p {
    margin: 0;
}

.hidden {
    display: none;
}

/* Features Section */
.features-section {
    padding: 60px 40px;
    background: linear-gradient(145deg, #f8f9ff 0%, #e8f4fd 100%);
}

.features-section h2 {
    text-align: center;
    color: #4c1d95;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    color: #4c1d95;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 60px 40px;
    background: white;
}

.about-section h2 {
    text-align: center;
    color: #4c1d95;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

/* Tips Section */
.tips-section {
    padding: 60px 40px;
    background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 100%);
}

.tips-section h2 {
    text-align: center;
    color: #4c1d95;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.tip-card {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tip-card h4 {
    color: #4c1d95;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.tip-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 60px 40px;
    background: white;
}

.faq-section h2 {
    text-align: center;
    color: #4c1d95;
    font-size: 2.2rem;
    margin-bottom: 50px;
}

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

.faq-item {
    background: #f8f9ff;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e7ff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: #f0f4ff;
    border-color: #c7d2fe;
}

.faq-item h4 {
    color: #4c1d95;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: #374151;
    line-height: 1.7;
}

/* Footer */
.footer {
    background: linear-gradient(145deg, #4c1d95 0%, #5b21b6 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: #c7d2fe;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0 60px;
    }
    
    .hero-styles-section {
        margin-top: 40px;
        padding: 30px 15px;
    }
    
    .hero-styles-section h2 {
        font-size: 2rem;
    }
    
    .hero-styles-section .styles-subtitle {
        font-size: 1rem;
    }
    
    .hero-styles-section .styles-grid {
        gap: 15px;
    }
    
    .hero-styles-section .style-card {
        flex: 0 0 250px;
    }
    
    .hero-styles-section .style-image {
        height: 180px;
    }
    
    .generator-section,
    .result-section,
    .features-section,
    .about-section,
    .tips-section,
    .faq-section,
    .saved-images-section {
        padding: 30px 20px;
    }
    
    .features-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .saved-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .saved-images-controls {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .image-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .save-btn,
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Navigation responsive */
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
    }
    
    /* Styles showcase responsive */
    .styles-showcase-section {
        padding: 40px 20px;
    }
    
    .styles-scroll-container {
        margin: 0 -15px;
        padding: 0 15px;
    }
    
    .style-card {
        flex: 0 0 250px;
        min-height: 280px;
    }
    
    .style-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 30px 0 50px;
    }
    
    .hero-styles-section {
        margin-top: 30px;
        padding: 25px 15px;
    }
    
    .hero-styles-section h2 {
        font-size: 1.8rem;
    }
    
    .hero-styles-section .styles-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-styles-section .style-card {
        flex: 0 0 220px;
    }
    
    .hero-styles-section .style-image {
        height: 160px;
    }
    
    .hero-styles-section .style-info {
        padding: 15px;
    }
    
    .hero-styles-section .style-name {
        font-size: 1.1rem;
    }
    
    .hero-styles-section .style-description {
        font-size: 0.8rem;
    }
    
    .input-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .generate-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .generate-btn {
        width: 100%;
        min-width: auto;
        justify-content: center;
    }
    
    .saved-images-grid {
        grid-template-columns: 1fr;
    }
    
    .saved-image-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
    }
    
    .saved-image-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Navigation responsive for small screens */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li a {
        font-size: 0.85rem;
    }
    
    /* Styles showcase responsive for small screens */
    .styles-showcase-section {
        padding: 30px 15px;
    }
    
    .styles-showcase-container h2 {
        font-size: 1.8rem;
    }
    
    .styles-subtitle {
        font-size: 1rem;
    }
    
    .styles-scroll-container {
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .style-card {
        flex: 0 0 220px;
        min-height: 260px;
    }
    
    .style-image {
        height: 160px;
    }
    
    .style-info {
        padding: 12px 15px;
    }
    
    .style-name {
        font-size: 1rem;
    }
}

/* Loading States */
.loading .btn-text {
    display: none;
}

.loading .btn-loader {
    display: inline-block;
}

/* Error States */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

/* Loading Animation for Style Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.style-card {
    animation: fadeInUp 0.6s ease forwards;
}

.style-card:nth-child(1) { animation-delay: 0.1s; }
.style-card:nth-child(2) { animation-delay: 0.2s; }
.style-card:nth-child(3) { animation-delay: 0.3s; }
.style-card:nth-child(4) { animation-delay: 0.4s; }
.style-card:nth-child(5) { animation-delay: 0.5s; }
.style-card:nth-child(6) { animation-delay: 0.6s; }
.style-card:nth-child(7) { animation-delay: 0.7s; }
.style-card:nth-child(8) { animation-delay: 0.8s; }
.style-card:nth-child(9) { animation-delay: 0.9s; }
.style-card:nth-child(10) { animation-delay: 1.0s; }
.style-card:nth-child(11) { animation-delay: 1.1s; }
.style-card:nth-child(12) { animation-delay: 1.2s; }

/* Scroll Indicators */
.styles-scroll-container::before,
.styles-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
}

.styles-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
}

.styles-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(248, 249, 250, 1) 0%, rgba(248, 249, 250, 0) 100%);
}

/* Progress Messages */
.progress-message {
    background: linear-gradient(145deg, #e0f2fe 0%, #b3e5fc 100%);
    border: 1px solid #29b6f6;
    color: #0277bd;
    padding: 12px 20px;
    border-radius: 25px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(41, 182, 246, 0.2);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* Success States */
.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}