/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 60px;
    background-color: #000000;
}

/* Page Container */
.page-container {
    max-width: 768px;
    margin: 0 auto;
    position: relative;
    background-color: #ffffff;
    min-height: 100%;
    padding-bottom: 70px;
}

.header {
    position: relative;
    width: 100%;
    height: 400px;
    max-height: 30vh;
    overflow: hidden;
}

/* header swiper */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-bg.slide1 {
    background: linear-gradient(135deg, #2d5a27 0%, #2d5a27 60%, #1e88e5 60%, #1e88e5 100%);
}

.slide-bg.slide2 {
    background: linear-gradient(135deg, #1b5e20 0%, #388e3c 50%, #1976d2 100%);
}

.slide-bg.slide3 {
    background: linear-gradient(135deg, #4e342e 0%, #6d4c41 50%, #5d4037 100%);
}

.swiper-pagination {
    bottom: 45px !important;
}

.swiper-pagination-bullet {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.4);
    background-color: #000000 !important;
    transition: all 0.3s !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    width: 16px !important;
    border-radius: 3px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    background-color: #ffffff !important;
    transform: none !important;
}



.header-text {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    z-index: 10;
}

.header-text-top {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.header-text-bottom {
    font-size: 12px;
    font-size: 18px;
    opacity: 0.7;
}


/* Top NavIcon */

.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.nav-item a {
    display: block;
    text-decoration: none;
    text-align: center;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    border-radius: 8px;
}

.nav-icon img {
    width: 60px;
    height: 60px;
}

.nav-icon svg {
    display: none;
}



.nav-icon.product {
    background-color: #e8f5e9;
}

.nav-icon.product svg {
    width: 22px;
    height: 22px;
    fill: #4caf50;
}

.nav-icon.new {
    background-color: #e3f2fd;
    position: relative;
}

.nav-icon.new .new-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-icon.new svg {
    width: 22px;
    height: 22px;
    fill: #1e88e5;
}

.nav-icon.custom {
    background-image: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.nav-icon.custom svg {
    width: 22px;
    height: 22px;
    /* fill: url(#gradient-icon); */
}

.nav-icon.lib {
    background-color: #e8f5e9;
}

.nav-icon.lib svg {
    width: 22px;
    height: 22px;
    fill: #4caf50;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 768px;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item.active .nav-icon-bottom {
    fill: #cf3100;
}

.bottom-nav-item.active .nav-text-bottom {
    color: #cf3100;
    font-size: 13px;
    margin-bottom: 0px;
}



.nav-icon-bottom {
    width: 24px;
    height: 24px;
    fill: #999;
    transition: fill 0.3s;
}

.nav-text-bottom {
    font-size: 12px;
    color: #999;
    transition: color 0.3s;
    margin-bottom: 2px;
    width: 60px;
    text-align: center;
}

/* Float Button */
.float-btn {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
    cursor: pointer;
    background-color: #5d4037;
    bottom: 80px;
    left: 50%;
    transform: translateX(calc(-50% + 370px));
}

.float-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
}


.float-btn {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
    cursor: pointer;
    transition: transform 0.2s;
    left: 50%;
    transform: translateX(calc(-50% + 370px));
}

.float-btn:hover {
    transform: translateX(calc(-50% + 370px)) scale(1.05);
}

.float-btn.chat {
    bottom: 100px;
    background: linear-gradient(135deg, #1e88e5, #4caf50);
}

.float-btn.chat svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.float-btn.top {
    bottom: 160px;
    background: linear-gradient(135deg, #4caf50, #1e88e5);
}

.float-btn.top svg {
    width: 22px;
    height: 22px;
    fill: white;
}


/* 授权备案信息 */
.copyright {
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 12px 0;
}

.copyright {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 768px;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: space-around;
    padding: 2px 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.copyright p {
    margin: 0 10px;
}

@media screen and (min-width: 769px) {
    .page-container {
        padding-bottom: 110px;
    }

    .bottom-nav {
        bottom: 20px !important;
    }

    .copyright {
        right: 20px !important;
    }
}

@media screen and (max-width: 768px) {
    .copyright {
        display: none;
    }
}