/* 一、通用样式 */
section {
    padding: 3rem 0;
}
/* 1.面包屑 */
.breadcrumb {
    padding: 0.5rem 0;
    background: var(--light);
    font-size: 1rem;
}

/* 2.表单 */
.fluentform {
    max-width: 100rem;
    margin: 0 auto;
}

.ff_t_c {
    color: var(--primary);
}

#form h2 {
    text-align: center;
    color: var(--primary);
}

#form p {
    text-align: center;
}

/* 二、站点 Header */
.header {
    width: 100%;
    height: 5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    box-shadow: var(--shadow);
}

.header .container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.title {
    flex: 1;
    font-size: 1rem;
    color: var(--primary);
    text-transform: uppercase;
}

#navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
}

.menu li.active a {
    color: var(--primary);
}

.menubtn {
    display: none;
    font-size: 1.5rem;
    border: none;
    background: transparent;
    color: var(--primary);
}

@media (max-width:992px) {
    .menubtn {
        display: block;
    }

    #navigation {
        position: absolute;
        top: 5rem;
        left: 0;
        right: 0;
        background: var(--bg);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 1rem;
        display: none;
        transition: var(--transition);
    }

    #navigation.show {
        display: block;
    }

    #navigation a {
        display: block;
        padding-bottom: 0.5rem;
        border-bottom: var(--border);
    }

    .navigation {
        width: 100%;
    }

    .menu {
        width: 100%;
        flex-direction: column;
    }

    .menu li {
        width: 100%;
    }

    .search-icon {
        width: 100%;
    }

    .breadcrumbs p {
        font-size: 0.875rem;
    }

    section {
        padding: 2rem 0;
    }
}

/* 三、页面样式 */
/* 1. 通用样式 */
.site-main {
    padding-top: 5rem;
}

#hero {
    padding-top: 0;
}

#hero,
#features {
    border-bottom: 1px solid var(--gray);
}

.hero .img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero h1 {
    text-transform: uppercase;
    padding-top: 0.5em;
}

/* 1.1 弹性布局 */
.cards {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 5%;
}

.card {
    width: 30%;
    margin: 1rem 0;
    align-self: stretch;
    text-align: center;
}

.card h3 {
    border-bottom: 1px dashed var(--primary);
}

.wrappers {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5%;
}

.wrapper {
    width: 47.5%;
    align-self: stretch;
    margin: 0.5rem 0;
}

.boxes {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5%;
}

.box {
    width: 47.5%;
    margin: 0.5rem 0;
}

.list {
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4%;
}

.item {
    width: 22%;
    margin-bottom: 0.5rem;
}

.item h3 {
    color: var(--text);
    text-align: center;
    padding: 0.5rem 0;
}

@media (max-width: 992px) {
    .wrappers {
        flex-wrap: wrap;
    }

    .wrapper {
        width: 100%;
    }

    .list {
        flex-wrap: wrap;
        gap: 5%;
    }

    .item {
        width: 47.5%;
    }
}

@media (max-width: 768px) {
    .card {
        width: 47.5%;
    }
}

@media (max-width: 576px) {
    .card {
        width: 100%;
        margin: 0.5rem 0;
    }

    .box {
        width: 100%;
    }

    .item {
        width: 100%;
    }
}

/* 2. 设备页面 */
/* 2.1 一级分类页面 */
#categories {
    background: var(--light);
}

#categories h2 {
    text-align: center;
    color: var(--text);
}

#categories .category {
    padding: 1rem 0;
}

#categories .category .wrapper img {
    height: 100%;
}

.category-header h3 {
    margin: 0;
    color: var(--text);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px dashed var(--primary);
}

.category .wrappers {
    padding: 1rem 0;
}

#solutions h2 {
    text-align: center;
}

#solutions .content {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

/* 2.2 二级分类页面 */
#standard-series,
#special-series,
#belt-series {
    background: var(--gray);
}

.posts .card h3 a {
    padding: 0.5rem 0;
    display: block;
}

.expertise {
    background: var(--heavy);
    color: var(--light);
}

.expertise h2 {
    color: var(--light);
}

/* 3. 设备详情页面 */
#advantages .wrapper img {
    height: 100%;
}

#features {
    background: var(--primary);
    color: var(--bg);
    text-align: center;
}

