/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* 图片加载优化 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* 支持WebP现代浏览器自动使用WebP格式 */
}

/* 优化带有loading=lazy属性的图片 */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

img[loading="lazy"][src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 支持高清屏幕的图片优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

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

/* 科技感主题样式 */
:root {
    --primary-color: #d4af37;
    --secondary-color: #2c3e50;
    --accent-color: #3498db;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-light: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --btn-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 科技感按钮样式 */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    color: var(--secondary-color);
}

/* 科技感卡片样式 */
.card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* 科技感标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* 章节介绍文字 */
.section-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 科技感网格布局 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* 科技感分隔线 */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 40px 0;
}

/* 头部样式 */
header {
    background: linear-gradient(to bottom, rgba(176, 211, 229, 0.9), rgba(200, 225, 238, 0.85));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

/* 首页导航栏样式 */
.home-page header {
    background: transparent;
    box-shadow: none;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    backdrop-filter: none;
    background-color: transparent;
    border-radius: 0;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* 手机端导航栏优化 */
@media (max-width: 768px) {
    header .container {
        padding: 12px 15px;
    }
}

/* 手机端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #2c5a7a;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
}

.logo img {
    height: 50px;
}

.logo-text {
    color: #2c5a7a;
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 10px;
    text-shadow: none;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        z-index: 999;
    }
    
    nav ul.show {
        max-height: 400px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}

nav ul li {
    margin: 0;
    list-style: none;
}

/* 所有导航链接样式 */
nav ul li a {
    color: #2c5a7a !important;
    font-weight: 500;
    transition: all 0.3s ease !important;
    border-bottom: none;
    border-radius: 0;
    padding: 10px 0;
    margin: 0;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
}

@media (max-width: 768px) {
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
    }
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2c5a7a;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: #1a3a4f !important;
    background-color: transparent !important;
    font-weight: 600;
}

/* 英雄区样式 */
.hero {
    background: url('/static/images/external/shouye.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="30" cy="40" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="60" cy="15" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="50" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="20" cy="70" r="1.5" fill="rgba(255,255,255,0.2)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 2;
    gap: 40px;
    justify-content: flex-start;
}

.hero-left {
    flex: 0 0 auto;
    min-width: 0;
    max-width: 50%;
    margin-left: 5%;
}

.hero-card {
    background: rgba(255, 255, 255, 0.7);
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-card:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
}

.hero h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}

.hero h2 {
    font-size: 3.2rem;
    color: #0052cc;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #0052cc;
    border: 2px solid #0052cc;
    color: #fff;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #003d99;
    border-color: #003d99;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

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

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

.tag {
    display: inline-block;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #d4af37;
    color: #fff;
}

.hero-right {
    flex: 1;
    text-align: center;
    display: none;
}

.hero-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 浮动咨询按钮 */
.floating-cta {
    position: fixed;
    bottom: 40px;
    right: 30px;
    background: #fff;
    border: 3px solid #d4af37;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 100;
    min-width: 220px;
    animation: slideInUp 0.5s ease-out, bounce 2s ease-in-out 0.5s infinite;
}

@media (max-width: 768px) {
    .floating-cta {
        display: none;
    }
}

.cta-header {
    color: #d4af37;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.cta-phone {
    color: #0052cc;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: bold;
}

.btn-phone-cta {
    display: inline-block;
    background-color: #0052cc;
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.btn-phone-cta:hover {
    background-color: #003d99;
    transform: translateY(-2px);
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* 产品中心样式 */
.products {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.products .section-title {
    margin-bottom: 50px;
}

.product-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

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

@media (max-width: 768px) {
    .product-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.category {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 13px;
    border: 2px solid #d4af37;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.category:hover::before {
    opacity: 1;
}

.category:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.15);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
}

@media (max-width: 768px) {
    .category-image {
        height: 150px;
    }
}

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

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

.category h3 {
    color: var(--text-dark);
    margin: 20px 20px 15px 20px;
    font-size: 1.3rem;
    font-weight: bold;
}

.category-desc {
    color: #666;
    margin: 0 20px 20px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.category-link {
    color: #d4af37;
    margin: 0 20px 20px 20px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.category-link:hover {
    color: #c19d2a;
    transform: translateX(3px);
}

/* 产品页面样式 */
.products-page {
    padding: 120px 0 80px;
    background-color: #f5f5f5;
}



.products-page h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5rem;
    position: relative;
}

.products-page h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.products-page .category-filter {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.products-page .category-btn {
    padding: 8px 20px;
    background-color: #ffffff;
    color: var(--text-dark);
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.products-page .category-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.products-page .category-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.products-page .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 1024px) {
    .products-page .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-page .product-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 产品项样式 */
.products-page .product-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    min-height: 350px;
}

.products-page .product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.products-page .product-item:hover::before {
    transform: scaleX(1);
}

.products-page .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.products-page .product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .products-page .product-item img {
        height: 150px;
    }
}

.products-page .product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.products-page .product-info-content {
    flex: 1;
    margin-bottom: 15px;
}

.products-page .product-info h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 1.3rem;
    line-height: 1.4;
}

/* 价格标签样式 */
.price-tag {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #c49f27);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

/* 新闻项样式 */
.news-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    min-height: 350px;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.news-item:hover::before {
    transform: scaleX(1);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.price-tag::before {
    content: '￥';
    margin-right: 3px;
}

.price-tag.price-on-request {
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.3);
}

.price-tag.price-range {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

/* 价格标签动画效果 */
.price-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.products-page .product-item:hover .price-tag::after {
    left: 100%;
}

.products-page .product-info .description-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
    border-left: 3px solid #d4af37;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    opacity: 0.9;
}

.products-page .product-item:hover .description-box {
    opacity: 1;
}

.products-page .product-info .description-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: width 0.5s ease;
}

.products-page .product-info .description-box:hover::before {
    width: 100%;
}

.products-page .product-info .description-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.products-page .product-item:hover .description-box {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

.products-page .product-info .description {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    /* 移除限制行数的属性，以便支持换行 */
    /* max-height: 80px; */
    /* overflow: hidden; */
    /* display: -webkit-box; */
    /* -webkit-box-orient: vertical; */
    /* -webkit-line-clamp: 3; */
    /* line-clamp: 3; */
    /* 添加支持换行的属性 */
    white-space: normal;
    word-wrap: break-word;
}

.products-page .product-info .btn {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--btn-transition);
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    margin-top: 5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    line-height: 1.2;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .products-page .product-info .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.products-page .product-info .btn:hover {
    color: #fff;
    background-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.products-page .product-info .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.products-page .consultation-section {
    margin-top: 5px;
    text-align: center;
    padding-top: 5px;
    border-top: 1px dashed #e0e0e0;
    padding-bottom: 0px;
    opacity: 1; /* 始终可见 */
}

.error-message, .no-products, .no-news {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.no-products a, .no-news a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.no-products a:hover, .no-news a:hover {
    text-decoration: underline;
}

/* 新闻页面样式 */
.news-page {
    padding: 120px 0 80px;
    background-color: #f5f5f5;
}

.news-page h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5rem;
}

.news-item {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.news-page .news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-page .news-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: visible; /* 改为visible，防止内容被裁剪 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.news-page .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-page .news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-page .news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start; /* 改为flex-start，避免内容被挤压 */
}

.news-page .news-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.news-page .news-content p {
    color: #666;
    margin-bottom: 0; /* 取消底部外边距 */
    line-height: 1.6;
    max-height: 45px; /* 增加高度以确保完整显示两行文字 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.news-page .news-content .date {
    color: #999;
    font-size: 0.9rem;
    margin: 8px 0 15px 0; /* 调整上下边距 */
    padding-top: 0; /* 移除顶部内边距 */
}

.news-page .news-content-main {
    flex: 1;
    margin-bottom: 0; /* 取消底部外边距 */
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 确保能够扩展 */
}

.news-page .read-more-section {
    margin-top: 15px; /* 增加顶部外边距，避免与内容重叠 */
    text-align: center;
    padding-top: 10px; /* 增加顶部内边距 */
    border-top: 1px dashed #e0e0e0;
    opacity: 1; /* 始终可见 */
}

.news-page .read-more-btn {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1); /* 轻微背景色 */
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.9rem;
    opacity: 1; /* 始终可见 */
    visibility: visible; /* 始终可见 */
    transform: translateY(0); /* 初始位置 */
}

.news-page .read-more-btn:hover {
    color: #fff;
    background-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.news-page .read-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 15px;
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

.page-btn.active {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

/* 关于我们页面样式 */
.about-page {
    padding: 120px 0 80px;
    background-color: #f5f5f5;
}

.about-page h1 {
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    font-size: 2.5rem;
}

/* 公司概览段 */
.about-overview {
    background-color: #ffffff;
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 60px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.overview-text h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 15px;
}

.overview-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.overview-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    border-radius: 10px;
    border-top: 3px solid #d4af37;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 10px;
}

.highlight-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* 应用领域 */
.application-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.app-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.app-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.2);
}

.app-item i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 20px;
    display: block;
}

.app-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.app-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 关于我们段落 */
.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #d4af37;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.advantage-item {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.2);
}

.advantage-icon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 20px;
    display: inline-block;
}

.advantage-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 企业承诺 */
.about-commitment {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 60px 40px;
    border-radius: 15px;
    margin-bottom: 60px;
    border-left: 5px solid #d4af37;
}

.about-commitment h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

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

.commitment-item {
    background-color: #ffffff;
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    border-top: 3px solid #d4af37;
    transition: all 0.3s ease;
}

.commitment-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.commitment-item h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
}

