/* --- 基礎設定 (單行模式 + ID 作用域) --- */
#hihostimg {color: #1a1a1a;font-family: 'Noto Sans TC', sans-serif;line-height: 1.8;font-weight: 400;width: 100%;position: relative;}
#hihostimg * { box-sizing: border-box; margin: 0; padding: 0; }
#hihostimg a { text-decoration: none; color: inherit; }
#hihostimg ul { list-style: none; }
#hihostimg img { max-width: 100%; display: block; }

/* --- 排版工具 --- */
#hihostimg .container {max-width: 100%;margin: 0 auto;padding: 0 40px;position: relative;}
#hihostimg .flex { display: flex; flex-wrap: wrap; }
#hihostimg .flex-between { justify-content: space-between; }
#hihostimg .flex-center { align-items: center; justify-content: center; }
#hihostimg .grid { display: grid; }



/* --- 文字風格 --- */
#hihostimg .text-huge { font-size: clamp(3rem, 8vw, 8rem); font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: #1a1a1a; min-height: 2em; /* 預留高度避免跳動 */ }
#hihostimg .text-title , #hihostimg .text-title * {font-size: clamp(2rem, 4vw, 2rem);font-weight: 700;line-height: 1.2;margin-bottom: 2rem;}
#hihostimg .text-subtitle { font-size: 1.2rem; font-weight: 700; color: #6d28d9; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; display: block; }
#hihostimg .text-body {font-size: 1rem;color: #666666;max-width: 600px;text-align: justify;}
#hihostimg .separator { width: 100%; height: 1px; background: #e0e0e0; margin: 2rem 0; }

/* 打字機游標樣式 */
#hihostimg .typewriter-cursor {display: inline-block;width: 0.25em;height: 2.9em;background-color: #6d28d9;margin-left: 0.1em;vertical-align: baseline;animation: blink 1s step-end infinite;}
@keyframes blink { 
    0%, 100% { opacity: 1; } 
    50% { opacity: 0; } 
}


/* --- HERO SECTION --- */
#hihostimg .hero {display: flex;flex-direction: column;justify-content: center;padding: 10px 0;position: relative;}
#hihostimg .hero-content { position: relative; z-index: 2; }
#hihostimg .hero-tag { display: inline-block; padding: 8px 16px; border: 1px solid #1a1a1a; border-radius: 50px; font-size: 0.9rem; font-weight: 700; margin-bottom: 2rem; }
#hihostimg .hero-scroll { position: absolute; bottom: 40px; right: 40px; font-size: 0.9rem; writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px; }
#hihostimg .hero-scroll::after { content: ''; display: block; width: 1px; height: 60px; background: #1a1a1a; }

/* --- MARQUEE (跑馬燈) --- */
#hihostimg .marquee-wrap {overflow: hidden;white-space: nowrap;border-top: 1px solid #1a1a1a;border-bottom: 1px solid #1a1a1a;padding: 20px 0;margin-top: 40px;background: #f6f6f6;color: #fcfcfc;position: relative;}
#hihostimg .marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
#hihostimg .marquee-item { font-size: 1.5rem; font-weight: 700; margin-right: 60px; text-transform: uppercase; }
#hihostimg .marquee-wrap::before {content: '';position: absolute;top: 0;bottom: 0;left: 0;width: 150px;background: linear-gradient(to right, #f6f6f6, transparent);z-index: 2;pointer-events: none;}
#hihostimg .marquee-wrap::after {content: '';position: absolute;top: 0;bottom: 0;right: 0;width: 150px;background: linear-gradient(to left, #f6f6f6, transparent);z-index: 2;pointer-events: none;}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- ISO & ADVANTAGE SECTION (Classic Fixed Sticky) --- */
#hihostimg .section-advantage {margin-top: 5vw;}
#hihostimg .sticky-wrapper { display: flex; gap: 60px; align-items: stretch; position: relative; }
#hihostimg .sticky-side { width: 40%; height: auto; position: relative; /* 作為固定定位的參考軌道 */ }
#hihostimg .scroll-side { width: 60%; padding-top: 20px; }
/* Sticky Target Styles */
#hihostimg .sticky-target { width: 100%; }
#hihostimg .sticky-target.fixed-state {position: fixed;top: 100px;z-index: 10;}
#hihostimg .sticky-target.absolute-state { position: absolute; bottom: 0; top: auto; left: 0; z-index: 10; }

#hihostimg .adv-card {background: #fff;border: 1px solid #e0e0e0;padding: 60px;margin-bottom: 40px;transition: transform 0.3s ease;border-radius: 10px;}
#hihostimg .adv-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: #6d28d9; }
#hihostimg .adv-num { font-size: 4rem; font-weight: 900; color: #e0e0e0; margin-bottom: 20px; display: block; }
#hihostimg .adv-title {display: block;font-size: 1.5rem;font-weight: 700;margin-bottom: 15px;color: #7c53db;}

