@charset "utf-8";

/* ============================================================
   Toyota Navigation & Drawer Styles
   Matching Toyota Official / Reference Site
   ============================================================ */

/* Top Fixed Header */
header.home-header,
header {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #d3d3d3;
  box-sizing: border-box;
}

header .header_left {
  width: 130px;
  height: 70px;
  display: flex;
  align-items: center;
}

header .header_menu {
  width: 70px;
  height: 70px;
}

header .header_menu .open_drawer,
header .header_menu .close_drawer {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: 0;
}

header .header_menu .close_drawer {
  display: none;
  padding: 24px;
}

header .header_menu img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

header .header_logo {
  width: 100px;
  height: 70px;
  position: absolute;
  left: 50%;
  margin-left: -50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .header_logo a {
  display: flex;
  width: 100%;
  height: 70px;
  align-items: center;
  justify-content: center;
}

header .header_logo img {
  display: block;
  width: 100%;
  height: auto;
}

header .header_customer_service {
  width: auto;
  min-width: 0;
  height: 42px;
  padding: 0 16px 0 12px;
  margin-right: 14px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #eb0a1e, #cc000e);
  box-shadow: 0 3px 12px rgba(235, 10, 30, 0.38);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #ffffff;
  font: 700 14px/1 Arial, "Microsoft YaHei", sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

header .header_customer_service:hover {
  background: linear-gradient(135deg, #f21b2d, #db0011);
  box-shadow: 0 4px 16px rgba(235, 10, 30, 0.48);
}

header .header_customer_service:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(235, 10, 30, 0.25);
}

header .header_customer_service > span:last-child {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  line-height: 1;
}

header .service_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

header .service_icon img {
  display: block;
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
  header .header_customer_service {
    height: 38px;
    padding: 0 13px 0 10px;
    margin-right: 10px;
    gap: 5px;
  }
  header .header_customer_service > span:last-child {
    font-size: 13.5px;
  }
  header .service_icon img {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================
   Drawer
   ============================================================ */

#drawer {
  width: 100%;
  height: calc(100% - 70px);
  box-sizing: border-box;
  padding-top: 2px;
  background: #fff;
  position: fixed;
  top: 70px;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  display: none;
  z-index: 800;
  -webkit-overflow-scrolling: touch;
}

#drawer.is-open {
  display: block;
}

#drawer_container {
  width: 100%;
  min-height: 100%;
  position: relative;
  box-sizing: border-box;
  border-top: 1px solid #d3d3d3;
}

/* Level 1 Navigation */
#drawer .level_1 {
  position: relative;
  z-index: 2;
  padding: 16px 0 30px;
  margin: 0;
  list-style: none;
}

#drawer .level_1 li {
  width: 100%;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding: 0 5%;
  box-sizing: border-box;
  list-style: none;
}

#drawer .level_1 li p {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 2%;
  color: #202020;
  position: relative;
  margin: 0;
}

#drawer .level_1 li p a {
  color: #333;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: color 0.15s ease;
}

#drawer .level_1 li p a:hover {
  color: #eb0a1e;
}

#drawer .level_1 li.current p a {
  padding-bottom: 4px;
  border-bottom: 2px solid #d8312d;
  color: #202020;
}

#drawer .menu_customer_service_button,
#drawer .menu_logout_button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.15s ease;
}

#drawer .menu_customer_service_button:hover,
#drawer .menu_logout_button:hover {
  color: #eb0a1e;
}

/* SNS Social Icons */
#drawer .level_1 li.header_sns {
  width: 100%;
  margin-top: 20px;
  padding: 0 6%;
}

#drawer .level_1 li.header_sns .header_sns_wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 24px 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e7e6e6;
}

#drawer .level_1 li.header_sns .header_sns_box {
  width: 13.5%;
  max-width: 54px;
  position: relative;
}

#drawer .level_1 li.header_sns .header_sns_box a {
  display: block;
  width: 100%;
  cursor: pointer;
  transition: transform 0.15s ease;
}

#drawer .level_1 li.header_sns .header_sns_box a:hover {
  transform: scale(1.08);
}

#drawer .level_1 li.header_sns .header_sns_box a img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

#drawer .level_1 li.header_sns .header_wechat_pop {
  width: 260px;
  position: absolute;
  bottom: 60px;
  left: 0;
  display: none;
  z-index: 20;
  background: #fff;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

#drawer .level_1 li.header_sns .header_wechat_pop img {
  width: 100%;
  display: block;
}

#drawer .level_1 li.header_sns .wechat_pop.on .header_wechat_pop {
  display: block;
}

/* ============================================================
   Level 2 Submenus
   ============================================================ */

#drawer .level_2 {
  width: 100%;
  min-height: 100%;
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -100;
  display: none;
  font-size: 14px;
  padding-bottom: 50px;
}

#drawer .level_2.is-active {
  display: block;
  z-index: 10;
}

#drawer .level_2 section {
  width: 100%;
  background: #fff;
  display: none;
}

#drawer .level_2 section.l2_on {
  display: block;
}