.commitment-item p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* CTA区域 */
.about-cta {
    background: linear-gradient(135deg, #d4af37 0%, #c49f27 100%);
    color: white;
    padding: 80px 40px;
    border-radius: 15px;
    text-align: center;
    margin-top: 60px;
}

.about-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: white;
}

.about-cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.95);
}

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

.cta-buttons .btn {
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 8px;
}

.cta-buttons .btn-primary {
    background-color: white;
    color: #d4af37;
}

.cta-buttons .btn-primary:hover {
    background-color: #f0f0f0;
}

.cta-buttons .btn-outline {
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .overview-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .application-grid,
    .advantages {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .application-grid,
    .advantages {
        grid-template-columns: 1fr;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-highlight {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #d4af37;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-year {
    position: absolute;
    left: -30px;
    top: 0;
    background-color: #d4af37;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.timeline-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.timeline-content h4 {
    color: #333;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #666;
    margin: 0;
}

/* 新闻详情页面样式 */
.news-detail-page {
    padding: 180px 0 80px; /* 再次增加顶部内边距，使整体往下移动 */
    background-color: #f5f5f5;
}

.news-detail-page .container {
    max-width: 800px; /* 增加1/3宽度 */
    margin: 0 auto;
}

/* 新闻头部容器 */
.news-header-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #d4af37; /* 金色边框，线条更细 */
    margin-bottom: 0; /* 移除底部边距 */
    position: relative;
    border-bottom: none; /* 移除底部边框，与内容容器融合 */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.news-detail-page h1 {
    text-align: left;
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5rem;
    position: relative;
    padding-left: 40px;
}

.news-detail-page h1::before {
    content: '\f0f6'; /* Font Awesome 文件图标 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #d4af37; /* 金色 */
    font-size: 1.8rem;
}

.news-meta {
    text-align: left;
    color: #666;
}

.news-meta .author {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #d4af37; /* 金色 */
}

/* 返回新闻列表按钮 */
.back-to-news-btn {
    position: absolute;
    top: -50px;
    left: 0;
    background-color: #d4af37; /* 金色 */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.back-to-news-btn:hover {
    background-color: #c49f27; /* 深一点的金色 */
    color: white;
    text-decoration: none;
}

.back-to-news-btn i {
    font-size: 1.2rem;
}

/* 新闻内容容器 - 金色框 */
.news-content-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #d4af37; /* 金色边框，线条更细 */
    margin-bottom: 30px;
    border-top: none; /* 移除顶部边框，与头部容器融合 */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.news-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 30px 0;
    display: block;
    border-radius: 10px;
}

.news-content-detail {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
}

.news-content-detail p {
    margin-bottom: 20px;
    word-wrap: break-word;
}

.back-to-news {
    text-align: center;
    margin-top: 30px;
}

/* 联系我们页面样式 */
.contact-page {
    padding: 120px 0 80px;
    background-color: #f5f5f5;
}

.contact-page h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.5rem;
}

.contact-page .contact-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-page .contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
}

