/* assets/css/style.css */

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1A1D20;
    color: #A6A9AD;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= CONTAINER ================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ================= HEADER ================= */
header {
    background: #1A1D20;
    border-bottom: 1px solid #2c3136;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #fff;
}

/* ================= NAV ================= */
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    font-size: 14px;
    padding: 8px 5px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #FF5A1F;
}

nav ul li a.active {
    color: #FF5A1F;
    border-bottom: 1px solid #FF5A1F;
}

/* ================= MOBILE NAV ================= */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #23272B;
}

.mobile-menu a {
    padding: 12px;
    border-bottom: 1px solid #2c3136;
}

/* ================= HERO ================= */
.hero {
    background: #23272B;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 40px;
    color: #fff;
    margin-bottom: 15px;
}

.hero p {
    font-size: 16px;
    margin-bottom: 25px;
}

/* ================= BUTTON ================= */
.btn {
    padding: 12px 20px;
    border: 1px solid #444;
    display: inline-block;
    margin: 5px;
    transition: 0.3s;
}

.btn:hover {
    border-color: #FF5A1F;
    box-shadow: 0 0 10px #FF5A1F;
}

.btn-primary {
    background: #FF5A1F;
    color: #000;
    border: none;
}

/* ================= SECTION ================= */
.section {
    padding: 50px 0;
}

.section h2 {
    color: #fff;
    margin-bottom: 20px;
}

/* ================= GRID ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ================= CARD ================= */
.card {
    background: #23272B;
    padding: 20px;
    border: 1px solid #2c3136;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: #FF5A1F;
    box-shadow: 0 0 10px rgba(255,90,31,0.4);
}

/* ================= IMAGE ================= */
.img-box {
    width: 100%;
    height: 180px;
    background: #333;
    margin-bottom: 15px;
    overflow: hidden;
}

.img-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ⭐ 全站图片统一优化（关键） */
.section img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    border-radius: 6px;
}

/* ⭐ grid 内图片保持满宽 */
.section .grid img {
    max-width: 100%;
}

/* ⭐ HERO大图控制 */
.full-img {
    max-width: 900px;
}

/* ================= TABLE ================= */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    border: 1px solid #2c3136;
    padding: 10px;
}

/* ================= FOOTER ================= */
footer {
    background: #23272B;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

footer h4 {
    color: #fff;
    margin-bottom: 10px;
}

footer a {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid #2c3136;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu.active {
        display: flex;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section img {
        max-width: 100%;
    }
}