@charset "UTF-8";
.breadcrumb {
    margin: 20px 0;
    font-size: 0.85rem;
    color: #6c7a8e;
}
.breadcrumb a {
    color: #993448;
    text-decoration: none;
}

/* 左右布局主区域 */
.product-detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 20px 0 50px;
}
/* 左侧：产品信息 */
.product-info-left {
    flex: 1.2;
    min-width: 280px;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.product-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a2c3e;
    margin-bottom: 12px;
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.stars {
    color: #f5a623;
    letter-spacing: 2px;
}
.like-count {
    color: #6c7a8e;
    font-size: 0.8rem;
}
.product-price-info {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 16px 0;
}
.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #993448;
}
.original-price {
    font-size: 1rem;
    color: #8e9eae;
    text-decoration: line-through;
    margin-left: 12px;
}
.product-stock {
    display: inline-block;
    background: #e8f7ef;
    color: #993448;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 10px;
}
.product-desc h2{
    margin: 20px 0;
    color: #5c6f87;
    line-height: 1.7;
    font-size: 18px;
}
.product-features {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 16px;
    margin: 16px 0;
}
.product-features h4 {
    margin-bottom: 12px;
    color: #1a2c3e;
}
.product-features ul {
    padding-left: 20px;
}
.product-features li {
    margin-bottom: 8px;
    color: #5c6f87;
}

/* 账号信息卡片 */
.account-info-card {
    background: linear-gradient(135deg, #e8f5ef 0%, #d4e9e0 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}
.account-info-card h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #1a2c3e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.info-row:last-child {
    border-bottom: none;
}
.info-label {
    font-weight: 500;
    color: #4a5b6e;
}
.info-value {
    font-weight: 600;
    color: #1a2c3e;
}
.info-value.highlight {
    color: #993448;
}

/* 右侧：购买表单 */
.purchase-sidebar {
    flex: 0.9;
    min-width: 320px;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    height: fit-content;
    position: sticky;
    top: 80px;
}
.purchase-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}
.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2f6;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}
.quantity-btn:hover {
    background: #993448;
    color: white;
}
.quantity-num {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}
.total-amount {
    background: #e8f5ef;
    padding: 12px 16px;
    border-radius: 12px;
    text-align: center;
}
.total-amount span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #993448;
}
.email-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    font-size: 0.9rem;
}
.email-input:focus {
    outline: none;
    border-color: #993448;
}

/* 支付方式 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}
.payment-method {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f8fafc;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 0.8rem;
}
.payment-method:hover {
    background: #e8f5ef;
}
.payment-method.selected {
    border-color: #993448;
    background: #e8f5ef;
}
.submit-btn {
    background: #993448;
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}
.submit-btn:hover {
    background: #e00046;
    transform: translateY(-2px);
}
.submit-btn.loading {
    background: #8e9eae;
    cursor: not-allowed;
    transform: none;
}

/* 相关产品区域 */
.related-products {
    margin: 40px 0;
}
.related-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    padding-left: 12px;
    border-left: 4px solid #993448;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.related-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s;
    border: 1px solid #eef2f6;
    text-decoration: none;
    display: block;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #d0e2d6;
}
.related-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a2c3e;
    margin-bottom: 8px;
    line-height: 1.4;
}
.related-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #993448;
    margin: 8px 0;
}
.related-stock {
    font-size: 0.7rem;
    color: #993448;
}
/* ============ 相关文章区域 ============ */
.related-articles {
    margin: 40px 0;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.article-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #eef2f6;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #d0e2d6;
}
.article-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    background: #e8f7ef;
    color: #1f8b4c;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}
.article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2c3e;
    line-height: 1.5;
    transition: color 0.2s;
}
.article-card:hover .article-title {
    color: #993448;
}
.article-excerpt {
    font-size: 0.82rem;
    color: #6c7a8e;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #9aa9b8;
    padding-top: 10px;
    border-top: 1px dashed #eef2f6;
}
.article-meta .read-more {
    color: #993448;
    font-weight: 500;
}

/* 相关文章移动端适配 */
@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; gap: 16px; }
    .article-card { padding: 16px; }
    .article-title { font-size: 0.95rem; }
}