* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #f4f4f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    border-bottom: 4px solid #000;
    background-color: #fff;
}

.notice-bar {
    background-color: #facc15;
    padding: 15px 0;
    text-align: center;
    color: #000;
    font-size: 14px;
    border-bottom: 3px solid #000;
}

.notice-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-weight: 700;
}

.top-bar {
    background-color: #fff;
    padding: 15px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo .cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    width: 80px;
    background-color: rgb(0, 23, 67);
    color: #fff;
    border-radius: 15px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.top-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #71717a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    border: 2px solid #000;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    background-color: #1a365d;
    color: #fff;
    border-color: #000;
    box-shadow: 3px 3px 0px #000;
}

.cart-link {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    padding: 8px 12px;
    background-color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
}

#cartCount {
    background-color: #fff;
    color: rgb(0, 23, 67);
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 900;
}

.order-notice {
    background-color: #fff;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 3px solid #000;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0 15px;
}

.notice-toggle {
    font-size: 12px;
    transition: transform 0.3s;
}

.notice-content {
    display: block;
    padding: 10px 15px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.notice-content p {
    margin: 8px 0;
    font-weight: 400;
}

.search-bar {
    background-color: rgb(0, 23, 67);
    padding: 15px 0;
    border-bottom: 3px solid #000;
}

.search-bar .search-box {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar .search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.search-bar .search-box input:focus {
    outline: none;
    box-shadow: 3px 3px 0px #000;
}

.search-bar .search-box button {
    padding: 12px 25px;
    background-color: #facc15;
    color: #000;
    border: 2px solid #000;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.2s;
}

.search-bar .search-box button:hover {
    background-color: #f59f00;
}

.main {
    padding: 40px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #000;
    
    font-weight: 900;
}

.section-desc {
    color: #71717a;
    margin-bottom: 20px;
    font-weight: 700;
}

.subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
    
    font-weight: 900;
}

.all-products-toggle {
    margin-bottom: 10px;
}

.all-products-toggle .category-link {
    background-color: rgb(0, 23, 67);
    color: #fff;
    box-shadow: 3px 3px 0px #000;
    width: 100%;
}

.all-products-toggle .category-link:hover {
    background-color: rgb(0, 30, 85);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

.category-list.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid #000;
    transition: all 0.2s;
}

.category-link:hover, .category-link.active {
    background-color: rgb(0, 23, 67);
    color: #fff;
    box-shadow: 3px 3px 0px #000;
}

.category-item .sub-category {
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 4px;
    margin-top: 0;
    padding-left: 15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-item .sub-category.show {
    max-height: 500px;
    margin-top: 6px;
    opacity: 1;
}

.category-item.has-sub .arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-item.has-sub.open .arrow {
    transform: rotate(180deg);
}

.collapse-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-link.active .collapse-icon {
    transform: rotate(90deg);
}

.sub-category a {
    display: block;
    padding: 6px 12px;
    background-color: #e5e5e5;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #000;
    transition: all 0.2s;
}

.sub-category a:hover {
    background-color: rgb(0, 23, 67);
    color: #fff;
    box-shadow: 2px 2px 0px #000;
}

.shop-section {
    padding: 40px 0;
}

.shop-section .search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-section .search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.shop-section .search-box input:focus {
    outline: none;
    box-shadow: 3px 3px 0px #000;
}

.shop-section .search-box button {
    padding: 12px 25px;
    background-color: rgb(0, 23, 67);
    color: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 3px 3px 0px #000;
    transition: all 0.2s;
}

.shop-section .search-box button:hover {
    background-color: rgb(0, 30, 85);
}

.shop-section .filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.shop-section .filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-section .filter-group label {
    font-weight: 900;
    font-size: 14px;
}

.shop-section .filter-group select {
    padding: 10px 15px;
    border: 2px solid #000;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background-color: #fff;
    cursor: pointer;
}

.shop-section .filter-group select:focus {
    outline: none;
    box-shadow: 3px 3px 0px #000;
}

.feature-blocks {
    margin: 40px 0;
}

.feature-blocks .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-block {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 16px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s;
}

.feature-block:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.feature-block h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #000;
    
    font-weight: 900;
}

.feature-block p {
    color: #71717a;
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-block .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgb(0, 23, 67);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 14px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.2s;
}

.feature-block .btn:hover {
    background-color: #be123c;
    box-shadow: 3px 3px 0px #000;
}

.feature-block .btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.products-section {
    margin: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: #000;
    
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: rgb(0, 23, 67);
    text-decoration-thickness: 3px;
}

.see-more {
    color: rgb(0, 23, 67);
    text-decoration: none;
    font-size: 16px;
    font-weight: 900;
    padding: 8px 16px;
    border: 2px solid #000;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.2s;
}

.see-more:hover {
    background-color: rgb(0, 23, 67);
    color: #fff;
    box-shadow: 3px 3px 0px #000;
}

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

.product-card {
    background-color: #fff;
    border: 3px solid #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s;
}

.product-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-bottom: 3px solid #000;
    background-color: #fafafa;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    color: #000;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    color: rgb(0, 23, 67);
    font-weight: 900;
    margin-bottom: 4px;
}

