*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

:root{
  --primary:#97CBFF;
  --primary-dark:#4FA8FF;
  --primary-deep:#0F3D6B;
  --primary-light:#DFF1FF;
  --bg:#F6FBFF;
  --card:#FFFFFF;
  --text:#425466;
  --muted:#6B7C8F;
  --border:#DCEEFF;
}

body{
  font-family:"Microsoft JhengHei",sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.8;
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:90%;
  max-width:1300px;
  margin:auto;
}

/* navbar */

header{
  background:rgba(255,255,255,0.95);
  position:sticky;
  top:0;
  z-index:999;
  box-shadow:0 2px 20px rgba(79,168,255,0.12);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(10px);
}

.navbar{
  min-height:125px;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  gap:8px 24px;
  padding:12px 0;
}

.logo-wrap{
  grid-column:1 / 2;
  grid-row:1 / 2;
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  flex-shrink:0;
}

.logo-wrap:hover{
  opacity:0.9;
}

.logo-img{
  width:72px;
  height:auto;
}

.logo-text{
  font-size:24px;
  font-weight:800;
  color:#083d77;
  line-height:1.1;
}

.logo-text span{
  display:block;
  font-size:18px;
  color:#00a6c7;
  margin-top:4px;
}

nav{
  grid-column:1 / 3;
  grid-row:2 / 3;
  display:flex;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

nav a{
  padding:10px 22px;
  background:#e4eef8;
  border-radius:999px;
  font-size:18px;
  font-weight:700;
  color:#174a84;
  transition:.3s;
  border:1px solid var(--border);
}

nav a:hover{
  background:#97CBFF;
  transform:translateY(-3px);
}

/* hero */

.hero{
  background:
    radial-gradient(circle at top right, rgba(151,203,255,.55), transparent 38%),
    radial-gradient(circle at bottom left, rgba(79,168,255,.28), transparent 32%),
    linear-gradient(135deg,#F7FCFF 0%,#DFF1FF 58%,#97CBFF 100%);

  min-height:720px;
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;

  width:900px;
  height:900px;

  right:-120px;
  top:50%;

  transform:translateY(-50%);

  background:url("images/tpra-watermark.png")
             center/contain
             no-repeat;

  opacity:0.06;

  pointer-events:none;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.45) 45%, transparent 70%);
  pointer-events:none;
}

.hero-content{
  max-width:950px;
  position:relative;
  z-index:1;
}

.hero h1{
  font-size:clamp(56px, 5vw, 88px);
  line-height:1.08;
  font-weight:900;
  color:var(--primary-deep);
  margin-bottom:28px;
  letter-spacing:0.02em;
}

.hero p{
  font-size:clamp(22px, 1.6vw, 30px);
  max-width:980px;
  line-height:1.75;
  color:#315D7D;
  margin-bottom:42px;
  font-weight:700;
}

.btn{
  display:inline-block;
  padding:16px 36px;
  border:none;
  border-radius:999px;
  background:var(--primary-dark);
  color:white;
  font-size:20px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
  box-shadow:0 12px 28px rgba(79,168,255,0.28);
}

.btn:hover{
  background:#1E88E5;
  transform:translateY(-3px);
}

/* section */

section{
  padding:100px 0;
}

.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title h2{
  font-size:52px;
  margin-bottom:12px;
  color:var(--primary-deep);
  font-weight:900;
}

.section-title p{
  color:var(--muted);
  font-size:23px;
  font-weight:700;
}

/* news */

.news{
  background:
    radial-gradient(circle at top left, rgba(151,203,255,.35), transparent 35%),
    linear-gradient(135deg,#F7FCFF,#EAF6FF);
}

.news-card{
  background:rgba(255,255,255,0.92);
  border-radius:30px;
  padding:42px;
  box-shadow:0 12px 32px rgba(79,168,255,0.14);
  border:1px solid var(--border);
}

.news-tag{
  display:inline-block;
  padding:8px 18px;
  border-radius:999px;
  background:var(--primary-dark);
  color:white;
  font-weight:bold;
  margin-bottom:18px;
}

.news-card h3{
  font-size:38px;
  color:var(--primary-deep);
  margin-bottom:12px;
  line-height:1.3;
}

.news-date{
  font-size:21px;
  color:#4D6B82;
  font-weight:bold;
  margin-bottom:20px;
}

.news-card p{
  font-size:21px;
  color:#3C5166;
  margin-bottom:20px;
}

.news-card ul{
  padding-left:25px;
}

.news-card li{
  font-size:20px;
  margin-bottom:8px;
  color:#3C5166;
}

.news-more{
  text-align:center;
  margin-top:40px;
}

/* about */

.about-content{
  max-width:900px;
  margin:auto;
  text-align:center;
}

.about-content h3{
  font-size:44px;
  margin-bottom:25px;
  color:var(--primary-deep);
}

.about-content p{
  font-size:22px;
  color:var(--text);
  margin-bottom:20px;
}

/* product category */

.products{
  background:linear-gradient(135deg,#F7FCFF,#DFF1FF);
}

.product-showcase{
  display:grid;
  grid-template-columns:0.85fr 1.15fr;
  gap:50px;
  align-items:center;
}

.product-intro{
  border-left:12px solid var(--primary-dark);
  padding-left:30px;
}

.product-intro h2{
  font-size:72px;
  line-height:1.15;
  color:var(--primary-deep);
  font-weight:900;
  margin-bottom:25px;
}

.product-intro p{
  font-size:24px;
  color:#315D7D;
  font-weight:700;
}

.product-category-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
}

.product-category-card{
  background:rgba(255,255,255,0.78);
  border-radius:36px;
  padding:40px 30px;
  text-align:center;
  border:1px solid var(--border);
  box-shadow:0 12px 32px rgba(79,168,255,0.16);
  transition:0.3s;
}

.product-category-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 46px rgba(79,168,255,0.28);
}

