:root {
    --primary-dark: #1150d8ea;      /* 深蓝 - 用于头部、导航、页脚 */
    --primary-medium: #0079c1;    /* 中蓝 - 用于渐变 */
    --accent: #009f4d;            /* 浅绿色 - 用于强调、悬停效果 */
    --accentnew: #1dc951;            /* 绿色 - 用于强调、悬停效果 */
    --light-bg: #f8f9fa;          /* 浅灰 - 用于背景 */
    --content-bg: #fdfbfb;        /* 白色 - 内容区域背景 */
    --text-dark: #333333;          /* 深灰 - 主要文本 */
    --text-medium: #555555;       /* 中灰 - 次要文本 */
    --text-light: #ffffff;         /* 白色 - 深色背景上的文本 */
    --border: #e0e0e0;            /* 浅灰色边框 */
    --visited: #34af1c;            /* 浅灰色已经点击的链接 */
    --footercb: #1a3a5f;            /* 页脚背景颜色 */
    --accent-color: #4CAF50;        /* 绿色装饰线颜色 */
    --transition: all 0.3s ease;     /* 过渡效果 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--text-light);
    padding: 25px 0;
    text-align: center;
    background-image: url(images/news.webp);
    background-position: center center;
    background-size: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.7);
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.7);
}


/* =====导航风格 ===== */
nav {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    font-size: clamp(0.75rem, 2vw, 1rem); /* 自适应字体大小 */
    padding: 12px clamp(8px, 2vw, 55px); /* 自适应内边距 */
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover, 
.nav-item.active {
    color: var(--accentnew);
    background-color: rgba(255,255,255,0.08);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

/* ===== MAIN CONTENT STYLES ===== */
.site-content {
    padding: 40px 0;
}

.content-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 35px 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #229453, #45B787);
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #229453, #45B787);
    -webkit-background-clip: text;
    /* 添加标准属性 */
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 添加兼容性属性和回退方案 */
    color: transparent;
    /* 为Firefox添加兼容性 */
    @supports (-moz-appearance: none) {
        color: #229453; /* 回退颜色 */
        position: relative;
        display: inline-block;
    }
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.article-block {
    margin: 35px 0;
}

.article-block h3 {
    color: #1a6dcc;
    font-size: 1.8rem;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

.article-block h3::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #229453, #45B787);
}

.article-block p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.highlight {
    background: #f0f7ff;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #229453;
    margin: 25px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* ===== IMAGE STYLES ===== */
.machine-image-container {
    display: flex;
    max-width: 800px;
    justify-content: center;
    margin: 35px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.machine-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.machine-image:hover {
    transform: scale(1.03);
}

/* ===== TABLE STYLES ===== */
.table-container {
    margin: 35px 0;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    min-width: 700px;
}

.specs-table th, 
.specs-table td {
    padding: 15px 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.specs-table th {
    background: linear-gradient(to bottom, #229453, #45B787);
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    position: sticky;
    top: 0;
}

.specs-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.specs-table tr:hover {
    background-color: #e9f0f9;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #1a6dcc;
}

/* ===== RECOMMENDATIONS SECTION ===== */
.recommendations-section {
    background: linear-gradient(135deg, #f0f7ff, #e4f0e9);
    border-radius: 15px;
    padding: 35px 30px;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 25px;
}

.recommendation-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommendation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #45B787;
}

.recommendation-card h4 {
    color: #229453;
    margin-bottom: 18px;
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 12px;
}

.recommendation-card h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #45B787;
}

.recommendation-card p {
    flex-grow: 1;
    margin-bottom: 25px;
    color: #555;
}

.card-btn {
    display: inline-block;
    background: linear-gradient(to right, #229453, #45B787);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(34, 148, 83, 0.3);
}

.card-btn:hover {
    background: linear-gradient(to right, #1a7d41, #3a9b6f);
    box-shadow: 0 6px 15px rgba(34, 148, 83, 0.4);
    transform: translateY(-2px);
}

/* 分页控件 - 使用橙色强调 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    text-decoration: none;
    color: var(--primary-dark);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    background-color: var(--content-bg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.page-link:hover {
    background-color: var(--primary-medium);
    color: var(--text-light);
    border-color: var(--primary-medium);
    transform: translateY(-3px);
}

.page-link.active {
    background-color: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

/* 页脚样式 */
footer {
    background: var(--footercb);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    color: white;
    position: relative;
    padding-bottom: 8px;
    font-family: 'Roboto', sans-serif;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 110px;
    height: 3px;
    background: var(--accent-color);
}

.footer-column p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.footer-column ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .section-title h2 {
        font-size: 2.2rem;
    }
    
     .nav-container {
         flex-direction: row !important; /* 覆盖原有的column设置 */
    }
    
    .nav-item {
        width: auto !important; /* 覆盖原有的100%宽度 */
        text-align: center;
    }
    
    .article-block h3 {
        font-size: 1.6rem;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .logo-area {
        flex-direction: column;
        width: 100%;
    }
    
    .logo {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .contact-info {
        font-size: 0.9rem;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 5px 0;
    }
    
    .nav-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .section-title {
        text-align: left;
    }
    
    .section-title h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .article-block h3 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 25px 20px;
    }
    
    .recommendation-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .article-block h3 {
        font-size: 1.4rem;
    }
    
    .specs-table th, 
    .specs-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}