/* 1.通用组件 */
/* 1.1 Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    background: var(--bg);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header .container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-logo-link img {
    width: 2.5rem;
    height: auto;
}

.menubtn {
    display: none;
}

#navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.navigation ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.navigation ul li.active a {
    color: var(--primary);
}

/* 移动端导航 */


@media (max-width: 992px) {
    .menubtn {
        display: block;
        background: none;
        border: none;
        font-size: 1.25rem;
        color: var(--text);
        cursor: pointer;
    }

    #navigation a {
        display: block;
        color: var(--light);
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--light);
    }

    #navigation {
        position: fixed;
        top: 5rem;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
        display: flex;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 0.5rem;
    }

    .navigation {
        width: 100%;
    }

    #navigation.show {
        opacity: 1;
        visibility: visible;
        background: var(--heavy);
    }

    .navigation ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0.5rem;
    }

    .navigation ul li {
        width: 100%;
    }

    .search-icon {
        width: 100%;
        text-align: center;
    }
  }

/* 1.2 Main */
main {
    padding-top: 5rem;
}

/* 1.3 Breadcrumb */
.breadcrumb {
    background: var(--gray);
    padding: 0.5rem 0;
}

/* 1.4 Form */
#form {
    padding: 2rem 0;
}

#form h2 {
    text-align: center;
    color: var(--primary);
}

/* 1.5 弹性布局 */
.cards {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5%;
}

.card {
    width: 30%;
    text-align: center;
    border: 1px dashed var(--gray);
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.wrappers {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 5%;
    padding: 1rem 0;
}

.wrapper {
    width: 100%;
    align-self: stretch;
}

.wrapper img {
    height: 100%;
}

.list {
    display: flex;
    justify-content: space-between;
    gap: 4%;
}

.list li {
    width: 22%;
    padding: 1rem 0;
}

.warps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5%;
}

.warp {
    width: 47.5%;
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: 0.5rem;
    margin: 0.5rem 0;
    background: var(--light);
}

@media (max-width:992px) {
    .card {
        width: 47.5%;
    }

    .list {
        flex-wrap: wrap;
    }

    .list li {
        width: 47.5%;
        padding: 1rem 0;
    }
}

@media (max-width:768px) {
    .wrappers {
        flex-direction: column;
    }

    .wrapper img {
        height: auto;
        margin: 0.5rem 0;
    }
}

/* 1.6 Content */
section {
    padding: 2rem 0;
}

#hero {
    padding-top: 0;
    border-bottom: 1px solid var(--gray);
}

/* 2. 页面样式 */
/* 2.1 Home */
/* 2.1.1 Hero */
#hero h2 {
    color: var(--primary);
}

/* 2.1.2 Featured Products */
.features h2 {
    text-align: center;
    color: var(--primary);
}

/* 2.1.3 Production Flow */
#flow {
    background: var(--primary);
    color: var(--bg);
    padding: 2rem 0;
}

.flow {
    border: 1px solid var(--gray);
    padding: 1rem;
    border-radius: 0.25rem;
}

.flow h3 {
    border-bottom: 1px dashed var(--gray);
    padding-bottom: 0.5rem;
}

/* 2.2 About */
#glance {
    background: var(--heavy);
    color: var(--bg);
    text-align: center;
}

#glance .list {
    font-size: 1.5rem;
}

@media (max-width:576px) {
    #glance .list {
        font-size: 1.25rem;
    }
}

.label {
    color: var(--accent);
}

.quantity,
.unit {
    font-weight: 700;
    margin: 0.875em 0;
}

/* 2.3 Contact */
.info i {
    font-size: 1rem;
    line-height: 1.6;
    margin-right: 0.5rem;
    color: var(--primary);
}

/* 2.4 Services */
#offerings {
    background: var(--heavy);
    color: var(--light);
}

#offerings h2 {
    text-align: center;
}

#offerings .card {
    border: none;
}

#offerings dt {
    border-bottom: 1px dashed var(--gray);
    padding-bottom: 0.5rem;
}

#offerings dd {
    padding: 0.5rem 0;
}

#advantages {
    border-bottom: 1px solid var(--gray);
}

#advantages h2 {
    text-align: center;
    color: var(--primary);
}

#terms-conditions {
    background: var(--gray);
}

#terms-conditions h2 {
    color: var(--heavy);
}

#terms-conditions h3 {
    color: var(--primary);
}

/* 3.设备相关页面 */
/* 3.1 产品目录 */
#catalog {
    position: sticky;
    top: 5rem;
}

.catalog {
  background: rgba(51, 102, 153, 0.95);
  backdrop-filter: blur(10px) saturate(120%);
  padding: 1rem;
  border-radius: 1rem;
  z-index: 100;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.catalog-list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
}

.catalog-list li {
    padding: 0.25rem 0;
}

.catalog-list li a {
    font-size: 0.875rem;
    color: var(--light);
}

