/*
 * TOSNE.COM Frontend Stylesheet
 * 大连拓升科技有限公司企业网站
 * Version: 2.0.0
 */

/* ===========================
   1. CSS Reset 和基础样式
   =========================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

h1 { font-size: 32px; line-height: 1.3; }
h2 { font-size: 26px; line-height: 1.35; }
h3 { font-size: 20px; line-height: 1.4; }
h4 { font-size: 17px; line-height: 1.5; }

p { margin-bottom: 14px; }

a {
    color: #1a4b8c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: #2c6db5; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   2. 导航栏
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.navbar.navbar-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar .logo img {
    height: 46px;
    width: auto;
}

.navbar .nav-menu {
    display: none;
    align-items: center;
    gap: 36px;
}

.navbar .nav-menu li a {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.navbar .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #1a4b8c;
    transition: width 0.3s ease;
}

.navbar .nav-menu li a:hover,
.navbar .nav-menu li a.active {
    color: #1a4b8c;
}

.navbar .nav-menu li a:hover::after,
.navbar .nav-menu li a.active::after {
    width: 100%;
}

.navbar .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #333;
    padding: 4px 8px;
}

.navbar .nav-toggle.active {
    color: #1a4b8c;
}

/* 移动端菜单 */
.navbar .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar .nav-menu.mobile-open li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.navbar .nav-menu.mobile-open li a {
    display: block;
    padding: 14px 0;
}

@media (min-width: 769px) {
    .navbar .nav-menu {
        display: flex;
    }
    .navbar .nav-toggle {
        display: none;
    }
}

/* 主内容区域上边距（固定导航栏） */
.main-content {
    padding-top: 70px;
}

/* ===========================
   3. 通用组件
   =========================== */

.section-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: #1a1a2e;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #1a4b8c;
    border-radius: 2px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.section-header .section-title::after {
    display: none;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 11px 30px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    line-height: 1.5;
}

.btn-primary {
    background: #1a4b8c;
    color: #fff;
}

.btn-primary:hover {
    background: #2c6db5;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 75, 140, 0.3);
}

.btn-outline {
    background: transparent;
    color: #1a4b8c;
    border: 2px solid #1a4b8c;
}

.btn-outline:hover {
    background: #1a4b8c;
    color: #fff;
}

/* Hero区域内的outline按钮 */
.hero-section .btn-outline {
    color: #fff;
    border-color: #fff;
}

.hero-section .btn-outline:hover {
    background: #fff;
    color: #1a4b8c;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 7px 18px;
    font-size: 13px;
}

/* 面包屑 */
.breadcrumb-wrapper {
    background: #f5f7fa;
    padding: 14px 0;
    border-bottom: 1px solid #e8eaed;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #888;
}

.breadcrumb a:hover {
    color: #1a4b8c;
}

.breadcrumb span {
    margin: 0 6px;
    color: #ccc;
}

.breadcrumb > span:last-child {
    color: #333;
}

/* 空状态 */
.empty-result {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* 分页 */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination-wrapper ul,
.pagination-wrapper .pagination {
    display: flex;
    list-style: none;
    gap: 6px;
}

.pagination-wrapper li {
    display: inline-block;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    transition: all 0.3s ease;
}

.pagination-wrapper a:hover {
    border-color: #1a4b8c;
    color: #1a4b8c;
}

.pagination-wrapper .active span,
.pagination-wrapper .active a,
.pagination-wrapper .current {
    background: #1a4b8c;
    color: #fff;
    border-color: #1a4b8c;
}

.pagination-wrapper .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 富文本内容 */
.rich-text {
    line-height: 1.9;
    color: #444;
    font-size: 15px;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

.rich-text p { margin-bottom: 16px; }

.rich-text h2, .rich-text h3 {
    margin: 24px 0 12px;
}

/* ===========================
   4. 首页 - Hero区域
   =========================== */

.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #1a4b8c 0%, #2c6db5 50%, #3a7bd5 100%);
    color: #fff;
    overflow: hidden;
    padding: 80px 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.04"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 38px;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-section .hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.92;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .btn {
    margin: 0 8px 10px;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 480px;
    }
    .hero-section h1 {
        font-size: 48px;
    }
    .hero-section .hero-subtitle {
        font-size: 20px;
    }
}

