body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Noto Sans JP", "Microsoft YaHei", sans-serif;
  background: #f8f9fa;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #007bff;
  color: white;
  padding: 10px 20px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}
nav a.active { font-weight: bold; text-decoration: underline; }

.hero {
  background: url('photos/background.png') center/cover;
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero .btn {
  margin-top: 20px;
  background: #ffc107;
  color: #333;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.car-detail {
  display: flex;
  flex-direction: column; /* 垂直排列 */
  align-items: center;    /* 水平居中 */
  justify-content: center;/* 垂直居中 */
  text-align: center;     /* 文字居中 */
  min-height: 80vh;       /* 让内容垂直居中时有足够空间 */
  padding: 20px;
}

.intro { text-align: center; padding: 50px 20px; }

.features { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.feature { background: white; padding: 20px; border-radius: 10px; width: 250px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }

.car-list { padding: 30px 20px; text-align: center; }
.car-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 30px;
  justify-items: center;
}
.car-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 330px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.car-card img { width: 100%; height: 160px; object-fit: cover; }
.car-card h3 { margin: 10px 0; }
.car-card a {
  display: block; background: lightblue; color: black; padding: 10px;
  text-decoration: none; border-radius: 0 0 10px 10px;
}

/* translate widget */
#google_translate_element { text-align: center; margin: 15px 0 10px 0; }
.goog-te-gadget img { display: none !important; }
.goog-te-gadget {
  font-family: "Noto Sans JP","Helvetica Neue",sans-serif !important;
  font-size: 15px !important; color: #333 !important;
}
.goog-te-gadget-simple {
  background-color: #ffffff !important;
  border: 1.5px solid #007bff !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.goog-te-gadget-simple:hover {
  background-color: #f1f7ff !important;
  border-color: #0056b3 !important;
  box-shadow: 0 4px 10px rgba(0, 86, 179, 0.15);
}
.goog-te-menu-value span { color: #007bff !important; font-weight: bold; text-decoration: none !important; }
.goog-te-menu-frame { z-index: 9999 !important; }

/* responsive */
@media (max-width: 1200px) { .car-container { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .car-container { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .car-container { grid-template-columns: repeat(1, 1fr); } }

footer { text-align: center; background: #333; color: white; padding: 15px 0; margin-top: 30px; font-size: 0.9em; }
footer a { color: #ffc107; text-decoration: none; margin: 0 5px; }
footer a:hover { text-decoration: underline; color: #fff; }