/* 全局设置 */
body {
    font-family: "Amazon Ember", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #0F1111;
}
a { text-decoration: none; color: inherit; }

/* 统一的居中容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 1. 顶部导航栏样式 */
.top-nav {
    border-bottom: 1px solid #ddd;
    padding: 0;
    background: #fff;
    position: relative;
    z-index: 1000; /* 确保导航栏在最上层 */
}
.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 60px;
}
.nav-logo {
    height: 40px;
    object-fit: contain;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    cursor: pointer;
    height: 100%;
    align-items: center;
}
.nav-links li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-links li:hover, .nav-links li.active {
    color: #007185;
    border-bottom: 2px solid #007185;
}

/* === 下拉菜单核心代码 (必须确保这一段存在) === */
.dropdown-menu {
    display: none; /* 【关键】默认是隐藏的！如果你看到文字堆在页面上，就是这行没生效 */
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    width: 600px;
    padding: 20px;
    z-index: 999;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
}

/* 小菜单样式 (OUTDOOR & SPORTS) */
.dropdown-menu.small-menu {
    width: 200px;
    grid-template-columns: 1fr; /* 单列 */
}

/* 【关键】鼠标悬停时，display 变成 grid (显示出来) */
.dropdown-item:hover .dropdown-menu {
    display: grid;
}

/* 下拉菜单链接样式 */
.dropdown-menu a {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    padding: 5px;
}
.dropdown-menu a:hover {
    color: #e47911;
    text-decoration: underline;
    background-color: #f7f7f7;
}

/* 搜索框 */
.search-bar {
    margin-left: auto;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    color: #777;
    font-size: 13px;
    width: 200px;
}

/* 2. Banner 区域 */
.banner-section {
    width: 100%;
    margin-top: 0px;
}

/* 3. 产品列表网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}
.product-card {
    border: 1px solid #e7e7e7;
    padding: 15px;
    background: #fff;
}
.image-box {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-card h3 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3em;
    height: 2.6em;
    overflow: hidden;
    margin: 5px 0;
}
.rating {
    color: #de7921;
    font-size: 13px;
    margin-bottom: 5px;
}
.price {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}
.prime {
    color: #00a8e1;
    font-size: 13px;
    font-weight: 800;
    margin-left: 5px;
}
button {
    background-color: #FFD814;
    border-color: #FCD200;
    border-style: solid;
    border-width: 1px;
    border-radius: 20px;
    padding: 6px 15px;
    width: 100%;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(213,217,217,.5);
}
button:hover {
    background-color: #F7CA00;
}
