/* 全局样式 */
* {
    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: flex;
    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;
    width: 520px;
    max-width: 100%;
}

.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: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
    width: 100%;
}

.thumbnail-images::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.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;
    flex-shrink: 0;
}

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

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

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

/* 基础参数标签 */
.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); }
}

/* 商品详情标签页 */
.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;
}

/* 规格表格 */
.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;
}

/* 详情图片 */
.detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.detail-images img {
    width: 100%;
    border-radius: 4px;
    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);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .product-wrapper {
        flex-direction: column;
    }
    
    .product-images {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }
    
    .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;
    }
    
    .main-image img {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    /* 使用指南响应式 */
    .guide-content {
        padding: 1rem;
    }
    
    .guide-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .guide-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .guide-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .notice-item,
    .step-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .notice-icon {
        font-size: 1.2rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .shots-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .shot-item {
        padding: 0.8rem;
    }
    
    .shot-image {
        height: 120px;
    }
    
    /* 规格参数图片响应式 */
    .spec-images {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .spec-images h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .spec-image-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .spec-image {
        height: 150px;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
    }
    
    .product-wrapper {
        padding: 1rem;
        gap: 2rem;
    }
    
    .product-images {
        max-width: 100%;
    }
    
    .main-image img {
        height: 250px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .param-label,
    .param-value {
        font-size: 0.9rem;
    }
    
    .btn-buy {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* 图片放大模态框 */
.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; }
}

/* 使用指南样式 */
.guide-content {
    padding: 2rem;
}

.guide-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.guide-section {
    margin-bottom: 2.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #ff4757;
}

.guide-section h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 使用须知列表 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.notice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.notice-content {
    flex: 1;
    line-height: 1.6;
}

.notice-content strong {
    color: #ff4757;
    font-weight: 600;
}

/* 使用步骤列表 */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff4757, #ff6b6b);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    line-height: 1.6;
}

.step-content strong {
    color: #ff4757;
    font-weight: 600;
}

/* 玩家交流区域 */
.community-info {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.community-info p {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.community-info p:last-child {
    margin-bottom: 0;
}

/* 实拍图片样式 */
.real-shots-content {
    padding: 2rem;
}

.real-shots-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

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

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

.shot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.shot-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.8rem;
    background: #fff;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

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

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

/* 规格参数图片样式 */
.spec-images {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.spec-images h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.spec-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.spec-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.spec-image:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ff4757;
}

/* 规格表格和图片组合优化 */
.specs-table {
    margin-bottom: 1.5rem;
}

/* 页脚 */
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;
}