body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    font-family: 'STKaiti', 'KaiTi', serif;
    position: relative;
    min-height: 100vh;
    color: #e0d6b9;
}

/* Mythic Cloud Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
    z-index: -1;
   
}

    /* Mythic Theme Colors */
    .mythic-gold { color: #daa520; } /* Gold */
    .mythic-red { color: #8b0000; } /* Dark Red */
    .mythic-purple { color: #9932cc; } /* Purple */
    .mythic-blue { color: #4169e1; } /* Royal Blue */

    .carousel-section {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(218, 165, 32, 0.2) 100%);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(139, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
        border: 1px solid #daa520;
    }

    /* Dragon Decorative Element */
    .carousel-section::before,
    .form-section::before,
    #customize-section::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20 50 Q 30 30, 50 40 Q 70 50, 80 30 Q 90 40, 80 60 Q 70 80, 50 70 Q 30 60, 20 70 Z' fill='none' stroke='%23daa520' stroke-width='1.5'/%3E%3Cpath d='M70 20 Q 80 10, 90 20 Q 85 30, 75 30 Q 65 30, 70 20 Z' fill='none' stroke='%23daa520' stroke-width='1'/%3E%3C/svg%3E");
    }
    
    .carousel-item {
        position: relative;
        padding-top: 177.78%; /* 9:16 Ratio (16/9 = 177.78%) */
        background-color: #0a0a1a;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M20 100 Q 40 60, 70 80 Q 100 100, 130 60 Q 150 80, 140 120 Q 110 140, 80 130 Q 50 120, 20 140 Z' fill='none' stroke='%23daa520' stroke-width='1' stroke-opacity='0.3'/%3E%3Cpath d='M150 50 Q 170 30, 190 50 Q 180 70, 160 70 Q 140 70, 150 50 Z' fill='none' stroke='%23daa520' stroke-width='1' stroke-opacity='0.3'/%3E%3Ccircle cx='60' cy='60' r='10' fill='none' stroke='%23daa520' stroke-width='0.8' stroke-opacity='0.3'/%3E%3C/svg%3E");
        background-size: 150px 150px;
        background-position: center;
        background-repeat: repeat;
    }

    .carousel-item img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        height: 100%;
        width: auto;
        object-fit: contain;
    }

    .form-section {
        padding: 2rem 0;
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(218, 165, 32, 0.15) 100%);
        border-radius: 15px;
        margin: 2rem 0;
        box-shadow: 0 4px 8px rgba(139, 0, 0, 0.2);
        position: relative;
        overflow: hidden;
        border: 1px solid #8b0000;
    }

    /* Phoenix Decorative Element */
    .form-section::before {
        content: "";
        position: absolute;
        bottom: -20px;
        left: -20px;
        width: 100px;
        height: 100px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 70 Q 50 30, 70 70 Q 50 50, 30 70 Z' fill='none' stroke='%23daa520' stroke-width='1'/%3E%3Ccircle cx='50' cy='40' r='8' fill='%238b0000'/%3E%3C/svg%3E");
        background-size: contain;
        opacity: 0.3;
        transform: rotate(-10deg);
    }

    .form-section h2 {
        color: #daa520;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.7);
        font-family: 'STKaiti', 'KaiTi', serif;
    }

    .wallpaper-nav {
        padding: 1rem 0;
    }
    
    /* Add new wallpaper card styles */
    .wallpaper-card {
        aspect-ratio: 9/16; /* 9:16 Ratio */
        position: relative;
        overflow: hidden;
        border: 1px solid #8b0000;
    }
    
    .wallpaper-card img {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 50 Q 20 30, 35 40 Q 50 50, 65 30 Q 75 40, 70 60 Q 55 80, 40 70 Q 25 60, 10 70 Z' fill='none' stroke='%23daa520' stroke-width='0.8' stroke-opacity='0.2'/%3E%3Cpath d='M70 20 Q 80 10, 90 20 Q 85 30, 75 30 Q 65 30, 70 20 Z' fill='none' stroke='%23daa520' stroke-width='0.6' stroke-opacity='0.2'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23daa520' fill-opacity='0.2'/%3E%3C/svg%3E");
    }
    
    .wallpaper-card .card-body {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.85);
        padding: 5px;
        border-top: 1px solid #daa520;
    }

    .nav-tabs .nav-link {
        color: #daa520;
        border: 1px solid transparent;
        border-bottom: 3px solid transparent;
        position: relative;
        font-family: 'STKaiti', 'KaiTi', serif;
    }

    .nav-tabs .nav-link::after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #8b0000, #daa520);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .nav-tabs .nav-link.active {
        color: #ffffff;
        background-color: rgba(139, 0, 0, 0.3);
        border-color: #8b0000;
        border-bottom: 3px solid #daa520;
        font-weight: bold;
    }

    .nav-tabs .nav-link.active::after {
        opacity: 1;
    }

    .nav-tabs .nav-link:hover {
        border-color: #daa520;
        color: #ffffff;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: rgba(139, 0, 0, 0.6);
        border-radius: 50%;
        padding: 10px;
        border: 1px solid #daa520;
    }

    .carousel-indicators button {
        background-color: #daa520;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 1px solid #8b0000;
    }

    .carousel-indicators .active {
        background-color: #8b0000;
        border: 1px solid #daa520;
    }

    /* Custom Wallpaper Area */
    #customize-section {
        background: linear-gradient(135deg, rgba(139, 0, 0, 0.2) 0%, rgba(218, 165, 32, 0.2) 100%);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
        position: relative;
        overflow: hidden;
        border: 1px solid #daa520;
    }

    /* Dragon Decorative Element */
    

    #customize-section h3 {
        color: #daa520;
        font-weight: bold;
        text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.7);
        font-family: 'STKaiti', 'KaiTi', serif;
    }

    .ratio-container {
        background: rgba(10, 10, 26, 0.8);
        border-radius: 10px;
        padding: 15px;
        border: 1px solid rgba(139, 0, 0, 0.5);
    }

    .border-secondary {
        border-color: #daa520 !important;
    }

    .card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        border: 1px solid rgba(139, 0, 0, 0.4);
        border-radius: 8px;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(10, 10, 26, 0.9) 0%, rgba(26, 10, 31, 0.9) 100%);
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(139, 0, 0, 0.4);
        border-color: #daa520;
    }

    .card-img-top {
        height: 95%;
        object-fit: cover;
    }

    .btn-outline-primary {
        border-color: #8b0000;
        color: #daa520;
    }

    .btn-outline-primary:hover {
        background: linear-gradient(135deg, #8b0000, #4169e1);
        border-color: #4169e1;
        color: white;
    }

    .btn-success {
        background: linear-gradient(135deg, #8b0000, #4169e1);
        border-color: #4169e1;
        color: white;
    }

    .btn-success:hover {
        background: linear-gradient(135deg, #4169e1, #9932cc);
        border-color: #9932cc;
    }

    .form-control {
        border: 1px solid #daa520;
        background-color: rgba(10, 10, 26, 0.8);
        color: #e0d6b9;
    }

    .form-control:focus {
        border-color: #8b0000;
        box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
    }

    .btn-primary {
        background: linear-gradient(135deg, #8b0000, #daa520);
        border-color: #8b0000;
        color: white;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #4169e1, #9932cc);
        border-color: #4169e1;
    }

    footer {
        background: linear-gradient(to right, #8b0000, #4169e1, #daa520);
        color: white;
        padding: 20px 0;
        margin-top: 40px;
        border-radius: 10px 10px 0 0;
        position: relative;
        font-family: 'STKaiti', 'KaiTi', serif;
    }
    
    /* Adjust custom wallpaper area height alignment */
    .customize-content-wrapper {
        display: flex;
        height: 100%;
        min-height: 400px;
    }
    
    .wallpaper-list-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .wallpaper-scroll-area {
        flex: 1;
        overflow-y: auto;
    }
    
    .customize-form-container {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    #new-customize-form {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .form-fields-container {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .form-fields-content {
        flex: 1;
    }
    
    .form-submit-container {
        margin-top: auto;
    }

    /* Phoenix Decorative Element */
    footer::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 70 Q 50 30, 70 70 Q 50 50, 30 70 Z' fill='%23daa520' stroke='none'/%3E%3Cpath d='M20 50 Q 30 30, 50 40 Q 70 50, 80 30 Q 90 40, 80 60 Q 70 80, 50 70 Q 30 60, 20 70 Z' fill='none' stroke='%23daa520' stroke-width='1.5'/%3E%3C/svg%3E");
    }

    /* Mythic Element Tags */
    .element-tag {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 10px;
        font-size: 0.75rem;
        margin-left: 5px;
        font-family: 'STKaiti', 'KaiTi', serif;
    }

    .element-wood { background-color: rgba(94, 140, 106, 0.3); color: #5e8c6a; }
    .element-fire { background-color: rgba(139, 0, 0, 0.3); color: #ff6347; }
    .element-earth { background-color: rgba(218, 165, 32, 0.3); color: #daa520; }
    .element-metal { background-color: rgba(169, 183, 198, 0.3); color: #c0c0c0; }
    .element-water { background-color: rgba(65, 105, 225, 0.3); color: #4169e1; }
    
    /* Add Chinese calligraphy style */
    h1, h2, h3, h4, h5, h6 {
        font-family: 'STKaiti', 'KaiTi', serif;
        letter-spacing: 1px;
    }
    
    .calligraphy {
        font-family: 'STKaiti', 'KaiTi', serif;
    }