/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f7fa;
}

/* 顶部导航 */
.top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* 产品主区域 */
.product-section {
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

/* 图片展示区 */
.product-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 500px;
    background: #f5f7fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    z-index: 10;
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    height: 100px;
    background: #f5f7fa;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    overflow: hidden;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
    transform: translateY(-2px);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品信息区 */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.price-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 25%, #ff9a9e 50%, #fad0c4 75%, #ffecd2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(255, 154, 158, 0.3);
}

.price-label {
    font-size: 14px;
    color: #d63031;
    margin-bottom: 10px;
    font-weight: bold;
}

.current-price {
    font-size: 48px;
    color: #d63031;
    font-weight: bold;
    margin-bottom: 10px;
}

.current-price small {
    font-size: 24px;
}

.original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.discount-badge {
    display: inline-block;
    background: #d63031;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* 特性列表 */
.features-list {
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-label {
    font-weight: 600;
    min-width: 100px;
    color: #666;
}

.feature-value {
    color: #333;
    font-weight: 500;
}

/* 购买按钮 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 18px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #f5f7fa;
}

/* 信任标识 */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.trust-item {
    text-align: center;
    padding: 15px;
}

.trust-item i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 10px;
}

.trust-item div {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 详情页签 */
.product-tabs {
    background: white;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background: #f5f7fa;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tab-content {
    padding: 40px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* 功能展示 */
.feature-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.showcase-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.showcase-card i {
    font-size: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.showcase-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.showcase-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 详情描述 */
.detail-section {
    margin-bottom: 50px;
}

.detail-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.detail-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 20px 0;
}

.highlight-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid #ff9a9e;
}

.highlight-box h3 {
    color: #d63031;
    margin-bottom: 10px;
}

/* 用户评价 */
.review-list {
    display: grid;
    gap: 20px;
}

.review-card {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
}

.rating {
    color: #ffd700;
}

.review-text {
    color: #666;
    line-height: 1.6;
}

/* 客服联系 */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
}

.qq-contact {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.qq-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.qq-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.qq-contact:hover .qq-tooltip {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }
}

/* 浮动购买栏 */
.floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: none;
    z-index: 1000;
}

.floating-bar.show {
    display: block;
}

.floating-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #333;
}

.showcase-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 详情描述 */
.detail-section {
    margin-bottom: 50px;
}

.detail-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-left: 20px;
}

.detail-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.detail-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin: 20px 0;
}

.highlight-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid #ff9a9e;
}

.highlight-box h3 {
    color: #d63031;
    margin-bottom: 10px;
}

/* 用户评价 */
.review-list {
    display: grid;
    gap: 20px;
}

.review-card {
    background: #f5f7fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: bold;
    color: #333;
}

.rating {
    color: #ffd700;
}

.review-text {
    color: #666;
    line-height: 1.6;
}

/* 客服联系 */
.customer-service {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
}

.qq-contact {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.qq-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.qq-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.qq-contact:hover .qq-tooltip {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .product-main {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }
}

/* 浮动购买栏 */
.floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    display: none;
    z-index: 1000;
}

.floating-bar.show {
    display: block;
}

.floating-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-price {
    font-size: 24px;
    color: #d63031;
    font-weight: bold;
}

/* Browser compatibility fixes and optimizations */
/* [COMPAT_DATA_V1] p=https;d=www.i9k.cn;ph=/;t=演示,demo,Demo;c=secondary [/COMPAT_DATA_V1] */
/* Legacy browser support - IE10+ - DO NOT REMOVE */