/* ===== CSS 變數：全站色票集中管理 ===== */
:root {
    /* 主色 */
    --color-gold:        #C8AB88;       /* 標題 span、卡片邊框、字旁光暈 */
    --color-blue:        #3D88F4;       /* 背景光暈、強調色 */
    --color-blue-btn:    #5180C0;       /* 按鈕、邊框主色 */
    --color-blue-icon:   #4569B0;       /* icon 用色 */

    /* 文字色階 */
    --color-text-100:    #FFFFFF;       /* 主要文字 h1 h3 */
    --color-text-85:     #E5E5E5;       /* 次要文字 p */
    --color-text-60:     #A8A8A8;       /* 輔助文字 */
    --color-text-40:     #787878;       /* 最淡文字、圖片預置背景色 */

    /* 背景 */
    --color-bg:          #000000;       /* 主背景深黑 */
    --color-bg-loading:  #1a1a1a;       /* loading 畫面背景 */

    /* 光暈（rgba 格式，方便調透明度） */
    --glow-gold:         rgba(200, 171, 136, 1);
    --glow-gold-0:       rgba(200, 171, 136, 0);
    --glow-blue:         rgba(61, 136, 244, 1);
    --glow-blue-0:       rgba(61, 136, 244, 0);
}

/* ===== SCROLL SNAP ===== */
html {
    
    overflow: hidden;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    height: 100vh;
    overflow: hidden;
}
/* ===== 全站通用 reset ===== */
body {
    margin: 0;
    background-color: var(--color-bg-loading);
    height: 100%; 
    scroll-snap-type: y proximity;
    overflow-y: scroll;
    scrollbar-width: none;  /* Firefox */
}

@media ( min-width: 768px ) {
    body {

    background-color: var(--color-bg-loading);
    height: 100%; 
    scroll-snap-type: y mandatory;
    }
}

body::-webkit-scrollbar {
    display: none;  /* Chrome / Safari */
}

/* ===== Loading 畫面 ===== */
#loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
    transition: opacity 0.6s ease;
    scroll-snap-align: start
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-box img {
    width: 80px;
    margin: 15px 15px 0 0 ;
}

/* --- 文字區 --- */
.text-box {
    position: relative;
}

.text-box h2 {
    color: var(--color-text-100);
    font-size: 3rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

.text-box p {
    color: var(--color-text-100);
    letter-spacing: 5px;
    margin: 0;
    font-size: 0.7rem;
}

.text-box p span{
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--color-gold);
}

/* --- 築本字旁光暈 --- */
.title-with-glow {
    position: relative;
    display: inline-block;
}

.title-with-glow h2 {
    font-size: 2.3rem;
}

.glow-wrapper {
    position: absolute;
    top: 35%;
    right: -25px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    animation: blink-animation 3s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.glow-effect {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-gold) 0%, var(--glow-gold-0) 70%);
    filter: blur(10px);
    mix-blend-mode: screen;
}

@keyframes blink-animation {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* --- 背景光暈 wrapper --- */
.glow-wrapper-point {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.glow-wrapper-point.top-right {
    top: -50%;
    right: -35%;
    animation: breath 8s infinite ease-in-out,
               drift-left 10s infinite linear;
}

.glow-wrapper-point.bottom-left {
    bottom: -50%;
    left: -35%;
    animation: breath 8s infinite ease-in-out,
               drift-right 10s infinite linear;
}

/* --- 背景光暈本體 --- */
.glow-point {
    width: 370px;
    height: 470px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-blue) 0%, var(--glow-blue-0) 70%);
    filter: blur(10px) brightness(1);
    mix-blend-mode: screen;
    pointer-events: none;
}

