/* ===== core.css - 全站基础样式与间距规范 ===== */

/* ---------- 全局间距变量（通过类应用） ---------- */
.section-gap {
    margin-bottom: 80px;
}
.subsection-gap {
    margin-bottom: 60px;
}
.component-gap {
    margin-bottom: 30px;
}
.inner-padding {
    padding: 40px 0;
}

/* ---------- Banner 通用 ---------- */
.product-banner,
.page-banner {
    width: 100%;
    height: 400px;               /* 统一高度 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}
.product-banner::before,
.page-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}
.banner-title {
    position: relative;
    z-index: 1;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* ---------- 面包屑 ---------- */
.product-breadcrumb {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1440px;
    margin: 0 auto;
}
.breadcrumb-left {
    font-size: 14px;
    color: #666;
}
.breadcrumb-left a {
    color: #e67e22;
    text-decoration: none;
}
.breadcrumb-left a:hover {
    text-decoration: underline;
}
.breadcrumb-right form {
    display: flex;
    align-items: center;
    position: relative;
}
.breadcrumb-right input[type="search"] {
    width: 220px;
    padding: 6px 40px 6px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.breadcrumb-right input[type="search"]:focus {
    border-color: #e67e22;
    box-shadow: 0 0 5px rgba(230, 126, 34, 0.3);
}
.breadcrumb-right button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

/* ---------- 标题分割线套件 ---------- */
.section-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 20px;
}
.section-title-wrap h2,
.section-title-wrap h3 {
    width: 100%;
    margin: 0 0 12px 0;
    font-size: 24px;
    line-height: 1.3;
    color: #1a1a1a;
}
.section-title-wrap .orange-line {
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e67e22;
    flex-shrink: 0;
}
.section-title-wrap .gray-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
    align-self: flex-end;
}

/* 居中标题 + 居中分割线 */
.section-title-wrap.title-line-center {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}
.section-title-wrap.title-line-center h2 {
    margin: 0 0 15px 0;
    text-align: center;
}
.line-divider {
    display: flex;
    align-items: flex-end;
    width: 100%;
}
.line-divider .orange-line {
    width: 200px;
    height: 3px;
    background-color: #e67e22;
    flex-shrink: 0;
}
.line-divider .gray-line {
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

/* ---------- 通用卡片网格 ---------- */
.products-grid-rec,
.case-grid-sidebar,
.faqs-grid,
.company-news-grid {
    display: grid;
    gap: 30px;
}
.products-grid-rec { grid-template-columns: repeat(4, 1fr); }
.case-grid-sidebar { grid-template-columns: 1fr; gap: 0; }
.faqs-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 40px; }
.company-news-grid { grid-template-columns: repeat(3, 1fr); margin: 40px 0 60px; }

/* ---------- 侧边栏通用 ---------- */
.sidebar-block {
    margin-bottom: 40px;
}
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.categories-list li {
    padding: 5px 0;
}
.categories-list li a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 15px;
    display: block;
    transition: color 0.3s;
}
.categories-list li a:hover {
    color: #e67e22;
}
.categories-list .children {
    list-style: none;
    padding-left: 20px;
}
.categories-list .children li {
    padding: 6px 0 0 0;
}

/* Top Pick 卡片 */
.top-pick-card .img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}
.top-pick-card .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-pick-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e67e22;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    transform: rotate(6deg);
}
.top-pick-card h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}
.top-pick-card h4 a {
    color: #1a1a1a;
    text-decoration: none;
}
.top-pick-card h4 a:hover {
    color: #e67e22;
}

/* Case Studies 网格（侧边栏） */
.case-card-sidebar {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    margin-bottom: 20px;
}
.case-img-link {
    display: block;
    width: 100%;
    height: 100%;
}
.case-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    width: 90%;
    line-height: 1.3;
    z-index: 2;
}

/* Hot News 列表（黑点） */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bullet-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.bullet-list li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #1a1a1a;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.bullet-list li a {
    color: #1a1a1a;
    font-size: 14px;
    text-decoration: none;
}
.bullet-list li a:hover {
    color: #e67e22;
}

/* FAQS 列表（Q 标志） */
.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.faq-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.faq-list li::before {
    content: 'Q';
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.faq-list li a {
    color: #1a1a1a;
    font-size: 14px;
    text-decoration: none;
}
.faq-list li a:hover {
    color: #e67e22;
}

/* FAQS 卡片 */
.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px;
}
.faq-question {
    margin: 0 0 10px;
    font-size: 17px;
}
.faq-question a {
    color: #1a1a1a;
    text-decoration: none;
}
.faq-question a:hover {
    color: #e67e22;
}
.faq-answer {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.faq-item .faq-question::before {
    content: 'Q';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.faq-item .faq-answer::before {
    content: 'A';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #1a1a1a;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}
.faq-item .faq-answer {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    margin-top: 15px;
}

/* ---------- 联系表单（侧边栏） ---------- */
.contact-sidebar-block {
    margin-top: 40px;
    padding-top: 30px;
}
.sidebar-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.sidebar-contact-form input,
.sidebar-contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #f7f8f9;
}
.sidebar-contact-form input:focus,
.sidebar-contact-form textarea:focus {
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
    outline: none;
}
.sidebar-contact-form textarea {
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}
.sidebar-contact-form button {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: block;
    margin-left: auto;
}
.sidebar-contact-form button:hover {
    background: #cf6d1a;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .products-grid-rec { grid-template-columns: repeat(2, 1fr); }
    .faqs-grid { grid-template-columns: 1fr 1fr; }
    .company-news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .product-banner, .page-banner { height: 300px; }
    .banner-title { font-size: 32px; }
    .section-title-wrap h2, .section-title-wrap h3 { font-size: 20px; }
    .products-grid-rec { grid-template-columns: 1fr; }
    .faqs-grid { grid-template-columns: 1fr; }
    .company-news-grid { grid-template-columns: 1fr; }
    .breadcrumb-right input[type="search"] { width: 150px; }
    .sidebar-contact-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .product-banner, .page-banner { height: 200px; }
    .banner-title { font-size: 24px; }
}