.contact-page .contact-info-section {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
}

.contact-page .contact-info-section > h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.contact-page .contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-details-box {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.contact-details-box:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.contact-details-box:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}



.contact-page .contact-info-section > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #d4af37;
    border-radius: 3px;
}

.contact-page .contact-form-section {
    flex: 1;
    min-width: 300px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    max-height: 800px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.contact-page .contact-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-page .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-page .contact-layout {
        flex-direction: column;
    }
    
    .contact-page .contact-info-section,
    .contact-page .contact-form-section {
        min-width: 100%;
    }
    

    
    .contact-page .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

.contact-page .contact-card {
    background-color: #f9f9f9;
    padding: 20px 15px;
    border-radius: 8px;
    border-top: 3px solid #d4af37;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    height: 100%;
}

.contact-page .contact-card-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.contact-page .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.contact-page .contact-icon {
    font-size: 1.8rem;
    color: #d4af37;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.contact-page .contact-icon .fa-user-tie {
    color: #007bff;
}

.contact-page .contact-icon .fa-envelope {
    color: #28a745;
}

.contact-page .contact-icon .fa-map-marker-alt {
    color: #dc3545;
}

.contact-page .contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-page .contact-card:hover .contact-icon .fa-user-tie {
    color: #0056b3;
}

.contact-page .contact-card:hover .contact-icon .fa-envelope {
    color: #1e7e34;
}

.contact-page .contact-card:hover .contact-icon .fa-map-marker-alt {
    color: #bd2130;
}

.contact-page .contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-page .contact-text h3 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.3rem;
    margin-top: 0;
    font-weight: bold;
}

