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

body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #fff;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    min-height: calc(100vh - 180px);
    padding-top: 0;
}

/* 顶部区域样式 */
header {
    position: relative;
    width: 100%;
    padding: 15px 0;
    background: transparent;
    box-shadow: none;
}

/* 移除背景图片和遮罩 */
header::before,
header::after {
    display: none;
}

/* 导航容器 */
.nav-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

/* Logo区域 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.company-name {
    font-size: 1.2em;
    margin-left: 10px;
    white-space: nowrap;
}

.company-name-mobile {
    display: none;
    font-size: 1.2em;
    margin-left: 10px;
    white-space: nowrap;
}

/* 导航菜单 */
nav {
    margin-left: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    white-space: nowrap;
}

nav ul li a:hover {
    color: #0078d4;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav {
        margin-left: 0;
        width: 100%;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .logo span {
        font-size: 16px;
    }

    .logo img {
        height: 40px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul li a {
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* 页脚样式 */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* 关于我们页面样式 */
.about-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #006B54;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.about-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.about-section ul li {
    color: #666;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.about-section ul li:before {
    content: "•";
    color: #006B54;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .about-section {
        padding: 20px;
    }
}

/* 行业资讯页面样式 */
.news-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #006B54;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-source {
    color: #006B54;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.2em;
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.4;
}

.news-summary {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-date {
    color: #999;
    font-size: 0.9em;
}

.news-link {
    color: #006B54;
    text-decoration: none;
    font-size: 0.9em;
}

.news-link:hover {
    text-decoration: underline;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
}

.error-message p {
    color: #666;
    margin-bottom: 20px;
}

.error-message button {
    background: #006B54;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.error-message button:hover {
    background: #005543;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* 知识库页面样式 */
.knowledge-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.converter-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 35px;
    margin-bottom: 50px;
    transition: transform 0.3s ease;
}

.converter-container:hover {
    transform: translateY(-5px);
}

.converter-title {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.converter-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #006B54;
    border-radius: 2px;
}

.converter-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.converter-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.converter-input-group label {
    color: #555;
    font-size: 1em;
    font-weight: 500;
}

.converter-input-group input,
.converter-input-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.converter-input-group input:focus,
.converter-input-group select:focus {
    border-color: #006B54;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,107,84,0.1);
}

.converter-result {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
}

.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.calculator-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    transition: transform 0.3s ease;
}

.calculator-container:hover {
    transform: translateY(-5px);
}

.calculator-title {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.calculator-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #006B54;
    border-radius: 2px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: #555;
    font-size: 1em;
    font-weight: 500;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    border-color: #006B54;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,107,84,0.1);
}

.calculator-result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #555;
    font-size: 1.1em;
    border: 2px solid #e0e0e0;
}

.result-value {
    color: #006B54;
    font-weight: 600;
    font-size: 1.2em;
}

.knowledge-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
    margin-top: 50px;
    transition: transform 0.3s ease;
}

.knowledge-content:hover {
    transform: translateY(-5px);
}

.knowledge-content h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.knowledge-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #006B54;
    border-radius: 2px;
}

.knowledge-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.knowledge-content ul {
    list-style: none;
    padding: 0;
}

.knowledge-content li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1em;
}

.knowledge-content li::before {
    content: "•";
    color: #006B54;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

@media (max-width: 768px) {
    .converter-form {
        grid-template-columns: 1fr;
    }
    
    .calculators-grid {
        grid-template-columns: 1fr;
    }

    .converter-container,
    .calculator-container,
    .knowledge-content {
        padding: 25px;
    }

    .converter-title,
    .calculator-title,
    .knowledge-content h2 {
        font-size: 1.5em;
    }
}

/* 设备台账表格样式 */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.equipment-table th,
.equipment-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.equipment-table th {
    background: #006B54;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}

.equipment-table tr:nth-child(even) {
    background: #f8f9fa;
}

.equipment-table tr:hover {
    background: #f0f0f0;
}

.equipment-table td {
    color: #333;
    font-size: 0.95em;
}

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

.equipment-header h2 {
    color: #333;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 15px;
}

.equipment-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #006B54;
    border-radius: 2px;
}

.equipment-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .equipment-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .equipment-table th,
    .equipment-table td {
        padding: 12px;
        font-size: 0.9em;
    }
}

/* 研发实验室页面样式 */
.laboratory-content {
    padding: 3rem 0;
}

.lab-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.lab-intro h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.lab-intro p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.equipment-gallery {
    margin-top: 3rem;
}

.equipment-gallery h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.equipment-info {
    padding: 1.5rem;
}

.equipment-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.equipment-info .model {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.equipment-info .function {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .laboratory-content {
        padding: 2rem 0;
    }

    .lab-intro {
        padding: 0 1rem;
    }

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

    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .equipment-info {
        padding: 1rem;
    }
}

/* 合作共建页面样式 */
.cooperation-content {
    padding: 50px 0;
}

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

.partner-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    gap: 40px;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.partner-info {
    flex: 1;
}

.partner-info h2 {
    color: #006B54;
    margin-bottom: 20px;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 15px;
}

.partner-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #006B54;
    border-radius: 2px;
}

