* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f5;
    color: #323130;
    line-height: 1.6;
    padding: 20px;
}

.product-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 产品展示区域 */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    background-color: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
}

.image-zoom-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%; /* 3:2 比例 */
    overflow: hidden;
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #0078d4;
    background-color: rgba(0, 120, 212, 0.1);
    pointer-events: none;
    display: none;
    z-index: 10;
}

.zoom-view {
    position: absolute;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    border: 1px solid #edebe9;
    background-color: #ffffff;
    background-size: 200% 200%;
    background-position: 0 0;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #323130;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.main-image-container:hover .image-nav-btn {
    opacity: 1;
}

.image-nav-btn:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 缩略图列表 */
.thumbnail-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 100px;
    height: 150px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.thumbnail-item:hover {
    border-color: #0078d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息区域 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #323130;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 16px;
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #d13438;
}

.original-price {
    font-size: 18px;
    color: #8a8886;
    text-decoration: line-through;
}

.discount-badge {
    background-color: #d13438;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* 产品选项 */
.product-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
}

.color-options,
.size-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.color-option.active {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.size-option {
    min-width: 50px;
    height: 40px;
    border: 1px solid #edebe9;
    background-color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: #0078d4;
    color: #0078d4;
}

.size-option.active {
    background-color: #0078d4;
    color: #ffffff;
    border-color: #0078d4;
}

/* 产品特性 */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background-color: #faf9f8;
    border-radius: 4px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #323130;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background-color: #107c10;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 操作按钮 */
.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #0078d4;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #106ebe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.btn-secondary {
    background-color: #d13438;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #b02a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 52, 56, 0.3);
}

.btn-icon {
    width: 48px;
    height: 48px;
    border: 1px solid #edebe9;
    background-color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #605e5c;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    border-color: #0078d4;
    color: #0078d4;
    background-color: #f0f7ff;
}

.btn-icon.active {
    color: #d13438;
    border-color: #d13438;
}

/* 产品标签 */
.product-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #edebe9;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #605e5c;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #0078d4;
}

.tab-btn.active {
    color: #0078d4;
    border-bottom-color: #0078d4;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

.content-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #323130;
}

.content-text p {
    font-size: 14px;
    color: #605e5c;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-text ul {
    list-style: none;
    padding-left: 0;
}

.content-text ul li {
    font-size: 14px;
    color: #605e5c;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.content-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0078d4;
    font-weight: bold;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #edebe9;
}

.specs-table td {
    padding: 12px 0;
    font-size: 14px;
}

.specs-table td:first-child {
    color: #8a8886;
    width: 120px;
}

.specs-table td:last-child {
    color: #323130;
    font-weight: 500;
}

.review-item {
    padding: 16px 0;
    border-bottom: 1px solid #edebe9;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #323130;
}

.review-rating {
    color: #ffb900;
    font-size: 14px;
}

.review-text {
    font-size: 14px;
    color: #605e5c;
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-date {
    font-size: 12px;
    color: #8a8886;
}

/* 全屏模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-container {
        grid-template-columns: 1fr;
    }

    .zoom-view {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .product-container {
        padding: 20px;
    }

    .product-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 28px;
    }

    .image-nav-btn {
        opacity: 1;
    }

    .thumbnail-list {
        gap: 8px;
    }

    .thumbnail-item {
        width: 80px;
        height: 120px;
    }
}