.contact-page .contact-text {
    flex: 1;
}

.contact-page .contact-text p {
    color: #666;
    margin: 5px 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-map {
    margin-top: auto;
    padding-top: 20px;
}

.contact-map h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.contact-map h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #d4af37;
    border-radius: 3px;
}

.map-container {
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 100%;
}

.map-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.contact-form-section {
    margin-top: 0;
}

.contact-form-section h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.contact-form-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #d4af37;
    border-radius: 3px;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-form {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form .form-group {
    margin-bottom: 20px;
    width: 100%;
    flex: 1 1 0;
    min-width: 200px;
}

@media (max-width: 768px) {
    .contact-form .form-group {
        min-width: 100%;
    }
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus,
.contact-form .form-group select:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* 字符计数样式 */
.char-count {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.char-count.warning {
    color: #ff6b6b;
}

.btn-submit {
    background-color: #d4af37;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
    align-self: center;
    flex-shrink: 0;
}

.btn-submit:hover {
    background-color: #c19d2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* 首页提示信息样式 */
.more-info {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin: 20px 0;
}

.more-info a {
    color: #d4af37;
    text-decoration: none;
    font-weight: bold;
}

.more-info a:hover {
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-header h2 i {
    color: #4CAF50;
    margin-right: 10px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 15px 0;
    line-height: 1.6;
}

.contact-info-display p {
    margin: 5px 0;
    font-size: 0.95rem;
}

.contact-info-display strong {
    color: #333;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-primary {
    background-color: #d4af37;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #c19d2a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* 服务优势样式 */
.services {
    padding: 100px 0;
    background-color: #ffffff;
}

.services .section-title {
    margin-bottom: 50px;
}

.service-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

@media (max-width: 768px) {
    .service-items {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.service-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .service-item {
        padding: 30px 20px;
    }
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .service-item i {
        font-size: 2.5rem;
    }
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.service-item:hover i {
    transform: scale(1.1) rotateY(360deg);
    color: var(--secondary-color);
}

.service-item h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .service-item h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

.service-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .service-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* 新闻资讯样式 */
.news {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.news .section-title {
    margin-bottom: 50px;
}

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

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

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

.news-item {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    min-height: 350px;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.news-item:hover::before {
    transform: scaleX(1);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .news-item img {
        height: 150px;
    }
}

.news-content {
    padding: 25px 0; /* 减少左右padding，让内容和日期的边距控制更精确 */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    color: var(--text-dark);
    margin: 20px 20px 15px 20px; /* 与产品卡片一致 */
    font-size: 1.3rem;
    font-weight: bold; /* 与产品卡片一致 */
    line-height: 1.4;
}

.news-content p {
    color: #666; /* 与产品卡片一致 */
    margin: 0 20px 10px 20px; /* 减少底部边距，减少与日期的行距 */
    font-size: 0.95rem; /* 与产品卡片一致 */
    line-height: 1.6; /* 与产品卡片一致 */
    max-height: 75px; /* 进一步增加高度以确保完整显示三行文字 */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 改为显示3行 */
    line-clamp: 3; /* 改为显示3行 */
}

.news-content .date {
    color: #d4af37; /* 与产品卡片链接一致 */
    font-weight: bold; /* 与产品卡片链接一致 */
    text-decoration: none; /* 与产品卡片链接一致 */
    transition: all 0.3s ease; /* 与产品卡片链接一致 */
    font-size: 0.95rem; /* 与产品卡片链接一致 */
    display: block; /* 修改为block */
    margin: 0 20px 15px 20px; /* 设置边距 */
    text-align: right; /* 右对齐 */
}

.news-content .date:hover {
    color: #c19d2a; /* 与产品卡片链接一致 */
    transform: translateX(3px); /* 与产品卡片链接一致 */
}

.more-news {
    text-align: center;
    margin-top: 20px;
}

.more-news .btn,
.contact-cta .btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.more-news .btn::before,
.contact-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    z-index: -1;
    transition: all 0.3s ease;
    opacity: 0;
}

.more-news .btn:hover,
.contact-cta .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: white;
}

.more-news .btn:hover::before,
.contact-cta .btn:hover::before {
    opacity: 1;
}

.more-news .btn:active,
.contact-cta .btn:active {
    transform: translateY(-2px);
}

/* 关于我们样式 */
.about {
    padding: 100px 0;
    background-color: #ffffff;
}

.about .section-title {
    margin-bottom: 50px;
}

.about-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

/* 联系我们样式 */
.contact {
    padding: 100px 0;
    background-color: #ffffff;
}

.contact .section-title {
    margin-bottom: 50px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

@media (max-width: 1200px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.contact-item {
    background-color: #ffffff;
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.contact-item h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-cta {
    text-align: center;
    margin-top: 60px;
}

.contact-cta p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 500;
}

/* 底部样式 */
footer {
    background-color: #ffffff;
    color: #333333;
    padding: 50px 0 30px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #333333;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-logo-section {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: flex-start;
    padding-top: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 15px;
}

.footer-logo-text {
    color: #333333;
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #666666;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-logo-text span {
    color: var(--primary-color);
}

.footer-section {
    flex: 1;
    min-width: 180px;
    padding-top: 30px;
}

.footer-section p {
    margin-bottom: 15px;
    color: #666666;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #666666;
    font-size: 0.9rem;
}

.footer-simple {
    text-align: center;
    padding: 20px 0;
    color: #666666;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* 一键置顶按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    z-index: 1000;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

@media (max-width: 1024px) {
    .products-page .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-logo-section,
    .footer-section {
        flex: 1 1 45%;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    header .container {
        padding: 12px 15px;
    }
    
    .footer-simple {
        padding: 15px 10px;
        font-size: 0.8rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        z-index: 999;
    }
    
    nav ul.show {
        max-height: 400px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .hero {
        padding-top: 70px;
        padding-bottom: 20px;
        min-height: auto;
    }
    
    .hero-wrapper {
        flex-direction: column;
        padding: 0 20px;
        gap: 20px;
    }
    
    .hero-left {
        flex: 1;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
    
    .hero-card {
        padding: 30px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .service-tags {
        gap: 8px;
    }
    
    .tag {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form .form-group {
        margin-bottom: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-logo-section,
    .footer-section {
        min-width: 100%;
    }
    
    .contact-page .contact-content {
        padding: 20px 15px;
    }
    
    .contact-page .contact-card {
        padding: 20px 15px;
    }
}

/* 超小屏幕优化 (480px以下) */
@media (max-width: 480px) {
    header .container {
        padding: 12px 15px;
    }
    
    .logo img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
        margin-left: 5px;
    }
    
    nav ul {
        top: 60px;
    }
    
    nav ul.show {
        max-height: 350px;
    }
    
    .hero {
        padding-top: 70px;
        padding-bottom: 20px;
        min-height: auto;
    }
    
    .hero-wrapper {
        padding: 0 15px;
    }
    
    .hero-card {
        padding: 20px 15px;
        border: 2px solid #d4af37;
        border-radius: 10px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .hero h2 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .btn-primary,
    .btn-outline,
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-tags {
        gap: 6px;
    }
    
    .tag {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .product-categories {
        gap: 15px;
    }
    
    .category {
        min-height: auto;
    }
    
    .products-page h1 {
        font-size: 1.8rem;
    }
    
    .news-page h1 {
        font-size: 1.8rem;
    }
    
    .floating-cta {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .cta-header,
    .cta-phone {
        font-size: 0.8rem;
    }
    
    .contact-form label {
        font-size: 0.9rem;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }
    
    footer {
        padding: 30px 0 20px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-logo img {
        height: 30px;
        margin-right: 10px;
    }
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
}