.product-detail {
    padding: 0 3rem;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0 0;
    font-size: 0.9rem;
    line-height: 2rem;
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 0.5rem;
    color: var(--dark-gray);
}

/*.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
}*/

.breadcrumb [aria-current] {
    color: var(--text-color);
}

/* 产品详情主容器 */
.product-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .product-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* 产品图库 */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--light-gray);
}

.product-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    aspect-ratio: 4/3;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
}

.thumbnail {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail.active {
    border-color: var(--secondary-color);
}

.thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

/* 产品信息 */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stars {
    color: #f39c12;
}

/* 价格样式 */
.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}

.original-price {
    text-decoration: line-through;
    color: var(--dark-gray);
}

.discount {
    background-color: var(--accent-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 产品描述 */
.product-description {
    line-height: 1.7;
}

.product-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* 产品操作按钮 */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    border: none;
    background-color: var(--light-gray);
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 3rem;
    height: 2.5rem;
    text-align: center;
    border: none;
    border-left: 1px solid var(--medium-gray);
    border-right: 1px solid var(--medium-gray);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart,
.buy-now {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 150px;
}

.add-to-cart {
    background-color: var(--secondary-color);
    color: white;
}

.add-to-cart:hover {
    background-color: #2980b9;
}

.buy-now {
    background-color: var(--accent-color);
    color: white;
}

.buy-now:hover {
    background-color: #c0392b;
}

/* 产品规格 */
.product-specs dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.5rem 1rem;
}

.product-specs dt {
    font-weight: bold;
    color: var(--primary-color);
}

.product-specs dd {
    margin-left: 0;
}

/* 标签页 */
.tabs {
    margin-top: 2rem;
}

.tabs [role="tablist"] {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 1rem;
}

.tabs [role="tab"] {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    color: var(--dark-gray);
    transition: var(--transition);
}

.tabs [role="tab"][aria-selected="true"] {
    color: var(--primary-color);
}

.tabs [role="tab"][aria-selected="true"]::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tabs [role="tabpanel"] {
    padding: 1rem 0;
}

.tabs [role="tabpanel"] h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
}

/* 相关产品 */
.related-products {
    margin: 3rem 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-info {
    padding: 1rem;
}

.related-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-price {
    color: var(--accent-color);
    font-weight: bold;
}