body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #3e2723;
 /* display: flex; */
 /* height: 100vh; */
    color: #e0e0e0;
    flex-direction: column;
}

.header {
    position: fixed;     /* 固定在顶部 */
    top: 0;
    left: 0;
    width: 100%;         /* 全宽，不用写死1600px */
    height: 60px;        /* 或16px看你需要 */
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 9999;       /* 确保在最上层 */
    white-space: nowrap;
}

.header span {
    color: red;
}
.logo {
    position: absolute;
    left: 0;
    top: 0;
    height: 60px;
    width: 60px;
    object-fit: cover;
    cursor: pointer;
    z-index: 10;
}

.main-container {
    display: flex;
    flex-grow: 1;
    width: 100%;
    padding-top: 60px; /* ✅ 关键补丁 */
}

.sidebar {
    width: 200px;
    background: linear-gradient(45deg, #5d4037, #8d6e63);
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 10px); 
}
.sidebar h3 {
    color: gold;
    text-align: center;
    border-bottom: 2px solid gold;
    padding-bottom: 10px;
}
.sidebar ul {
    list-style: none;
    padding: 0;
}
.sidebar ul li {
    margin: 10px 0;
}
.sidebar ul li a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 27px;
    background: #6d4c41;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s;
    white-space: nowrap;
}
.sidebar ul li a:hover {
    background: #8d6e63;
}

.content {
    flex-grow: 1;
    display: flex;
    justify-content: center;   /* 水平居中内容 */
    align-items: flex-start;
    padding: 40px;
}

.container {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);    
    max-width: 800px;
}

/* 顶部语言按钮 */
#lang-toggle {
    position: absolute;
    top: 10px;
    right: 70px;
    padding: 8px 16px;
    font-size: 16px;
    background: black;
    color: #03a9f4;
    border: 1px solid #03a9f4;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* 头像和弹出卡 */
.account-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
}
.account-toggle img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}
.account-popup {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px 15px;
    border-radius: 8px;
    color: white;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* 美化 Google 翻译 */
#google_translate_element {
    font-size: 0;
    z-index: 9999;
}
.goog-te-combo {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #000000 !important;
    color: #03a9f4 !important;
    border: 1px solid #03a9f4 !important;
    border-radius: 5px;
    cursor: pointer;
}
.goog-te-combo:focus {
    outline: none;
    box-shadow: none;
}
.goog-te-banner-frame.skiptranslate {
    display: none !important;
    height: 0 !important;
}

.basket {
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
  background: url("../assets/pudding-choco-milktea.jpg") no-repeat center/cover;
  color: #fff;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.basket h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #ffd700;
}

.basket p {
  margin: 5px 0;
  font-size: 16px;
}
/* 深色按钮样式（黑底金边）——只在头像弹窗里生效 */
.account-popup button {
  background-color: #000000;
  color: #ffd700;
  border: 1px solid #ffd700;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
.account-popup button:hover {
  background-color: #2b2b2b;
  color: #fff8dc;
}

/* 深色输入框样式（渐变+内阴影）——只在头像弹窗里生效 */
.account-popup input {
  background: linear-gradient(145deg, #1e1e1e, #2b2b2b);
  color: #f5deb3;  /* 浅米黄色文字 */
  border: 1px solid #8b6914; /* 金棕色边框 */
  padding: 6px 10px;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
  box-shadow: inset 2px 2px 5px rgba(0,0,0,0.8),
              inset -2px -2px 5px rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

/* 聚焦时更亮 */
.account-popup input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 6px #ffd700, inset 1px 1px 3px rgba(0,0,0,0.6);
  background: linear-gradient(145deg, #252525, #333);
}
