/* 商品详情页样式 - 杭州大盘荆芥科技有限公司商城 */

/* 全局样式重置 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8faf7;
    margin: 0;
    padding: 0;
}

/* 容器样式 */
.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zh_goods_main {
    background: #f8faf7;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

/* 面包屑导航 */
.zh_breadcrumb {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.1);
    font-size: 14px;
}

.zh_breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.zh_breadcrumb a:hover {
    color: #45a049;
}

.zh_breadcrumb span {
    margin: 0 8px;
    color: #999;
}

.zh_breadcrumb i {
    margin-right: 5px;
}

/* 商品主要区域 */
.zh_goods_section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.zh_goods_row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* 商品图片区域 */
.zh_goods_images {
    flex: 1;
    max-width: 500px;
}

.zh_main_image {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.zh_main_image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.zh_main_image:hover img {
    transform: scale(1.05);
}

.zh_image_zoom {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.zh_main_image:hover .zh_image_zoom {
    opacity: 1;
}

.zh_image_zoom:hover {
    background: #45a049;
    transform: scale(1.1);
}

/* 缩略图列表 */
.zh_thumbnail_list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
}

.zh_thumbnail_item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.zh_thumbnail_item.active {
    border-color: #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.zh_thumbnail_item:hover {
    border-color: #81C784;
    transform: translateY(-2px);
}

.zh_thumbnail_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区域 */
.zh_goods_info {
    flex: 1;
    min-width: 400px;
}

.zh_goods_header {
    margin-bottom: 25px;
}

.zh_goods_title {
    font-size: 28px;
    font-weight: 600;
    color: #2E7D32;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.zh_goods_subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* 价格区域 */
.zh_price_section {
    background: linear-gradient(135deg, #E8F5E8 0%, #F1F8E9 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px solid #C8E6C9;
}

.zh_current_price {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
}

.zh_currency {
    font-size: 20px;
    color: #4CAF50;
    font-weight: 600;
    margin-right: 5px;
}

.zh_price {
    font-size: 36px;
    color: #4CAF50;
    font-weight: 700;
}

.zh_market_price,
.zh_promotion_price {
    font-size: 14px;
    color: #999;
}

.zh_market_price span:last-child {
    text-decoration: line-through;
}

.zh_promotion_price {
    color: #FF5722;
    font-weight: 600;
}

/* 商品详细信息 */
.zh_goods_details {
    margin-bottom: 25px;
}

.zh_detail_item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.zh_detail_item:last-child {
    border-bottom: none;
}

.zh_label {
    font-weight: 500;
    color: #666;
    min-width: 80px;
}

.zh_value {
    color: #333;
    font-weight: 500;
}

.zh_unit {
    margin-left: 5px;
    color: #999;
    font-size: 14px;
}

/* 规格选择区域 */
.zh_spec_section {
    margin-bottom: 25px;
}

.zh_spec_group {
    margin: 0 0 20px 0;
}

.zh_spec_label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.zh_spec_options {
    margin: 0;
}

.zh_spec_list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.zh_spec_item {
    margin: 0;
}

.zh_spec_option {
    display: inline-block;
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.zh_spec_option:hover {
    border-color: #4CAF50;
    color: #4CAF50;
    transform: translateY(-1px);
}

.zh_spec_option.hovered {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}

.zh_spec_option.disable {
    background: #f5f5f5;
    color: #ccc;
    border-color: #f0f0f0;
    cursor: not-allowed;
}

.zh_spec_option i {
    display: none;
}

/* 数量选择区域 */
.zh_quantity_section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.zh_quantity_label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.zh_quantity_control {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.zh_quantity_btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f8f8;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zh_quantity_btn:hover {
    background: #4CAF50;
    color: white;
}

.zh_quantity_input {
    width: 80px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: white;
    outline: none;
}

.zh_stock_info {
    color: #666;
    font-size: 14px;
}

/* 购买按钮区域 */
.zh_purchase_section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.zh_btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-content: center;
    min-width: 140px;
}

.zh_btn_cart {
    background: #fff;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.zh_btn_cart:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

.zh_btn_buy {
    background: #4CAF50;
    color: white;
    border: 2px solid #4CAF50;
}

.zh_btn_buy:hover {
    background: #45a049;
    border-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.zh_btn_disabled {
    background: #f0f0f0;
    color: #999;
    border: 2px solid #e0e0e0;
    cursor: not-allowed;
}

.zh_btn_appoint {
    background: #FF9800;
    color: white;
    border: 2px solid #FF9800;
}

.zh_btn_appoint:hover {
    background: #F57C00;
    border-color: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.3);
}

.zh_btn_outline {
    background: transparent;
    color: #4CAF50;
    border: 2px solid #4CAF50;
    padding: 10px 20px;
    font-size: 14px;
}

.zh_btn_outline:hover {
    background: #4CAF50;
    color: white;
}

/* 店铺信息区域 */
.zh_store_section {
    margin-bottom: 30px;
}

.zh_store_card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
    border: 1px solid #E8F5E8;
}

.zh_store_header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.zh_store_avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4CAF50;
}

.zh_store_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zh_store_info {
    flex: 1;
}

.zh_store_name {
    font-size: 20px;
    font-weight: 600;
    color: #2E7D32;
    margin: 0 0 8px 0;
}

.zh_store_rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zh_stars {
    color: #FFC107;
}

.zh_rating_score {
    color: #666;
    font-size: 14px;
}

.zh_store_contact {
    margin-bottom: 15px;
}

.zh_contact_item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.zh_contact_item a {
    color: #4CAF50;
    text-decoration: none;
}

.zh_contact_item a:hover {
    color: #45a049;
}

.zh_store_business {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.zh_business_title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.zh_business_content {
    color: #666;
    line-height: 1.5;
}

/* 选项卡区域 */
.zh_tabs_section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.1);
}

.zh_tabs_nav {
    display: flex;
    background: #f8faf7;
    border-bottom: 1px solid #e0e0e0;
}

.zh_tab_btn {
    flex: 1;
    padding: 18px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
}

.zh_tab_btn:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.zh_tab_btn.active {
    color: #4CAF50;
    background: white;
    border-bottom-color: #4CAF50;
    font-weight: 600;
}

.zh_tabs_content {
    padding: 30px;
}

.zh_tab_panel {
    display: none;
}

.zh_tab_panel.active {
    display: block;
}

/* 商品详情内容 */
.zh_goods_description {
    line-height: 1.8;
}

.zh_default_content h3 {
    color: #2E7D32;
    font-size: 20px;
    margin: 20px 0 15px 0;
}

.zh_default_content img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    margin: 20px 0;
}

.zh_default_content ul {
    list-style: none;
    padding: 0;
}

.zh_default_content li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #333;
}

