/* 报价页面专用样式 */
.quote-main {
    padding-top: 0;
}

.quote-hero {
    height: 40vh;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.quote-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* 侧边导航 */
.quote-sidebar {
    flex: 0 0 250px;
}

.service-nav {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 100px;
}

.service-btn {
    padding: 1rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-color);
}

.service-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.service-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

/* 报价内容 */
.quote-content {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

.quote-form {
    display: none;
}

.quote-form.active {
    display: block;
}

.quote-form h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 表单验证样式 */
.input-error {
    border: 1px solid #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
}

.validation-errors {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 4px solid #e74c3c;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.validation-errors ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #e74c3c;
}

.validation-errors li {
    margin-bottom: 0.5rem;
}

.validation-errors li:last-child {
    margin-bottom: 0;
}

.form-group select, 
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}
/* 文件上传要求说明区域 */
.upload-requirements {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.upload-requirements:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.upload-requirements h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.upload-requirements h3:before {
    content: '📋';
    margin-right: 0.8rem;
    font-size: 1.4rem;
}

.upload-requirements h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, rgba(52, 152, 219, 0.2) 100%);
    border-radius: 3px;
}

.upload-requirements h3:before {
    content: '📋';
    margin-right: 0.8rem;
    font-size: 1.4rem;
}

.upload-requirements h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, rgba(52, 152, 219, 0.2) 100%);
    border-radius: 3px;
}

.upload-requirements ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.upload-requirements li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.6;
    transition: transform 0.2s ease;
}

.upload-requirements li:before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.upload-requirements li:hover {
    transform: translateX(5px);
}

.upload-requirements li:last-child {
    margin-bottom: 0;
}

.size-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.size-inputs input {
    width: 150px;
}

.size-inputs span {
    color: var(--text-color);
    font-weight: 500;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #c0392b;
}

/* 让 PCB类型 和 上传文件类型 并排放置 */
.flex-container {
    display: flex;
    gap: 1rem;
}

.half-width {
    flex: 1;
}

/* 上传文件的四个按钮 2X2 布局 */
.grid-container-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .quote-container {
        flex-direction: column;
    }

    .quote-sidebar {
        flex: none;
    }

    .service-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-btn {
        flex: 1 1 auto;
        text-align: center;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .quote-hero {
        height: 30vh;
    }

    .quote-container {
        margin-top: -40px;
        padding: 1rem;
    }

    .service-nav {
        padding: 0.5rem;
    }

    .service-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .quote-content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .size-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .size-inputs input {
        width: 100%;
    }
}
