/* ========================================
   东芝功率器件活动页 - 自适应响应式样式
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family:微软雅黑, Helvetica, Arial,
    sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: url(/images/toshiba-line/bg.jpg) no-repeat center #96d6f6;
  min-height: 440px;
  overflow: hidden;
}
.hero .login{
  position: absolute;
  top: 10px;
  right: 5%;background: rgb(19,73,127 ,0.85);    color: #fff;
}
.hero .login a{
  color: #fff;
  margin: 0 10px;
  
  padding: 4px 6px;
}
.hero-inner {
  max-width: 1200px;
  margin: 60px auto;
 
  display: flex;
  align-items: center;
height: 320px;  
  gap: 40px;
  position: relative;
  z-index: 1;
}

.toshiba-logo {
  font-size: 24px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 54px;
  letter-spacing: 2px;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  color: #000;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 30px; 
  margin-bottom: 32px;
}

.cta-btn {
  background: #dc3545;
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.cta-btn:hover {
  background: #c50010;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.3);
}

.hero-image {
  flex-shrink: 0;
  width: 499px;  
  position: relative;
}

.circuit-bg {
  width: 100%;
  height: 100%;
  background-size: contain;

}

/* --- Product Section --- */
.product-section {
  background: #fff;
  padding: 50px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  color: #000;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

.product-card {
  background: #F5F5F5;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background:url(/images/toshiba-line/Icon4.png) no-repeat;   
}

.product-img {
  width: 100%;
  max-width: 200px; 
  object-fit: contain; 
  background: #fff;
  border-radius: 4px;
  border: 1px solid #eee;
}

.product-name {
  font-size: 20px;
  font-weight:500;
}

.product-model {
  font-size: 16px;  
  margin-bottom: 16px;
}
.product-right{
  text-align: left;
}
.btn-detail {
  background: transparent;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 8px 34px;
  border-radius: 4px; 
  transition: all 0.2s;
}

.btn-detail:hover {
  background: #dc3545;
  color: #fff;
}

/* eFuse Subsection */
.efuse-section {
  margin-top: 60px;
}

.subsection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom:24px;
}

.subsection-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.subsection-title {
  font-size: 20px;
  font-weight: 600;
  color: #000;
}
.subsection-item{
  background: #fff;
  border: 1px solid #EEEEEE;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 8px;
}
.efuse-column{
  background: #fff;
  border: 1px solid #EEEEEE; 
  gap: 24px;
  padding: 24px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap:6px 24px;
}
.efuse-grid {

}

.series-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #dc3545;
}

.efuse-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}


.efuse-name {
 
}

.btn-detail-sm {
  background: transparent;
  border: 1px solid #dc3545;
  color: #dc3545;
  padding: 5px 18px;
  border-radius: 4px; 
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-detail-sm:hover {
  background: #dc3545;
  color: #fff;
}

.learn-more-wrapper {
  text-align: center;
  margin-top: 32px;
}

.btn-learn-more {
  background: #dc3545;
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-learn-more:hover {
  background: #c50010;
  transform: translateY(-2px);
}

/* --- Game Section --- */
.game-section {
  background: #96d6f6;
  padding: 50px 0;
}

.game-desc {  
  color: #444;
  text-align: center;
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.game-container {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 32px;
}

.game-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 24px;
}

.column-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 20px;
  text-align: center;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #fafafa;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.match-item:hover {
  border-color: #dc3545;
  background: #fff5f5;
}

.match-item.selected {
  border-color: #dc3545;
  background: #fff0f0;
}

.item-icon {
  margin-right: 8px;
  font-size: 16px;
  color: #666;
}

.item-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.radio-circle {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-left: 8px;
  transition: all 0.2s;
}

.match-item.selected .radio-circle {
  border-color: #dc3545;
  background: #dc3545;
}

.game-note {
  background: #fff0f0;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.note-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.note-text { 
  color: #dc3545;
  line-height: 1.6;
}

/* --- Steps Section --- */
.steps-section {
  background: #fff;
  padding: 60px 0;
}

/* Activity Time Card */
.activity-time-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;   
    height: 54px;
    margin: 0 auto 46px;
    position: relative;
}

.time-gradient-left,
.time-gradient-right {
    flex: 1;
    height: 1px;
}

.time-gradient-left {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #E5E7EB 100%);
}

.time-gradient-right {
    background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #E5E7EB 100%);
}

.activity-time-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 25px;
    background: #FEF2F2;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    height: 54px;
    box-sizing: border-box;
    flex-shrink: 0;
    width: 340px;
    margin: 0 auto 30px;
}

.time-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.time-text {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 20px;
    color: #E60012;
    white-space: nowrap;
}


.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.step-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  position: relative;
  border-top: 4px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
}

.step-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.step-card--red {
  border-top-color: #dc3545;
}

.step-card--blue {
  border-top-color: #1a2332;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.step-badge--red {
  background: #dc3545;
}

