/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* 全局超链接样式重置 */
a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus,
a:active,
a:visited {
    color: inherit;
    text-decoration: none;
}

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo h2 {
    color: #ff4757;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff4757;
}

/* 主内容区域 */
main {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* 商品图片区域 */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f8f8f8;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .thumbnail-images {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .thumbnail-images::-webkit-scrollbar {
        height: 4px;
    }
    .thumbnail-images::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 2px;
    }
    .thumbnail {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    background-color: #f8f8f8;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #ff4757;
}

/* 商品信息区域 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* 商品选项 */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.color-options,
.storage-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-btn,
.storage-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.color-btn.active,
.storage-btn.active,
.color-btn:hover,
.storage-btn:hover {
    border-color: #ff4757;
    background: #fff5f5;
    color: #ff4757;
}

.color-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #f5f5f5;
    border-color: #ff4757;
}

#quantity {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* 基础参数标签 */
.product-params {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 0;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
}

.param-row:last-child {
    border-bottom: none;
}

.param-label {
        font-weight: 600;
        color: #666;
        font-size: 0.95rem;
        min-width: 60px;
    }

    .param-value {
        color: #333;
        font-size: 0.95rem;
        text-align: right;
        flex: 1;
    }

/* 购买按钮 */
.purchase-actions {
    margin-top: 3rem;
}

.btn-buy {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FF6B6B 100%);
    background-size: 200% 200%;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-buy::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.6s;
}

.btn-buy:hover::before {
    left: 100%;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #FF8E53 0%, #FF6B6B 50%, #FF8E53 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6); }
    50% { box-shadow: 0 12px 35px rgba(255, 107, 107, 0.8); }
    100% { box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6); }
}

.btn-buy:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-buy i {
    font-size: 1.1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    60% { transform: translateY(-2px); }
}

.btn-cart {
    background: #fff;
    color: #ff4757;
    border: 1px solid #ff4757;
}

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

/* 服务保障 */
.service-guarantees {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #666;
}

.guarantee-item i {
    color: #28a745;
}