/* --- ROCKET CANVAS --- */
#hihostimg #rocket-canvas-container { width: 100%; height: 350px; margin-bottom: 30px; position: relative; overflow: hidden; }
#hihostimg canvas#rocketCanvas { width: 100%; height: 100%; display: block; }

/* --- COMPARISON TABLE --- 修正：:before 定位問題 */
#hihostimg .section-compare {margin-top: 4vw;background: #f4f4f4;padding: 4vw 0;}
#hihostimg .table-responsive {width: 100%;overflow-x: auto;padding-top: 60px;}
#hihostimg .compare-table {width: 100%;border-collapse: collapse;min-width: 800px;border: #d3d3d3 1px solid;}
#hihostimg .compare-table th, #hihostimg .compare-table td {padding: 45px 20px;text-align: left;border-bottom: 1px solid #ddd;position: relative;z-index: 1; /* 修正：確保內容層級正確 */}
#hihostimg .compare-table th { font-size: 1.1rem; font-weight: 500; color: #666666; }
#hihostimg .compare-table .highlight-col { background: #fff; border-left: 2px solid #6d28d9; }
/* 修正：將 :before 移到單元格內部或調整 z-index 邏輯，這裡改為對 td 應用 overflow visible 確保標籤顯示 */
#hihostimg .compare-table .highlight-col::before {content: 'RECOMMENDED';position: absolute;top: -15px;left: -2px;background: #6d28d9;color: #fff;font-size: 0.75rem;padding: 4px 10px;font-weight: 700;z-index: 10; /* 修正：提高層級 */white-space: nowrap;}
#hihostimg .col-apple { font-weight: 700; font-size: 1.2rem; color: #1a1a1a; }

/* --- PLANS SECTION --- */
#hihostimg .section-plans {margin-top: 4vw;padding-bottom: 4vw;}
#hihostimg .plans-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
#hihostimg .plan-card {padding: 60px;border: 1px solid #e0e0e0;position: relative;background: #fff;display: flex;flex-direction: column;justify-content: space-between;height: 100%;border-radius: 10px;}
#hihostimg .plan-card.premium { background: #1a1a1a; color: #fff; border: none; padding: 80px; transform: scale(1.05); z-index: 2; box-shadow: 0 30px 60px rgba(0,0,0,0.2); position: relative; }
#hihostimg .plan-card.premium *{color:white;}
#hihostimg .plan-card.premium .text-subtitle { color: #a855f7; }
#hihostimg .plan-card.premium .text-body { color: #aaa; }
#hihostimg .plan-card.premium .plan-title { color: #fff; }
#hihostimg .plan-card.premium li { border-bottom: 1px solid #444; }
#hihostimg .plan-title { display: block; font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }
#hihostimg .plan-price { font-size: 3rem; font-weight: 900; margin: 20px 0; display: block; }
#hihostimg .plan-price span { font-size: 1rem; font-weight: 400; }
#hihostimg .plan-features li { padding: 15px 0; border-bottom: 1px solid #eee; font-size: 1.1rem; }
#hihostimg .plan-features li:last-child { border: none; }
#hihostimg .btn { display: inline-block; padding: 18px 40px; background: #1a1a1a; color: #fff; font-weight: 700; margin-top: 40px; transition: all 0.3s; text-align: center; cursor: pointer; }
#hihostimg .btn:hover { background: #6d28d9; }
#hihostimg .plan-card.premium .btn { background: #fff; color: #1a1a1a; }
#hihostimg .plan-card.premium .btn:hover { background: #a855f7; color: #fff; }

/* --- ROCKET EFFECT (Plan B) --- */
#hihostimg .rocket-container { position: absolute; top: -50px; right: -25px; z-index: 10; transform: rotate(15deg); animation: rocket-float 3s ease-in-out infinite; pointer-events: none; }
#hihostimg .rocket-body {font-size: 6rem;filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));width: 10vw;transform: rotate(-37deg);}
#hihostimg .rocket-fire {position: absolute;right: 45%;bottom: 0;width: 43px;height: 60px;background: linear-gradient(to bottom, #ffeb3b, #ff9800, transparent);border-radius: 50% 50% 20% 20%;filter: blur(5px);z-index: -1;animation: rocket-burn 0.1s infinite alternate;transform-origin: center top;opacity: 0.8;}
#hihostimg .rocket-fire::after { content: ''; position: absolute; left: 5px; top: 10px; width: 15px; height: 40px; background: linear-gradient(to bottom, #fff, #ffeb3b, transparent); border-radius: 50%; filter: blur(2px); }