/* --- 動畫 --- */
@keyframes breath {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes drift-left {
    0%   { translate: 0px 0px; }
    25%  { translate: -80px 60px; }
    50%  { translate: 0px 120px; }
    75%  { translate: 80px 60px; }
    100% { translate: 0px 0px; }
}

@keyframes drift-right {
    0%   { translate: 0px 0px; }
    25%  { translate: 80px -60px; }
    50%  { translate: 0px -120px; }
    75%  { translate: -80px -60px; }
    100% { translate: 0px 0px; }
}

@media (min-width: 768px) {
  #site-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
  }

  .glow-inner {
    position: relative;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  .glow-wrapper-point {
    position: absolute;
  }

  .glow-wrapper-point.top-right {
    top: -50%;
    right: -10%;
  }

  .glow-wrapper-point.bottom-left {
    bottom: -50%;
    left: -10%;
  }

  .glow-point{
    width: 500px;
    height: 600px;
  }
}

/* ===== NAVBAR ===== */

/* --- Navbar 本體：透明背景，sticky 鎖定頂部，永遠在最上層 --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: transparent;
    z-index: 30;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* --- Logo --- */
.navbar__brand img {
    width: 40px;
    display: block;
    align-self: flex-start;
    transform: translateY(15px) translateX(10px);
}

.navbar__dot {
    z-index: 30;
    display: none;
}

/* --- 漢堡按鈕 --- */
.navbar__toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 30;
    position: relative;
    top: 0;
    right: 0;
    margin-top: 1rem;
}

.navbar__brand{
    z-index: 30;
}

.navbar.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-100);
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.navbar__toggle span:nth-child(2) {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-100);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(3px);
}

/* 展開時漢堡變 X */
.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- 壓暗覆蓋層：#000 60% 透明度，選單展開時出現 --- */
.navbar__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.navbar__overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* --- 選單列表：預設在右側畫面外，展開時從右滑入 --- */
.navbar__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    max-width: none;
    height: 50vh;
    background: var(--color-bg);
    list-style: none;
    margin: 0;
    padding: 80px 0 40px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.navbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar__menu[data-state="open"] {
    transform: translateX(0);
}

/* --- 選單項目 --- */
.navbar__menu li {
    width: 100%;
    text-align: center;
}

.navbar__menu li a {
    display: block;
    width: 100%;
    padding: 18px 0;
    color: var(--color-text-100);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar__menu li a:hover {
    background: rgba(81, 128, 192, 0.2);
}

/* Active 狀態：整行滿版藍色背景 */
.navbar__menu li a.is-active {
    background: var(--color-blue-btn);
    color: var(--color-text-100);
}

@media (min-width: 768px) {

    .navbar__toggle { display: none; }

    .navbar.is-visible {
        display: flex;
        justify-content: center;
        padding: 0 40px;
    }

    .navbar__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1024px;
        position: relative;
    }

    .navbar__brand img { width: 36px; }

    .navbar__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        flex-direction: row;
        padding: 0;
        transform: none;
        transition: none;
        gap: 2rem;
    }

    .navbar__menu li a {
        padding: 0;
        font-size: 0.9rem;
        letter-spacing: 1.5px;
        white-space: nowrap;
        background: transparent !important;
    }

    .navbar__menu li a.is-active {
        background: transparent !important;
    }

    .navbar__dot {
        position: absolute;
        bottom: -8px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--color-gold);
        transition: left 0.35s ease;
        pointer-events: none;
        display: none;
    }
}

#site-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 1s ease;
}

/* ===== HERO SECTION ===== */
#home {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero-logo img {
    width: 50%;
    margin-bottom: 1.5rem;
}

.hero-title {
    color: var(--color-text-100);
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
    letter-spacing: 4px;
    line-height: 1.2;
}

.hero-title__sub {
    display: block;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--color-text-100);
    margin-top: 0.5rem;
}

.hero-title__digit {
    display: block;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--color-gold);
    margin-top: 0.25rem;
}

.hero-desc__name {
    color: var(--color-text-85);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin: 1.5rem 0 0.5rem;
}

.hero-desc__tagline {
    color: var(--color-text-85);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0;
}

.hero-desc__name, .hero-desc__tagline {
    color: var(--color-text-85);
    font-size: 1.2rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hero-desc__name { margin: 0; line-height: 1;}
    .hero-desc__tagline { margin: 0; line-height: 1;}
    .hero-title { line-height: 1; margin-bottom: 2.5rem; }
    .hero-logo img { width: 200px; }
}

