@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');
body { font-family: 'Noto Sans TC', sans-serif; }
.site-logo {
    display: block;
    width: 220px;
    height: 51px;
    object-fit: contain;
    object-position: center;
}
@media (min-width: 1024px) {
    .site-logo { width: 280px; height: 64px; }
}
/* 更新背景為深色機櫃情境 */
.hero-bg, .about-hero, .product-hero {
    background: linear-gradient(rgba(15, 15, 15, 0.6), rgba(15, 15, 15, 0.8)), url('../images/rack-background.webp?v=7fb752d9d1d7') center/cover; 
   /* background: linear-gradient(rgba(20, 20, 20, 0.85), rgba(20, 20, 20, 0.95)), url('../images/rack-background.webp?v=7fb752d9d1d7') center/cover;*/
}
.card-hover:hover { transform: translateY(-5px); }
.brand-red { color: #D31224; }
.bg-brand-red { background-color: #D31224; }
.hover-bg-brand-red:hover { background-color: #B00F1E; }

button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Shared navigation keeps all page links available on narrow screens. */
.site-navigation { position: sticky; top: 0; z-index: 50; background: #000000; color: white; border-bottom: 1px solid #262626; }
.site-navigation-inner { max-width: 1280px; margin: auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.site-navigation-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.site-navigation-links a { padding: 10px 12px; font-size: 14px; border-radius: 6px; }
.site-navigation-links a:hover, .site-navigation-links a[aria-current="page"] { color: #f87171; }
.site-navigation-links .navigation-contact { background: #d31224; color: white; font-weight: 700; }
.site-navigation a:focus-visible, .about-page a:focus-visible { outline: 2px solid #f87171; outline-offset: 4px; }
.about-container { width: min(1120px, calc(100% - 48px)); margin: auto; }
.about-hero { color: white; padding: 88px 0; border-bottom: 4px solid #d31224; }
.about-eyebrow { color: #d31224; font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-bottom: 18px; }
.about-hero .about-eyebrow { color: #f87171; }
.about-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 900; line-height: 1.2; margin-bottom: 18px; }
.about-company { font-size: 24px; font-weight: 700; }
.about-lead { font-size: 20px; color: #e5e5e5; margin-top: 24px; }
.about-intro { max-width: 680px; color: #d4d4d4; line-height: 1.9; margin: 16px 0 30px; }
.about-button { display: inline-block; background: #d31224; color: white; padding: 14px 24px; border-radius: 6px; font-weight: 700; }
.about-button:hover { background: #b00f1e; }
.about-section { padding: 72px 0; background: white; }
.about-section h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.5; margin-bottom: 24px; color: #171717; }
.about-section p { line-height: 1.9; }
.about-overview { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.about-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.about-values span { background: #fef2f2; color: #b00f1e; border-radius: 4px; padding: 8px 12px; font-size: 14px; }
.about-facts { border-top: 3px solid #d31224; }
.about-facts div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid #e5e5e5; line-height: 1.7; }
.about-facts dt { color: #737373; }
.about-facts dd { font-weight: 500; }
.about-muted { background: #f5f5f5; }
.about-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about-card { background: white; border: 1px solid #e5e5e5; border-top: 3px solid #d31224; border-radius: 8px; padding: 32px; }
.about-number { color: #d31224; font-size: 32px; font-weight: 900; }
.about-card h3 { font-size: 22px; font-weight: 700; line-height: 1.5; margin: 14px 0; }
.about-card p, .about-overview p { color: #525252; }
.about-card ul { list-style: disc; padding-left: 20px; margin-top: 20px; line-height: 1.9; }
.about-card li + li { margin-top: 8px; }
.about-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-capabilities li { padding: 24px; background: #fafafa; border: 1px solid #e5e5e5; font-weight: 700; line-height: 1.7; }
.about-capabilities span { display: block; color: #d31224; font-size: 13px; margin-bottom: 12px; }
.about-cta { background: #171717; color: #d4d4d4; }
.about-cta h2 { color: white; }
.about-cta p { max-width: 760px; margin-bottom: 28px; }
.about-secondary { display: inline-block; color: white; padding: 14px 20px; }
@media (max-width: 1100px) { .site-navigation-links { width: 100%; } }
@media (max-width: 767px) {
    .site-navigation-inner { padding: 10px 16px; }
    .site-navigation-links a { padding: 8px; font-size: 13px; }
    .about-hero { padding: 52px 0; }
    .about-section { padding: 48px 0; }
    .about-overview, .about-card-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-capabilities { grid-template-columns: repeat(2, 1fr); }
    .about-card { padding: 24px; }
}
@media (max-width: 380px) { .about-capabilities { grid-template-columns: 1fr; } }

section[id] { scroll-margin-top: 180px; }

/* Company profile: imagery and expanded service information. */
.company-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid #525252; }
.company-highlights strong { display: block; font-size: clamp(22px,3vw,32px); color: #fff; }
.company-highlights span { display: block; color: #d4d4d4; font-size: 14px; margin-top: 8px; }
.company-building { display: flex; align-items: center; gap: 24px; margin-top: 32px; padding: 20px; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 8px; }
.company-building img { width: 145px; height: auto; flex-shrink: 0; }
.company-building figcaption { font-size: 14px; line-height: 1.9; color: #525252; }
.company-pillars { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin: 32px 0 40px; }
.company-pillars article { border-left: 3px solid #d31224; padding-left: 20px; }
.company-pillars h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.company-pillars p { color: #525252; }
.company-capability-banner { position: relative; overflow: hidden; border: 1px solid #e5e5e5; background: white; margin: 28px 0; min-height: 300px; }
.company-capability-banner img { display: block; width: 100%; height: auto; }
.company-capability-banner > div { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); width: 35%; }
.company-capability-banner h3 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.company-capability-banner p { color: #525252; }
.company-capability-details h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.company-capability-details p { font-size: 14px; font-weight: 400; color: #525252; }
.company-product-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.company-product-links a { padding: 24px; background: white; border: 1px solid #ddd; border-radius: 6px; }
.company-product-links a:hover { border-color: #d31224; }
.company-product-links strong { display: block; font-size: 20px; margin-bottom: 10px; }
.company-product-links span { color: #b00f1e; font-size: 14px; }
@media(max-width:767px) {
    .company-highlights { gap: 20px; grid-template-columns: 1fr; }
    .company-highlights > div { border-left: 2px solid #d31224; padding-left: 16px; }
    .company-pillars, .company-product-links { grid-template-columns: 1fr; }
    .company-capability-banner > div { position: static; transform: none; width: auto; padding: 24px; }
    .company-building { gap: 16px; padding: 16px; }
    .company-building img { width: 110px; }
}


/* Shared language menu beside the inquiry link. */
.navigation-actions { display: flex; align-items: center; gap: 12px; margin-left: 4px; }
.language-switch { position: relative; flex-shrink: 0; }
.language-switch summary { display: flex; align-items: center; justify-content: center; gap: 5px; width: 60px; height: 42px; list-style: none; cursor: pointer; color: #0668db; background: #fff; border: 1px solid #0668db; border-radius: 10px; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.language-switch summary:hover { background: #edf5ff; }
.language-chevron { color: #d31224; transition: transform .15s; }
.language-switch[open] .language-chevron { transform: rotate(180deg); }
.language-links { position: absolute; top: calc(100% + 6px); right: 0; min-width: 144px; overflow: hidden; background: #222626; border: 1px solid #343838; border-radius: 4px; box-shadow: 0 8px 24px #0005; z-index: 60; }
.site-navigation-links .language-links a { display: block; padding: 13px 20px; border-radius: 0; color: #d4d4d4; text-align: center; font-size: 14px; white-space: nowrap; }
.language-links a + a { border-top: 1px solid #343838; }
.site-navigation-links .language-links a[aria-current="true"] { color: white; background: #343838; font-weight: 700; }
.site-navigation-links .language-links a:hover { color: white; background: #424747; }
html[lang="en"] .site-navigation-links { gap: 2px; }
html[lang="en"] #dram p.h-16 { height: auto; min-height: 4rem; }
html[lang="en"] .about-facts div { grid-template-columns: 130px minmax(0,1fr); }
html[lang="en"] .about-capabilities { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:767px) {
    .navigation-actions { gap: 8px; }
    html[lang="en"] .about-capabilities { grid-template-columns: 1fr; }
    html[lang="en"] .about-facts div { grid-template-columns: 100px minmax(0,1fr); }
}

/* Contain SD and eMMC product cutouts without cropping their labels. */
.home-storage-image { min-height: 240px; padding: 24px; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.home-storage-image img { width: 100%; height: 200px; object-fit: contain; }

/* Fill the SD image panel like the SSD cards. */
.home-storage-image-fill { position: relative; padding: 0; overflow: hidden; background: #080808; }
.home-storage-image-fill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Office photographs from the company office deck. */
.office-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.office-gallery figure { margin: 0; overflow: hidden; border: 1px solid #e5e5e5; border-radius: 8px; background: #fafafa; }
.office-gallery img { display: block; width: 100%; height: auto; }
.office-gallery figcaption { padding: 16px 20px; font-weight: 700; color: #171717; }
@media (max-width: 767px) { .office-gallery { grid-template-columns: 1fr; } }
