/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: rgb(243, 253, 254);
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部导航样式 ===== */
.header {
    background-color: rgb(243, 253, 254);
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

/* Logo样式 */
.logo-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 24px;
    color: #4A90E2;
    font-weight: 400;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    position: relative;
}

.nav-link.portfolio::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* 头部右侧功能区 */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    position: relative;
    font-size: 16px;
    color: #333;
}

.icon-btn .icon-heart {
    color: #ff4757;
}

.cart-btn, .profile-btn {
    position: relative;
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.login-btn {
    background-color: rgb(172, 208, 210);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* ===== 主内容区样式 ===== */
.main-content {
    padding: 24px 0 48px;
}

/* 返回按钮和图标区域 */
.back-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.back-btn {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-icon {
    font-size: 16px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 分隔线 */
.separator-line {
    width: 100%;
    height: 1px;
    background-color: #000;
    margin: 0 -20px 24px -20px;
}

/* 产品布局 */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ===== 左侧图片展示区 ===== */
.product-images {
    position: relative;
}

/* 主图容器 */
.main-image-container {
    position: relative;
    margin-bottom: 16px;
}

.main-image {
    width: 100%;
    max-width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 图片导航箭头 */
.nav-arrow {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.nav-arrow-left {
    left: -50px;
}

.nav-arrow-right {
    right: -20px;
}

/* 缩略图画廊 */
.thumbnail-gallery {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.thumbnail {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0;
}

.thumbnail.active {
    border-color: #4A90E2;
}

.thumbnail img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* ===== 右侧产品详情 ===== */
.product-details {
    padding-left: 24px;
}

/* 标题和基本信息 */
.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/* 评分 */
.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FFD700;
    font-size: 16px;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

/* 价格信息 */
.price-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: #ff4757;
}

.original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.discount-tag {
    background-color: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* 产品规格 */
.product-specs {
    margin-bottom: 24px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.spec-value {
    font-size: 14px;
    color: #333;
}

.spec-value.stock {
    color: #28a745;
    font-weight: 600;
}

/* 购买数量 */
.quantity-selector {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #333;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
    color: #333;
}

/* 配送方式 */
.delivery-options {
    margin-bottom: 24px;
    padding: 0 20px;
}

.delivery-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.delivery-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

.delivery-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.delivery-btn.active {
    background-color: white;
    color: #333;
    border-color: #000;
    border-width: 2px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: rgb(68, 81, 182);
    color: white;
    border-radius: 20px;
}

.btn-secondary {
    background-color: white;
    color: #333;
    border: 1px solid #dee2e6;
    border-radius: 20px;
}

.favorite-btn {
    background: none;
    border: 1px solid #dee2e6;
    padding: 12px;
    border-radius: 4px;
}

/* 产品描述区域 */
.product-description-section {
    background-color: rgb(243, 253, 254);
    padding: 48px 0;
    margin-top: 48px;
}

/* 产品描述 */
.product-description {
    margin-bottom: 32px;
}

.description-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.description-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-left: 24px;
}

/* 艺术价值 */
.artistic-value {
    margin-bottom: 32px;
}

.value-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.value-section {
    margin-bottom: 24px;
}

.value-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-icon {
    font-size: 16px;
}

.icon-image {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.value-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-left: 24px;
}

/* 配送与保障 */
.delivery-guarantee {
    margin-bottom: 0;
}

.guarantee-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.guarantee-section {
    margin-bottom: 24px;
}

.guarantee-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guarantee-icon {
    font-size: 16px;
}

.guarantee-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-left: 24px;
}

/* ===== 相关作品区域 ===== */
.related-works {
    background-color: rgb(243, 253, 254);
    padding: 48px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 32px;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.work-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    margin: 0;
}

/* ===== 页脚样式 ===== */
.footer {
    background-color: rgb(165, 188, 194);
    border-top: 1px solid #f0f0f0;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

/* 品牌信息 */
.footer-brand {
    max-width: 300px;
}

.footer-logo .logo-text {
    font-family: 'Brush Script MT', cursive;
    font-size: 20px;
    color: #4A90E2;
    font-weight: 400;
    margin-bottom: 12px;
    display: block;
}

.footer-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    font-weight: bold;
}

/* 页脚标题 */
.footer-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

/* 快速链接 */
.footer-menu {
    list-style: none;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

/* 联系方式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.contact-icon {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

/* 社交媒体 */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    display: block;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* 版权信息 */
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .product-details {
        padding-left: 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .delivery-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .thumbnail-gallery {
        gap: 8px;
    }
    
    .thumbnail img {
        width: 80px;
        height: 80px;
    }
}