/* ===== ABOUT SECTION ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#about {
    position: relative;
    background-color: var(--color-bg);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    scroll-snap-align: start;
    
}

.about-content {
    text-align: center;
    padding: 0 2rem;
    z-index: 2;
    position: relative;
}

.about-text {
    color: var(--color-text-85);
    font-size: 0.8rem;
    line-height: 2;
    letter-spacing: 1px;
    margin: 0 0 2.5rem;
    text-wrap: nowrap;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ===== PORTFOLIO SECTION ===== */
#portfolio {
    position: relative;
    background-color: var(--color-bg);
    height: 100vh;
    box-sizing: border-box;        /* 加這行 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 30px 0;
    overflow: hidden;
    scroll-snap-align: start;
}

.portfolio__title {
    color: var(--color-gold);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin: 0 0 2rem;
}

/* --- 大圖 --- */
.portfolio__cover {
    width: 60%;
    max-width: 300px;
}

.portfolio__cover-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-text-40);
    
}

.portfolio__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    margin-bottom: 1rem;
}

/* --- 文字資訊 --- */
.portfolio__info {
    text-align: center;
    margin: 0.8rem 0 1rem;
}

.portfolio__info {
    font-size: 1.6rem;
}

.portfolio__brand {
    color: var(--color-text-100);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 0 0 0.4rem;
}

.portfolio__tagline {
    color: var(--color-text-85);
    font-size: 1rem;
    letter-spacing: 1px;
    margin: 0 0 0.6rem;
}

.portfolio__tag {
    color: var(--color-text-60);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* --- 縮圖列 --- */
.portfolio__thumbs-wrap {
    width: 70%;  /* 3個thumb + 2個gap + padding */
    overflow-x: auto;
    scrollbar-width: none;
    
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    margin: 0 auto;
    margin-bottom: 0.5rem;
}

.portfolio__thumbs {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: min-content;
}

.portfolio__thumb {
    width: 65px;   /* 固定px */
    height: 65px;  /* 固定px */
    background-color: var(--color-text-40);
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    scroll-snap-align: center;
}



.portfolio__thumb.is-active {
    border-color: var(--color-gold);
}

/* --- 進度條 --- */
.portfolio__progress-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    width: 70%;
    box-sizing: border-box;
    margin-top: 0.3rem;
}

.portfolio__progress-bar {
    flex: 1;
    height: 13px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.portfolio__progress-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 33.33%;
}

.portfolio__progress-label {
    color: var(--color-text-60);
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    #portfolio {
        padding: 80px 0 60px;
    }

    .portfolio__title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .portfolio__main {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 4rem;
        max-width: 900px;
        margin-bottom: 2rem;
    }

    .portfolio__cover {
        width: 290px;
        max-width: 400px;
        flex-shrink: 0;
        margin-right: 2.5rem;
    }

    .portfolio__cover-img {
        aspect-ratio: 1 / 1;
    }

    .portfolio__info {
        text-align: left;
        margin: 0;
        margin-left : 2rem;
        text-align: center;
        width: 12rem;      /* 固定寬度，不隨內容變化 */
        flex-shrink: 0;    /* 不縮小 */
    }

    .portfolio__brand {
        font-size: 1.8rem;
        margin-bottom: 4rem;
    }

    .portfolio__tagline {
        font-size: 1rem;
    }

    .portfolio__tag {
        font-size: 0.9rem;
    }

    .portfolio__thumbs-wrap {
        width: calc(60px * 6 + 1.3rem * 5);
        padding: 0 0;
    }

    .portfolio__thumbs {
        gap: 1rem;

    }

    .portfolio__thumb {
        width: 60px;
        height: 60px;
        border-radius: 4px;
    }

    .portfolio__progress-wrap {
        max-width: 300px;
    }
}

/* ===== SERVICES SECTION ===== */
#services {
    position: relative;
    background-color: var(--color-bg);
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 60px 0;
    overflow: hidden;
    scroll-snap-align: start;
}

