:root {
    --dark: #003B4A;
    --blue: #afd4e2;
    --gray: #bdbdbd;
    --white: #ffffff;
    --orange: #FC890D;
    --brown: #BD7D39;
}

/* 隐藏滚动条但保持滚动功能 */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE/Edge */
body {
    -ms-overflow-style: none;
}

/*全局的button样式*/
.btn-primary {
    background-color: var(--dark) !important;
    padding: 0.3rem 2rem;
    border-color: var(--dark) !important;
    margin-right: 1rem;
    border-radius: 0;
    font-size: 0.8rem;
}

.btn-primary:hover {
    background-color: var(--blue) !important;
    border-color: var(--dark) !important;
    color: var(--dark)
}

.btn-contact {
    background-color: var(--blue) !important;
    padding: 0.3rem 2rem;
    border-color: var(--dark) !important;
    border-radius: 0;
    font-size: 0.8rem;
}

.btn-contact:hover {
    background-color: var(--dark) !important;
    color: var(--white)
}

/* 通用导航栏样式 */
.navbar-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--blue) !important;
}

.navbar-fixed .navbar-brand,
.navbar-fixed .nav-link {
    color: var(--dark) !important;
}

.navbar-brand img {
    height: 50px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/*通用卡片样式*/
.shadow-lg {
    box-shadow: 0 0.5rem 1rem var(--blue) !important;
}

.card-title {
    font-weight: 400;
    color: var(--dark);
}

.card-body {
    padding: 25px 25px 25px 25px;
    color: var(--dark);
}

/*通用图片容器及图片样式,根据不同情况,在标签中设置aspect-ratio属性*/
.img-container {
    width: 100%;
    /*aspect-ratio: 1;*/
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 折叠面板样式, 在展示效果图时使用 */
.accordion-button {
    background-color: var(--dark);
    color: var(--white) !important;
    font-weight: 300;
    padding: 0.3rem 2rem;
    transition: all 0.2s ease-in-out;
    border-radius: 0 !important;
}

.accordion-item {
    border-radius: 0 !important;
}

/* 展开状态下的按钮样式 */
.accordion-button:not(.collapsed) {
    color: var(--dark);
    background-color: var(--blue);
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* 购物车按钮样式 */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--orange);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 购物车页面样式 */
.cart-item-image {
    height: 100px;
    object-fit: cover;
}

.quantity-input {
    max-width: 60px;
}

.order-summary-card {
    position: sticky;
    top: 100px;
}

/*下拉菜单样式，应用于navebar 预订页 project选择下拉菜单*/
.dropdown-item {
    color: var(--dark) !important;
    font-size: 0.8rem;
    font-weight: 200;
    margin: 0;
}

.dropdown-item:hover {
    background-color: var(--blue) !important;
}


/*设置每个板块的上下边距*/
.block_padding {
    padding-top: 8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 991px) {
    .block_padding {
        padding-top: 3rem;
    }
}

/*链接文字样式*/
a {
    text-decoration: none;
}

/*字体样式*/
.t_1 {
    color: var(--dark);
    font-size: clamp(1.8rem, 5vw, 6vw);
    max-width: 12ch;
    letter-spacing: 0.06em;
    font-weight: 500;
    line-height: 1.2;
}

.fs-7 {
    font-size: 0.8rem;
    font-weight: 200;
    color: var(--dark);
}

p {
    white-space: pre-line;
    color: var(--dark);
}

.fw_500 {
    font-weight: 500;
}

.fw_400 {
    font-weight: 400;
}

.fw_300 {
    font-weight: 300;
}

.fw_200 {
    font-weight: 200;
}

.font_gray {
    color: var(--gray);
}

.font_blue {
    color: var(--blue);
}

.font_dark {
    color: var(--dark);
}

.font_white {
    color: white;
}

/* 页脚样式 */
footer {
    background-color: var(--dark);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #ddd;
    text-decoration: underline;
}

footer h5 {
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/*通讯按钮区域设置*/
.contact-icons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    pointer-events: auto;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px var(--gray);
    color: var(--dark);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--dark);
    pointer-events: auto;
}

/* 在小屏幕上适当调整 */
@media (max-width: 992px) {
    .contact-icons {
        right: 5px;
        bottom: 100px;
    }

    .contact-icon {
        width: 33px;
        height: 33px;
        font-size: 15px;
    }
}

.contact-icon:hover {
    background-color: var(--dark);
    color: white;
    transform: translateY(-3px);
}

.kdf-icon {
    background-image: url("../images/icons/kdf.ico");
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.rgd-icon {
    background-image: url("../images/icons/rgd.ico");
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.htl-icon {
    background-image: url("../images/icons/htl.ico");
    display: inline-block;
    width: 1em;
    height: 1em;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

