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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* 顶部信息栏 */
.top-bar {
    background: #1a3a6c;
    color: #fff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-right span {
    margin-left: 20px;
}

/* 头部导航 */
.header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.logo-text h1 {
    font-size: 20px;
    color: #1a3a6c;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav ul {
    display: flex;
    gap: 5px;
}

.nav ul li a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
}

.nav ul li a:hover,
.nav ul li.active a {
    color: #fff;
    background: linear-gradient(135deg, #1a3a6c, #2d5ba8);
}

.search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: #1a3a6c;
    box-shadow: 0 0 0 3px rgba(26, 58, 108, 0.1);
}

.search-box input {
    border: none;
    outline: none;
    padding: 7px 14px;
    font-size: 13px;
    width: 160px;
}

.search-box button {
    border: none;
    background: #1a3a6c;
    color: #fff;
    padding: 7px 12px;
    cursor: pointer;
    height: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #1a3a6c;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Banner */
.banner {
    position: relative;
}

.carousel {
    position: relative;
    overflow: hidden;
    height: 550px;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    width: 100%;
}

.slide-text {
    max-width: 550px;
    color: #fff;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.slide-text h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.slide-text p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.7;
}

.features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.f-icon {
    font-size: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #1a3a6c, #2d5ba8);
    color: #fff !important;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(26, 58, 108, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 108, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #1a3a6c;
    color: #1a3a6c;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-blue {
    background: linear-gradient(135deg, #1a3a6c, #2d5ba8);
    color: #fff;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-btn.prev {
    left: 30px;
}

.carousel-btn.next {
    right: 30px;
}

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* 主推产品 */
.feature-product {
    padding: 70px 0;
    background: #f8fafc;
}

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

.fp-image img {
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.fp-info h2 {
    font-size: 32px;
    color: #1a3a6c;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.fp-info h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: linear-gradient(135deg, #1a3a6c, #2d5ba8);
    border-radius: 2px;
}

.fp-info p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.8;
}

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

.fp-list li {
    padding: 8px 0;
    color: #444;
    font-size: 15px;
}

/* 通用 section header */
.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
}

.section-header.left {
    text-align: left;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.section-header.center .section-title {
    justify-content: center;
}

.section-title .line {
    display: inline-block;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #1a3a6c, #2d5ba8);
    border-radius: 2px;
}

.section-title h2 {
    font-size: 30px;
    color: #1a3a6c;
    font-weight: bold;
}

.section-header p {
    color: #999;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-header.white .section-title h2 {
    color: #fff;
}

.section-header.white p {
    color: rgba(255, 255, 255, 0.7);
}

/* 产品展示 */
.products {
    padding: 80px 0;
    background: #fff;
}

.product-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-tabs .tab {
    padding: 8px 24px;
    border: 1px solid #ddd;
    border-radius: 25px;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.product-tabs .tab:hover,
.product-tabs .tab.active {
    background: #1a3a6c;
    color: #fff;
    border-color: #1a3a6c;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
    border: 1px solid #f0f0f0;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(26, 58, 108, 0.15);
}

.p-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.p-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.product-item:hover .p-image img {
    transform: scale(1.08);
}

.p-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 58, 108, 0.85), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-item:hover .p-overlay {
    opacity: 1;
}

.view-btn {
    background: #fff;
    color: #1a3a6c;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.product-item h3 {
    padding: 18px 20px 5px;
    font-size: 18px;
    color: #1a3a6c;
    font-weight: 600;
}

.product-item p {
    padding: 0 20px 20px;
    color: #888;
    font-size: 13px;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

/* 公司简介 */
.about {
    position: relative;
    padding: 100px 0;
    background: #0f2551;
    color: #fff;
    overflow: hidden;
}

.about-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=calcium%20oxide%20industrial%20production%20blue%20background&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.about-inner {
    position: relative;
    z-index: 2;
}

.about-content {
    max-width: 750px;
}

.about .section-title h2 {
    color: #fff;
}

.about .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.about-content p {
    margin-bottom: 18px;
    line-height: 1.9;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.about-content .btn-primary {
    margin-top: 20px;
    background: #fff;
    color: #1a3a6c !important;
}

.about-content .btn-primary:hover {
    background: #e8f0ff;
}

/* 产品介绍及用途 */
.product-usage {
    padding: 80px 0;
    background: #f8fafc;
}

.usage-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.usage-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #eee;
}

.usage-row:last-child {
    border-bottom: none;
}

.usage-row:nth-child(even) {
    background: #fafbfd;
}

.usage-col {
    padding: 20px;
    border-right: 1px solid #eee;
    min-height: 120px;
}

.usage-col:last-child {
    border-right: none;
}

.usage-head {
    background: linear-gradient(135deg, #1a3a6c, #2d5ba8) !important;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 16px 20px;
}

.usage-col ul li {
    padding: 5px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.usage-col img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* 为什么选择我们 */
.why-choose {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a3a6c, #0f2551);
    color: #fff;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.choose-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px 20px;
    transition: all 0.4s;
    position: relative;
}

.choose-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.c-number {
    font-size: 36px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 15px;
    font-family: serif;
}

.c-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

.choose-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.choose-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* 新闻动态 */
.news {
    padding: 80px 0;
    background: #f8fafc;
}

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

.news-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s;
    display: flex;
    gap: 20px;
    padding: 20px;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 58, 108, 0.12);
}

.n-image {
    flex: 0 0 200px;
    border-radius: 8px;
    overflow: hidden;
}

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

.news-item:hover .n-image img {
    transform: scale(1.08);
}

.n-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.n-content h3 {
    font-size: 17px;
    color: #1a3a6c;
    margin-bottom: 8px;
    line-height: 1.4;
}

.n-date {
    display: inline-block;
    color: #2d5ba8;
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

.n-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.read-more {
    color: #2d5ba8;
    font-size: 13px;
    font-weight: 500;
    align-self: flex-start;
}

.read-more:hover {
    text-decoration: underline;
}

/* 联系我们 */
.contact-section {
    padding: 80px 0;
    background: #fff;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
}

.contact-form,
.contact-info {
    background: #f8fafc;
    padding: 40px;
    border-radius: 10px;
}

#messageForm .form-row {
    margin-bottom: 18px;
}

#messageForm .form-row input,
#messageForm .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
}

#messageForm .form-row input:focus,
#messageForm .form-row textarea:focus {
    outline: none;
    border-color: #1a3a6c;
    box-shadow: 0 0 0 3px rgba(26, 58, 108, 0.1);
}

#messageForm .form-row textarea {
    resize: vertical;
    min-height: 120px;
}

#messageForm .form-row:first-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

#messageForm button {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.info-list li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed #ddd;
    font-size: 15px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 22px;
    min-width: 30px;
    text-align: center;
}

.info-list a {
    color: #2d5ba8;
}

.qr-box {
    margin-top: 25px;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

.qr-box img {
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
    border-radius: 10px;
}

.qr-box p {
    font-size: 14px;
    color: #1a3a6c;
    font-weight: 600;
}

/* 页脚 */
.footer {
    background: #0a1f44;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #2d5ba8;
}

.footer-col ul li {
    padding: 6px 0;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.copyright {
    background: #061532;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.copyright a:hover {
    color: #fff;
}

/* 浮动咨询 */
.float-consult {
    position: fixed;
    right: 20px;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fc-item {
    width: 70px;
    padding: 12px 5px;
    background: #fff;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    color: #1a3a6c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    border: 1px solid #e8e8e8;
}

.fc-item:hover {
    background: #1a3a6c;
    color: #fff;
    transform: translateX(-5px);
}

.fc-icon {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}