.product-price-cny {
    font-size: 13px;
    color: #71717a;
    font-weight: 700;
    margin-bottom: 15px;
}

.product-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: rgb(0, 23, 67);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 2px 2px 0px #000;
    transition: all 0.2s;
}

.product-btn:hover {
    background-color: #be123c;
    box-shadow: 3px 3px 0px #000;
}

.product-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

.skew-tag {
    transform: skewX(-15deg);
    display: inline-block;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 900;
    border: 2px solid #000;
}

.skew-tag.rose { background-color: rgb(0, 23, 67); color: #fff; }
.skew-tag.yellow { background-color: #facc15; color: #000; }
.skew-tag.blue { background-color: #3b82f6; color: #fff; }

.services-section {
    margin: 60px 0;
    padding: 40px 0;
    background-color: #fff;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.services-section .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

.service-item {
    text-align: center;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.service-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #000;
    
    font-weight: 900;
}

.service-item p {
    color: #71717a;
    font-size: 14px;
    font-weight: 700;
}

.service-divider {
    font-size: 30px;
    color: rgb(0, 23, 67);
}

.footer {
    background-color: #18181b;
    color: #fff;
    padding: 50px 0;
    text-align: center;
    border-top: 4px solid #000;
}

.footer-title {
    font-size: 32px;
    margin-bottom: 10px;
    
    font-weight: 900;
}

.footer-desc {
    font-size: 16px;
    color: #a1a1aa;
    font-weight: 700;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: #fff;
    border-left: 4px solid #000;
    box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    z-index: 1000;
    overflow-y: auto;
}

.cart-modal.open {
    display: block;
}

.cart-content {
    padding: 30px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #000;
}

.cart-header h3 {
    font-size: 24px;
    
    font-weight: 900;
}

.close-cart {
    font-size: 30px;
    background: none;
    border: 2px solid #000;
    cursor: pointer;
    color: #000;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 900;
}

.close-cart:hover {
    background-color: rgb(0, 23, 67);
    color: #fff;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 2px solid #e4e4e7;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #000;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 900;
}

.cart-item-price {
    color: rgb(0, 23, 67);
    font-weight: 900;
}

.cart-item-remove {
    background: none;
    border: 2px solid #000;
    color: #71717a;
    cursor: pointer;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-weight: 900;
}

.cart-item-remove:hover {
    background-color: rgb(0, 23, 67);
    color: #fff;
    border-color: rgb(0, 23, 67);
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
}

.cart-item-subtotal {
    text-align: right;
    min-width: 80px;
}

.subtotal-jpy {
    font-size: 15px;
    font-weight: 900;
    color: rgb(0, 23, 67);
}

.subtotal-cny {
    font-size: 12px;
    color: #71717a;
    margin-top: 2px;
}

.clear-cart-btn {
    background: none;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    margin-right: 10px;
    transition: all 0.2s;
}

.clear-cart-btn:hover {
    background-color: #e74c3c;
    color: #fff;
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 2px solid #000;
    background: #fff;
    color: rgb(0, 23, 67);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.qty-btn:hover {
    background-color: rgb(0, 23, 67);
    color: #fff;
}

.qty-input {
    width: 44px;
    height: 28px;
    text-align: center;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    color: rgb(0, 23, 67);
    padding: 0;
    /* 隐藏数字输入框的上下箭头 */
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    border-color: rgb(0, 23, 67);
    background: #f0f4ff;
}

.cart-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 3px solid #000;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 900;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: rgb(0, 23, 67);
    color: #fff;
    border: 3px solid #000;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s;
}

.checkout-btn:hover {
    background-color: #be123c;
    box-shadow: 5px 5px 0px #000;
}

.checkout-btn:active {
    transform: translateY(2px);
    box-shadow: none;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .feature-blocks .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-section .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .service-divider {
        display: none;
    }
    
    .cart-modal {
        width: 100%;
    }
    
    .top-bar .container {
        align-items: center;
        gap: 8px;
    }
    
    .logo {
        gap: 4px;
    }
    
    .logo-img {
        height: 65px !important;
    }
    
    .logo .cart-link {
        padding: 3px 8px;
        font-size: 10px;
        gap: 2px;
        width: 65px;
        justify-content: center;
    }
    
    .top-nav {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .nav-link {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .cart-link:not(.logo .cart-link) {
        padding: 5px 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}