@keyframes rocket-float {
    0%, 100% { transform: rotate(15deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-15px); }
}

@keyframes rocket-burn {
    0% { transform: scaleY(1) translateX(0); opacity: 0.9; }
    100% { transform: scaleY(1.2) translateX(1px); opacity: 0.7; }
}

/* --- CASES (Updated with Sticky Layout & Buttons) --- */
#hihostimg .section-cases {margin-top: 4vw;}
#hihostimg .section-cases .sticky-target.fixed-state{top: 200px;}
#hihostimg .cases-sticky-wrapper {display: flex;gap: 60px;align-items: stretch;position: relative;flex-direction: row-reverse;}
#hihostimg .cases-sticky-side {width: 40%;height: auto;position: relative;text-align: left;}
#hihostimg .cases-scroll-side { width: 60%; padding-top: 0; }
#hihostimg .case-grid { display: grid; grid-template-columns: 1fr; gap: 50px; margin-top: 0; }
#hihostimg .case-card { transition: transform 0.3s ease; text-decoration: none; display: block; }
#hihostimg .case-card:hover { transform: translateY(-10px); }


/* 手機版修正：取消 Hover 上浮，避免 iOS 點擊判定問題 */
@media (hover: none) {
    #hihostimg .case-card:hover { transform: none; }
}
#hihostimg .case-card:hover { transform: translateY(-10px); }

/* Computer Frame CSS */
#hihostimg .comp-frame {border-radius: 12px 12px 0 0;padding: 12px 12px 0 12px;position: relative;filter: drop-shadow(0 0px 10px rgb(0 0 0 / 20%));}
#hihostimg .comp-screen {width: 100%;aspect-ratio: 16/10;background: #fff;overflow: hidden;position: relative;}
/* Image Compare Viewer Override - 強制寬高滿版與填滿 */
#hihostimg .image-compare-viewer { width: 100% !important; height: 100% !important; }
#hihostimg .image-compare img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block; }
#hihostimg .comp-chin { background: #d1d5db; height: 24px; width: 100%; border-radius: 0 0 12px 12px; position: relative; display: flex; justify-content: center; align-items: center; border-top: 1px solid #4b5563; }
#hihostimg .comp-stand { background: linear-gradient(to bottom, #9ca3af, #d1d5db); width: 30%; height: 12px; margin: 0 auto; border-radius: 0 0 8px 8px; position: relative; z-index: -1; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
#hihostimg .comp-stand::after { content: ''; position: absolute; bottom: -4px; left: -10%; width: 120%; height: 4px; background: rgba(0,0,0,0.1); border-radius: 50%; filter: blur(4px); z-index: -1; }
#hihostimg .icv__label{padding: 8px 10px;background: rgb(0 0 0 / 16%);bottom: 0rem;}
#hihostimg .icv__label-before{left: 0;}
#hihostimg .icv__label-after{right: 0rem;}

/* 修正：針對 Image Compare Viewer 的觸控優化 */
#hihostimg .image-compare { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }

/* Case Info */
#hihostimg .case-info { margin-top: 20px; text-align: center; }
#hihostimg .case-name {font-size: 1.2rem;font-weight: 700;color: #1a1a1a;display: block;margin-bottom: 5px;text-align: center;}
#hihostimg .case-url {font-size: 1.2rem;color: #2b2a2f;font-weight: 500;opacity: 0.8;transition: color 0.3s;}
#hihostimg .case-url:hover { color: #a855f7; }
/* Case Buttons */
#hihostimg .case-actions {margin-top: 40px;display: grid;grid-template-columns: 48% 48%;gap: 4%;}
#hihostimg .btn-contact { display: inline-block; padding: 15px 30px; background: #1a1a1a; color: #fff; font-weight: 700; text-align: center; transition: all 0.3s; border: 1px solid #1a1a1a; }
#hihostimg .btn-contact:hover { background: #6d28d9; border-color: #6d28d9; }
#hihostimg .btn-line { display: inline-block; padding: 15px 30px; background: #00b900; color: #fff; font-weight: 700; text-align: center; transition: all 0.3s; border: 1px solid #00b900; }
#hihostimg .btn-line:hover { background: #009900; border-color: #009900; }

