﻿/* 基本重置和盒模型设置 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background-color: #f8f8f8; /* 页面背景色 */
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 通用图标和图片占位符样式 */
.icon-placeholder, .image-placeholder {
    border: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 防止内部内容超出边框，特别是圆角时 */
    flex-shrink: 0; /* 防止在 flex 布局中被压缩 */
}

/* 顶部导航栏 */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px; /* 估算高度 */
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center; /* 标题居中 */
    padding: 0 15px; /* 左右内边距 */
    font-size: 17px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee; /* 分隔线 */
    z-index: 100; /* 确保在最上层 */
}

.header-back-icon {
    position: absolute;
    left: 15px;
    width: 18px; /* 估算尺寸 */
    height: 18px;
}

/* 主体内容区域 (可滚动) */
.main-content {
    margin-top: 45px; /* 留出顶部导航栏的高度 + 1px边框 */
    overflow-y: auto; /* 允许垂直滚动 */
    flex-grow: 1; /* 在 flex 容器中占据剩余空间 */
    /* 如果 body 是 flex container，这里需要 flex-grow: 1; */
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex-grow: 1;
    overflow-y: auto;
}

/* 产品主信息区域 */
.product-main-area {
    background-color: #fff;
    padding: 15px; /* 区域内边距 */
    margin-bottom: 10px; /* 与下方区域间距 */
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px; /* 标题下方间距 */
}

.product-display-flex {
    display: flex;
    align-items: flex-start; /* 顶部对齐 */
    gap: 15px; /* 左右间距 */
}

/* 产品特性/规格区域 */
.product-features-specs {
    flex-basis: 150px; /* 估算左侧宽度 */
    flex-shrink: 0; /* 不压缩 */
    display: flex;
    flex-direction: column;
    gap: 8px; /* 列表项垂直间距 */
}
/* 特性标签 */
.feature-tag {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    color: #fff;
}

.tag-red {
    background-color: #e74c3c;
}
/* 红色背景 */
.tag-blue {
    background-color: #3498db;
}
/* 蓝色背景 */
.tag-white-blue-border {
    background-color: #fff;
    color: #3498db;
    border: 1px solid #3498db; /* 蓝色边框 */
    padding: 4px 9px; /* 边框会增加尺寸，调整内边距 */
}

/* 规格列表 */
.spec-item {
    padding: 5px 10px;
    border: 1px solid #eee; /* 边框 */
    border-radius: 4px;
    font-size: 12px;
    color: #555;
}

/* 底部黑色条 */
.bottom-black-bar {
    background-color: #000;
    color: #fff;
    padding: 8px 10px;
    font-size: 13px;
    text-align: center;
    border-radius: 4px;
    margin-top: 10px; /* 与上方内容间距 */
}

/* 产品主图区域 */
.product-main-image-area {
    flex-grow: 1; /* 占据剩余空间 */
    position: relative; /* 如果需要叠加其他元素 */
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-main-image-placeholder {
    width: 100%; /* 填充父容器宽度 */
    height: 300px; /* 估算高度 */
    background-color: #ccc; /* 占位符背景色 */
    border: 1px solid black; /* 根据要求 */
}

/* 产品基本信息区域 */
.product-info-basic {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
}

.product-code {
    font-size: 15px;
    color: #22602f;
    margin-bottom: 5px;
    font-weight: 900;
}

.price-sales-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-price {
    font-size: 18px;
    font-weight: 900;
    color: #9a6f45; /* 红色价格 */
}

.sales-count {
    font-size: 13px;
    color: #999;
}

/* 评价区域 */
.product-reviews {
    background-color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #eee; /* 分隔线 */
    margin-bottom: 10px;
}

.reviews-arrow-icon {
    width: 15px; /* 估算尺寸 */
    height: 15px;
}

/* 图文详情标题区域 */
.graphic-details-header {
    background-color: #fff;
    padding: 5px 0; /* 上下内边距 */
    display: flex;
    justify-content: center; /* 居中 */
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #5a9b5f; /* 绿色文字 */
    border-bottom: 1px solid #eee; /* 分隔线 */
    margin-bottom: 10px;
}

.decorative-swirl {
    width: 58px; /* 估算尺寸 */
    height: 50px;
}

/* 图文详情内容占位符 */
.graphic-details-content {
    background-color: #fff;
    padding: 15px;
    min-height: 200px; /* 示例高度 */
}

.placeholder-text {
    font-size: 16px;
    color: #333;
}

/* 底部固定按钮 */
.bottom-fixed-button {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px; /* 估算高度 */
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #999; /* 已售空是灰色 */
    border-top: 1px solid #eee; /* 分隔线 */
    /* 如果是可购买状态，背景色可能是红色或其他亮色 */
}

.towban {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
}

.tow-ban-item {
    width: 48%;
    height: 50px;
    border-radius: 25px;
    text-align: center;
    line-height: 50px;
}

.imgs {
    width: 100%;
    height: 100%;
}

.specs {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: #FF5722;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 8px 0;
    align-self: flex-start;
    color: white;
}