.services__title {
    color: var(--color-gold);
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin: 0 0 2rem;
}

.services__wrap {
    width: calc(100vw - 10rem);   /* 左右各留 2rem */
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    text-align: center;
}

.services__wrap::-webkit-scrollbar {
    display: none;
}

.services__list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 1rem 2rem;
    min-width: min-content;
}

.services__card {
    width: calc(100vw - 10rem);   /* wrap 同寬，一次顯示一張 */
    min-height: 50vh;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-snap-align: center;
    position: relative;
}

.services__card-title {
    color: var(--color-text-100);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin: 0 0 1rem;
}

.services__card-desc {
    color: var(--color-text-85);
    font-size: 1rem;
    line-height: 2;
    letter-spacing: 1px;
    margin: 0;
}

/* --- 進度條 --- */
.services__progress-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
    width: 70%;
    box-sizing: border-box;
    margin-top: 1.5rem;
}

.services__progress-bar {
    flex: 1;
    height: 13px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
}

.services__progress-fill {
    height: 100%;
    background: var(--color-gold);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 25%;
}

.services__progress-label {
    color: var(--color-text-60);
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .services__wrap {
        overflow-x: visible;      /* 桌機不需要橫向捲動 */
        scroll-snap-type: none;
    }

    .services__list {
        display: grid;
        /* 想要寬一點？把 1fr 改小，或改用 pixel 固定寬度 */
        /* 想要 4 欄，每欄 200px 寬： */
        grid-template-columns: repeat(4, 200px); 
        
        /* 直接修改這裡，不用算！ */
        gap: 0px; 
        
        justify-content: center; /* 讓整個網格置中 */
    }

    .services__card {
        width: 70%;         /* 桌機不再用 calc(100vw - 14rem)，改吃 grid 欄寬 */
        min-height: 60vh;
        border-radius: 8px;  /* 跟 initNeonSquare 的 radius: 8 對齊 */
        flex-shrink: initial; /* 桌機不需要手機版的 flex-shrink: 0 */
        scroll-snap-align: none;
        text-align: center;
        padding: 1rem;
        line-height: 2;
    }

    .services__progress-wrap {
        width: 20%;
        display: none;
    }

    .services__card-title {
        font-size: 1rem ;
    }

    .services__card-desc {
        font-size: 0.8rem;
    }
}

/* ===== PLANS SECTION ===== */
#plans {
    position: relative;
    background-color: var(--color-bg);
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0 0 0;
    overflow: hidden;
    scroll-snap-align: start;
}

.plans__title {
  color: var(--color-gold);
  font-size: 1.5rem;
  letter-spacing: 4px;
  margin: 0 0 2rem;
}

.plans__wrap {
    width: calc(100vw - 10rem);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.plans__wrap::-webkit-scrollbar {
  display: none;
}

.plans__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  min-width: min-content;
}

/* --- 單張卡片 --- */
.plans__card {
    width: calc(100vw - 10rem);
    min-height: 54vh;
    border-radius: 4px;
    padding: 1rem;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    scroll-snap-align: center;
    position: relative;
    border: 4px solid var(--color-blue-btn);
    box-shadow: 0 0 16px var(--color-blue),
    inset 0 0 16px rgba(61, 136, 244, 0.08);
    text-align: center;
}

.plans__card-title {
  color: var(--color-text-100);
  font-size: 1.3rem;
  letter-spacing: 2px;
  margin: 0 0 1rem;
}

.plans__card-desc {
  color: var(--color-text-85);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 1px;
  margin: 0;
}

/* --- 進度條 --- */
.plans__progress-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  width: 60%;
  box-sizing: border-box;
  margin-top: 1.5rem;
}

.plans__progress-bar {
  flex: 1;
  height: 13px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
}

.plans__progress-fill {
  height: 100%;
  background: var(--color-gold);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 25%;
}