/* --- FAQ --- */
#hihostimg .section-faq {margin-top: 6vw;max-width: 900px;margin-left: auto;margin-right: auto;}
#hihostimg .faq-item { border-bottom: 1px solid #e0e0e0; }
#hihostimg .faq-question { padding: 30px 0; font-size: 1.3rem; font-weight: 700; cursor: pointer; position: relative; padding-right: 40px; }
#hihostimg .faq-question::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 2rem; font-weight: 300; }
#hihostimg .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: #666666; font-size: 1.1rem; }
#hihostimg .faq-item.active .faq-answer { max-height: 300px; padding-bottom: 30px; }
#hihostimg .faq-item.active .faq-question::after { content: '-'; }

/* --- FOOTER --- */
#hihostimg .footer {margin-top: 180px;background: linear-gradient(to right, rgba(117, 77, 218, 1) 0%, rgb(164 88 202) 100%);color: #fff;padding: 100px 0;text-align: center;border-radius: 10px;}
#hihostimg .footer-cta .text-huge {margin-bottom: 30px;min-height: unset;color: white;} /* Footer Title Fix */
#hihostimg .footer p{color:white;}

#hihostimg .Jaco{position:absolute;right: 4vw;}
#hihostimg .Jaco svg{margin-left:.5em;width: 2vw;height: 2vw;fill:#fff}


.scroll-indicator{display: none;}
@media (max-width: 640px){
    #hihostimg .scroll-indicator{display: flex;justify-content: flex-end;padding-bottom: 10px;}
}
@media (max-width: 1470px){
    #hihostimg .scroll-side{width: 50%;}
    #hihostimg .sticky-side{width: 50%;}
   }
@media (max-width: 1024px) {
    #hihostimg #rocket-canvas-container{display:none;}
    #hihostimg .sticky-wrapper, #hihostimg .cases-sticky-wrapper {flex-direction: column;gap: 20px;align-items: center;display: flex;}
    #hihostimg .sticky-side, #hihostimg .cases-sticky-side { width: 100%; position: relative; top: 0; margin-bottom: 40px; transform: none !important; }
    #hihostimg .sticky-target { width: 100% !important; position: static !important; } /* RWD Reset */
    #hihostimg .scroll-side, #hihostimg .cases-scroll-side { width: 100%; }
    #hihostimg .plans-grid { grid-template-columns: 1fr; gap: 60px; }
    #hihostimg .plan-card.premium {transform: scale(1);padding: 80px 20px;}
    #hihostimg .section-advantage, #hihostimg .section-compare, #hihostimg .section-plans, #hihostimg .section-cases, #hihostimg .section-faq, #hihostimg .footer {margin-top: 20px;}
    #hihostimg .rocket-container { top: -40px; right: 0; }
    #hihostimg .rocket-body {font-size: 4rem;width: 29vw;}
    #hihostimg .case-actions { flex-direction: row; }
    #hihostimg .Jaco svg{width: 10vw;height: 10vw;}
}

@media (max-width: 768px) {
    #hihostimg .text-huge {font-size: 2.5rem;}
    #hihostimg .text-title {font-size: 2rem;}
    #hihostimg .text-title, #hihostimg .text-title *{font-size: 1.6rem;}
   
    #hihostimg .hero { align-items: flex-start; }
    #hihostimg .container {padding: 12px 20px;}
    #hihostimg .adv-card { padding: 30px; }
    #hihostimg .plan-card { padding: 30px; }
    #hihostimg .case-grid { grid-template-columns: 1fr; }
    #hihostimg .case-actions { flex-direction: column; }
    #hihostimg .plan-price{font-size: 2rem;}
    #hihostimg .plan-title{font-size: 2.2rem;}
}
@media (max-width: 488px){
    #hihostimg .hero-scroll{display:none;}
    #hihostimg .table-responsive{padding-top: 40px;}
    #hihostimg .text-title{display:flex;flex-direction: column;}
    #hihostimg .text-title span{margin-bottom:0;}
    #hihostimg .compare-table th , #hihostimg .compare-table th, #hihostimg .compare-table td{padding: 21px 6px;font-size: 15px;}
    #hihostimg .compare-table .pocky{position: sticky;}
    #hihostimg .compare-table{min-width: 559px;}
    #hihostimg .compare-table .highlight-col::before{display:none;}
    #hihostimg .compare-table .highlight-col{background: #7c53db;}
    #hihostimg .compare-table .highlight-col {color:white;border: #7c53db;}
    #hihostimg .adv-num{font-size: 2rem;margin-bottom: 10px;}
    #hihostimg .comp-screen{aspect-ratio: unset;}
    #hihostimg .image-compare .icv__control , #hihostimg .icv__label-before{display: none;}
    #hihostimg .icv__wrapper{width: 100%!important;}
    #hihostimg .icv__label{background:#7c53db;}
    #hihostimg a.mb_masklink{position:absolute;width: 100%;height: 100%;z-index: 9999999;}
    #hihostimg .footer{padding: 70px 0;}
}

