/* --- Hero 区域 (保持不变) --- */
.hero-viewport {
    position: relative;
    height: 100vh;       /* 全屏高度 */
    min-height: 500px;   
    width: 100%;
    overflow: hidden;    /* 关键：防止图片放大后溢出出现滚动条 */
    
    /* Flex 居中核心配置 */
    display: flex;
    flex-direction: column; /* 垂直排列子元素（虽然这里主要是为了对齐） */
    justify-content: center; /* 垂直居中 (主轴) */
    align-items: center;     /* 水平居中 (交叉轴) */
    
    text-align: center;      /* 确保内部文字也是居中的 */
    color: #fff;
    padding: 20px;           /* 给边缘留点空隙，防止文字贴边 */
    box-sizing: border-box;  /* 让 padding 不增加总宽度 */
}

/* 2. 背景图片：绝对定位铺满，不占文档流空间 */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    object-fit: cover;   /* 保持比例填充 */
    object-position: center;
    
    z-index: 1;          /* 层级最低 */
    
    /* 额外优化：防止图片在加载过程中影响布局（虽然绝对定位通常不会） */
    display: block; 
}

/* 3. 遮罩层：同样绝对定位铺满 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 2;
    pointer-events: none; /* 让鼠标事件穿透遮罩层，方便点击按钮（可选） */
}

/* 4. 内容层：关键修复 */
.hero-content {
    position: absolute; /* 绝对定位 */
    top: 50%;           /* 向下移动 50% */
    left: 50%;          /* 向右移动 50% */
    transform: translate(-50%, -50%); /* 再向左上回移自身宽高的一半 -> 完美居中 */
    
    z-index: 3;         /* 层级 3 (最高) */
    
    width: 90%;         /* 宽度占屏幕 90%，防止文字贴边 */
    max-width: 800px;   /* 最大宽度限制 */
    text-align: center; /* 文字居中 */
    color: #fff;        /* 文字白色 */
    
    /* 可选：添加一点阴影让文字更清晰 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* 标题样式优化 */
.hero-title {
    font-size: 3rem;       /* 适当调大字体 */
    font-weight: bold;
    margin-bottom: 30px;   /* 标题和按钮之间的间距 */
    line-height: 1.2;      /* 行高，防止多行文字太挤 */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6); /* 增加文字阴影，提升可读性 */
}

/* 按钮容器优化 */
.hero-buttons {
    display: flex;
    flex-direction: column; /* 按钮垂直排列 */
    gap: 15px;              /* 按钮之间的间距 */
    align-items: center;    /* 按钮自身居中 */
    width: 100%;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    padding: 12px 40px;
    min-width: 280px; /* 在桌面端保持最小宽度 */
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center; /* 确保按钮文字居中 */
}

/* --- 首页专属响应式适配 --- */
@media (max-width: 1240px) {
    /* 当屏幕小于容器总宽度+内边距时，让容器占满可用宽度 */
    .section-white .container,
    .section-dark-slanted .container {
        width: auto;
        padding: 0 40px; /* 在小屏幕上增加一些边距 */
    }
}

@media (max-width: 768px) {
    /* --- Hero 区域优化 --- */
    .hero-viewport {
        min-height: 400px; /* 调整最小高度 */
        padding: 20px; /* 保持内边距 */
    }
    .hero-title {
        font-size: 2.5rem; /* 使用 rem 单位，相对更灵活 */
        margin-bottom: 30px; /* 调整间距 */
        padding: 0 10px; /* 添加左右 padding 防止文字贴边 */
    }
    .hero-buttons {
        flex-direction: row; /* 按钮改为横向排列 */
        flex-wrap: wrap; /* 允许换行，以防按钮过长 */
        justify-content: center; /* 按钮在中心对齐 */
        gap: 10px; /* 调整按钮间距 */
    }
    .btn-outline {
        min-width: 200px; /* 在移动端适当减小按钮最小宽度 */
        padding: 10px 20px; /* 调整按钮内边距 */
        font-size: 14px; /* 调整按钮字体大小 */
        flex: 1; /* 让按钮平均分配空间，但不超过 min-width */
        max-width: calc(50% - 5px); /* 限制最大宽度，使两个按钮能并排显示，考虑 gap */
        margin: 0; /* 清除可能的 margin */
    }

    /* --- 内容区域优化 --- */
    .section-white,
    .section-dark-slanted { padding: 60px 0; } /* 调整垂直 padding */

    .grid-2-1 {
        grid-template-columns: 1fr; /* 移动端改为单列 */
        gap: 30px; /* 调整单列时的间距 */
    }

    /* 适配页脚容器在移动端的内边距 */
    .main-footer .container,
    .section-white .container,
    .section-dark-slanted .container {
        padding: 0 20px;
    }
}

/* --- 第二屏: 纯白背景内容区 --- */
.section-white {
    background: #fff;
    color: #333; /* 确保文字在白底上为深色 */
    padding: 80px 0;
}

.section-white .container {
    /* 应用固定宽度并居中 */
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* 添加左右内边距防止贴边 */
}

.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* 三列布局：描述、时间、图片 */
    gap: 40px;
    align-items: flex-start;
}

.sub-title {
    font-size: 12px;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    color: #4f3a21;
    margin-bottom: 20px;
}

.description {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.info-hours p {
    margin: 5px 0; /* 调整营业时间段落间距 */
}

.info-image img {
    width: 100%;
    height: auto;
    box-shadow: 10px 10px 0px #f4f4f4; /* 装饰性投影 */
}

/* --- 第三屏: 纯黑背景内容区 --- */
.section-dark-slanted {
    background: #000; /* 纯黑色背景 */
    padding: 80px 0;
    color: #fff; /* 确保文字在黑底上为白色 */
}

.section-dark-slanted .container {
    /* 应用相同固定宽度并居中 */
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-box-dark {
    max-width: 600px;
    /* 移除了半透明背景和边框，使其与纯黑背景融为一体 */
    padding: 40px 0; /* 移除侧边padding */
}

.section-title-white {
    font-size: 36px;
    color: #fff; /* 确保标题为白色 */
    margin-bottom: 5px;
}

.est-text {
    font-size: 12px;
    font-style: italic;
    color: #aaa; /* 使用浅灰色文字 */
    margin-bottom: 20px;
}

.description-white {
    font-size: 15px;
    line-height: 1.6;
    color: #eee; /* 使用较亮的灰色文字 */
    margin-bottom: 30px;
}

.btn-outline-small {
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 25px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

/* --- 首页专属响应式适配 --- */
@media (max-width: 1240px) {
    /* 当屏幕小于容器总宽度+内边距时，让容器占满可用宽度 */
    .section-white .container,
    .section-dark-slanted .container {
        width: auto;
        padding: 0 40px; /* 在小屏幕上增加一些边距 */
    }
}

@media (max-width: 768px) {
    .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,
    .section-dark-slanted { padding: 40px 0; }

    /* 在移动端也调整容器内边距 */
    .section-white .container,
    .section-dark-slanted .container {
        padding: 0 20px;
    }
}