/* assets/css/style.css */

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
    background-color: #f7f7f7;
    line-height: 1.6;
}

/* ===== Container ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Header ===== */
header {
    background-color: #111827; /* 深灰黑 */
    color: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* ===== Navigation ===== */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #22c55e; /* 绿色强调 */
}

nav ul li a.active {
    color: #22c55e;
    border-bottom: 2px solid #22c55e;
}

/* ===== Mobile Menu ===== */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #22c55e; /* 工业绿 */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #16a34a;
}

.btn.secondary {
    background-color: #6b7280;
}

/* ===== Sections ===== */
.section {
    padding: 60px 0;
}

.section h1 {
    font-size: 34px;
    margin-bottom: 15px;
}

.section h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #111827;
}

/* ===== Cards ===== */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: #ffffff;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* ===== Highlight Section ===== */
.section.dark {
    background-color: #111827;
    color: #fff;
}

.section.dark h2 {
    color: #fff;
}

/* ===== Table ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f3f4f6;
}

/* ===== Footer ===== */
footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer h4 {
    margin-bottom: 10px;
    color: #fff;
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: #22c55e;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #374151;
    padding-top: 10px;
    font-size: 13px;
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {

    nav ul {
        display: none;
        flex-direction: column;
        background: #111827;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 15px;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* 修复 CTA 深色区域显示问题 */

.section.dark {
    background-color: #1F3A5F;
    color: #ffffff;
    text-align: center;
}

.section.dark h2 {
    color: #ffffff;
}

.section.dark p {
    color: #e5e7eb;
}

/* CTA 按钮优化 */
.section.dark .btn {
    background-color: #22c55e;
    color: #ffffff;
}

.section.dark .btn:hover {
    background-color: #16a34a;
}

/* 增强上下间距，让区域更舒展 */
.section.dark .container {
    padding: 40px 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}