/**
 * 产品详情页样式 (Product Detail Page)
 * @version 2.0.0
 * @description 独立样式，不依赖 style.min.css
 * @updated 2026-01-04
 */

/* ============================================
   页面主容器
   ============================================ */
.product-detail {
    padding: 40px 0 60px;
    background: #f5f5f5;
}

.product-detail__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: hidden;
}

/* ============================================
   产品概览区 (全宽)
   ============================================ */
.product-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* ============================================
   产品图库
   ============================================ */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 主图 - 16:9比例 (632x358) */
.product-gallery__main {
    position: relative;
    aspect-ratio: 632/358;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: zoom-in;
}

.product-gallery__main:hover img {
    transform: scale(1.02);
}

/* 缩略图列表 */
.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #f0f0f0;
}

.product-gallery__thumbs::-webkit-scrollbar {
    height: 6px;
}

.product-gallery__thumbs::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.product-gallery__thumbs::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.product-gallery__thumb {
    flex-shrink: 0;
    width: 100px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.product-gallery__thumb:hover {
    border-color: rgba(232, 149, 19, 0.5);
    transform: scale(1.05);
}

.product-gallery__thumb:hover img {
    transform: scale(1.1);
}

.product-gallery__thumb.is-active {
    border-color: var(--color-primary);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ============================================
   产品信息
   ============================================ */
.product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-info__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 20px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 16px;
}

.product-info__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #f59e0b);
    border-radius: 2px;
}

.product-info__desc {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin: 0 0 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-info__desc strong {
    color: var(--color-text);
    font-weight: 600;
}

/* 产品元信息 */
.product-info__meta {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info__meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-light);
}

.product-info__meta-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.product-info__meta-item span {
    color: var(--color-text);
}

/* 操作按钮 */
.product-info__actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.product-info__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.product-info__btn--primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
}

.product-info__btn--primary:hover {
    background: #d17e0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 149, 19, 0.4);
}

.product-info__btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.product-info__btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.product-info__btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ============================================
   内容区布局 (详细介绍+咨询 | 侧边栏)
   ============================================ */
.product-content {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-content__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ============================================
   内容区块
   ============================================ */
.content-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.content-section__header {
    background: linear-gradient(135deg, var(--color-primary), #d17e0a);
    padding: 16px 24px;
}

.content-section__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.content-section__body {
    padding: 24px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text);
}

.content-section__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content-section__body p {
    margin: 0 0 16px;
}

.content-section__body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   咨询表单
   ============================================ */
.inquiry-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inquiry-form__header {
    background: linear-gradient(135deg, var(--color-primary), #d17e0a);
    padding: 16px 24px;
}

.inquiry-form__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.inquiry-form__body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inquiry-form__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.inquiry-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquiry-form__group--full {
    grid-column: 1 / -1;
}

.inquiry-form__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.inquiry-form__label .required {
    color: #ef4444;
    margin-left: 4px;
}

.inquiry-form__input,
.inquiry-form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text);
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.inquiry-form__input:focus,
.inquiry-form__textarea:focus {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 149, 19, 0.1);
}

.inquiry-form__input::placeholder,
.inquiry-form__textarea::placeholder {
    color: #999;
}

.inquiry-form__textarea {
    min-height: 120px;
    resize: vertical;
    flex: 1;
}

/* 验证码 */
.inquiry-form__captcha {
    grid-column: 1 / -1;
}

.inquiry-form__captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.inquiry-form__captcha-input {
    flex: 1;
    max-width: 200px;
}

.inquiry-form__captcha-img {
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.inquiry-form__captcha-img:hover {
    opacity: 0.8;
}

.inquiry-form__actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.inquiry-form__submit {
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-form__submit:hover {
    background: #d17e0a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 149, 19, 0.4);
}

.inquiry-form__reset {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-light);
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-form__reset:hover {
    background: #e5e5e5;
}

/* ============================================
   上一篇/下一篇 (全宽)
   ============================================ */
.prev-next {
    display: flex;
    gap: 20px;
}

.prev-next__item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.prev-next__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.prev-next__item--prev {
    justify-content: flex-start;
}

.prev-next__item--next {
    justify-content: flex-end;
    text-align: right;
}

.prev-next__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
}

.prev-next__icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
    stroke-width: 2;
    fill: none;
}

.prev-next__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.prev-next__label {
    font-size: 12px;
    color: var(--color-text-light);
}

.prev-next__title {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prev-next__item:hover .prev-next__title {
    color: var(--color-primary);
}

/* ============================================
   最新新闻区块 (全宽3列网格)
   ============================================ */
.news-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 30px;
}

.news-section__header {
    background: linear-gradient(135deg, var(--color-primary), #d17e0a);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-section__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.news-section__subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.news-card {
    display: block;
    text-decoration: none;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    box-sizing: border-box;
}

.news-card:hover {
    background: #fff;
    border-left-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.news-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-card__title {
    color: var(--color-primary);
}

.news-card__date {
    font-size: 12px;
    color: var(--color-text-light);
}

/* 响应式样式已迁移至 responsive.css */
