:root {
    --primary-purple: #4a0000; /* Deep Red to match background */
    --accent-gold: #f4c56e;
    --text-gold: #e8c987;
    --bg-content: #1a0000;
    --red-badge: #d92424;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #121212; /* Dark background for desktop */
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.app-container {
    background-image: url('background.jpg');
    background-size: cover; /* Fixes pixelation/stretching */
    background-position: center top;
    background-attachment: scroll; /* Better behavior on mobile */
    background-repeat: no-repeat;
    width: 100%;
    max-width: 430px; /* Increased to fit iPhone 14 Pro Max width */
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    overflow-x: hidden;
}

.main-header {
    padding: 20px 0;
    text-align: center;
    /* Transparent or subtle gradient to let background show through */
    background: linear-gradient(to bottom, rgba(74, 0, 0, 0.9) 0%, rgba(74, 0, 0, 0.4) 100%);
}

.site-title {
    color: var(--text-gold);
    margin: 0;
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'KaiTi', 'SimKai', serif;
}

.banner-container {
    margin: 15px auto;
    width: 90%;
    border: 2px solid var(--accent-gold);
    border-radius: 15px;
   
    background: linear-gradient(to bottom, #660000, #330000); /* Red gradient */
    box-shadow: 0 0 10px rgba(244, 197, 110, 0.5);
    box-sizing: border-box;
}

.banner-content {
    border: 1px solid rgba(244, 197, 110, 0.3);
    border-radius: 10px;
   padding: 5px;
}



.mySwiper {
    width: 100%;
    height: auto;
    
    border-radius: 10px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination-bullet-active {
    background: var(--accent-gold) !important;
}

/* Section Header */
.section-divider {
    text-align: center;
    padding-bottom: 20px;
}

.section-title {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin: 10px 0;
    text-shadow: 0 2px 2px rgba(0,0,0,0.5);
}

.guarantee-badge {
    background-color: var(--red-badge);
    color: white;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Updated Grid Container - Red Theme */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* Reduced gap */
    padding: 15px; /* Reduced padding */
    margin: 10px 15px;
    
    /* Reddish gradient wrapping */
    background: linear-gradient(to right, rgba(100, 0, 0, 0.6), rgba(50, 0, 0, 0.6));
    border: 1.5px solid var(--accent-gold);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

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

.app-link {
    display: block;
    width: 100%;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.app-link:hover {
    transform: scale(1.05);
}

.app-icon {
    width: 95%;
    aspect-ratio: 1 / 1;
    border-radius: 15px;
    display: block;
    object-fit: cover;
}

.item-name {
    font-size: 0.75rem;
    color: white;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
