@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');
/* 全局变量定义 */
:root {
    --bg-color: #F8FAFC;
    --bg-color-alt: #FFFFFF;
    --text-primary: #020617;
    --text-secondary: #475569;
    --accent-color: #0369A1;
    --accent-hover: #0284C7;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --shadow-color: rgba(15, 23, 42, 0.05);
    --font-main: 'Plus Jakarta Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
}

/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* 移除 scroll-behavior: smooth，避免在某些 Windows 浏览器上鼠标滚轮滑动时产生粘滞感或卡顿感 */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px var(--shadow-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* 移除 backdrop-filter，这是导致低端设备/部分浏览器滚动掉帧的性能杀手 */
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* 开启 GPU 硬件加速，强制提升渲染图层 */
    transform: translateZ(0);
    will-change: background-color, box-shadow;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 24px;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* 轮播区域 */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    padding-top: 70px; /* 导航栏高度 */
    margin-top: -70px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
    /* 优化轮播图渲染性能 */
    will-change: opacity;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

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

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.8) 100%);
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 90%;
    max-width: 800px;
}

.carousel-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.carousel-content p {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.carousel-control:hover {
    background: var(--accent-color);
    color: #000;
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

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

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

.indicator.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--shadow-color);
}

/* 产品区块 */
.product-section {
    padding: 80px 0;
}

.product-section.alt-bg {
    background-color: var(--bg-color-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 20px;
}

/* 产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: var(--accent-color);
}

.card-img-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 比例 */
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff3366;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    z-index: 2;
}

.card-content {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-model {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #E11D48;
    margin-bottom: 20px;
}

.product-price .unit {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-secondary);
}

.product-card .btn {
    width: 100%;
}

/* 页脚 */
.footer {
    background-color: #0F172A;
    color: #F8FAFC;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    color: #94A3B8;
    margin-bottom: 10px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #94A3B8;
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-qr img {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F8FAFC;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    color: var(--text-primary);
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.modal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--accent-color);
}

.loader {
    border: 3px solid rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--accent-color);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.article-rich-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94A3B8;
    font-size: 14px;
}

/* 内页样式 */
.page-banner {
    padding-top: 150px;
    padding-bottom: 80px;
    background: linear-gradient(to right, #F8FAFC, #E2E8F0);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-banner h2 {
    font-size: 40px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.page-banner p {
    color: var(--text-secondary);
    font-size: 18px;
}

.page-content {
    padding: 80px 20px;
    min-height: 50vh;
}

.page-content h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-left: 15px;
}

.page-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 16px;
}

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

.news-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-item:hover {
    border-color: var(--accent-color);
    transform: translateX(10px);
}

.news-date {
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-card h4 {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 15px;
}

/* 详情页样式 */
.breadcrumb {
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.detail-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.detail-gallery {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.detail-gallery img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.detail-info {
    flex: 2;
    min-width: 300px;
}

.detail-status {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.detail-title {
    font-size: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag-rent {
    background: #E0F2FE;
    color: #0369A1;
    font-size: 14px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.detail-price-panel {
    background: rgba(255, 51, 102, 0.05);
    border: 1px solid rgba(255, 51, 102, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.price-main {
    color: #E11D48;
    font-size: 24px;
    font-weight: bold;
}

.price-sub {
    color: var(--text-secondary);
    font-size: 16px;
}

.price-sub span {
    color: #E11D48;
    font-weight: bold;
}

.tag-gray {
    background: #F1F5F9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.tag-green {
    background: #DCFCE7;
    color: #15803D;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.detail-meta-list {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 15px;
    flex-wrap: wrap;
}

.detail-meta-list span {
    color: var(--text-primary);
}

.detail-service {
    color: var(--text-secondary);
    font-size: 14px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.detail-content-section {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 30px;
}

.detail-content-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-color);
}

.detail-rich-text img {
    max-width: 100%;
    height: auto !important;
}

/* 全局右下角悬浮引导按钮 */
.floating-action-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: linear-gradient(135deg, #0369A1, #0284C7);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(3, 105, 161, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: floatPulse 2s infinite;
}

.floating-action-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(3, 105, 161, 0.4);
    color: #fff;
    animation: none;
}

.floating-action-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes floatPulse {
    0% { box-shadow: 0 0 0 0 rgba(3, 105, 161, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(3, 105, 161, 0); }
    100% { box-shadow: 0 0 0 0 rgba(3, 105, 161, 0); }
}
    70% { box-shadow: 0 0 0 15px rgba(0, 229, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-action-btn {
        right: 20px;
        bottom: 20px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .floating-action-btn svg {
        width: 18px;
        height: 18px;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .carousel-content h2 {
        font-size: 32px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
}