.partner-info p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.cooperation-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.cooperation-details h3 {
    color: #006B54;
    margin-bottom: 20px;
    font-size: 1.3em;
    position: relative;
    padding-bottom: 10px;
}

.cooperation-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #006B54;
    border-radius: 2px;
}

.cooperation-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cooperation-details li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 1.05em;
    line-height: 1.6;
}

.cooperation-details li:last-child {
    margin-bottom: 0;
}

.cooperation-details li::before {
    content: "•";
    color: #006B54;
    position: absolute;
    left: 0;
    font-size: 1.5em;
    line-height: 1;
}

@media (max-width: 992px) {
    .partner-card {
        padding: 30px;
        gap: 30px;
    }

    .partner-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 768px) {
    .cooperation-content {
        padding: 30px 0;
    }

    .partner-card {
        flex-direction: column;
        padding: 25px;
    }

    .partner-image {
        width: 100%;
        flex: none;
        margin-bottom: 20px;
    }

    .partner-info h2 {
        font-size: 1.5em;
    }

    .cooperation-details {
        padding: 20px;
    }

    .cooperation-details h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .partner-card {
        padding: 20px;
    }

    .partner-image {
        height: 180px;
    }

    .partner-info p {
        font-size: 1em;
    }

    .cooperation-details li {
        font-size: 1em;
    }
}

/* 应用领域图片样式 */
.item-image {
    position: relative;
    height: 400px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
}

/* 轮播图样式 */
.swiper-slide {
    width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
}

/* 其他图片样式 */
.image-content img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    background-color: #f5f5f5;
    padding: 10px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .item-image {
        height: 300px;
    }
    
    .swiper-slide {
        height: 300px;
    }
    
    .image-content img {
        max-height: 300px;
    }
}

.applications-content {
    padding: 20px 0;
}

.intro-section {
    text-align: center;
    margin-bottom: 30px;
}

.intro-section h2 {
    color: #2196F3;
    font-size: 2em;
    margin-bottom: 20px;
}

.automotive-content,
.hvac-content,
.construction-content,
.transportation-content,
.home-appliance-content {
    padding: 20px 0;
}

.product-intro {
    margin-bottom: 2rem;
}

/* 移除页面标题区域相关样式 */
.page-header {
    display: none;
}

/* 调整内容区域与导航栏的间距 */
.main-content {
    padding-top: 0;
}

/* 调整产品卡片样式 */
.product-card {
    margin-top: 0;
}

/* 调整特性区域样式 */
.features-section {
    margin: 30px 0;
}

/* 调整应用案例区域样式 */
.application-cases {
    margin-top: 30px;
}

/* 调整技术规格区域样式 */
.specs-section {
    margin: 30px 0;
}

/* 移动端响应式样式 */
@media screen and (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .nav-container {
        padding: 10px;
        position: relative;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1;
        margin-right: 50px;
        padding: 0;
        margin-bottom: 0;
    }

    .logo img {
        height: 35px;
        width: auto;
        flex-shrink: 0;
    }

    .company-name {
        display: none;
    }

    .company-name-mobile {
        display: inline-block;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
        font-size: 1.5em;
    }

    #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    #mainNav.active {
        display: block;
    }

    #mainNav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    #mainNav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    #mainNav li:last-child {
        border-bottom: none;
    }

    #mainNav a {
        padding: 15px;
        display: block;
        color: #333;
    }

    #mainNav a:hover {
        background-color: #f5f5f5;
    }

    /* 轮播图样式 */
    .swiper {
        height: 40vh;
        margin-top: 10px;
    }

    .swiper-slide {
        background-size: cover;
        background-position: center;
    }

    .slide-text {
        padding: 15px;
    }

    .slide-text h2 {
        font-size: 1.2rem;
        margin: 0;
        line-height: 1.4;
    }

    /* 内容区块样式 */
    #content-blocks {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    .content-block {
        width: 100%;
        margin: 0;
        padding: 20px;
    }

    .content-block h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .content-block p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* 页脚样式 */
    footer {
        padding: 20px 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-section {
        width: 100%;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .footer-section p, 
    .footer-section a {
        font-size: 0.9rem;
    }

    .copyright {
        font-size: 0.8rem;
        padding: 10px 0;
    }
}

/* 更小屏幕的优化 */
@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }

    .logo img {
        height: 30px;
    }

    .company-name-mobile {
        font-size: 12px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
        right: 10px;
    }

    nav ul li a {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 横屏优化 */
@media screen and (max-width: 768px) and (orientation: landscape) {
    nav {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    nav ul li a {
        padding: 12px 20px;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    #mainNav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    #mainNav.active {
        display: block;
    }

    #mainNav ul {
        flex-direction: column;
        padding: 0;
    }

    #mainNav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    #mainNav a {
        padding: 15px;
        display: block;
    }

    .company-name {
        display: none;
    }

    .company-name-mobile {
        display: inline-block;
        font-size: 1em;
        margin-left: 10px;
    }
} 