/* Raincloud 官網：無建置程序。色彩、間距與響應式版面集中於此。 */
:root {
  --green: #386c6c;
  --orange: #ff9b04;
  --gray: #6b6b6b;
  --footer: #4a5158;
  --line: #06c755;
  --content-width: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--green); background: #eef2f1 url('../assets/images/background.jpg') center top / 100% auto repeat-y; font-family: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', Arial, sans-serif; font-size: 16px; line-height: 1.7; }
body.menu-open, body.lightbox-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a:hover { color: var(--orange); }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
button { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; position: relative; }
.section-space { padding-block: 30px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; background: #fff; padding: 10px 20px; z-index: 2000; }
.skip-link:focus { top: 16px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 28px; text-align: center; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-orange { background: var(--orange); color: #fff; padding: 8px 14px; }
.button-orange:hover { background: #df8500; color: #fff; }

/* 頁首：保留原站置中 Logo 與分隔線選單，捲動時僅選單置頂。 */
.site-header { position: relative; z-index: 30; display: flex; flex-direction: column; align-items: center; padding: 60px 0 20px; background: #fff; color: #111; }
.logo { display: block; width: 400px; max-width: calc(100% - 100px); }
.logo img { width: 100%; }
.nav-slot { width: 100%; height: 78px; }
.main-nav { margin-top: 30px; }
.main-nav ul { list-style: none; display: flex; align-items: center; justify-content: center; }
.main-nav li > a { display: block; font-size: 20px; line-height: 1.4; letter-spacing: 3px; padding-inline: 10px; border-right: 1px solid #222; }
.main-nav li:nth-last-child(2) > a, .main-nav li:last-child > a { border: 0; }
.main-nav li:last-child > a { padding: 10px 14px; margin-left: 6px; }
.site-header.is-stuck .main-nav { position: fixed; top: 0; left: 0; width: 100%; margin: 0; padding: 10px; background: #fff; box-shadow: 0 3px 12px #0002; }
.menu-toggle { display: none; }
.hero { background: #7fc4c5; }
.hero img { width: 100%; }

/* 標題沿用原站裝飾圖片。 */
.section-title { width: min(400px, 100%); max-width: 100%; aspect-ratio: 541 / 140; background: url('../assets/images/part.png') center / contain no-repeat; display: grid; place-items: center; margin: 0 auto 30px; }
.section-title h1, .section-title h2 { width: 100%; padding-left: 12px; text-align: center; font-size: 40px; line-height: 1.5; font-weight: 600; letter-spacing: 5px; }
.section-subtitle { margin: -25px 0 40px; text-align: center; font-size: 20px; letter-spacing: 3px; }
.ribbon-title { width: min(600px, 100%); margin: 0 auto 20px; text-align: center; }
.ribbon-title > span { display: block; font-size: 15px; letter-spacing: 1px; font-weight: 300; }
.ribbon-title h2, .ribbon-title h3 { display: grid; place-items: center; width: 100%; aspect-ratio: 855 / 87; padding-left: 18px; background: url('../assets/images/little_part.png') center / contain no-repeat; color: #fff; font-size: 20px; letter-spacing: 20px; font-weight: 500; }
.about-section, .service-section { position: relative; }
.decoration { position: absolute; pointer-events: none; z-index: 0; }
.decoration-1 { width: 230px; right: 0; top: 20px; }
.decoration-2 { width: 100%; top: 40%; opacity: .3; }
.decoration-5 { width: 230px; bottom: 3%; left: 0; }
.decoration-4 { width: 150px; right: 0; top: 0; }
.decoration-6 { width: 70px; right: 0; top: 10%; }
.about-copy { font-size: 20px; line-height: 1.8; letter-spacing: 3px; margin-block: 40px; }
.feature-list { margin-bottom: 60px; }
.feature-card { display: flex; align-items: center; width: min(700px, 100%); margin: 15px auto 0; padding: 20px; border: 2px solid var(--green); border-radius: 20px; background: #fff; }
.feature-icon { flex: 0 0 130px; display: flex; align-items: center; justify-content: center; padding-right: 20px; }
.feature-icon img { width: 100px; max-height: 110px; object-fit: contain; }
.feature-card > p, .feature-copy { padding-left: 30px; border-left: 1px solid var(--green); font-size: 18px; letter-spacing: 3px; line-height: 2; }
.feature-card > p { padding-block: 20px; }
.feature-copy h3, .feature-copy h4 { font-size: 20px; font-weight: 600; }
.feature-copy h3 { font-size: 22px; }
.feature-copy p, .plain-list { font-weight: 400; }
.plain-list { list-style: none; }

/* 原生水平捲動：即使 JavaScript 關閉，仍能看完所有輪播內容。 */
.carousel { --items: 3; --gap: 28px; }
.carousel-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #386c6c66 transparent; overscroll-behavior-x: contain; padding: 5px 3px 14px; }
.carousel-slide { flex: 0 0 calc((100% - (var(--items) - 1) * var(--gap)) / var(--items)); min-width: 0; scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 15px; }
.carousel-controls > button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--green); border-radius: 50%; color: var(--green); background: #fffc; font-size: 30px; line-height: 1; }
.carousel-controls > button:hover { background: var(--green); color: #fff; }
.carousel-controls > .autoplay-toggle { font-size: 13px; width: auto; padding-inline: 14px; border-radius: 20px; }
.carousel-status { min-width: 42px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.media-section { background: url('../assets/images/news_background.jpg') center / cover; padding-block: 40px; }
.media-card { border: 2px solid var(--green); border-radius: 20px; overflow: hidden; background: #fff; }
.media-picture { display: block; position: relative; border: 0; padding: 0; width: 100%; background: #fff; }
.media-picture img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-card h3 { display: flex; flex-direction: column; justify-content: center; min-height: 140px; padding: 20px 30px; font-size: 18px; line-height: 1.7; font-weight: 500; letter-spacing: 2px; }
.media-card h3 small { font-size: 15px; }
.play-badge, .zoom-badge { position: absolute; right: 14px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: #386c6cdd; border-radius: 50%; }
.zoom-badge { font-size: 26px; }
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 80px; }
.client-card { padding: 20px; border: 2px solid var(--green); border-radius: 20px; text-align: center; }
.client-card h4 { border-bottom: 2px solid var(--green); padding-bottom: 15px; margin-bottom: 20px; font-size: 20px; font-weight: 500; letter-spacing: 3px; }
.client-card p { font-size: 17px; line-height: 2.2; letter-spacing: 2px; padding-block: 10px; }
.detail-card { margin-block: 40px; }
.video-container { width: min(900px, 100%); aspect-ratio: 16 / 9; margin: 0 auto 50px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px #386c6c18; }
.video-poster { display: block; position: relative; width: 100%; height: 100%; border: 0; background: #e7eeee; padding: 0; }
.video-poster > img { width: 100%; height: 100%; object-fit: contain; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; border-radius: 40px; padding: 15px 25px; background: var(--green); color: #fff; box-shadow: 0 4px 30px #0003; }
.video-play > span { margin-right: 10px; color: var(--orange); }
.video-container iframe { width: 100%; height: 100%; border: 0; }
.device-demo { position: relative; width: min(1000px, 100%); margin: -50px auto -30px; }
.device-demo > img:not(.decoration) { width: 100%; }
.system-carousel { margin-bottom: 50px; }
.system-slide { border: 0; padding: 0; background: none; align-self: center; }
.system-slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.system-caption { width: fit-content; margin: 20px auto 0; padding: 3px 35px; background: var(--green); color: #fff; font-size: 20px; letter-spacing: 2px; text-align: center; }
.system-caption span { display: block; font-size: 12px; letter-spacing: 1px; opacity: .8; }
.ai-card .feature-icon { align-self: stretch; }
.advanced-features { margin-top: 5px; }
.advanced-features dt { font-size: 18px; font-weight: 600; }
.advanced-features dd { color: var(--gray); font-size: 16px; line-height: 1.8; margin-bottom: 12px; letter-spacing: 1px; }
.advanced-features dd::before { content: '■'; color: var(--green); margin-right: 8px; }

/* 口碑、夥伴與案例 */
.recommend-section { position: relative; background: url('../assets/images/symbol/blingbling_symbol_7.png') center / cover no-repeat; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 70px 4% 0; }
.stats-grid p { padding: 15px 8px; border: 2px solid var(--green); border-radius: 20px; background: #fff; text-align: center; font-size: 30px; letter-spacing: 2px; white-space: nowrap; }
.stats-grid strong, .circle-grid strong { color: var(--orange); font-size: 48px; font-weight: 600; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.circle-grid { display: flex; justify-content: center; gap: 20px; margin: 70px 0 40px; }
.circle-grid p { display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 0 1 220px; aspect-ratio: 1; border-radius: 50%; background: var(--green); color: #fff; font-size: 28px; line-height: 1.2; text-align: center; }
.circle-grid p br { display: none; }
.circle-grid p:first-child { display: block; align-content: center; }
.circle-grid p:first-child br { display: block; }
.partner-section .carousel { --items: 5; --gap: 20px; margin-block: 50px 20px; }
.partner-card { display: block; text-align: center; padding: 10px 0; }
.partner-card img { width: 100px; height: 100px; border-radius: 20px; margin: auto; object-fit: cover; }
.partner-card h3 { font-size: 16px; line-height: 1.6; font-weight: 500; margin-top: 14px; padding-inline: 5px; }
.cases-section .carousel { margin-block: 45px 55px; }
.cases-track { --gap: 44px; }
.case-card { display: flex; flex-direction: column; padding: 0 8px; }
.case-picture { border: 1px solid var(--green); border-radius: 15px; overflow: hidden; margin-bottom: 10px; }
.case-picture img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.case-picture:hover img { transform: scale(1.04); }
.case-card time { margin-block: 5px; font-size: 15px; letter-spacing: 1px; }
.case-card h3 { font-size: 16px; font-weight: 500; line-height: 1.8; letter-spacing: 1px; margin-bottom: 18px; }
.read-more { display: block; width: fit-content; padding: 2px 18px; margin: auto auto 0; border-radius: 20px; background: var(--green); color: #fff; font-size: 15px; letter-spacing: 1px; }
.read-more:hover { color: #fff; background: #274c4c; }
.more-cases { display: flex; justify-content: center; margin: 20px auto 40px; width: fit-content; padding-inline: 18px; }
.more-cases span { display: grid; place-items: center; border-radius: 50%; width: 52px; height: 52px; background: var(--orange); color: #111; font-size: 23px; margin-inline: -6px; transition: transform .2s; }
.more-cases:hover span { transform: translateY(-4px); }

/* 聯絡區：只透過 LINE 加入好友，不處理或儲存訪客個資。 */
.contact-section { padding-top: 20px; }
.contact-background { position: relative; background: var(--green); padding-block: 70px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-inline: 40px; }
.contact-intro { text-align: center; color: #fff; }
.contact-intro h3 { font-size: 60px; font-weight: 600; line-height: 1.3; letter-spacing: 8px; }
.contact-intro h3 span { color: var(--orange); }
.contact-intro > p { font-size: 18px; line-height: 1.9; letter-spacing: 2px; margin: 30px auto; }
.social-links { display: flex; justify-content: center; gap: 14px; margin-top: 40px; }
.social-links a { transition: transform .2s; }
.social-links a:hover { transform: translateY(-3px); }
.social-links img { width: 45px; height: 45px; }
.line-card { background: #fff; text-align: center; padding: 40px 28px; border-radius: 2px; box-shadow: 15px 15px 25px #0003; }
.line-logo { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 15px; }
.line-eyebrow { font-size: 15px; letter-spacing: 1px; margin-bottom: 8px; }
.line-card h3 { font-size: 25px; font-weight: 600; letter-spacing: 2px; }
.line-description { color: var(--gray); margin-block: 20px 26px; font-size: 16px; line-height: 1.9; letter-spacing: 1px; }
.button-line { width: 100%; max-width: 330px; min-height: 58px; padding: 14px 18px; background: var(--line); color: #fff; font-size: 18px; font-weight: 600; letter-spacing: 1px; }
.button-line:hover { color: #fff; background: #05aa49; }
.line-id { font-size: 17px; letter-spacing: 1px; margin-top: 20px; }
.line-hint { font-size: 13px; color: #777; margin-top: 4px; }
.site-footer { background: var(--footer); color: #fff; padding: 38px 70px; text-align: center; font-size: 13px; letter-spacing: .5px; }
.floating-social { position: fixed; right: 8px; top: 61%; z-index: 20; display: flex; flex-direction: column; gap: 4px; }
.floating-social img { width: 48px; height: 48px; }
.floating-social a:hover { transform: translateX(-3px); }
.back-top { position: fixed; right: 16px; bottom: 20px; z-index: 25; display: grid; place-items: center; width: 42px; height: 42px; color: var(--orange); background: #fff; border: 1px solid #386c6c33; border-radius: 50%; font-size: 30px; box-shadow: 0 2px 10px #0001; }

/* 原生 dialog：支援 Esc 關閉、焦點限制與關閉後焦點還原。 */
.lightbox { border: 0; padding: 46px 20px 20px; background: #fff; color: var(--green); max-width: min(1100px, 94vw); max-height: 94dvh; border-radius: 12px; overflow: auto; }
.lightbox::backdrop { background: #102a2be6; }
.lightbox figure img { max-height: 76dvh; width: auto; margin: auto; object-fit: contain; }
.lightbox figcaption { text-align: center; margin-top: 14px; }
.lightbox-close { position: absolute; right: 8px; top: 5px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--green); font-size: 32px; line-height: 1; }

@media (max-width: 1100px) {
  .main-nav li > a { font-size: 18px; letter-spacing: 2px; }
  .stats-grid p { font-size: 25px; }
  .stats-grid strong { font-size: 40px; }
  .client-card { padding: 18px 12px; }
  .client-card p { font-size: 15px; letter-spacing: 1px; }
  .contact-layout { padding-inline: 15px; gap: 35px; }
  .contact-intro h3 { font-size: 50px; }
}
@media (max-width: 992px) {
  .site-header { padding: 22px 0; }
  .nav-slot { height: 0; }
  .logo { width: 350px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 10px; border: 0; background: none; z-index: 32; }
  .menu-toggle span { width: 24px; height: 2px; background: var(--green); transition: transform .2s; }
  .menu-toggle[aria-expanded='true'] { position: fixed; top: 28px; transform: none; }
  .menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .main-nav, .site-header.is-stuck .main-nav { display: none; position: fixed; inset: 0; width: 100%; height: 100dvh; margin: 0; padding: 100px 30px 35px; background: #fff; overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: block; width: min(480px, 100%); margin-inline: auto; }
  .main-nav li > a { padding: 18px 10px; border: 0; border-bottom: 1px solid #e1e9e9; font-size: 20px; }
  .main-nav li:last-child > a { margin: 22px 0 0; padding: 14px; }
  .floating-social { top: auto; bottom: 0; left: 0; right: 0; flex-direction: row; align-items: center; justify-content: center; gap: 22px; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #386c6c20; }
  .floating-social img { width: 40px; height: 40px; }
  .back-top { bottom: calc(68px + env(safe-area-inset-bottom)); right: 12px; }
  .site-footer { padding: 30px 24px calc(85px + env(safe-area-inset-bottom)); }
  .client-grid { grid-template-columns: 1fr; max-width: 700px; margin-inline: auto; }
  .client-card p { font-size: 17px; padding-block: 0; }
  .client-card h4 { padding-bottom: 12px; margin-bottom: 14px; }
  .partner-section .carousel { --items: 4; }
  .contact-layout { grid-template-columns: 1fr; gap: 45px; max-width: 640px; }
  .contact-intro h3 { font-size: 56px; }
  .contact-intro > p { margin-bottom: 20px; }
  .social-links { margin-top: 20px; }
  .line-card { padding: 40px; }
  .contact-background { padding-block: 45px 65px; }
}
@media (max-width: 768px) {
  .container { width: calc(100% - 36px); }
  .section-space { padding-block: 24px; }
  .section-title { width: 300px; margin-bottom: 25px; }
  .section-title h1, .section-title h2 { font-size: 30px; letter-spacing: 4px; padding-left: 10px; }
  .section-subtitle { font-size: 16px; }
  .ribbon-title { width: min(440px, 100%); }
  .ribbon-title h2, .ribbon-title h3 { font-size: 18px; letter-spacing: 12px; padding-left: 12px; }
  .decoration { display: none; }
  .about-copy { font-size: 16px; letter-spacing: 2px; margin-block: 28px; }
  .feature-card > p, .feature-copy { font-size: 16px; letter-spacing: 2px; padding-left: 20px; }
  .feature-icon { flex-basis: 100px; padding-right: 16px; }
  .feature-copy h4 { font-size: 18px; }
  .media-track { --items: 2; --gap: 20px; }
  .media-card h3 { padding: 20px; font-size: 16px; min-height: 125px; letter-spacing: 1px; }
  .system-track { --items: 1; }
  .system-slide img { aspect-ratio: auto; }
  .stats-grid { grid-template-columns: 1fr; max-width: 420px; margin: 35px auto 0; gap: 14px; }
  .stats-grid p { font-size: 28px; }
  .stats-grid strong { font-size: 44px; }
  .circle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 18px; margin: 35px 0 10px; }
  .circle-grid p { font-size: 24px; }
  .circle-grid strong { font-size: 40px; }
  .partner-section .carousel { --items: 3; }
  .cases-track { --items: 2; --gap: 20px; }
  .case-card { padding-inline: 0; }
}
@media (max-width: 576px) {
  html { scroll-padding-top: 20px; }
  .site-header { padding: 24px 0; }
  .logo { width: 260px; margin-left: 22px; max-width: calc(100% - 110px); }
  .menu-toggle { left: 10px; }
  .hero img { width: 100%; aspect-ratio: 1; object-fit: cover; }
  .feature-card { flex-direction: column; padding: 22px 18px; }
  .feature-icon { flex-basis: auto; padding: 0 0 18px; width: 100%; }
  .feature-icon img { width: 80px; height: 80px; }
  .feature-card > p, .feature-copy { width: 100%; border-left: 0; border-top: 1px solid var(--green); padding: 15px 0 0; text-align: center; line-height: 1.9; }
  .feature-copy h3, .feature-copy h4 { margin-bottom: 6px; }
  .feature-list { margin-bottom: 40px; }
  .detail-card { margin-block: 30px; }
  .ribbon-title h2, .ribbon-title h3 { font-size: 16px; letter-spacing: 10px; padding-left: 10px; }
  .media-track { --items: 1; }
  .media-card { margin-inline: 10px; }
  .media-picture img { aspect-ratio: 16 / 10; }
  .media-card h3 { min-height: 110px; align-items: center; text-align: center; }
  .client-grid { margin: 30px 0 50px; }
  .client-card p { font-size: 15px; }
  .video-container { margin-bottom: 30px; }
  .video-play { font-size: 15px; padding: 12px 20px; }
  .device-demo { margin-block: -25px; }
  .advanced-features { text-align: left; }
  .advanced-features dt { font-size: 16px; line-height: 1.9; letter-spacing: 1px; }
  .advanced-features dd { font-size: 14px; margin-bottom: 15px; }
  .ai-card .feature-icon { align-self: center; }
  .partner-section .carousel { --items: 2; --gap: 18px; margin-top: 25px; }
  .partner-card h3 { font-size: 14px; }
  .cases-track { --items: 1; --gap: 24px; }
  .case-card { padding-inline: 18px; }
  .case-card h3 { min-height: 58px; }
  .cases-section .carousel { margin-block: 25px 35px; }
  .contact-layout { padding-inline: 0; }
  .contact-intro h3 { font-size: 44px; letter-spacing: 6px; }
  .contact-intro > p { font-size: 16px; }
  .line-card { padding: 30px 20px; box-shadow: 8px 8px 20px #0003; }
  .line-card h3 { font-size: 22px; letter-spacing: 1px; }
  .line-description { font-size: 15px; }
  .button-line { font-size: 16px; letter-spacing: 0; gap: 8px; }
  .site-footer { font-size: 12px; }
  .lightbox { padding: 46px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  body { background: #fff; }
  .floating-social, .back-top, .menu-toggle, .carousel-controls, .video-container { display: none !important; }
  .site-header { padding: 20px; }
  .main-nav { display: none; }
  .carousel-track { display: flex; flex-wrap: wrap; overflow: visible; }
  .carousel-slide { flex-basis: 30%; }
  .contact-background { background: #fff; }
  .contact-intro { color: var(--green); }
  .site-footer { padding: 20px; }
}