#features h2 {
    text-align: center;
    color: var(--bg);
}

dt {
    font-weight: 600;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--gray);
}

dd {
    margin-bottom: 1rem;
}

#specifications {
    padding-top: 0;
    border-bottom: 1px solid var(--gray);
}

#specifications .table {
    overflow-x: auto;
    padding-top: 0;
}

#specifications table {
    width: 100%;
    border-collapse: collapse; /* 关键：合并边框 */
    margin-bottom: 1rem;
}

#specifications table th,
#specifications table td {
    border: var(--border); /* 统一边框 */
    text-align: center;
    padding: 0.25rem 0;
}

#specifications table th {
    background: var(--light);
    font-weight: 400;
}

#support {
    background: var(--gray);
    color: var(--text);
    text-align: center;
}

.support h2 {
    color: var(--text);
}

.article a {
    display: block;
    border-bottom: var(--border-dashed);
}

/* 3. 行业方案页面 */
#industries {
    background: var(--light);
}

#industries h2 {
    text-align: center;
}

#industries .box {
    position: relative;
    margin: 1rem 0;
}

#industries .box .content {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    color: var(--bg);
    padding: 1rem;
}

#industries .box .content h3 {
    color: var(--bg);
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--bg);
}

@media (max-width: 768px) {
    .box {
        width: 100%;
    }
}

#references {
    border-top: 1px solid var(--gray);
}

#references h2 {
    text-align: center;
    color: var(--text);
}

#references .content {
    padding: 1rem 0;
}

/* 4. 公司页面 */
#glances h2,
#philosophy h2,
#partners h2 {
    text-align: center;
}

#capabilities {
    background: var(--primary);
    color: var(--bg);
}

#capabilities h2 {
    text-align: center;
    color: var(--bg);
}

#philosophy {
    border-bottom: var(--border);
}

.partners {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4%;
}

.partner {
    width: 22%;
    margin: 0.75rem 0;
}

/* 5. 联系我们页面 */
.information li {
    margin-bottom: 1rem;
}

.social i {
    color: var(--primary);
    font-size: 2rem;
    margin-right: 1rem;
}

/* 6. 页脚 */
footer {
    background: var(--dark);
    color: var(--light);
    padding: 2rem 0;
}

footer .card h3 {
    border-bottom: none;
    color: var(--orange);
}

footer .card ul li {
    margin-bottom: 0.5rem;
}

footer .card ul li .fluentform {
    padding: 0.5rem 0;
}

footer a {
    color: var(--light);
}

footer a:hover {
    color: var(--orange);
}

footer .card {
    text-align: unset;
}

footer .social i {
    color: var(--light);
}

footer .social i:hover {
    color: var(--orange);
}

.legal {
    padding: 1rem 0;
    border-top: 1px solid var(--gray);
}

.legal .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.links ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.links ul span {
    margin: 0 0.5rem;
}

@media (max-width: 768px) {
    footer .cards .card:last-child {
        width: 100%;
    }

    .legal .container {
        flex-direction: column;
    }
}

/* 7. 搜索结果页面 */
#results h2 {
    text-align: center;
}

.result h3 {
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--primary);
}

.result .wrappers {
    padding: 1rem 0;
}

/* 表单容器 */
#search {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

/* 输入框 */
#search input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
    background: transparent;
}

/* 输入框占位符 */
#search input[type="text"]::placeholder {
    color: #999;
}

/* 提交按钮 */
#search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    padding: 0;
    border: none;
    background: #0073aa;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* 悬停效果 */
#search button:hover {
    background: #005a87;
}

/* Font Awesome 图标 */
#search button i {
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    #search input[type="text"] {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    #search button {
        width: 44px;
    }
}

/* 8. 文章页面 */
.article a span {
    float: right;
}

/* 9. 首页 */
#filter-presses {
    background: var(--light);
}

#filter-presses h2 {
    text-align: center;
}

#continuous-presses {
    border-bottom: var(--border);
}

#continuous-presses h3 {
    color: var(--text);
    text-align: right;
}

#about {
    background: var(--primary);
    color: var(--light);
}

#about h2 {
    text-align: center;
    color: var(--light);
}

#about .wrappers .wrapper img {
    height: 100%;
}

#about .wrappers .wrapper a {
    color: var(--light);
    float: right;
}