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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 语言切换器样式 */
.language-switcher-nav {
    position: relative;
}

.language-switcher {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 500;
    color: #2c5aa0;
    transition: all 0.3s ease;
}

.language-current:hover {
    background: #f8f9fa;
}

.language-current i:first-child {
    color: #2c5aa0;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.language-switcher:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: #2c5aa0;
    color: white;
}

.language-option.active {
    background: #f0f4f8;
    color: #2c5aa0;
    font-weight: 600;
}

.language-option.active:hover {
    background: #2c5aa0;
    color: white;
}

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

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo h2 {
    color: #2c5aa0;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-logo-img {
    height: 2.6rem;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

/* 导航栏中的语言切换器 */
.nav-menu .language-switcher-nav {
    margin: 0;
    padding: 0;
}

.nav-menu .language-switcher {
    margin: 0;
    min-width: 120px;
}

.nav-menu .language-current {
    padding: 8px 12px;
    font-size: 14px;
}

.nav-menu .language-dropdown {
    top: 100%;
    left: 0;
    right: 0;
}

.cta-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-btn:hover {
    background: #1e3d72;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区域 */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.hero-content {
    margin-left: 3rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1rem;
    opacity: 0.8;
}

.hero-side-image {
    grid-column: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.side-image {
    height: 100%;
    max-height: 333px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 通用区域样式 */
.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
}

/* 分区头部样式 - 用于显示"查看全部"按钮 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header > div {
    flex: 1;
    min-width: 300px;
}

.section-header .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.section-header .section-subtitle {
    text-align: left;
    margin-bottom: 0;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2c5aa0;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: #1e3d72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* 机械设备网格 */
.machines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.machine-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 产品卡片点击区域 */
.machine-card-clickable {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    cursor: pointer;
}

.machine-info {
    position: relative;
    z-index: 2;
}

.machine-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

.machine-card:hover .machine-image img {
    transform: scale(1.1);
}

.tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 5px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag.new {
    background: #28a745;
}

.tag.used {
    background: #ffc107;
    color: #333;
}

.machine-info {
    padding: 1.5rem;
}

.machine-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.specs {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.inquiry-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.inquiry-btn:hover {
    background: #1e3d72;
}

/* 产品卡片按钮组 */
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.detail-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    flex: 1;
}

.detail-btn:hover {
    background: #545b62;
}

.inquiry-btn {
    flex: 1;
}

@media (max-width: 768px) {
    .card-actions {
        flex-direction: column;
    }
}

/* 博客网格 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

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

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

.read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e3d72;
}

/* 联系表单 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: #2c5aa0;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-logo {
        grid-column: 1 / 2;
        justify-content: center;
    }
    
    .hero-content {
        grid-column: 1 / 2;
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
    
    .hero-side-image {
        display: none;
    }
    
    .machines-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动效果 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 博客文章页面样式 */
.blog-article {
    padding: 120px 0 60px;
    background: #f8f9fa;
}

.article-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.article-header h1 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 5px;
    color: #2c5aa0;
}

.article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.article-body {
    padding: 40px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body h2 {
    color: #2c5aa0;
    margin: 30px 0 15px;
    font-size: 1.8rem;
}

.article-body h3 {
    color: #333;
    margin: 25px 0 10px;
    font-size: 1.4rem;
}

.article-body p {
    margin-bottom: 20px;
    color: #444;
}

.article-body ul, .article-body ol {
    margin: 15px 0 15px 30px;
}

.article-body li {
    margin-bottom: 8px;
    color: #444;
}

.article-body strong {
    color: #2c5aa0;
}

.maintenance-table, .selection-table, .trend-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.maintenance-table th, .selection-table th, .trend-table th {
    background: #2c5aa0;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.maintenance-table td, .selection-table td, .trend-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.maintenance-table tr:nth-child(even), 
.selection-table tr:nth-child(even), 
.trend-table tr:nth-child(even) {
    background: #f0f4f8;
}

blockquote {
    border-left: 4px solid #2c5aa0;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f0f4f8;
    font-style: italic;
    color: #555;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: #666;
    font-size: 0.9rem;
}

.article-footer {
    padding: 30px 40px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tags span {
    color: #666;
    font-weight: 600;
}

.tags a {
    background: #e3f2fd;
    color: #2c5aa0;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tags a:hover {
    background: #2c5aa0;
    color: white;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-buttons span {
    color: #666;
    font-weight: 600;
}

.share-btn {
    background: #f0f4f8;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: #2c5aa0;
    color: white;
}

.related-articles {
    margin-top: 60px;
}

.related-articles h3 {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 30px;
    text-align: center;
}

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

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-image {
    height: 200px;
    overflow: hidden;
}

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

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

.related-content {
    padding: 20px;
}

.related-content h4 {
    font-size: 1.2rem;
    color: #2c5aa0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.related-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 博客卡片链接样式 */
.blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    transform: translateY(-5px);
}

.blog-card .read-more {
    display: inline-block;
    color: #2c5aa0;
    font-weight: 600;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.blog-link:hover .read-more {
    color: #1e3d72;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-header {
        padding: 30px 20px 15px;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-body {
        padding: 20px;
        font-size: 1rem;
    }
    
    .article-footer {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .maintenance-table, .selection-table, .trend-table {
        font-size: 0.9rem;
    }
    
    .maintenance-table th, .maintenance-table td,
    .selection-table th, .selection-table td,
    .trend-table th, .trend-table td {
        padding: 8px 10px;
    }
}