/* 商品详情页样式 - 全新设计 */

/* 重置全局样式影响 */
.goods-page-wrapper,
.goods-page-wrapper * {
    text-align: left;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* ========== 页面容器 ========== */
.goods-page-wrapper {
    background: #f5f5f5 !important;
    padding: 30px 0 !important;
    min-height: 500px;
    margin-top: 20px !important;
}

.goods-container {
    width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    gap: 20px;
}

/* ========== 左侧主内容区 ========== */
.goods-main {
    flex: 1;
    min-width: 0;
    padding-top: 20px;
}

/* ========== 商品信息卡片 ========== */
.goods-info-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* 图片区域 */
.goods-image-section {
    width: 360px;
    flex-shrink: 0;
}

/* 图片下方操作按钮 */
.image-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5px;
    color: #666;
}

.btn-action:hover {
    background: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
}

.btn-action i {
    margin-right: 5px;
}

.main-image {
    width: 100%;
    height: 360px;
    border: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 详情区域 */
.goods-detail-section {
    flex: 1;
    min-width: 0;
}

.goods-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.goods-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e6e6e6;
}

/* 价格区域 */
.price-box {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 40px;
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex: 1;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.price-symbol {
    font-size: 14px;
    color: #ff6b00;
}

.price-value {
    font-size: 28px;
    font-weight: bold;
    color: #ff6b00;
}

.sales-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.sales-label {
    font-size: 14px;
    color: #666;
}

.sales-value {
    font-size: 14px;
    color: #333;
}

/* 元信息列表 */
.meta-list {
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    color: #666;
    width: 80px;
    flex-shrink: 0;
}

.meta-value {
    color: #333;
}

/* 文本颜色 */
.text-gray { color: #999; }
.text-green { color: #5cb85c; }
.text-orange { color: #ff6b00; }
.text-red { color: #ff4444; }

.link-blue {
    color: #0066cc;
    text-decoration: none;
}
.link-blue:hover {
    text-decoration: underline;
}

/* 操作按钮 */
.action-box {
    margin-bottom: 15px;
}

.btn-buy {
    display: inline-block;
    background: #ff6b00;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 50px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-buy:hover {
    background: #e55f00;
}

.btn-cart {
    display: inline-block;
    background: #fff;
    color: #ff6b00;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #ff6b00;
    margin-left: 15px;
}

.btn-cart:hover {
    background: #fff5f0;
}

.btn-cart i {
    margin-right: 5px;
}

.btn-cart.in-cart {
    background: #f0f0f0;
    color: #999;
    border-color: #ddd;
    cursor: default;
}

.btn-cart.in-cart:hover {
    background: #f0f0f0;
}

/* 下单成功弹窗 */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 40px 60px;
    text-align: center;
    min-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border: 3px solid #5cb85c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon i {
    font-size: 40px;
    color: #5cb85c;
}

.modal-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    font-weight: normal;
}

.modal-text {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.modal-text span {
    color: #ff6b00;
    font-weight: bold;
}

.modal-btn {
    display: inline-block;
    background: #5bc0de;
    color: #fff;
    padding: 12px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
}

.modal-btn:hover {
    background: #46b8da;
}

/* 购物车弹窗特殊样式 */
.cart-icon {
    border-color: #ff6b00;
}

.cart-icon i {
    color: #ff6b00;
}

.modal-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn-continue {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
}

.modal-btn-continue:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.modal-btn-goto {
    background: #ff6b00;
}

.modal-btn-goto:hover {
    background: #e55f00;
}

.guarantee-text {
    font-size: 13px;
    color: #666;
    padding: 10px;
    background: #f9f9f9;
    border: 1px solid #e6e6e6;
}

.guarantee-text i {
    color: #5cb85c;
    margin-right: 5px;
}

/* ========== 标签页导航 ========== */
.tab-nav {
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.tab-item {
    display: block;
    padding: 12px 25px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    border-right: 1px solid #e6e6e6;
    cursor: pointer;
    background: transparent;
}

.tab-item:hover {
    background: #fff;
    color: #333;
}

.tab-item.active {
    background: #fff;
    color: #ff6b00;
    font-weight: bold;
    border-top: 2px solid #ff6b00;
    margin-top: -1px;
}

.btn-buy-mini {
    margin-left: auto;
    margin-right: 10px;
    background: #ff6b00;
    color: #fff;
    padding: 6px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 3px;
}

.btn-buy-mini:hover {
    background: #e55f00;
}

/* ========== 标签页内容 ========== */
.tab-content {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 20px;
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ========== 内容区块 ========== */
.section {
    margin-bottom: 30px;
}

.section:last-child {
    margin-bottom: 0;
}

.section-header {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff6b00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header i {
    color: #ff6b00;
    font-size: 18px;
}

/* 属性网格 - 表格样式 */
.attr-grid {
    display: grid;
    grid-template-columns: 90px 1fr 90px 1fr 90px 1fr 90px 1fr;
    border: 1px solid #e6e6e6;
    border-right: none;
    border-bottom: none;
}

.attr-label {
    font-size: 14px;
    color: #666;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    padding: 12px 15px;
    background: #fafafa;
    text-align: center;
}

.attr-value {
    font-size: 14px;
    color: #333;
    border-right: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    padding: 12px 15px;
    background: #fff;
}

/* 安装环境 - 3列布局 */
.env-grid {
    grid-template-columns: 90px 1fr 90px 1fr 90px 1fr;
}

.env-grid .attr-label {
    text-align: left;
}

/* 内容文本 */
.content-text {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.content-text p {
    margin-bottom: 10px;
}

.content-text img {
    max-width: 100%;
    height: auto;
}

/* 空状态 */
.empty-state {
    text-align: center !important;
    padding: 50px 0;
    color: #999;
    font-size: 14px;
}

/* ========== 右侧边栏 ========== */
.goods-sidebar {
    width: 280px;
    flex-shrink: 0;
    padding-top: 20px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

/* 店铺头部 */
.shop-header {
    text-align: center !important;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e6e6e6;
    margin: 0 0 15px 0 !important;
}

.shop-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.shop-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.shop-name {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.shop-name:hover {
    color: #ff6b00;
}

.shop-level {
    width: 20px;
    height: 20px;
}

/* 店铺元信息 */
.shop-meta {
    margin-bottom: 15px;
}

.meta-line {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.meta-name {
    color: #666;
    width: 70px;
    flex-shrink: 0;
}

.meta-data {
    color: #333;
}

.auth-icons img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* 联系区域 */
.contact-section {
    padding: 15px 0;
    border-top: 1px dashed #e6e6e6;
    border-bottom: 1px dashed #e6e6e6;
    margin-bottom: 15px;
}

.contact-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.contact-line {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-start;
}

.contact-line i {
    color: #0066cc;
    width: 16px;
}

.contact-line a {
    color: #0066cc;
    text-decoration: none;
}

.contact-line a:hover {
    text-decoration: underline;
}

/* 工作时间 */
.work-time {
    text-align: center !important;
    padding: 10px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.time-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.time-period {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

/* 店铺评分 */
.shop-rating {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    margin-bottom: 15px;
    border-top: 1px dashed #e6e6e6;
    border-bottom: 1px dashed #e6e6e6;
}

.rating-item {
    text-align: center !important;
}

.rating-name {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.rating-score {
    display: block;
    font-size: 14px;
    color: #ff6b00;
    font-weight: bold;
}

/* 店铺操作 */
.shop-actions {
    display: flex;
    gap: 10px;
}

.shop-actions a {
    flex: 1;
    text-align: center !important;
    padding: 8px 0;
    font-size: 13px;
    text-decoration: none;
    border-radius: 3px;
}

.btn-shop {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e6e6e6;
}

.btn-shop:hover {
    background: #e6e6e6;
}

.btn-favorite {
    background: #fff;
    color: #ff6b00;
    border: 1px solid #ff6b00;
}

.btn-favorite:hover {
    background: #ff6b00;
    color: #fff;
}

.btn-favorite.faved {
    background: #999;
    border-color: #999;
    color: #fff;
}

/* ========== 优品推荐 ========== */
.rec-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.rec-line {
    flex: 1;
    height: 1px;
    background: #e6e6e6;
}

.rec-title-text {
    padding: 0 15px;
    font-size: 14px;
    color: #666;
}

.rec-list {
    max-height: 500px;
    overflow-y: auto;
}

.rec-product {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #e6e6e6;
    text-decoration: none;
}

.rec-product:last-child {
    border-bottom: none;
}

.rec-product:hover {
    background: #f9f9f9;
}

.rec-thumb {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    flex-shrink: 0;
    object-fit: cover;
}

.rec-info {
    flex: 1;
    min-width: 0;
}

.rec-name {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rec-price {
    color: #ff6b00;
    font-size: 14px;
    font-weight: bold;
}
