/* 平板电脑适配 */
@media screen and (max-width: 1024px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }
    
    header {
        position: relative;
        width: 100%;
        padding: 15px 20px;
        z-index: 1000;
        background-color: #f1d0d0;
    }
    
    .hamburger {
        display: flex !important;
        z-index: 1001;
        padding: 8px;
        background: rgba(255,255,255,0.1);
        border-radius: 6px;
        transition: all 0.3s ease;
    }
    
    .hamburger:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .hamburger span {
        width: 22px;
        height: 2px;
        background-color: #444;
        transition: all 0.3s ease;
    }
    
    .hamburger.active {
        background: rgba(255,255,255,0.2);
    }
    
    header nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background-color: #f8e4e4;
        flex-direction: column;
        align-items: center;
        gap: 0;
        z-index: 1000;
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        border-top: 1px solid rgba(0,0,0,0.05);
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    header nav.active {
        display: flex !important;
        transform: translateY(0);
        opacity: 1;
    }
    
    header nav a {
        font-size: 16px;
        padding: 14px;
        width: 100%;
        text-align: center;
        color: #333;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: all 0.3s ease;
        background: transparent;
    }
    
    header nav a:hover {
        background: rgba(244,159,182,0.1);
        color: #f49fb6;
    }
    
    header nav a:last-child {
        border-bottom: none;
    }
    
    .main_box > div {
        flex: 0 0 calc(50% - 15px);
        max-width: 100%;
        width: 100%;
    }
    
    .main_box img {
        width: 100%;
        max-width: 400px;
    }
    
    /* Cart页面适配 */
    .main_wall .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        position: relative;
        padding: 20px;
    }
    
    .main_wall .item-info {
        width: 100%;
        display: flex;
        gap: 15px;
        align-items: center;
    }
    
    .main_wall .item-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 15px;
        border-top: 1px solid #f4d2d2;
    }
    
    .main_wall .delete {
        position: absolute;
        top: 15px;
        right: 15px;
    }

 
    .banner_box {
        width: 500px;
        height: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    main .main_top {
        flex-direction: column;
    }
    
    main .main_top .main_top_left {
        width: 100%;
    }
    
    main .main_top .main_top_right {
        width: 100%;
        margin-top: 30px;
    }
    
    main .icon_box {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    main .icon_box div {
        flex: 0 0 calc(50% - 10px);
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 20px;
        gap: 15px;
    }
    
    main .icon_box div img {
        width: 40px;
        height: 40px;
    }
    
    .banner .box {
        height: 400px;
        overflow: hidden;
        position: relative;
    }
    
    .banner .list {
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        width: 300%;
        display: flex;
        transition: transform 0.5s;
    }
    
    .banner .list li {
        height: 100%;
        width: 33.333%;
        flex-shrink: 0;
    }
    
    .banner .list img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .banner .btn {
        margin-top: -25px;
    }
    
    /* About页面适配 */
    main h1 {
        font-size: 36px;
    }
    
    .welcome {
        font-size: 20px;
        margin-bottom: 40px;
    }
    
    section {
        gap: 30px;
        margin-bottom: 60px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    /* Locations页面适配 */
    .product-detail {
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 手机适配 */
@media screen and (max-width: 768px) {
    /* 保持原有的其他页面样式 */
    
    .banner .box {
        height: 200px;
        border-radius: 12px;
    }
    
    .banner img {
        object-fit: cover;
        height: 200px;
    }
    
    .main_box {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .main_box > div {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .main_box img {
        width: 90%;
        max-width: 350px;
        margin-bottom: 15px;
    }
    
    .main_box p {
        margin-top: 0;
        font-size: 16px;
    }
    
    /* Cart页面适配 */
    .main_wall .item-info img {
        width: 80px;
        height: 80px;
    }
    
    .main_wall .item-details h5 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .main_wall .item-details p {
        font-size: 14px;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
    }


    
    .banner_box {
        width: 90%;
        top: 50%;
    }
    
    main .main_top .main_top_left .inpt1 {
        flex-direction: column;
        height: auto;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    main .main_top .main_top_left input {
        margin-bottom: 15px;
    }
    
    main .main_top .main_top_left .inpt1 input {
        width: 100%;
        margin-bottom: 0;
    }
    
    main .main_top .main_top_left textarea {
        margin-top: 0;
    }
    
    main .icon_box {
        flex-direction: column;
        gap: 15px;
    }
    
    main .icon_box div {
        width: 100%;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 15px;
        gap: 15px;
    }
    
    main .icon_box div img {
        width: 36px;
        height: 36px;
    }
    
    /* Index页面样式 */
    .box1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .box1 img {
        width: 90%;
        max-width: 350px;
    }
    
    .box1_core {
        width: 100%;
        padding: 0 20px;
    }
    .box1_core a {
        align-self: center;
    }
    
    .box1_core p {
        margin-bottom: 20px;
    }
    
    .banner .box {
        height: 200px;
    }
    
    .banner .list {
        width: 300%;
        display: flex;
    }
    
    .banner .list li {
        width: 33.333%;
        flex-shrink: 0;
    }
    
    .banner .list img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .banner .btn {
        width: 30px;
        height: 30px;
        line-height: 30px;
        margin-top: -15px;
        font-size: 16px;
    }
    
    .banner .page {
        bottom: 10px;
    }
    
    .banner .page li {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    /* About页面适配 */
    main h1 {
        font-size: 32px;
    }
    
    .welcome {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    section {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .image img {
        max-width: 100%;
        height: auto;
    }
    
    h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .cta {
        padding: 30px 20px;
    }
    
    .cta p {
        font-size: 16px;
    }
    
    /* Locations页面适配 */
    .product-detail {
        flex-direction: column;
    }
    
    .product-info {
        align-items: center;
        text-align: center;
    }
    
    .add-to-box {
        align-self: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    h1 {
        font-size: 32px;
    }
    .cart_title {
        width: 200px;
        height: 50px;
        font-size: 32px;
        line-height: 50px;
    }
} 