:root {
    --primary-color: #28a745;
    --primary-hover: #218838;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #000 !important;
}

.navbar-brand i {
    color: var(--primary-color);
    margin-right: 8px;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #000 !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.hero-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
}

.hero-banner a {
    color: white;
    text-decoration: none;
}

.hero-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #000;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-highlight {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-highlight i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* AI Transformation Showcase Styling */
.transformation-showcase {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.image-container {
    position: relative;
    display: inline-block;
}

.image-container .showcase-image {
    width: 100%;
    max-width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.ai-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.ai-badge i {
    font-size: 0.9rem;
}

.prompt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.prompt-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border: 2px solid #e1f5fe;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    max-width: 280px;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.prompt-box em {
    font-style: italic;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.arrow-icon {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mobile responsiveness for transformation showcase */
@media (max-width: 768px) {
    .transformation-showcase {
        padding: 1.5rem;
    }
    
    .image-container .showcase-image {
        max-width: 200px;
        height: 200px;
    }
    
    .prompt-box {
        max-width: 200px;
        padding: 1rem;
    }
    
    .prompt-box em {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .transformation-showcase {
        padding: 1rem;
    }
    
    .image-container .showcase-image {
        max-width: 150px;
        height: 150px;
    }
    
    .prompt-box {
        max-width: 150px;
        padding: 0.8rem;
    }
    
    .prompt-box em {
        font-size: 0.8rem;
    }
    
    .ai-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .watermark {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* Keywords Section Styling */
.keywords-section {
    margin: 2rem 0;
}

.keywords-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.keyword-item {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.keyword-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #000;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(40, 167, 69, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(40, 167, 69, 0.1);
}

.upload-icon {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.output-placeholder {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    background-color: #f8f9fa;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.showcase-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.showcase-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-brand {
    font-weight: bold;
    font-size: 1.25rem;
    color: #000;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--primary-color);
    margin-right: 8px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000;
}

.badge-custom {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Tab styling */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: var(--primary-color);
    background-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.nav-tabs .nav-link i {
    margin-right: 6px;
}

/* FAQ Section Styling */
.accordion .card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.accordion .card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.accordion .card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
    padding: 0;
}

.accordion .card-header:first-child {
    border-radius: 8px 8px 0 0;
}

.accordion .btn-link {
    color: #333;
    text-decoration: none;
    padding: 20px;
    font-size: 1rem;
    border: none;
    background: none;
    width: 100%;
}

.accordion .btn-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.accordion .btn-link:focus {
    box-shadow: none;
    text-decoration: none;
}

.accordion .btn-link i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion .btn-link[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.accordion .card-body {
    padding: 20px;
    color: var(--text-muted);
    line-height: 1.6;
}

.accordion .card:not(:last-child) {
    margin-bottom: 15px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top.show {
    display: flex;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .feature-highlights {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

/* Mobile H5 specific styles */
@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* 为H5页面按钮添加间距 */
    .d-flex.flex-column .btn-lg:first-child {
        margin-bottom: 15px;
    }
    
    .d-flex.flex-column .btn-lg:last-child {
        margin-top: 0;
    }
    
    /* 确保按钮容器有适当的间距 */
    .d-flex.flex-column.flex-sm-row {
        gap: 15px;
    }
    
    .d-flex.flex-column.flex-sm-row .btn-lg {
        margin-bottom: 0;
    }
    
    .feature-highlights {
        margin-top: 2rem;
        gap: 0.8rem;
    }
    
    .feature-highlight {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.8rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 1.5rem 1rem;
    }
    
    .upload-icon {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .form-control {
        font-size: 0.9rem;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .accordion .btn-link {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .accordion .card-body {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0 10px;
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .showcase-image {
        height: 200px;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
    
    /* Keywords Section Mobile Styles */
    .keywords-container {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .keyword-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}