.category-image{
  height:330px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:30px;
}

.category-image img{
  max-height:100%;
  object-fit:contain;
}

.multi-image{
  position:relative;
}

.multi-image img{
  position:absolute;
  max-width:58%;
  max-height:58%;
}

.multi-image img:nth-child(1){
  top:10px;
  left:15px;
}

.multi-image img:nth-child(2){
  bottom:5px;
  right:10px;
}

.multi-image img:nth-child(3){
  top:85px;
  right:55px;
}

.product-category-card h3{
  font-size:42px;
  line-height:1.35;
  color:var(--primary-deep);
  font-weight:900;
  margin-bottom:10px;
}

.product-category-card p{
  font-size:24px;
  color:#5B7C99;
  font-weight:600;
}

/* resistance product cards */

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 18px 42px rgba(79,168,255,0.22);
}

.card-img{
    height:260px;
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    background-color:#fff;
}

.card-body{
    padding:20px;
    text-align:center;
}

.card-body h3{
    font-size:28px;
    color:#0d3f78;
    margin-bottom:12px;
}

.card-body p{
    font-size:18px;
    color:#666;
    line-height:1.6;
}

/* walking machine */

.walking-machine{
  background:linear-gradient(135deg,#EAF6FF,#DFF1FF);
}

.walking-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}

.walking-content{
  background:white;
  border-radius:30px;
  padding:45px;
  border:1px solid var(--border);
  box-shadow:0 12px 32px rgba(79,168,255,0.14);
}

.small-title{
  display:inline-block;
  background:var(--primary-light);
  color:var(--primary-deep);
  padding:8px 18px;
  border-radius:999px;
  font-weight:bold;
  margin-bottom:20px;
  font-size:18px;
}

.walking-content h2{
  font-size:44px;
  color:var(--primary-deep);
  margin-bottom:20px;
  line-height:1.25;
}

.walking-subtitle{
  font-size:24px;
  color:#315D7D;
  margin-bottom:25px;
  font-weight:bold;
}

.walking-content ol{
  padding-left:25px;
}

.walking-content li{
  margin-bottom:12px;
  font-size:21px;
  color:var(--text);
  font-weight:600;
}

.walking-image{
  background:white;
  border-radius:30px;
  padding:30px;
  border:1px solid var(--border);
  box-shadow:0 12px 32px rgba(79,168,255,0.14);
}

.walking-image img{
  width:100%;
  object-fit:contain;
}

/* platform */

.platform-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:25px;
}

.platform-card{
  background:white;
  border-radius:25px;
  padding:42px 30px;
  text-align:center;
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(79,168,255,0.12);
}

.platform-card h3{
  margin-bottom:15px;
  color:var(--primary-deep);
  font-size:29px;
}

.platform-card p{
  font-size:19px;
  color:var(--text);
}

/* scene */

.scene-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:25px;
}

.scene-card{
  background:white;
  border-radius:25px;
  padding:34px;
  border:1px solid var(--border);
  box-shadow:0 10px 30px rgba(79,168,255,0.12);
}

.scene-card h3{
  margin-bottom:20px;
  color:var(--primary-deep);
  font-size:29px;
}

.scene-card ul{
  padding-left:20px;
}

.scene-card li{
  margin-bottom:10px;
  color:var(--text);
  font-size:19px;
}

/* partners */

.partners{
  background:#EEF8FF;
}

.partner-section{
  margin-top:30px;
}

.partner-section h2{
  text-align:center;
  font-size:48px;
  color:#0D4F8B;
  margin-bottom:10px;
}

.partner-section > p{
  text-align:center;
  font-size:20px;
  color:#4D6C88;
  margin-bottom:50px;
}

.partner-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:30px;
}

.partner-card{
  background:white;
  border-radius:25px;
  padding:30px;
  text-align:center;
  border:1px solid var(--border);
  box-shadow:0 8px 25px rgba(79,168,255,0.12);
  transition:0.3s;
}

.partner-card:hover{
  transform:translateY(-5px);
  box-shadow:0 18px 42px rgba(79,168,255,0.22);
}

