:root {
  --bg: #080b12; --bg2: #0c1220;
  --card: rgba(255, 255, 255, .075); --card2: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .15);
  --text: #f8fafc; --muted: #a8b3c5; --sub: #cbd5e1;
  --blue: #93c5fd; --purple: #8b5cf6; --cyan: #67e8f9;
  --radius: 28px; --shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

/* 全域重置 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: #05070b fixed radial-gradient(circle at 20% 0%, #16213c 0%, #080b12 50%, #05070b 100%);
  line-height: 1.65; letter-spacing: 0.03em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 背景特效 */
.noise { position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .12; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.grid-bg { position: fixed; inset: 0; z-index: -2; background: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }

/* 導覽列 */
.site-header { position: sticky; top: 16px; z-index: 10; width: min(1180px, calc(100% - 32px)); margin: 16px auto 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); background: rgba(7, 10, 18, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 999px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; }
.brand-card { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 999px; padding: 9px 16px; min-width: 185px; height: 52px; }
.brand-card img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--sub); }
.nav-links a { padding: 12px 14px; border-radius: 999px; transition: .25s; }
.nav-links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-cta { background: #fff!important; color: #0b1020!important; font-weight: 750; }
.lang-toggle { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); padding: 0.45rem 1rem; border-radius: 30px; cursor: pointer; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; transition: .3s; margin-left: 1rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang-toggle:hover { background: rgba(147, 197, 253, 0.1); color: #93c5fd; border-color: rgba(147, 197, 253, 0.3); box-shadow: 0 0 20px rgba(147, 197, 253, 0.15); transform: translateY(-1px); }
.menu-toggle { display: none; background: transparent; border: 0; color: #fff; gap: 6px; flex-direction: column; }
.menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* 版面佈局 */
.section-pad { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0; }
.compact { padding-top: 70px; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2, .tech-copy h2, .compute h2, .contact h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.03em; margin: 0 0 16px; }
.section-heading p, .tech-copy p, .compute p, .contact p { color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Hero 區塊 */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(550px, .9fr); gap: 48px; align-items: center; min-height: 700px; padding-top: 60px; }
.hero h1 { font-size: clamp(38px, 4.5vw, 68px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 20px; max-width: 720px; }
.lead { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.7; color: #d6deeb; max-width: 660px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 15px 22px; font-weight: 800; letter-spacing: -.01em; border: 1px solid var(--line); transition: .3s; }
.button.primary { background: linear-gradient(135deg, #fff, #c7d2fe); color: #080b12; box-shadow: 0 14px 38px rgba(147, 197, 253, .18); }
.button.secondary { background: rgba(255, 255, 255, .06); color: #fff; }
.button:hover { transform: translateY(-2px); }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 720px; }
.proof-strip div { padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .045); }
.proof-strip strong { display: block; }
.proof-strip span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* 視覺與動畫 */
.hero-visual { position: relative; }
.visual-shell { position: relative; min-height: 560px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 42px; background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .035)); box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.visual-shell:before { content: ""; position: absolute; inset: -120px; background: radial-gradient(circle at 60% 30%, rgba(147, 197, 253, .28), transparent 30%), radial-gradient(circle at 20% 80%, rgba(139, 92, 246, .30), transparent 34%); filter: blur(2px); animation: floatGlow 8s ease-in-out infinite alternate; }
.ai-svg { position: absolute; inset: 58px 24px auto; z-index: 1; filter: drop-shadow(0 20px 44px rgba(0,0,0,.25)); }
.scan-beam { position: absolute; left: 0; right: 0; top: 110px; height: 110px; background: linear-gradient(to bottom, transparent, rgba(103, 232, 249, .18), transparent); z-index: 2; animation: scan 4.8s ease-in-out infinite; }
.floating-card { position: absolute; z-index: 3; width: 190px; padding: 20px 16px; min-height: 96px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; background: rgba(8, 11, 18, .66); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 60px rgba(0, 0, 0, .24); }
.floating-card b { display: block; font-size: 18px; }
.floating-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.card-a { top: 20px; right: 24px; animation: cardFloat 5s ease-in-out infinite; }
.card-b { left: 26px; bottom: 10px; animation: cardFloat 5.6s ease-in-out infinite reverse; }
.node { position: absolute; width: 12px; height: 12px; border-radius: 99px; background: var(--cyan); box-shadow: 0 0 34px var(--cyan); z-index: 3; }
.node-1 { left: 18%; top: 18%; animation: pulse 2.5s infinite; }
.node-2 { right: 25%; top: 67.5%; animation: pulse 2.8s infinite .4s; }
.node-3 { left: 52%; bottom: 18%; animation: pulse 2.7s infinite .9s; }

/* 卡片與網格元件 */
.solution-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.solution-card, .case-card, .step { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .32s; position: relative; overflow: hidden; }
.solution-card:before, .case-card:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(147, 197, 253, .16), transparent 45%); opacity: 0; transition: .32s; }
.solution-card:hover, .case-card:hover, .step:hover { transform: translateY(-6px); background: var(--card2); }
.solution-card:hover:before, .case-card:hover:before { opacity: 1; }

.icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 15px; background: rgba(147, 197, 253, .14); color: #bfdbfe; font-weight: 900; margin-bottom: 28px; }
.solution-card h3, .case-card h3, .step h3 { position: relative; margin: 0 0 12px; font-size: 22px; letter-spacing: -.035em; }
.solution-card p, .case-card p, .step p { position: relative; color: var(--muted); line-height: 1.7; margin: 0; }

.cases { padding-top: 88px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.case-card { min-height: 330px; padding: 30px; }
.case-top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; color: var(--blue); }
.case-top span { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.case-top strong { font-size: 38px; color: rgba(255, 255, 255, .14); }
.case-card ul { position: relative; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 24px 0 0; list-style: none; }
.case-card li { font-size: 12px; color: #dbeafe; border: 1px solid rgba(147, 197, 253, .26); background: rgba(147, 197, 253, .075); border-radius: 999px; padding: 7px 10px; }

/* 技術矩陣與算力 */
.tech-band { display: grid; grid-template-columns: .82fr 1.18fr; gap: 40px; align-items: center; }
.tech-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tech-matrix div { padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, .065); }
.tech-matrix span { display: block; color: var(--blue); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.tech-matrix b { font-size: 18px; line-height: 1.35; }

.compute { padding-top: 80px; }
.compute-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; padding: 42px; border: 1px solid rgba(147, 197, 253, .24); border-radius: 42px; background: linear-gradient(135deg, rgba(147, 197, 253, .12), rgba(139, 92, 246, .08) 36%, rgba(255, 255, 255, .04)); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.compute-panel:after { content: ""; position: absolute; right: -90px; top: -120px; width: 320px; height: 320px; background: radial-gradient(circle, rgba(103, 232, 249, .24), transparent 62%); filter: blur(10px); }
.compute-list { display: grid; gap: 12px; position: relative; z-index: 1; }
.compute-list div { padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(8, 11, 18, .38); }
.compute-list strong { display: block; }
.compute-list span { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 4px; }

.process-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step b { display: block; color: rgba(255, 255, 255, .2); font-size: 42px; margin-bottom: 26px; }

/* 聯絡區塊與頁尾 */
.contact { padding-top: 70px; }
.contact-card { position: relative; text-align: center; padding: 64px 24px; border: 1px solid var(--line); border-radius: 44px; background: radial-gradient(circle at top, rgba(147, 197, 253, .20), transparent 38%), rgba(255, 255, 255, .065); box-shadow: var(--shadow); overflow: hidden; }
.contact-grid-info { display: flex; flex-direction: column; gap: 1.5rem; width: 100%; max-width: 580px; margin: 0 auto 3.5rem auto; padding: 2.5rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); transition: .5s ease; }
.contact-grid-info:hover { border-color: rgba(147, 197, 253, 0.2); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(147, 197, 253, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.info-item { display: flex; align-items: flex-start; text-align: left; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.info-item:last-child { padding-bottom: 0; border-bottom: none; }
.info-label { font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #93c5fd; width: 80px; flex-shrink: 0; padding-top: 0.2rem; }
.info-content { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; line-height: 1.6; word-break: break-all; }
.info-content a:hover { color: #8b5cf6; }
.add-zh { display: block; font-size: 0.9rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.4rem; letter-spacing: 0.02em; }
.contact-action-wrapper { width: 100%; display: flex; justify-content: center; }
.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 28px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; padding: 28px 0; }

/* 動態 Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s ease; }
.reveal.show { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* Keyframes */
@keyframes scan { 0%, 100% { transform: translateY(-80px); opacity: .35; } 50% { transform: translateY(330px); opacity: .72; } }
@keyframes floatGlow { from { transform: translate3d(-10px, -8px, 0); } to { transform: translate3d(12px, 18px, 0); } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1.35); opacity: 1; } }

/* RWD 響應式 */
@media (max-width: 940px) {
  .site-header { top: 10px; border-radius: 26px; align-items: flex-start; }
  .brand-card { min-width: 150px; height: 46px; }
  .brand-card img { height: 30px; }
  .menu-toggle { display: flex; margin: 11px; }
  .nav-links { position: absolute; right: 14px; top: 68px; display: none; flex-direction: column; align-items: stretch; min-width: 210px; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: rgba(7, 10, 18, .94); backdrop-filter: blur(18px); }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; }
  .lang-toggle { margin: 8px 14px; padding: 8px; width: calc(100% - 28px); text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 34px; min-height: auto; padding-top: 70px; }
  .visual-shell { min-height: 470px; }
  .ai-svg { inset: 40px 8px auto; }
  .proof-strip, .solution-grid, .case-grid, .tech-band, .compute-panel, .process-row, .tech-matrix, .footer { grid-template-columns: 1fr; }
  .section-pad { padding: 82px 0; }
  .tech-band { gap: 8px; }
  .hero h1 { font-size: clamp(32px, 8vw, 48px); line-height: 1.2; }
}
@media (max-width: 600px) {
  .contact-grid-info { padding: 1.75rem; border-radius: 16px; margin-bottom: 2.5rem; }
  .info-item { flex-direction: column; gap: 0.4rem; padding-bottom: 1rem; }
  .info-label { width: auto; }
}
@media (max-width: 520px) {
  /* --- 基礎排版與導覽列優化 --- */
  .site-header { width: calc(100% - 18px); margin-top: 8px; padding: 8px; }
  .section-pad { width: calc(100% - 22px); padding: 50px 0; } /* 稍微縮小上下 padding，更符合手機比例 */
  
  /* 🎯 關鍵修正：徹底釋放桌機版的 grid 寬度與高度限制 */
  .hero { 
    grid-template-columns: 1fr !important; /* 強制單欄 */
    min-height: initial !important;        /* 拔除桌機版 700px 限制 */
    gap: 24px;                             /* 縮小文字與圖片的間距 */
    padding-top: 32px; 
  }
  .hero h1 { font-size: clamp(28px, 8vw, 36px); } /* 避免標題在超小螢幕爆版 */
  .lead { font-size: 15px; margin-bottom: 16px; }
  .button { width: 100%; padding: 14px 18px; box-sizing: border-box; }
  .hero-actions { gap: 10px; margin: 20px 0; }

  /* --- 卡片與區塊通用縮減 --- */
  .solution-card, .case-card, .step { padding: 22px; border-radius: 22px; }
  .case-card { min-height: auto; }
  .compute-panel { padding: 24px; border-radius: 30px; }
  .contact-card { padding: 40px 18px; border-radius: 30px; }
  .contact-card img { height: 48px; }
  .section-heading h2, .tech-copy h2, .compute h2, .contact h2 { font-size: 30px; } /* 調整字體大小比例 */
  .brand-card { min-width: 120px; padding: 8px 12px; height: 42px; }
  .brand-card img { height: 22px; }

  /* --- 🎯 視覺外殼完美比例修正 --- */
  .visual-shell { 
    min-height: initial !important;   
    height: auto !important;          /* 讓高度改由內部的 SVG 自然撐開 */
    padding: 40px 20px !important;    /* 稍微縮減內距，留給 SVG 更多伸展空間 */
    border-radius: 24px !important; 
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;      /* 手機版建議隱藏溢出，避免寬度被莫名撐開 */
    display: block !important;
  }

  /* --- 🎯 隱藏手機版不需要的懸浮卡片與過多節點 --- */
  .visual-shell > .floating-card,
  .node-1, .node-3 { 
    display: none !important; 
  }

  /* 調整掃描線，使其適應相對高度的容器 */
  .scan-beam {
    top: 0;
    height: 40%;
    animation: scanMobile 4s ease-in-out infinite;
  }

  /* 僅保留一個節點裝飾，並修正其定位方式 */
  .node-2 {
    right: 22% !important;
    top: 72.5% !important;
    animation: pulse 2.8s infinite .4s !important;
    display: block !important;
  }

  /* --- 🎯 SVG 物理流回歸（等比例縮放不跑位） --- */
  .ai-svg { 
    position: relative !important;    
    inset: auto !important;           
    width: 100% !important;           
    height: auto !important;          /* 讓高度等比例自然渲染 */
    max-width: 100% !important;      
    margin: 0 auto !important; 
    transform: none !important;
    display: block !important;
  }
}

/* 🎯 專屬手機版的掃描線動畫，避免它飛出天際 */
@keyframes scanMobile { 
  0%, 100% { transform: translateY(0); opacity: .35; } 
  50% { transform: translateY(150px); opacity: .72; } 
}