@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* ========== 全局基础样式 ========== */
body {
    font-family: 'Georgia', serif;
    background-color: #F8F8F8;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* 主要内容容器 */
.wrapper {
    width: 80%;
    max-width: 900px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left; /* 让正文左对齐 */
}

/* ========== 头部样式 ========== */
header h1 {
    font-size: 28px;
    font-weight: bold;
    color: #3D3D3D;
}

header p {
    font-size: 18px;
    color: #B66532;
    font-weight: bold;
}

/* ========== 导航栏 ========== */
nav ul {
    padding: 0;
    list-style: none;
    background: black;
    text-align: center;
    margin: 20px 0;
}

nav ul li {
    display: inline;
    padding: 10px 15px;
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: white;
    padding: 10px 15px;
    text-transform: uppercase;
}

nav ul li a.current {
    background: white;
    color: black;
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

/* ========== 主要内容区 ========== */
main h2 {
    font-size: 22px;
    color: #B66532;
    font-weight: bold;
}

/* 段落样式 */
main p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

/* 强调部分 (By Air, By Rail, By Ferry) */
strong {
    font-weight: bold;
    color: black;
}

/* ========== 右侧信息块（类似图片中的框） ========== */
.info-box {
    background-color: #C16F36;
    color: white;
    padding: 10px;
    font-size: 14px;
    width: 250px;
    margin-top: 10px;
    text-align: center;
}

/* ========== 图片样式 ========== */
.main-image {
    width: 100%;
    height: auto; /* 确保图片自适应 */
    max-height: 400px; /* 限制最大高度 */
    object-fit: cover; /* 确保图片不会变形 */
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

/* ========== 按钮样式 ========== */
.fancy-button {
    background: #B66532;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
}

.fancy-button:hover {
    background: #944E24;
}

/* ========== 返回顶部按钮 ========== */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: black;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

#backToTop:hover {
    background: #444;
}

/* ========== 夜间模式按钮 ========== */
#darkModeToggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #B66532;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#darkModeToggle:hover {
    background: #944E24;
}

/* ========== 修正夜间模式可读性 ========== */
.dark-mode {
    background-color: #121212;
    color: #E0E0E0; /* 改为灰色以提高可读性 */
}

/* 夜间模式下的主要内容区域 */
.dark-mode .wrapper {
    background-color: #222;
    color: #E0E0E0; /* 使用柔和的灰白色 */
}

/* 夜间模式下的导航栏 */

/* 侧边栏样式 */
#sidebar {
    position: fixed;
    left: -270px;  /* 让它更靠左隐藏 */
    top: 0;
    height: 100%;
    width: 250px;
    background-color: #1a202c; /* 深灰色背景 */
    color: white;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
}

#sidebar.open {
    left: -20px;  /* 侧边栏展开后稍微靠左 */
}

/* 关闭按钮样式 */
#closeSidebar {
    font-size: 24px;
    color: #a0aec0; /* 浅灰色 */
    border: none;
    background: none;
    cursor: pointer;
}

#closeSidebar:hover {
    color: white;
}

/* 侧边栏标题 */
.sidebar-title {
    color: #63b3ed; /* 淡蓝色 */
    font-size: 20px;
    font-weight: bold;
    margin-top: 16px;
    margin-left: -60px;;
}

/* 侧边栏内的导航菜单 */
.sidebar-menu {
    margin-top: 24px;
}

.sidebar-menu li {
    list-style: none;
    margin-bottom: 16px;
}

/* 按钮样式 */
.sidebar-link {
    display: block;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #a0aec0; /* 浅灰色 */
    background: linear-gradient(to right, #4299e1, #2b6cb0); /* 渐变蓝 */
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-link:hover {
    color: white;
    background: linear-gradient(to right, #3182ce, #2c5282);
}

/* 侧边栏展开按钮 */
#openSidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    background-color: #3182ce;
    color: white;
    border-radius: 0 8px 8px 0;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

#openSidebar:hover {
    background-color: #2c5282;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #333;
    color: white;
    font-size: 0.9rem;
  }

  .bigimage{
    width: 100%;
  }
  .littleimage{
    width:20%;
    height:20%;
  }