.zh_default_content li i {
    color: #4CAF50;
    font-size: 16px;
}

/* 参数表格 */
.zh_params_table h3 {
    color: #2E7D32;
    font-size: 20px;
    margin: 0 0 20px 0;
}

.zh_table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.zh_table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.zh_table tr:nth-child(even) {
    background: #f8faf7;
}

.zh_table td:first-child {
    background: #E8F5E8;
    font-weight: 600;
    color: #2E7D32;
    width: 150px;
}

/* 评价和咨询内容 */
.zh_reviews_content,
.zh_qa_content {
    min-height: 200px;
}

/* 移动端购买栏 */
.zh_mobile_bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.zh_mobile_content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
}

.zh_mobile_price {
    display: flex;
    align-items: baseline;
}

.zh_mobile_price .zh_currency {
    font-size: 16px;
    color: #4CAF50;
    font-weight: 600;
}

.zh_mobile_price .zh_price {
    font-size: 24px;
    color: #4CAF50;
    font-weight: 700;
}

.zh_mobile_buttons {
    display: flex;
    gap: 10px;
    flex: 1;
}

.zh_mobile_btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.zh_mobile_cart {
    background: #fff;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.zh_mobile_buy {
    background: #4CAF50;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zh_container {
        padding: 0 15px;
    }
    
    .zh_goods_main {
        padding: 15px 0;
    }
    
    .zh_goods_section {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .zh_goods_row {
        flex-direction: column;
        gap: 25px;
    }
    
    .zh_goods_images {
        max-width: 100%;
    }
    
    .zh_goods_info {
        min-width: auto;
    }
    
    .zh_goods_title {
        font-size: 22px;
    }
    
    .zh_price {
        font-size: 28px !important;
    }
    
    .zh_currency {
        font-size: 16px !important;
    }
    
    .zh_purchase_section {
        margin-bottom: 80px;
    }
    
    .zh_btn {
        flex: 1;
        min-width: auto;
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .zh_store_header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .zh_store_avatar {
        width: 60px;
        height: 60px;
    }
    
    .zh_tabs_nav {
        flex-wrap: wrap;
    }
    
    .zh_tab_btn {
        flex: 1;
        min-width: 50%;
        font-size: 14px;
        padding: 15px 10px;
    }
    
    .zh_tabs_content {
        padding: 20px 15px;
    }
    
    .zh_mobile_bar {
        display: block;
    }
    
    .zh_breadcrumb {
        font-size: 12px;
        padding: 12px 15px;
    }
    
    .zh_quantity_section {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .zh_main_image img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .zh_goods_title {
        font-size: 18px;
    }
    
    .zh_price {
        font-size: 24px !important;
    }
    
    .zh_currency {
        font-size: 14px !important;
    }
    
    .zh_tab_btn {
        font-size: 12px;
        padding: 12px 8px;
    }
    
    .zh_main_image img {
        height: 250px;
    }
    
    .zh_thumbnail_item {
        width: 60px;
        height: 60px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zh_goods_section,
.zh_store_section,
.zh_tabs_section {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载状态 */
.zh_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
}

.zh_loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 滚动条样式 */
.zh_thumbnail_list::-webkit-scrollbar {
    height: 4px;
}

.zh_thumbnail_list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.zh_thumbnail_list::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 2px;
}

.zh_thumbnail_list::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}
