/* 产品详情页样式 */
.product-details {
    background: #f8f9fa;
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    opacity: 0.9;
}

/* 返回首页区域 */
.back-section {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* 返回按钮样式 */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 25px;
    background: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.back-btn:hover {
    background: var(--light-gray);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.back-btn i {
    font-size: 20px;
    margin-right: 4px;
    color: var(--primary-color);
}

/* 添加按钮动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.back-btn {
    animation: pulse 2s infinite;
}

.back-btn:hover {
    animation: none;
}

/* 产品卡片 */
.product-item-detail {
    background: white;
    border-radius: 20px;
    margin-bottom: 60px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    padding: 40px;
}

/* 产品图片区域 */
.product-image {
    position: relative;
}

.image-wrapper {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.image-wrapper:hover {
    transform: scale(1.02);
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
}

.image-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* 产品信息区域 */
.product-header {
    margin-bottom: 40px;
}

.product-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.subtitle {
    font-size: 18px;
    color: #666;
}

/* 特性展示 */
.key-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature i {
    font-size: 24px;
    color: var(--primary-color);
    background: white;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 12px;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.feature-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 规格表格 */
.product-details-section {
    background: #f8f9fa;
    padding: 40px;
    border-top: 1px solid #eee;
}

.specs-table h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-weight: 500;
    color: var(--text-color);
    width: 20%;
}

td {
    color: #666;
}

/* 按钮样式 */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-outline {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24,144,255,0.3);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .product-content {
        grid-template-columns: 1fr;
    }

    .key-features {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    .back-btn {
        font-size: 16px;
        padding: 10px 20px;
    }

    .back-btn:hover {
        transform: scale(1.05);
    }

    /* 移动端动画调整 */
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
}

@media (max-width: 480px) {
    .product-content {
        padding: 20px;
    }

    .product-details-section {
        padding: 20px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .product-header h2 {
        font-size: 24px;
    }

    .back-btn {
        padding: 8px 18px;
        font-size: 15px;
    }

    .hero-section {
        padding: 40px 0 30px;
    }
}

/* 下单对话框样式 */
.order-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.order-dialog.active {
    display: flex;
}

.dialog-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dialog-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.dialog-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 22px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.dialog-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
    outline: none;
}

/* 必填标记 */
.form-group label.required::after {
    content: "*";
    color: #ff4d4f;
    margin-left: 4px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

/* 备注文本框样式 */
.form-group textarea#remark {
    height: 80px;
    color: #666;
    background-color: #fff;
    border-style: dashed;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    border: 2px solid #eee;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.quantity-control button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.quantity-control input {
    width: 60px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-actions button {
    min-width: 120px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .dialog-content {
        width: 95%;
    }

    .dialog-body {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .form-actions button {
        width: 100%;
    }
}

/* 地址选择样式 */
.address-selects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.address-selects select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
}

.address-selects select:hover {
    border-color: var(--primary-color);
}

.address-selects select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24,144,255,0.1);
    outline: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .address-selects {
        grid-template-columns: 1fr;
        gap: 8px;
    }
} 