/* ===========================
   5. 首页 - 核心优势
   =========================== */

.advantages-section {
    padding: 70px 0;
    background: #f8fafc;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.advantage-item {
    text-align: center;
    padding: 32px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

@media (min-width: 769px) {
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================
   6. 首页 - 产品分类
   =========================== */

.categories-section {
    padding: 70px 0;
    background: #fff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.category-card {
    display: block;
    text-align: center;
    padding: 24px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: #fff;
    border-color: #1a4b8c;
    box-shadow: 0 4px 16px rgba(26, 75, 140, 0.1);
    transform: translateY(-2px);
}

.category-image {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: #1a4b8c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.category-image span {
    color: #fff;
    line-height: 1;
}

.category-image img {
    display: none;
}

.category-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 0;
}

.category-card:hover h3 {
    color: #1a4b8c;
}

@media (min-width: 769px) {
    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===========================
   7. 产品卡片通用样式
   =========================== */

.products-section {
    padding: 70px 0;
    background: #f8fafc;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px 18px 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.product-info h3 a {
    color: #1a1a2e;
}

.product-info h3 a:hover {
    color: #1a4b8c;
}

.product-model {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    margin-top: 12px;
}

@media (min-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================
   8. 首页 - 关于我们摘要
   =========================== */

.about-section {
    padding: 70px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-content .section-title {
    text-align: left;
}

.about-content .section-title::after {
    left: 0;
    transform: none;
}

.about-text {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 24px;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    min-height: 280px;
}

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

@media (min-width: 769px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================
   9. 首页 - 资讯
   =========================== */

.news-section {
    padding: 70px 0;
    background: #f8fafc;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    padding: 16px 18px 20px;
}

.news-meta {
    margin-bottom: 8px;
}

.news-date {
    font-size: 13px;
    color: #999;
}

.news-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.news-info h3 a {
    color: #1a1a2e;
}

.news-info h3 a:hover {
    color: #1a4b8c;
}

.news-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 576px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================
   10. CTA区域
   =========================== */

.contact-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a4b8c 0%, #2c6db5 100%);
    color: #fff;
    text-align: center;
}

.contact-cta-section h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 12px;
}

.contact-cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline {
    color: #fff;
    border-color: #fff;
}

.cta-buttons .btn-outline:hover {
    background: #fff;
    color: #1a4b8c;
}

/* ===========================
   11. 页脚
   =========================== */

.footer {
    background: #1a1a2e;
    color: #b8b8c8;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8px;
    color: #999;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #777;
}

.footer-bottom p {
    margin-bottom: 4px;
}

.footer-bottom a {
    color: #777;
}

.footer-bottom a:hover {
    color: #bbb;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ===========================
   12. 产品列表页
   =========================== */

.product-list-section {
    padding: 40px 0 60px;
}

.product-list-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.product-sidebar {
    order: 2;
}

.sidebar-widget {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e8eaed;
}

.widget-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a4b8c;
}

.category-nav li a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: #555;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-nav li a:hover,
.category-nav li a.active {
    background: #1a4b8c;
    color: #fff;
}

.product-list-main {
    order: 1;
}

.product-toolbar {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

.result-count {
    font-size: 14px;
    color: #666;
}

.result-count strong {
    color: #1a4b8c;
}

.product-list-main .products-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 576px) {
    .product-list-main .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .product-list-wrapper {
        grid-template-columns: 240px 1fr;
    }
    .product-sidebar {
        order: 0;
    }
    .product-list-main .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .product-list-main .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   13. 产品详情页
   =========================== */

.product-detail-section {
    padding: 40px 0 60px;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery .main-image {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e8eaed;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.thumb-item {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumb-item:hover {
    border-color: #1a4b8c;
}

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

.product-info .product-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1a1a2e;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}

.meta-item label {
    font-size: 13px;
    color: #999;
    margin-right: 4px;
}

.meta-item strong {
    font-size: 15px;
    color: #333;
}

.meta-item a {
    font-size: 14px;
    color: #1a4b8c;
}

.product-description {
    margin-bottom: 24px;
}

.product-description p {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.product-contact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-content {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid #e8eaed;
}

.related-products {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8eaed;
}

.related-products .products-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 769px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .related-products .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================
   14. 资讯列表页
   =========================== */

.news-list-section {
    padding: 40px 0 60px;
}

.news-filter {
    margin-bottom: 32px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tags a {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    color: #555;
    background: #f5f7fa;
    border-radius: 6px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.filter-tags a:hover,
.filter-tags a.active {
    background: #1a4b8c;
    color: #fff;
    border-color: #1a4b8c;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.news-item .news-image {
    flex-shrink: 0;
    width: 200px;
    height: 140px;
}

.news-item .news-content {
    flex: 1;
    padding: 16px 20px 16px 0;
}

.news-item .news-meta {
    margin-bottom: 6px;
}

.news-item .news-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-item .news-title a {
    color: #1a1a2e;
}

.news-item .news-title a:hover {
    color: #1a4b8c;
}

.news-item .news-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 576px) {
    .news-item {
        flex-direction: column;
    }
    .news-item .news-image {
        width: 100%;
        height: 180px;
    }
    .news-item .news-content {
        padding: 16px;
    }
}

/* ===========================
   15. 资讯详情页
   =========================== */

.news-detail-section {
    padding: 40px 0 60px;
}

.news-detail-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-category {
    margin-bottom: 12px;
}

.article-category a {
    display: inline-block;
    padding: 4px 14px;
    background: #e8f0fc;
    color: #1a4b8c;
    font-size: 13px;
    border-radius: 4px;
}

.article-title {
    font-size: 28px;
    margin-bottom: 14px;
    color: #1a1a2e;
}

.article-meta {
    font-size: 14px;
    color: #999;
}

.article-cover {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
}

.article-summary {
    padding: 20px 24px;
    background: #f8fafc;
    border-left: 4px solid #1a4b8c;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

.article-summary p {
    font-size: 15px;
    color: #555;
    margin-bottom: 0;
}

.article-content {
    margin-bottom: 40px;
}

.article-actions {
    padding-top: 24px;
    border-top: 1px solid #e8eaed;
}

.related-news {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e8eaed;
}

/* ===========================
   16. 招聘列表页
   =========================== */

.job-list-section {
    padding: 40px 0 60px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.page-desc {
    font-size: 15px;
    color: #888;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 24px;
    transition: all 0.3s ease;
}

.job-card:hover {
    border-color: #1a4b8c;
    box-shadow: 0 4px 16px rgba(26, 75, 140, 0.08);
}

.job-header {
    margin-bottom: 16px;
}

.job-title {
    font-size: 19px;
}

.job-title a {
    color: #1a1a2e;
}

.job-title a:hover {
    color: #1a4b8c;
}

.job-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #666;
}

.job-summary {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-footer {
    display: flex;
    gap: 12px;
}

/* ===========================
   17. 招聘详情页
   =========================== */

.job-detail-section {
    padding: 40px 0 60px;
}

.job-detail-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.job-info-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 30px;
}

.job-info-card .job-header {
    margin-bottom: 20px;
}

.job-info-card .job-title {
    font-size: 24px;
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.job-meta .meta-item label {
    font-size: 13px;
    color: #999;
    margin-right: 6px;
}

.job-meta .meta-item span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.job-detail-content {
    margin-bottom: 36px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section .section-title {
    font-size: 18px;
    text-align: left;
    margin-bottom: 16px;
}

.detail-section .section-title::after {
    display: none;
}

.section-content {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
}

.section-content p {
    margin-bottom: 10px;
}

.section-content ul,
.section-content ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.section-content li {
    margin-bottom: 6px;
    list-style: disc;
}

.job-apply {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px;
    background: #f8fafc;
    border-radius: 10px;
}

.related-jobs {
    margin-top: 40px;
}

.job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.job-card-small {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.job-card-small:hover {
    border-color: #1a4b8c;
}

.job-card-small h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.job-card-small h3 a {
    color: #333;
}

.job-meta-small {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

@media (min-width: 576px) {
    .job-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   18. 关于我们页
   =========================== */

.about-page-section {
    padding: 40px 0 60px;
}

.about-page-section .section-header {
    text-align: center;
    margin-bottom: 30px;
}

.about-page-section .section-header .section-title {
    margin-bottom: 0;
}

.about-page-section .section-header .section-title::after {
    display: block;
}

.about-content {
    margin-bottom: 50px;
}

.about-text {
    font-size: 15px;
    line-height: 2;
    color: #555;
}

.culture-section,
.direction-section,
.certificates-section {
    margin-bottom: 50px;
}

.culture-grid,
.direction-grid,
.certificates-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.culture-item,
.direction-card,
.certificate-card {
    text-align: center;
    padding: 28px 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.culture-item:hover,
.direction-card:hover,
.certificate-card:hover {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.culture-icon,
.direction-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.certificate-image {
    font-size: 36px;
    margin-bottom: 14px;
}

.culture-item h3,
.direction-card h3,
.certificate-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.culture-item p,
.direction-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

@media (min-width: 576px) {
    .culture-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .direction-grid,
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .direction-grid,
    .certificates-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===========================
   19. 联系我们页
   =========================== */

.contact-page-section {
    padding: 40px 0 60px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info .section-title,
.contact-form .section-title {
    text-align: left;
    font-size: 22px;
    margin-bottom: 24px;
}

.contact-info .section-title::after,
.contact-form .section-title::after {
    left: 0;
    transform: none;
}

.info-list {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #1a4b8c;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.info-icon i {
    width: 20px;
    height: 20px;
    display: block;
}

.icon-building::before { content: "🏢"; }
.icon-map-marker::before { content: "📍"; }
.icon-phone::before { content: "📞"; }
.icon-envelope::before { content: "✉"; }
.icon-clock::before { content: "🕐"; }

.info-content h4 {
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 500;
}

.info-content p {
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
}

.contact-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid #e8eaed;
}

.message-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #1a4b8c;
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.captcha-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-wrapper .form-control {
    flex: 1;
}

.captcha-image {
    height: 42px;
    width: 120px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.contact-map {
    margin-top: 30px;
}

.contact-map h3 {
    font-size: 18px;
    margin-bottom: 14px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.map-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.map-info p {
    margin: 0;
    color: #666;
}

.map-info .btn {
    white-space: nowrap;
}

@media (min-width: 769px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .message-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===========================
   20. 移动端适配
   =========================== */

@media (max-width: 768px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }

    .section-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .hero-section {
        min-height: 400px;
        padding: 60px 16px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section .hero-subtitle {
        font-size: 15px;
    }

    .advantages-section,
    .categories-section,
    .products-section,
    .about-section,
    .news-section {
        padding: 40px 0;
    }

    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .section-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .contact-cta-section {
        padding: 40px 16px;
    }

    .contact-cta-section h2 {
        font-size: 22px;
    }

    .article-title {
        font-size: 22px;
    }

    .contact-form {
        padding: 20px;
    }
}

/* ===========================
   21. 辅助类
   =========================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.d-none { display: none; }

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

::selection {
    background: #1a4b8c;
    color: #fff;
}

/* 打印 */
@media print {
    .navbar, .footer, .btn, .pagination-wrapper {
        display: none;
    }
    body {
        font-size: 12pt;
    }
}