.partner-card img{
  height:70px;
  width:auto;
  object-fit:contain;
  margin:0 auto 15px;
}

.partner-card h4{
  font-size:24px;
  margin-top:15px;
  margin-bottom:8px;
  color:#0D4F8B;
}

.partner-card p{
  font-size:16px;
  line-height:1.5;
  color:#444;
  font-weight:500;
}

/* contact */

.contact{
  background:#F7FCFF;
}

.contact-box{
  background:white;
  border-radius:30px;
  padding:50px;
  border:1px solid var(--border);
  box-shadow:0 12px 32px rgba(79,168,255,0.14);
}

.contact-info{
  margin-bottom:40px;
}

.info-item{
  margin-bottom:20px;
  padding:22px;
  border-radius:18px;
  background:#EAF6FF;
  font-size:20px;
  color:var(--primary-deep);
}

.map-box{
  border-radius:25px;
  overflow:hidden;
  border:1px solid var(--border);
}

footer{
  background:var(--primary-deep);
  padding:30px;
  text-align:center;
  color:white;
  font-size:18px;
}

/* small hero for product pages */

.hero-small{
  padding:100px 0 60px;
  background:linear-gradient(
    90deg,
    #eaf4ff 0%,
    #d8ebff 50%,
    #b9dbff 100%
  );
  text-align:center;
}

.hero-small h1{
  font-size:64px;
  color:#0b3f75;
  margin-bottom:20px;
  font-weight:900;
}

.hero-small p{
  font-size:24px;
  color:#315f8f;
  max-width:900px;
  margin:auto;
}

/* responsive */

@media(max-width:1100px){

  .navbar{
    min-height:auto;
    padding:14px 0;
  }

  .product-showcase,
  .walking-grid{
    grid-template-columns:1fr;
  }

  .product-grid,
  .platform-grid,
  .scene-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .product-intro h2{
    font-size:56px;
  }
}

@media(max-width:768px){

  .navbar{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    min-height:auto;
  }

  nav{
    display:flex;
    width:100%;
    overflow-x:auto;
    justify-content:flex-start;
    gap:10px;
    flex-wrap:nowrap;
    padding-bottom:8px;
  }

  nav::-webkit-scrollbar{
    display:none;
  }

  nav a{
    flex:0 0 auto;
    white-space:nowrap;
    font-size:15px;
    padding:9px 18px;
  }

  .logo-img{
    width:58px;
  }

  .logo-text{
  font-size:15px;
}

.logo-text span{
  font-size:16px;
}

  .hero{
    min-height:560px;
  }

  .hero h1{
    font-size:42px;
  }

  .hero p{
    font-size:20px;
  }

  .section-title h2{
    font-size:36px;
  }

  .section-title p{
    font-size:18px;
  }

  .product-category-grid,
  .product-grid,
  .platform-grid,
  .scene-grid{
    grid-template-columns:1fr;
  }

  .product-intro h2{
    font-size:42px;
  }

  .product-category-card h3{
    font-size:34px;
  }

  section{
    padding:70px 0;
  }

  .card-img{
    height:260px;
  }

  .walking-content{
    padding:30px;
  }

  .walking-content h2{
    font-size:34px;
  }

  .walking-subtitle{
    font-size:20px;
  }

  .walking-content li{
    font-size:18px;
  }

  .contact-box{
    padding:30px;
  }

  .news-card{
    padding:30px;
  }

  .news-card h3{
    font-size:30px;
  }

  .news-card p,
  .news-card li{
    font-size:18px;
  }

  .hero-small h1{
    font-size:40px;
  }

  .hero-small p{
    font-size:20px;
  }
}
.lang-switch{
  background:#0F3D6B !important;
  color:white !important;
  font-weight:700;
}

/* Contact */

.contact{
    background:#F5FBFF;
}

.contact-social{
    max-width:900px;
    margin:0 auto;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:25px;
    margin-bottom:40px;
    padding:25px;
    background:white;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
}

.contact-item img{
    width:60px;
    height:60px;
    object-fit:contain;
}

.contact-item a{
    font-size:30px;
    font-weight:700;
    color:#0F3D6B;
    text-decoration:none;
}

.contact-item a:hover{
    color:#2E86FF;
}

/* English page adjustment */

.en-page .logo-text{
  font-size:clamp(20px, 1.5vw, 26px);
}

.en-page .logo-text span{
  font-size:clamp(16px, 1.1vw, 20px);
}

.en-page nav a{
  font-size:16px;
  padding:10px 20px;
}

.en-page .hero-content{
  max-width:780px;
}

.en-page .hero h1{
  font-size:clamp(44px, 4vw, 68px);
  line-height:1.12;
  letter-spacing:0;
  max-width:820px;
}

.en-page .hero p{
  font-size:clamp(18px, 1.25vw, 24px);
  line-height:1.7;
  max-width:820px;
  font-weight:600;
}

.partner-card{
    text-decoration:none;
    color:inherit;
}

.partner-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}
.partner-card{
    text-decoration: none;
    color: inherit;
}

.partner-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}