/* Kemmer 前台 - 蓝海新材企业站 */

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

body {
    font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #cbd5e1;
    background: #0b192c;
}

a { color: #00d2ff; text-decoration: none; }
a:hover { color: #33dbff; }

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

.logo-accent { color: #0b192c; }

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    text-decoration: none;
}

.logo-img { height: 36px; width: auto; }

.logo-accent { color: #0f172a; }

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-item {
    color: #0b192c;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0 18px;
    line-height: 1;
}

.nav-item + .nav-item {
    border-left: 1px solid #d1d5db;
}

.nav-item:hover, .nav-item.active { color: #00a6d6; font-weight: 600; }

/* Hero Slider */
.hero-slider { position: relative; height: 360px; overflow: hidden; background: #060d18; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #132238;
    opacity: 0;
    transition: opacity 0.6s;
}

.hero-slide.active { opacity: 1; z-index: 1; }

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(11, 25, 44, 0.4), rgba(11, 25, 44, 0.4));
    text-align: center;
    padding: 20px;
}

.hero-title {
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-subtitle { color: #00d2ff; font-size: 1rem; margin-bottom: 16px; }

.btn-hero {
    display: inline-block;
    padding: 10px 24px;
    background: #00d2ff;
    color: #060d18;
    font-weight: 600;
    border-radius: 4px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin: 0 4px;
    cursor: pointer;
}

.dot.active { background: #00d2ff; width: 24px; border-radius: 4px; }

/* Sections */
.page-section { padding: 40px 0 60px; }

.section-heading {
    font-size: 1.25rem;
    color: #fff;
    border-left: 4px solid #00d2ff;
    padding-left: 12px;
    margin: 32px 0 16px;
}

.section-heading span { color: #64748b; font-size: 0.875rem; font-weight: normal; }

.section-desc {
    color: #94a3b8;
    border-left: 2px solid #1e40af;
    padding: 12px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 0 4px 4px 0;
    margin-bottom: 24px;
}

.content-box {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 16px;
}

.card-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.content-box h3 { color: #00d2ff; margin: 8px 0; font-size: 1rem; }
.content-box h3 a { color: inherit; text-decoration: none; }
.content-box h3 a:hover { text-decoration: underline; }
.content-box p { color: #94a3b8; font-size: 0.875rem; }

/* Quill 2 列表：圆点/序号均输出为 <ol> + li[data-list]，需复用编辑器标记规则 */
.content-box.rich-content ol,
.detail-content ol,
.detail-body ol {
    margin: 0 0 12px;
    padding-left: 1.5em;
    list-style: none;
    counter-reset: list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}

.content-box.rich-content ul,
.detail-content ul,
.detail-body ul {
    margin: 0 0 12px;
    padding-left: 1.5em;
}

.content-box.rich-content li,
.detail-content li,
.detail-body li {
    list-style-type: none;
    padding-left: 1.5em;
    position: relative;
}

.content-box.rich-content ul > li,
.detail-content ul > li,
.detail-body ul > li {
    list-style-type: disc;
    padding-left: 0;
    position: static;
}

.content-box.rich-content li > .ql-ui:before,
.detail-content li > .ql-ui:before,
.detail-body li > .ql-ui:before {
    display: inline-block;
    margin-left: -1.5em;
    margin-right: 0.3em;
    text-align: right;
    white-space: nowrap;
    width: 1.2em;
}

.content-box.rich-content li[data-list=bullet] > .ql-ui:before,
.detail-content li[data-list=bullet] > .ql-ui:before,
.detail-body li[data-list=bullet] > .ql-ui:before {
    content: '\2022';
}

.content-box.rich-content li[data-list=ordered],
.detail-content li[data-list=ordered],
.detail-body li[data-list=ordered] {
    counter-increment: list-0;
}

.content-box.rich-content li[data-list=ordered] > .ql-ui:before,
.detail-content li[data-list=ordered] > .ql-ui:before,
.detail-body li[data-list=ordered] > .ql-ui:before {
    content: counter(list-0, decimal) '. ';
}

/* Core Technology */
.tech-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 8px; }

.tech-row {
    display: grid;
    grid-template-columns: 30% 1fr;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.tech-name-cell {
    background: linear-gradient(135deg, #134074 0%, #0B2545 100%);
    color: #fff;
    padding: 24px;
}

.tech-name-title {
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.tech-name-desc {
    font-size: 0.8125rem;
    color: #8DA9C4;
    line-height: 1.5;
    margin-bottom: 10px;
}

.tech-tag { margin-top: 8px; }

.tech-breakthrough-cell {
    padding: 24px;
    background: rgba(15, 23, 42, 0.5);
}

.breakthrough-title {
    font-size: 0.9375rem;
    color: #00d2ff;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(0, 210, 255, 0.15);
}

.breakthrough-paragraph {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.6;
}

.image-box {
    max-width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #1e293b, #0f172a);
    border: 1px dashed rgba(0, 210, 255, 0.2);
}

.image-box img { width: 100%; height: auto; display: block; }
.image-box.placeholder::after {
    content: "IMAGE";
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #475569;
    font-size: 0.75rem;
}

.spec-label {
    display: inline-block;
    font-size: 0.75rem;
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin-top: 12px;
}

.data-table th {
    background: #1e293b;
    color: #00d2ff;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #00d2ff;
}

.data-table td {
    padding: 10px;
    border-bottom: 1px solid #1e293b;
    color: #cbd5e1;
}

.data-table tr:nth-child(even) td { background: rgba(30, 41, 59, 0.2); }

/* Product Detail */
.breadcrumb { font-size: 0.8125rem; color: #64748b; margin-bottom: 20px; }
.breadcrumb a { color: #00d2ff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-row { display: grid; grid-template-columns: 25% 1fr; gap: 24px; margin-bottom: 32px; }
.detail-row--single { grid-template-columns: 1fr; }

.product-image-box {
    height: 280px;
    background: linear-gradient(135deg, #0f2038, #071121);
    border: 1px solid #162942;
    border-radius: 6px;
    overflow: hidden;
}

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

.detail-info h1 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.model-no { color: #00d2ff; font-weight: bold; margin-bottom: 16px; }

.card-summary {
    background: rgba(13, 27, 46, 0.5);
    border: 1px solid #162942;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.card-summary h4 { color: #fff; margin-bottom: 8px; }

.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-right: 6px;
}

.detail-content { margin: 24px 0; color: #94a3b8; }
.detail-content h3 { color: #00d2ff; margin: 20px 0 10px; }
.detail-content img,
.detail-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 8px 0;
    display: block;
}
.pre-line { white-space: pre-line; }

.scenario-text h3 a { color: #00d2ff; text-decoration: none; }
.scenario-text h3 a:hover { text-decoration: underline; }

/* Application scenarios list (align with lingyu.html design) */
.scenario-box { margin-bottom: 12px; }
.scenario-box:last-child { margin-bottom: 0; }
.scenario-row {
    display: grid;
    grid-template-columns: 18% 1fr;
    gap: 0;
    align-items: start;
}
.scenario-image { overflow: hidden; min-width: 0; }
.scenario-image .image-box {
    height: 90px;
    margin-bottom: 0;
}
.scenario-text {
    padding-left: 15px;
    min-width: 0;
}
.scenario-text p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

/* Footer */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.footer-col-brand { min-width: 0; overflow: hidden; }

.footer-logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    overflow: hidden;
}

.footer-logo-img {
    width: 150px;
    height: 150px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.footer-col-links h4, .footer-col-contact h4 {
    color: #111827;
    font-size: 0.975rem;
    margin-bottom: 12px;
}

.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a { color: #475569; text-decoration: none; font-size: 0.875rem; }
.footer-links-list a:hover { color: #00a6d6; }

.contact-item { font-size: 0.875rem; margin-bottom: 8px; }
.contact-item span:first-child { color: #0b192c; font-weight: bold; margin-right: 6px; }
.contact-address { font-size: 0.8125rem; color: #475569; }
.contact-item span{color: #0b192c;}


.footer-bottom { text-align: center; }
.copyright-text { font-size: 0.75rem; color: #64748b; }

.empty { text-align: center; color: #64748b; padding: 40px; }
.text-center { text-align: center; }
.mt-md { margin-top: 12px; }
.mt-lg { margin-top: 24px; }
.table-label { width: 25%; font-weight: bold; color: #00d2ff; }

.contact-card p { margin-bottom: 12px; color: #cbd5e1; }

.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: 4rem;
    color: #00d2ff;
    margin-bottom: 12px;
}

.error-page p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.error-page a {
    display: inline-block;
    padding: 10px 24px;
    background: #00d2ff;
    color: #060d18;
    font-weight: 600;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .card-grid.cols-3, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
    .detail-row, .scenario-row, .footer-grid { grid-template-columns: 1fr; }
    .tech-row { grid-template-columns: 1fr; }
    .nav-links { gap: 0; flex-wrap: wrap; }
    .nav-item { padding: 8px 12px; }
    .nav-item + .nav-item { border-left: none; }
}
