/* assets/css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    line-height: 1.6;
}

/* Header */
header {
    background: #1a1a1a;
    color: #fff;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #FF6A00;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #FF6A00;
}

/* CTA Button */
.cta-btn {
    background: #FF6A00;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 14px;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
}

/* Sections */
section {
    padding: 80px 40px;
}

.hero {
    position: relative;
    color: #fff;
    height: 90vh;
    display: flex;
    align-items: center;
}

.hero img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    background: rgba(0,0,0,0.5);
    padding: 40px;
    max-width: 600px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 20px;
}

.btn {
    background: #FF6A00;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Cardless Style */
.item {
    background: none;
}

/* Image */
.img-box img {
    width: 100%;
    display: block;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-grid a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
    nav ul {
        position: absolute;
        background: #1a1a1a;
        flex-direction: column;
        top: 60px;
        right: 0;
        width: 250px;
        display: none;
    }

    nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
/* ================= 全站布局统一修复 ================= */

/* 防止横向滚动 */
body {
    overflow-x: hidden;
}

/* 所有 section 统一规范 */
section {
    padding: 80px 0; /* 去掉左右padding */
}

/* 自动生成“container效果”（不改HTML） */
section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* Hero 特殊处理（保持全屏） */
.hero,
.hero * {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* 图片不会溢出 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* grid安全（防止撑破） */
.grid {
    width: 100%;
}