/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a3a, #0d1b2a);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    color: #a0a0a0;
}

/* 产品卡片样式 */
.product-card {
    background: rgba(30, 40, 50, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 100, 100, 0.2);
}

@media (min-width: 768px) {
    .product-card {
        flex-direction: row;
    }
}

/* 产品图片区域样式 - 已修改 */
/* 简化版图片加载优化 */
.product-image {
    flex: 1;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 300px;
    overflow: hidden;
    position: relative;
}

.product-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 简单的加载状态 */
.product-image::after {
    content: '加载中...';
    position: absolute;
    color: white;
    font-size: 1rem;
    display: none;
}

.product-image.loading::after {
    display: block;
}

.product-image.loading .product-main-image {
    opacity: 0.3;
}

.product-details {
    flex: 1.5;
    padding: 30px;
}

.product-details h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.features {
    list-style: none;
    margin-bottom: 25px;
}

.features li {
    padding: 8px 0;
    position: relative;
    padding-left: 30px;
}

.features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* 价格区域样式 */
.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #a0a0a0;
    font-size: 1.2rem;
}

.current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #4CAF50;
}

.discount {
    background: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 按钮样式 */
.buy-btn, .agent-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    cursor: pointer;
    border: none;
}

.buy-btn {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.agent-btn {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.agent-btn:hover {
    background: rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

/* 保障区域样式 */
.guarantee {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.guarantee-item .icon {
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.8rem;
}

/* 代理区域样式 */
.agent-section {
    background: rgba(30, 40, 50, 0.6);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid rgba(100, 100, 100, 0.2);
}

.agent-section h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.agent-section p {
    color: #a0a0a0;
    margin-bottom: 20px;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px 0;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid rgba(100, 100, 100, 0.2);
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 767px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .product-details {
        padding: 20px;
    }
    
    .guarantee {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-image {
        min-height: 250px;
    }
}