/* 全局样式重置 */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* 基础重置 */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Oswald", sans-serif;
    color: #333;
    line-height: 1.6;
}

body {
    /* 合并 body 样式 */
    font-family: 'Oswald', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

:root {
    --primary-color: #4f3a21; /* 提取自你的源码 */
    --accent-color: #66551e;
    --text-white: #ffffff;
}

/* 容器限制 */
/* 如果 .container 在多个页面都使用，则为全局 */
.container {
    /* max-width: 1400px; */
    margin: 0 auto;
    /* padding: 0 40px; */
}

/* --- 导航栏样式 (通常为全局) --- */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px; /* 根据实际Logo大小调整 */
}

.nav-left a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    margin-right: 25px;
    letter-spacing: 1px;
}

/* --- 页脚样式 (通常为全局) --- */
.main-footer {
    background-color: #2b1a0a; /* 极深咖啡色 */
    color: #fff;
    padding: 80px 0 40px;
    font-family: Arial, sans-serif;
}

/* 为页脚添加与内容区相同的居中容器 */
.main-footer .container {
    width: 1200px; /* 与内容区相同的固定宽度 */
    margin: 0 auto; /* 居中 */
    padding: 0 20px; /* 左右内边距 */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}


.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.footer-slogan {
    font-style: italic;
    font-size: 14px;
    color: #bbb;
    margin-bottom: 30px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    font-size: 13px;
    line-height: 1.4;
}

.contact-item .icon {
    border: 1px solid rgba(255,255,255,0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-hours {
    list-style: none;
    font-size: 14px;
    color: #ccc;
    line-height: 2;
}

.newsletter-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px;
}

.newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    flex: 1;
    outline: none;
}

.btn-go {
    background: transparent;
    border: none;
    color: #fff;
    font-weight: bold;
    padding: 0 15px;
    cursor: pointer;
    border-left: 1px solid rgba(255,255,255,0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

/* --- 全局功能按钮样式 --- */
.btn-order {
    background-color: #4f3a21; /* 品牌咖啡色 */
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 2px;
    font-size: 14px;
    transition: 0.3s;
}

.btn-order:hover {
    background-color: #3d2e1a;
}

.btn-outline:hover,
.btn-outline-small:hover,
.btn-go:hover {
    background-color: #fff;
    color: #000;
}

.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #66551e; /* 截图中的土黄色 */
    color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: 0.3s;
}

.scroll-top:hover {
    background-color: #4f3a21;
}

/* --- 响应式适配 (全局) --- */
@media (max-width: 1240px) {
    /* 适配页脚容器 */
    .main-footer .container {
        width: auto;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 32px; padding: 0 20px; }
    .grid-2-1 { grid-template-columns: 1fr; gap: 20px; }
    .hero-buttons { flex-direction: row; }
    .btn-outline { min-width: auto; }
    .section-white { padding: 40px 0; }
    .section-dark-slanted { padding: 40px 0; }

    /* 适配页脚容器在移动端的内边距 */
    .main-footer .container,
    .section-white .container,
    .section-dark-slanted .container {
        padding: 0 20px;
    }
}





/* 通用布局类 */
.section-container {
    /* 1. 核心居中与宽度控制 */
    max-width: 1200px;      /* PC端内容最大宽度 */
    margin-left: auto;      /* 水平居中 */
    margin-right: auto;     /* 水平居中 */
    
    /* 2. 移动端安全留白 */
    /* 当屏幕小于1200px时，内容不会贴边，左右保留20px间距 */
    padding-left: 20px;
    padding-right: 20px;
    
    /* 3. 防止边距计算问题 */
    box-sizing: border-box; 
    
    /* 4. 可选：清除浮动（针对老旧布局） */
    width: 100%;
}

/* 进阶：如果你希望 section 之间有标准的上下间距 */
section.section-container {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* 针对手机端的间距微调 */
@media (max-width: 768px) {
    section.section-container {
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 15px;  /* 手机端留白可以稍微窄一点 */
        padding-right: 15px;
    }
}