#drawer .level_2 section h2 {
  width: 100%;
  background: #e9e9e9;
  padding: 20px 0;
  text-align: center;
  position: relative;
  font-size: 16px;
  font-weight: bold;
  color: #202020;
  margin: 0;
}

#drawer .level_2 section h2 .back {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Level 2: 全线车系 vehicles_wrap */
#drawer .vehicles_wrap .tab_btn {
  width: 100%;
  box-sizing: border-box;
  padding: 5% 3% 2%;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

#drawer .vehicles_wrap .tab_btn li {
  padding: 6px 3px;
  margin-bottom: 8px;
  text-align: center;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  width: 22%;
  box-sizing: border-box;
}

#drawer .vehicles_wrap .tab_btn li.wid_s { width: 13%; }
#drawer .vehicles_wrap .tab_btn li.wid_m { width: 22%; }

#drawer .vehicles_wrap .tab_btn li.on {
  border-bottom: 2px solid #e60021;
  color: #e60021;
  font-weight: bold;
}

#drawer .vehicles_wrap .tab_con {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

#drawer .vehicles_wrap .tab_con li {
  width: 100%;
  box-sizing: border-box;
  padding: 0 3% 80px;
  display: none;
}

#drawer .vehicles_wrap .tab_con li:after {
  display: table;
  content: '';
  clear: both;
}

#drawer .vehicles_wrap .tab_con li.on {
  display: block;
}

#drawer .vehicles_wrap .tab_con li a {
  color: #333;
  text-decoration: none;
  display: block;
}

#drawer .vehicles_wrap .tab_con li dl {
  width: 48.5%;
  margin-right: 3%;
  margin-bottom: 3%;
  float: left;
  border: 1px solid #e9e9e9;
  background: #f8f8f8;
  border-radius: 8px;
  box-sizing: border-box;
  padding: 4% 0 5%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#drawer .vehicles_wrap .tab_con li dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

#drawer .vehicles_wrap .tab_con li dl:nth-child(2n) {
  margin-right: 0;
}

#drawer .vehicles_wrap .tab_con li dl dt {
  width: 100%;
  box-sizing: border-box;
  padding: 0 4%;
  margin: 0 0 8px;
}

#drawer .vehicles_wrap .tab_con li dl dt img {
  display: block;
  width: 100%;
  height: auto;
}

#drawer .vehicles_wrap .tab_con li dl dd {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 0 2%;
  height: 32px;
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  color: #202020;
  display: flex;
  align-items: center;
  justify-content: center;
}

#drawer .vehicles_wrap .tab_con li dl dd .txt_s {
  font-size: 11px;
  line-height: 1.2;
}

/* Level 2: 一起改变汽车的未来 brand_wrap */
#drawer .brand_wrap .brand_toppic {
  width: 100%;
  margin: 0;
}

#drawer .brand_wrap .brand_toppic img {
  display: block;
  width: 100%;
  height: auto;
}

#drawer .brand_wrap .tab_box {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 5%;
}

#drawer .brand_wrap .tab_box .tab_btn {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 20px;
  list-style: none;
  padding: 0;
}

#drawer .brand_wrap .tab_box .tab_btn li {
  text-align: center;
  padding: 6px 4px;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  border-bottom: 2px solid transparent;
}

#drawer .brand_wrap .tab_box .tab_btn li.on {
  border-bottom: 2px solid #e60021;
  color: #e60021;
  font-weight: bold;
}

#drawer .brand_wrap .tab_box .tab_con {
  width: 100%;
  list-style: none;
  padding: 0 0 50px;
  margin: 0;
}

#drawer .brand_wrap .tab_box .tab_con li {
  width: 100%;
  display: none;
}

#drawer .brand_wrap .tab_box .tab_con li.on {
  display: block;
}

#drawer .brand_wrap .tab_box .tab_con li .pic {
  width: 100%;
  margin-bottom: 15px;
}

#drawer .brand_wrap .tab_box .tab_con li .pic img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

#drawer .brand_wrap .tab_box .tab_con li .lk {
  width: 100%;
  text-align: center;
  margin: 0;
}

#drawer .brand_wrap .tab_box .tab_con li a {
  display: inline-block;
  padding: 8px 0;
  color: #202020;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.15s ease;
}

#drawer .brand_wrap .tab_box .tab_con li a:hover {
  color: #e60021;
}

/* Level 2: 可持续发展 & 关于丰田 link lists */
#drawer .level_2 section .lk_wrap {
  width: 100%;
  padding: 24px 0 60px;
}

#drawer .level_2 section .lk_wrap a {
  display: block;
  width: 100%;
  text-align: center;
  color: #333;
  box-sizing: border-box;
  padding: 12px 0;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

#drawer .level_2 section .lk_wrap a:hover {
  color: #e60021;
}

/* ============================================================
   Popups (GR & 丰田出行)
   ============================================================ */

.gr_pop,
.toytoachuxing_pop {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  display: none;
}

.gr_pop p,
.toytoachuxing_pop p {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gr_pop .erweima,
.toytoachuxing_pop .erweima {
  width: 75%;
  max-width: 320px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: #fff;
}

.gr_pop .close,
.toytoachuxing_pop .close {
  display: block;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  cursor: pointer;
}
