:root {
    --yubang-gold: #d4af37;
    --yubang-dark: #222222;
    --yubang-light: #f8f8f8;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}
.container-custom .content{
    background: #f5f5f7;
    padding :100px;
    border:1px solid #38383a;
    padding-bottom: 0;
    padding-top:40px;
}
.order-2{
    background: #fff;
    padding:50px
}

.hero-section {
    background-color: #fff;
    padding: 3rem 0;
}
.hero-section h1 {
    margin-bottom: 1rem;
}
.hero-section p.lead {
    font-size: 1rem;
    line-height: 1.6;
}
.video-placeholder {
    background-color: #000;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
}
.tab-content{
    border: 1px solid #e6bf0c;
    background: #fff;
    padding: 15px;
}
/* 图片同款直角梯形 Tab 样式 */
.spec-tabs {
    position: relative;
    margin-bottom: 2rem;
}
.spec-tabs .nav {
    border-bottom: none;
    display: flex;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}
.spec-tabs .nav-item {
    margin-right: 0;
    position: relative;
}
/* 未激活状态 Tab - 白色底 + 金色边框 */
.spec-tabs .nav-link {
    background-color: #e6bf0c;
    color: #000000;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.8rem 2rem 0.8rem 1.5rem;
    white-space: nowrap;
    /* 左侧斜边的直角梯形（和图片一致） */
    clip-path:polygon(0 0, 80% 0, 100% 100%, 0 100%);
    transition: all 0.3s ease;
    z-index: 3;
    border-radius: 6px 6px 0 0;
}
/* 激活状态 Tab - 金色底 */
.spec-tabs .nav-link.active {
    background-color: #fff;
    color: #000000;
    border-bottom: none;
    border-color: #e6bf0c;
    z-index: 1; /* 激活的Tab在最上层 */
}
.spec-tabs .nav-link:hover:not(.active) {
    background-color: #fff;
}
/* Tab下方的金色边框条 */
.spec-tabs::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 1;
}

.spec-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
    /* 优化滚动体验 */
    scrollbar-width: thin;
}
.spec-table {
    border: 2px solid var(--yubang-gold);
    width: 100%;
    min-width: 600px;
    /* 确保表格单元格继承换行属性 */
    table-layout: auto;
}
.spec-table th, .spec-table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
    /* 关键：允许单元格内容换行 */
    white-space: normal !important;
    word-wrap: break-word;
    word-break: break-word;
}
.spec-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    /* 表头文字不换行，保持简洁 */
    white-space: nowrap;
}
.section-title {
    color: var(--yubang-dark);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.enquiry-form {
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-top: 2rem;
}
.btn-enquiry {
    background-color: var(--yubang-gold);
    color: #000;
    font-weight: 600;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
}
.btn-enquiry:hover {
    background-color: #b8952d;
    color: #000;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 0.8rem;
}
.social-icons a:hover {
    color: var(--yubang-gold);
}
.accordion-button {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}
.accordion-body {
    font-size: 0.9rem;
    line-height: 1.6;
}
img.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 767.98px) {
    .container-custom {
        padding-left: 10px;
        padding-right: 10px;
    }
    .container-custom .content{
        background: #f5f5f7;
        padding :20px;
        border:1px solid #38383a;
        padding-bottom: 0;
    }
    .order-2{
        background: #fff;
        padding:20px
    }
    .navbar-brand img {
        height: 35px;
    }
    .hero-section p {
        margin-bottom: 1rem;
        line-height: 1.7;
    }
    .spec-tabs .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .spec-tabs .nav-item {
        margin-bottom: 0;
    }
    .spec-tabs .nav-link {
        padding: 0.6rem 1.2rem 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .video-placeholder {
        height: 150px;
    }
    /* 移动端表格优化 */
    .spec-table {
        min-width: 100%;
    }
    .spec-table th, .spec-table td {
        font-size: 0.85rem;
        padding: 0.4rem;
        /* 强制移动端换行 */
        white-space: normal !important;
        word-wrap: break-word;
        word-break: break-word;
    }
    .right-pic{
        background: #fff;
    }
}
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .enquiry-form {
        padding: 1rem;
    }
    .form-control {
        padding: 0.75rem 0.75rem;
        font-size: 0.95rem;
    }
}