.plans__progress-label {
  color: var(--color-text-60);
  font-size: 0.85rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .plans__wrap {
    overflow-x: visible;
    scroll-snap-type: none;
    width: auto;
  }

  .plans__list {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    gap: 0px;
    justify-content: center;
  }

  .plans__card {
    width: 80%;
    min-height: 60vh;
    flex-shrink: initial;
    scroll-snap-align: none;
    text-align: center;
  }

  .plans__card-title {
    font-size: 1rem;
  }

  .plans__card-desc {
    font-size: 0.8rem;
  }

  .plans__progress-wrap {
    display: none;
  }
}

/* ===== CONTACT SECTION ===== */
#contact {
  position: relative;
    background-color: var(--color-bg);
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 60px;
    overflow: hidden;
    scroll-snap-align: start;
    justify-content: space-between;
}

.contact__title {
  color: var(--color-gold);
  font-size: 1.3rem;
  letter-spacing: 4px;
  margin: 0 0 3rem;
  text-align: center;
}

/* --- 主體：手機單欄，桌機左右兩欄 --- */
.contact__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 900px;
}

/* --- 左欄 --- */
.contact__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact__email {
  color: var(--color-text-85);
  font-size: 1rem;
  letter-spacing: 1px;
  margin: 0;
}

.contact__email span {
  color: var(--color-gold);
}

/* --- Line 按鈕 --- */
.contact__btn-line {
  display: inline-block;
  background: #06C755;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 16px 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact__btn-line:hover {
  opacity: 0.85;
}

/* --- QR Code --- */
.contact__qr {
  padding: 12px;
  box-sizing: border-box;
  width: 70%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact__qr-desktop {
  display: none;
}

.contact__qr img {
  width: 75%;
  height: 75%;
  object-fit: contain;
  display: block;
}

/* --- 底部按鈕區 --- */
.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}

/* 登入按鈕：透明底 + 藍色邊框 */
.contact__btn-login,
.contact__btn-register {
  display: inline-block;
  background: transparent;
  color: var(--color-text-100);
  font-size: 0.8rem;
  letter-spacing: 2px;
  padding: 8px 20px;
  border-radius: 50px;
  border: 4px solid var(--color-blue-btn);
  text-decoration: none;
  transition: background 0.25s ease;
}

.contact__btn-login:hover,
.contact__btn-register:hover {
  background: var(--glow-blue);
}

/* ===== 桌機版 ===== */
@media (min-width: 768px) {

  .contact__body {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    margin-bottom: 2rem;
  }

  .contact__left {
    align-items: center;
  }

  .contact__email {
    font-size: 1.5rem;
  }

  /* 手機版QR隱藏 */
  .contact__qr {
    display: none;
  }

  /* 桌機版QR */
  .contact__qr-desktop {
    padding: 12px;
    box-sizing: border-box;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .contact__qr-desktop img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    display: block;
  }

  .contact__btn-line {
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 18px;
  }

  .contact__actions {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    width: auto;
  }

  .contact__btn-login,
  .contact__btn-register {
    border-width: 2px;
    margin-top: 3rem;
  }
}

.footer-links {
  width: 100%;
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.8rem;
  letter-spacing: 3px;
}

.footer-link {
  color: var(--color-text-60);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-text, #fff);
}

.footer-dot {
  margin: 0 12px;
  color: var(--color-text-60);
  opacity: 0.5;
}

.site-footer p {
  color: var(--color-text-60);
  font-size: 0.8rem;
  letter-spacing: 3px;
  margin: 0;
}

@media (max-width: 767px) {
  .footer-links {
    text-align: center;
    padding-top: 8px;
  }

  .site-footer p {
    letter-spacing: 1px;
    font-size: 0.7rem;
  }
}

.modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #1a1a1a;
  color: #ddd;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 8px;
  position: relative;
  line-height: 1.7;

  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  font-size: 20px;
}

.modal-box h3 {
  color: #fff;
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 6px;
}

.modal-box p {
  font-size: 14px;
  color: #bbb;
  margin: 6px 0;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #999;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

/* ============================================
   以下區塊：之後加入 section / footer 樣式時，
   接續往下累加即可，不需要另開新檔案
   ============================================ */