.catalog-list li a:hover {
    color: var(--accent);
}

.catalog-list a.active {
    color: var(--accent);
}

#catalog li a::after {
  content: " | ";
  padding: 0 4px; /* 左右小间隔 */
}
#catalog li:last-child a::after {
  content: ""; /* 最后一个去掉 | */
}

.catalog-mobile-menu {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 220px;
  background: rgba(30,30,40,.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem;
  z-index: 9998;
  list-style: none;
}

/* 3.1.1 产品目录切换按钮 */
/* ======================
   桌面端正常显示
====================== */
.catalog-toggle {
  display: none;
}

/* ======================
   992px 以下移动端
====================== */
@media (max-width: 992px) {
    /* 隐藏整个目录 section */
    #catalog {
        display: none;
    }

    /* 悬浮按钮 - 固定在屏幕右下角 */
    .catalog-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--primary);
        border: none;
        position: fixed;
        right: 20px;
        bottom: 5rem;
        z-index: 9999;
        cursor: pointer;
    }

    /* 三条杠图标 */
    .catalog-toggle::before {
        content: '';
        width: 22px;
        height: 2px;
        background: #fff;
        position: relative;
        box-shadow: 0 7px 0 #fff, 0 -7px 0 #fff;
    }

    /* 点击后变成 X */
    .catalog-toggle.active::before {
        width: 24px;
        height: 2px;
        transform: rotate(45deg);
        box-shadow: none;
    }

    .catalog-toggle.active::after {
        content: '';
        width: 24px;
        height: 2px;
        background: #fff;
        position: absolute;
        transform: rotate(-45deg);
    }

    /* 移动端弹出菜单 */
    .catalog-mobile-menu {
        display: none;
        position: fixed;
        right: 1.5rem;
        bottom: 5rem;
        width: 15rem;
        background: var(--light);
        backdrop-filter: blur(10px);
        border-radius: 1rem;
        padding: 1rem;
        z-index: 1000;
    }

    .catalog-mobile-menu.show {
        display: block;
    }
    
    .catalog-list li a {
        color: var(--text);
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--heavy);
    }
}

/* 2.4 设备详情页 */
.product .hero {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.product .hero .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10%;
}

.product .hero .wrapper .description,
.product .hero .wrapper .thumbnail {
    width: 100%;
}

.product .hero .wrapper .description p {
    font-size: 1.125rem;
}

.options {
    padding: 3rem 0;
}

.options .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10%;
}

.options .image,
.options .wrapper {
    width: 100%;
}

.options .wrapper h2 {
    color: var(--primary);
}

.options ul li {
    padding: 0.5rem 0;
}

.specifications {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.specifications h2 {
    font-size: 1.25rem;
    text-align: center;
}

.specifications p {
    padding: 0.5rem 0;
}

.specifications a {
    color: var(--primary);
}

.table {
    width: 100%;
    overflow-x: auto;
}

.table table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.table th,
.table td {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray);
}

.table th {
    background: var(--gray);
    color: var(--primary);
}

.trust {
    border-bottom: 1px solid var(--gray);
}

.trust .break {
    background: var(--primary);
    color: var(--bg);
    text-align: center;
    padding: 3rem 0;
}

.trust ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 4%;
}

.trust ul li {
    width: 22%;
}

.trust ul li h3 {
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--gray);
}

@media (max-width:768px) {
    
    .trust ul {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 5%;
    }

    .trust ul li {
        width: 47.5%;
    }
}

.details {
    padding: 3rem 0;
}

.details .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
}

.details .container img {
    width: 30%;
    height: auto;
}

.blogs a {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--heavy);
    display: block;
}

/* footer */
footer {
    padding: 2rem 0;
    background: var(--gray);
}

footer .card {
    border: none;
    text-align: left;
}

footer .center a {
    display: block;
}

footer h4 {
    color: var(--primary);
    margin: 0.5em 0;
}

footer .frm-fluent-form .ff-t-container {
    flex-direction: column;
}

.legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

@media (max-width: 576px) {
    footer .card {
        width: 100%;
    }
}

/* 3.2 搜索结果页 */
#search {
    text-align: center;
    padding-top: 0;
}

#search form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

#search form input {
    width: 80%;
    height: 3rem;
    padding: 1rem;
    border: 3px solid var(--heavy);
    border-radius: 0.5rem;
}

#search form button {
    width: 20%;
    height: 3rem;
    font-size: 1.25rem;
    background: var(--primary);
    color: var(--bg);
    border: none;
    border-radius: 1rem;
    margin: 2rem 0;
}

/* 3.3 文章详情页 */
.post-title p {
    text-align: right;
    border-bottom: 1px dashed var(--gray);
    padding-bottom: 0.5rem;
}

.post-content {
    padding: 2rem 0;
}

.post-item {
    padding: 1rem;
    border: 1px solid var(--gray);
    margin-bottom: 1rem;
}

.post-item h3 {
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--heavy);
}
