/* 商店页面样式 - 日系极简风格 */
.shop-page {
    background: #fefefe;
    min-height: 100vh;
    font-family: 'Noto Sans CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    color: #2a2a2a;
    line-height: 1.7;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 页面头部 */
.shop-header {
    text-align: left;
    padding: 2.5rem 0 1.5rem;
    margin-bottom: 1.5rem;
}

.shop-hero {
    margin-top: 1.5rem;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-hero-no-image {
    background: transparent;
    padding: 0;
    /* text-align: left; */
}

.shop-title {
    font-size: 1.8rem;
    font-weight: 200;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    position: relative;
    line-height: 1.4;
}

.shop-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 0.5px;
    background: #c0c0c0;
    margin: 0.6rem 0 0;
}

.shop-description {
    font-size: 0.95rem;
    color: #3a3a3a;
    max-width: 600px;
    margin: 0;
    font-weight: 300;
    line-height: 1.6;
}

/* 页面内容 */
.shop-content {
    padding: 1.5rem 0;
    background: transparent;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    color: #3a3a3a;
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    color: #1a1a1a;
    font-weight: 300;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.content-wrapper h1 {
    font-size: 1.3rem;
    font-weight: 200;
    margin-bottom: 0.8rem;
}

.content-wrapper h2 {
    font-size: 1.2rem;
}

.content-wrapper h3 {
    font-size: 1.1rem;
}

.content-wrapper p {
    margin-bottom: 1.2rem;
    color: #3a3a3a;
}

.content-wrapper a {
    color: #6b7c93;
    text-decoration: none;
    border-bottom: 0.5px solid transparent;
    transition: all 0.3s ease;
    font-weight: 400;
}

.content-wrapper a:hover {
    color: #666768;
    border-bottom-color: #666768;
    opacity: 0.8;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin: 1.5rem 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
    display: block;
}

.content-wrapper img:hover {
    transform: scale(1.005);
}

/* 产品列表 */
.products-section {
    padding: 3rem 0;
}

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

/* 产品列表 */
.products-section {
    padding: 2rem 0;
    margin-top: 1.5rem;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
    margin: 1.5rem -1rem 0;
    padding: 2rem 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
}

/* 产品卡片 - 现代卡片设计 */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    padding: 0;
    position: relative;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) contrast(1.05);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 130px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-description {
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e74c3c;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(231, 76, 60, 0.2);
    letter-spacing: 0.02em;
}

.product-actions {
    margin-top: auto;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-actions::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
    opacity: 0.6;
}

.btn {
    display: block;
    width: 100%;
    max-width: 200px;
    padding: 0.75rem 1rem;
    border: none;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.02em;
    border-radius: 8px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 3px 8px rgba(243, 156, 18, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
    margin: 0 auto;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.btn-primary {
    background: #f39c12;
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(243, 156, 18, 0.4);
    text-decoration: none;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

/* 无产品状态 */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin: 2rem 0;
}

.no-products p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .products-section {
        margin: 1.5rem -0.5rem 0;
        padding: 1.5rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .shop-header {
        padding: 2rem 0 1.5rem;
    }
    
    .shop-title {
        font-size: 1.8rem;
    }
    
    .shop-description {
        font-size: 0.95rem;
    }
    
    .shop-content {
        padding: 1.5rem 0;
    }
    
    .content-wrapper {
        font-size: 0.95rem;
    }
    
    .content-wrapper h1 {
        font-size: 1.3rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.2rem;
    }
    
    .products-section {
        margin: 1.5rem -0.5rem 0;
        padding: 1.5rem 0.5rem;
        border-radius: 12px 12px 0 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .product-card {
        margin-bottom: 0;
        border-radius: 10px;
    }
    
    .product-info {
        padding: 1rem;
        min-height: 110px;
    }
    
    .product-name {
        font-size: 0.95rem;
        min-height: 2.4em;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .shop-title {
        font-size: 1.6rem;
    }
    
    .shop-content {
        padding: 1.2rem 0;
    }
    
    .content-wrapper {
        font-size: 0.9rem;
    }
    
    .content-wrapper h1 {
        font-size: 1.2rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.1rem;
    }
    
    .products-section {
        margin: 1.5rem -0.25rem 0;
        padding: 1.5rem 0.25rem;
        border-radius: 8px 8px 0 0;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        margin-bottom: 0;
        border-radius: 8px;
    }
    
    .product-info {
        padding: 1rem;
        min-height: 100px;
    }
    
    .product-name {
        font-size: 0.95rem;
        min-height: 2.2em;
    }
    
    .product-description {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
    
    .btn:active {
        background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
        color: #ffffff;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.product-card {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    z-index: 1;
    pointer-events: none;
}

.product-card:hover::before {
    left: 100%;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }

/* 加载状态 */
.product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.product-card.loading .product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.product-card.loading .product-name,
.product-card.loading .product-description,
.product-card.loading .product-price {
    background: #f0f0f0;
    color: transparent;
    border-radius: 4px;
    animation: shimmer 1.5s infinite;
}

/* 打印样式 */
@media print {
    .shop-page {
        background: white;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .product-image {
        display: none;
    }
    
    .btn {
        background: #f0f0f0 !important;
        color: #333 !important;
        box-shadow: none !important;
    }
}
