/* ============================================================
 * by 诗航软件-凯哥 2026.6.16
 * ============================================================ */

/* ============================================================
 * common.css - 全站公共样式
 * 包含: CSS重置、通用容器、按钮、Banner、面包屑、分页、侧栏
 * ============================================================ */

/* ===== CSS 重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f9ff;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 通用工具类 ===== */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

.text-center {
    text-align: center;
}

.mt-5 {
    margin-top: 1.5rem;
}

/* ===== 按钮组件 ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.3);
}

.btn-outline {
    background: transparent;
    color: #1a56db;
    border: 2px solid #1a56db;
}

.btn-outline:hover {
    background: #1a56db;
    color: #fff;
}

/* ===== 页面Banner ===== */
/* 用于子页面（公司介绍、案例、知识库等）的顶部图片横幅 */
.page-banner {
    width: 100%;
    position: relative;
    line-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
    display: block;
}

.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 86, 219, 0);
    z-index: 1;
}

.page-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.page-banner-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    width: 90%;
    max-width: 900px;
}

.page-banner-caption h1 {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.95);
    display: block;
    line-height: 1.3;
}

.page-banner-caption p {
    font-size: 1.1rem;
    opacity: 0.98;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9);
    display: block;
    line-height: 1.5;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 20px 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #64748b;
}

.breadcrumb-list a {
    color: #64748b;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #1a56db;
}

.breadcrumb-list .current {
    color: #1a56db;
}

.breadcrumb-list .separator {
    color: #94a3b8;
}

/* ===== 分页组件 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pagination a:hover {
    border-color: #1a56db;
    color: #1a56db;
}

.pagination .active {
    background: #1a56db;
    border-color: #1a56db;
    color: #fff;
}

.pagination .disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* ===== 统一Hero Banner组件 ===== */
/* 用于 price/quote/support/esa/compare 五个二级页顶部宣传区 */
.top-hero-wrapper {
    background: linear-gradient(135deg, #1a56db 0%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.top-bg-layer {
    background-image: url('../images/topNav.png');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.container-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-visual {
    padding: 2.5rem 0 3rem 0;
    color: white;
}

.hero-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFE6B0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1rem;
    font-weight: 500;
}

.feature-pill {
    color: white;
}

.feature-pill i {
    margin-right: 6px;
    color: #ffc107;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1.5rem 0 1rem;
}

/* 红色行动号召按钮(用于banner中的CTA) */
.btn-lightblue {
    background: #d81050;
    color: white;
    border-radius: 30px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: 0.2s;
    border: none;
}

.btn-lightblue:hover {
    background: #dc0101;
    transform: translateY(-2px);
}

.hero-highlight {
    margin-top: 1rem;
    font-weight: 800;
    color: #ffecb3;
    font-size: 1.1rem;
}

.hero-highlight i {
    margin-right: 6px;
    color: #ffc107;
}

/* Hero Banner 响应式：移动端调整字号与间距 */
@media (max-width: 880px) {
    .container-header { padding: 0 1.2rem; }
    .hero-main-title { font-size: 2.4rem; }
    .hero-feature-grid { gap: 1rem; font-size: 0.9rem; }
}

/* ===== 侧边栏组件 ===== */
.sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sidebar h3 {
    font-size: 1.2rem;
    color: #1a56db;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a56db;
    display: inline-block;
}

.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-list a {
    display: block;
    padding: 10px 14px;
    border-radius: 6px;
    color: #333;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    word-break: break-all;
    white-space: normal;
    line-height: 1.5;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    background: #e0ebff;
    color: #1a56db;
    border-left-color: #1a56db;
}

.sidebar + .sidebar {
    margin-top: 25px;
}

/* ===== 响应式：平板 ===== */
@media (max-width: 768px) {
    .page-banner img {
        height: 230px;
        object-position: center 40%;
    }

    .page-banner-caption h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }

    .page-banner-caption p {
        font-size: 0.9rem;
        letter-spacing: 0;
    }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 576px) {
    .pagination a,
    .pagination span {
        min-width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}