/* 商品详情标签页 */
.product-details {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.detail-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.tab-btn {
    flex: 1;
    padding: 1rem 0.5rem;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-btn.active {
    color: #ff4757;
    border-bottom-color: #ff4757;
}

.tab-btn:hover {
    background: #f8f9fa;
}

.tab-content {
    padding: 10px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 使用指南样式 */
.guide-content {
    max-width: 800px;
    margin: 0 auto;
}

.guide-content h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.guide-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.guide-section h4 {
    color: #007bff;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.notice-list, .steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-item, .step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.notice-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-content, .step-content {
    flex: 1;
    line-height: 1.5;
}

.notice-content strong {
    color: #d63384;
}

.step-number {
    background: #007bff;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.community-info {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.community-info p {
    margin: 8px 0;
    font-size: 16px;
    color: #495057;
}



.description-content h3 {
    color: #333;
    margin: 1.5rem 0 0.5rem 0;
}

.description-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.detail-images img {
    width: 100%;
    border-radius: 4px;
}

/* 更多实拍样式 */
.real-shots-content h3 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
    text-align: center;
}

.shots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.shot-item {
    text-align: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.shot-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.shot-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background-color: #fff;
    max-width: 100%;
}

.shot-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* 响应式实拍样式 */
@media (max-width: 768px) {
    .shots-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .real-shots-content h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .close-modal {
        top: -35px;
        font-size: 30px;
    }
    
    .shot-item {
        width: 100%;
        margin: 0;
    }
    
    .shot-image {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 6px;
    }
    
    .shot-item p {
        font-size: 0.8rem;
    }
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    animation: zoomIn 0.3s ease-in-out;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.close-modal:hover {
    color: #ff6b6b;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 手机端优化 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .close-modal {
        top: -35px;
        font-size: 30px;
    }
}

/* 图片点击手势 */
.shot-image {
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.shot-image:hover {
    transform: scale(1.05);
}

/* 手机端优化尺寸 */
@media (max-width: 768px) {
    .shots-gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 10px !important;
    }
    
    .shots-gallery .shot-item {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        text-align: center !important;
    }
    
    .shots-gallery .shot-image {
        width: 100% !important;
        height: 220px !important;
        object-fit: contain !important;
        border-radius: 10px !important;
        background-color: #f8f9fa !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
    }
    
    /* 手机端标签 */
    .shots-gallery .shot-item p {
        margin: 10px 0 0 0 !important;
        font-size: 15px !important;
        color: #333 !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
    }
    
    /* 手机端tab防折行 */
    .tab-buttons {
        display: flex !important;
        gap: 0 !important;
    }
    
    .tab-btn {
        flex: 1 !important;
        padding: 12px 4px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: 0 !important;
    }
    
    /* 手机端标题优化 */
    .product-title {
        font-size: 1.5rem !important;
        margin-bottom: 0 !important;
        line-height: 1 !important;
    }
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.specs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #333;
    width: 35%;
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.specs-table td:last-child {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.specs-table table tr:hover {
    background-color: #f8f9fa;
}

/* 规格图片样式 */
.spec-images {
    margin-top: 30px;
    text-align: center;
}

.spec-images h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
}

.spec-image-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.spec-image {
    width: 100%;
    max-width: 250px;
    height: 200px;
    object-fit: contain;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.spec-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 商品详情图片悬停效果 */
.detail-images img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 商品主图悬停效果 */
.main-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

/* 缩略图悬停效果 */
.thumbnail {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.reviews-summary {
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff4757;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.rating-bar .bar {
    flex: 1;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background: #ffa502;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.username {
    font-weight: 600;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-content {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.review-images img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    cursor: pointer;
}

/* 推荐商品 */
.recommendations {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.recommendations h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    position: relative;
}

.recommendations h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #FF6B6B, #FF8E53);
    border-radius: 1px;
}

.coming-soon {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-top: 10px;
        padding: 0 3px;
    }

.soon-item {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 8px;
        padding: 8px 6px;
        text-align: center;
        border: 1px solid #e9ecef;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

.soon-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    border-color: #FF6B6B;
}

.soon-icon {
        font-size: 22px;
        margin-bottom: 6px;
        display: block;
        background: linear-gradient(135deg, #FF6B6B, #FF8E53);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: all 0.3s ease;
    }

.soon-item:hover .soon-icon {
    transform: scale(1.03);
    filter: drop-shadow(0 1px 3px rgba(255, 107, 107, 0.3));
}

.soon-item h4 {
        margin: 0 0 3px 0;
        font-size: 12px;
        color: #2c3e50;
        font-weight: 600;
        transition: all 0.3s ease;
    }

.soon-item:hover h4 {
    color: #FF6B6B;
}

.soon-item p {
        color: #7f8c8d;
        font-size: 10px;
        margin: 0;
        font-weight: 500;
        letter-spacing: 0.1px;
    }

.soon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.6s ease;
}

.soon-item:hover::before {
    left: 100%;
}

.soon-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(255, 142, 83, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.soon-item:hover::after {
    opacity: 1;
}



/* 页脚 */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer p {
    margin: 5px 0;
    color: #ccc;
}

.icp {
    font-size: 14px;
}

.icp a {
    color: inherit;
    text-decoration: none;
}

.icp a:hover {
    color: inherit;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    main {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .product-wrapper {
        display: block;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
        border-radius: 0;
    }
    
    .product-images,
    .product-info {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .product-images {
        margin-bottom: 10px;
    }
    
    .product-images {
        margin-bottom: 10px;
    }
    
    .product-info {
        margin-top: 0;
        gap: 0.6rem;
    }
    
    .main-image img {
        width: 100%;
        height: auto;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .product-title {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .recommendations {
        margin: 20px auto;
        padding: 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .product-params {
        width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
        gap: 0.2rem;
        padding-top: 2px;
        padding-bottom: 0;
    }
    
    .param-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .param-label {
        flex-shrink: 0;
        min-width: 80px;
    }
    
    .param-value {
        flex: 1;
        text-align: right;
        word-break: break-word;
    }
    
    .purchase-actions {
        width: 100%;
        box-sizing: border-box;
        margin-top: 1rem;
    }
    
    .btn-buy {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .product-details {
        margin-top: 1.5rem;
    }
    
    .recommendations {
        margin-top: 2rem;
        padding: 20px 10px;
    }
    
    .purchase-actions {
        flex-direction: column;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .recommendations {
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .coming-soon {
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .soon-item {
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .rating-overview {
        flex-direction: column;
    }
    
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .specs-table table {
        font-size: 14px;
    }
    
    .specs-table td {
        padding: 0.5rem;
    }
    
    .specs-table td:first-child {
        width: 40%;
        min-width: 100px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    body {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    main {
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .product-wrapper {
        display: block;
        width: 100%;
        max-width: 100vw;
        margin: 0;
        padding: 0.5rem;
        box-sizing: border-box;
        border-radius: 0;
    }
    
    .product-images,
    .product-info {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .main-image img {
        width: 100%;
        height: auto;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .product-title {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
        word-wrap: break-word;
    }
    
    .product-info {
        margin-top: 6px;
    }
    
    .product-params {
        width: 100%;
        box-sizing: border-box;
        padding: 0.3rem 0.5rem;
        gap: 0.2rem;
    }
    
    .param-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .param-label {
        flex-shrink: 0;
        min-width: 70px;
        font-size: 0.8rem;
    }
    
    .param-value {
        flex: 1;
        text-align: right;
        word-break: break-word;
        font-size: 0.8rem;
    }
    
    .purchase-actions {
        width: 100%;
        box-sizing: border-box;
        margin-top: 1rem;
    }
    
    .btn-buy {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 1rem;
    }
    
    .product-details {
        margin-top: 1rem;
    }
    
    .product-title {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .color-options,
    .storage-options {
        flex-direction: column;
    }
    
    .color-btn,
    .storage-btn {
        justify-content: flex-start;
    }
    
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .soon-item {
        padding: 12px 8px;
    }
    
    .soon-item h4 {
        font-size: 13px;
    }
    
    .soon-item p {
        font-size: 11px;
    }
    
    .specs-table td:first-child {
        width: 45%;
        min-width: 70px;
        font-size: 12px;
    }
    
    .param-label {
        min-width: 50px;
        font-size: 0.8rem;
    }
    
    .param-value {
        font-size: 0.8rem;
    }
    
    .specs-table td:last-child {
        font-size: 12px;
    }
    
    .recommendations {
        margin: 20px auto;
        padding: 10px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
}

/* 图片预览模态框 */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.image-preview-modal.active {
    display: flex;
}

.image-preview-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-preview {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2001;
    background: none;
    border: none;
}

.close-preview:hover {
    transform: scale(1.2);
}

/* 通知提示 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}