.step-badge--blue {
  background: #1a2332;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}

.step-desc { 
  color: #666;
  margin-bottom: 16px; 
  min-height: 52px;
}

.step-link {
  color: #dc3545;   
  transition: all 0.2s;
}

.step-link:hover {
  color: #c50010;
  text-decoration: underline;
}

.btn-final-cta {
  position: relative;
    background: linear-gradient(101deg, #E60012 0%, #C4000F 100%);
    border-radius: 16px;
    padding: 19px 31px;
    max-width: 520px;
    height: 104px;
    margin: 0 auto;
    box-shadow: 0px 8px 32px 0px rgba(230, 0, 18, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;justify-content: center;
}

.btn-final-cta:hover { 
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 0, 18, 0.3);
}
.btn-final-cta p{
  font-size: 20px;
  color: #fff;
}


.game-box{background: #fff;border: 1px solid #eee;border-radius: 10px;padding: 20px;}
.game-box h3 , .game-box p{text-align: center;word-break: break-all;}
.game-box h3{font-size: 22px;font-weight: bold;margin-bottom: 15px;}

.pt10 {padding-top: 10px;}
.show { position: relative; width: 100%; margin: 10px auto;cursor: pointer;}
.cb {clear: both;zoom: 1;z-index: 99;}
.now_one {border:solid 1px #e71d0f;border-radius:8px;width:100%;margin-top:10px;}
.showleft, .showright {float: left; }
.showleft {width:300px;}
.showleft .showitem {
        display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 14px;
	
}
.showleft .showitem a {color:#e71d0f;text-decoration:none;}
.showleft .showitem a:hover {color:#000;}

.showright {width:340px;float: right;}
.showright .showitem {
        display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 14px;
}
.tools2 {
    text-align: center;
    width: 100%;
    position: relative;
    display: inline-block;
    margin: 10px auto;
}
.tools_set {
    position: absolute;
    top: 40px;
    left: 100px;
}
.tools_set>div{
    padding: 0 15px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: #666 0px 0px 10px;
    line-height: 30px;
    display: inline-block;
}
.getPair {
    background:url(/images/toshiba-line/time_bg.jpg) no-repeat center;
    width: 162px;
    text-align: center;
    height: 50px;
    line-height: 50px;
    color: #fff;
    display: block;
    margin: 30px auto 20px;
    font-size: 18px;
    font-weight: bold;
    padding: 0 20px;
    border-radius: 8px;
}
.canvas {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: -1;
}
.backcanvas {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: -2;
}
.top-line{background: #fff;height: 38px;line-height: 38px; width: 100%;}
.top-line .login{float: right;margin-right: 10%; color: #03234b;}
.top-line .login a{color: #03234b;margin: 0 6px;}
.game-success{background: url(/images/stm32c0-line/p-bj2.jpg) no-repeat bottom center #fff5ec; height: 520px; border-radius: 20px;text-align: center;font-size: 18px;color: #222;}
.game-success h3{font-size: 28px;color: #EC2124;font-weight: bold;margin: 50px 0 20px;display: inline-block;}
.zt-img{text-align: center; background: #fff;padding: 10px 0;}
.zt-img img{max-width: 100%;}



/* --- Footer --- */
.footer {
  background: #1a2332;
  padding: 40px 0;
  text-align: center;
}

.footer-text {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.footer-text-secondary {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   响应式断点
   ======================================== */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    width: 100%;
    max-width: 400px;
  }

  .product-grid {
    gap: 24px;
  }

  .efuse-grid {

  }

  .game-columns {
    gap: 32px;
  }
}

/* Tablet Small: ≤ 768px */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 40px 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .cta-btn {
    width: 100%;
    white-space: normal;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .efuse-grid {

  }

  .game-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .btn-final-cta {
    font-size: 16px;
    padding: 16px 24px;
  }
  .showleft,.showright{width: 140px;}
  .item-icon{display: none;}
  .showright .showitem, .showleft .showitem{height: 92px;}
  .product-grid{margin-bottom: 24px;}
  .footer{padding: 20px 0;}
  .product-name{font-size: 18px;}
  .tools_set{top: 80px;}
  .getPair{margin-top: 10px;}
  .efuse-column{grid-template-columns: repeat(1, 1fr);}
}

/* Mobile: ≤ 480px */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-inner {
    padding: 10px;
  }
  .hero-subtitle{
  margin-bottom: 15px;
  }

  .toshiba-logo {
    font-size: 20px;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }
  .circuit-bg img{max-width: 80%;
    display: block;
    margin: 0 auto;}
  .hero-image{height: auto;}
  .product-section,
  .game-section,
  .steps-section {
    padding: 40px 0;
  }

  .product-card {
    padding: 16px;
  }

  .efuse-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .btn-detail-sm {
    width: 100%;
  }

  .game-container {
    padding: 20px;
  }

  .match-item {
    padding: 10px 12px;
  }

  .step-card {
    padding: 20px;
  }

  .footer {
    padding: 32px 0;
  }

  .footer-text {
    font-size: 16px;
  }

  .footer-text-secondary {
    font-size: 14px;
  }
  .cta-btn{font-size: 18px;}
  .efuse-column{grid-template-columns: repeat(1, 1fr);}
}

/* Mobile Extra Small: ≤ 360px */
@media (max-width: 360px) {
  .hero-title {
    font-size: 24px;
  }

  .cta-btn {
    font-size: 14px;
    padding: 12px 20px;
  }

  .subsection-title {
    font-size: 18px;
  }

  .series-title {
    font-size: 14px;
  }

  .efuse-name {
    font-size: 12px;
  }

  .time-badge {
    font-size: 12px;
    padding: 6px 16px;
  }

  .step-title {
    font-size: 14px;
  }

  .step-desc {
    font-size: 12px;
  }

  .btn-final-cta {
    font-size: 14px;
    padding: 14px 20px;
  }
}
