/* ==========================================================================
   CSS 變數與全域設定 (與現代美學配色)
   ========================================================================== */
:root {
    /* 核心暗色調背景 - 優化為極致暗黑科技黑 */
    --bg-primary: #07080c;
    --bg-secondary: #0f1017;
    
    /* 半透明毛玻璃卡片背景 */
    --bg-card: rgba(15, 16, 23, 0.65);
    --bg-card-hover: rgba(22, 24, 34, 0.85);
    
    /* 霓虹發光主色 */
    --neon-yellow: #F4E42F;
    --neon-yellow-light: #fff56b;
    --neon-blue: #00f2fe;
    --neon-blue-light: #4ef7ff;
    --neon-purple: #9b51e0;
    
    /* 漸層色定義 */
    --grad-yellow-blue: linear-gradient(135deg, var(--neon-yellow), var(--neon-blue));
    --grad-blue-purple: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    
    /* 文字色彩 */
    --text-main: #f5f6fa;
    --text-muted: #8fa0c0; /* 微調灰藍色，增進在深背景上的可讀性 */
    --text-dark: #07080c;
    
    /* 霓虹陰影發光特效 */
    --glow-yellow: 0 0 15px rgba(244, 228, 47, 0.4), 0 0 30px rgba(244, 228, 47, 0.2);
    --glow-blue: 0 0 15px rgba(0, 242, 254, 0.4), 0 0 30px rgba(0, 242, 254, 0.2);
    --glow-purple: 0 0 15px rgba(155, 81, 224, 0.4), 0 0 30px rgba(155, 81, 224, 0.2);
    
    /* 毛玻璃邊框 */
    --border-glass: 1px solid rgba(255, 255, 255, 0.08);
    --border-glass-active: 1px solid rgba(255, 255, 255, 0.25);
    
    /* 轉場動畫時間 */
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 基本重設與全局樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Montserrat', 'Noto Sans TC', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 網頁滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-yellow);
}

/* ==========================================================================
   舞台霓虹光暈背景 (Glow Background)
   ========================================================================== */
.glow-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(244, 228, 47, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 60%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 110%, rgba(155, 81, 224, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   導覽列樣式 (Navbar)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background-color: rgba(7, 8, 12, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(7, 8, 12, 0.9);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 霓虹文字發光特效 */
.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
}

.neon-text-yellow {
    color: var(--neon-yellow);
    text-shadow: var(--glow-yellow);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.2rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

/* 導覽列懸停底線發光動畫 */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-yellow-blue);
    transition: var(--transition-fast);
    box-shadow: var(--glow-blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* 行動裝置選單開關按鈕 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* ==========================================================================
   按鈕系統元件 (Buttons)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem; /* 微調內距增加點擊舒適度 */
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px; /* 使用更具現代幾何美學的平滑小圓角代替傳統圓角 */
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--grad-yellow-blue);
    color: var(--text-dark);
    box-shadow: var(--glow-yellow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-yellow), var(--glow-blue);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: var(--border-glass-active);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   1. 首頁區塊樣式 (Hero Section)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding: 9rem 8% 4rem; /* 稍微拉高頂部間距防重疊 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
}

.hero-content {
    flex: 1.2;
    max-width: 650px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -1px;
}

.hero-title .highlight-yellow {
    background: linear-gradient(to right, var(--neon-yellow), #fff67a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(244, 228, 47, 0.2);
}

.hero-title .highlight-blue {
    background: linear-gradient(to right, var(--neon-blue), #5cf6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 242, 254, 0.2);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* 右側發光抽象舞動圖形 */
.hero-visual {
    flex: 0.8;
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dance-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 242, 254, 0.3);
    animation: rotateCircle 25s linear infinite;
    position: absolute;
}

.dance-aurora {
    width: 200px;
    height: 200px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    background: var(--grad-yellow-blue);
    filter: blur(40px);
    opacity: 0.45;
    animation: morphAurora 10s ease-in-out infinite alternate;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes morphAurora {
    0% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; }
    100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}

/* ==========================================================================
   區塊共用標題與間距 (Section Commons)
   ========================================================================== */
section {
    padding: 8rem 8%; /* 增加間距提供更好的呼吸排版感 */
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff, #c7cbd6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   2. 舞蹈風格卡片樣式 (Styles Section)
   ========================================================================== */
.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.style-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 24px; /* 加大圓角，線條更具現代感與親和力 */
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

/* 卡片懸停特效 */
.style-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-yellow-blue);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.style-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.style-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.style-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
}

.style-card h3 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-brief {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.btn-text {
    background: none;
    border: none;
    color: var(--neon-blue);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none; /* 隱藏 a 標籤預設底線 */
}

.style-card:hover .btn-text {
    color: var(--neon-yellow);
    text-shadow: var(--glow-yellow);
}

/* ==========================================================================
   3. 舞蹈分級測試小遊戲樣式 (Dance Quiz Section)
   ========================================================================== */
.quiz-container {
    max-width: 650px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 32px; /* 升級為 32px 大圓角，給予更具親和力的科技舞台美感 */
    padding: 3.5rem;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* 答題進度條 */
.quiz-progress-container {
    margin-bottom: 2.5rem;
}

.quiz-progress-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--grad-yellow-blue);
    box-shadow: var(--glow-yellow);
    border-radius: 10px;
    width: 20%; /* 由 JS 控制百分比 */
    transition: width var(--transition-smooth);
}

/* 問題題目 */
.quiz-question {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    min-height: 80px; /* 保持題目更換時高度穩定 */
}

/* 選項按鈕列表 */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.quiz-option-btn {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    color: var(--text-main);
    padding: 1.2rem 1.8rem;
    border-radius: 14px; /* 對齊按鈕的平滑幾何圓角 */
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: block;
    width: 100%;
    font-family: inherit;
}

.quiz-option-btn:hover {
    background: rgba(244, 228, 47, 0.06); /* 懸停時透出黃色微光 */
    border-color: var(--neon-yellow);
    box-shadow: var(--glow-yellow);
    transform: translateX(8px);
    font-weight: 700;
}

.quiz-option-btn:active {
    transform: translateX(4px);
}

/* 測驗結果卡片特殊處理 */
.result-card {
    text-align: center;
    animation: fadeIn var(--transition-smooth);
}

.result-badge-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.result-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    background: var(--grad-yellow-blue);
    filter: blur(30px);
    opacity: 0.4;
    border-radius: 50%;
    animation: morphAurora 6s ease-in-out infinite alternate;
}

.result-badge {
    background: rgba(7, 8, 12, 0.8);
    border: 2px solid var(--neon-yellow);
    box-shadow: var(--glow-yellow);
    color: var(--neon-yellow);
    font-size: 1.1rem;
    font-weight: 900;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.result-name {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--grad-yellow-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.result-suggestions {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 1.8rem 2.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

.result-suggestions h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.result-suggestions ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.result-suggestions li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-suggestions li::before {
    content: '✦';
    color: var(--neon-blue);
}

.quiz-controls {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.quiz-controls .btn {
    flex: 1;
    max-width: 250px;
}

/* ==========================================================================
   4. 舞動名言樣式 (Quotes Section)
   ========================================================================== */
.quotes-section {
    background: radial-gradient(circle at 50% 50%, rgba(244, 228, 47, 0.04) 0%, transparent 60%);
}

.quote-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 32px; /* 圓角與大卡片一致 */
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    backdrop-filter: blur(15px);
}

.quote-icon {
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(244, 228, 47, 0.1);
    position: absolute;
    top: 20px;
    left: 40px;
    line-height: 1;
}

.quote-slider {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-slide {
    display: none;
    animation: fadeIn 0.8s ease;
}

.quote-slide.active {
    display: block;
}

.quote-text {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.quote-author {
    font-size: 1.05rem;
    color: var(--neon-blue);
    font-style: normal;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 輪播點點 */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.dot.active {
    background: var(--neon-yellow);
    box-shadow: var(--glow-yellow);
    width: 25px;
    border-radius: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   5. 聯絡表單樣式 (Contact Section)
   ========================================================================== */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 32px; /* 圓角與大卡片一致 */
    padding: 3.5rem;
    backdrop-filter: blur(15px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-yellow); /* 輸入框焦點更換為黃色霓虹 */
    box-shadow: 0 0 10px rgba(244, 228, 47, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

/* 下拉選單 option 的背景色修正 */
.form-group select option {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

/* ==========================================================================
   頁尾樣式 (Footer)
   ========================================================================== */
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   互動式超詳細展示區樣式 (Style Detail View Section)
   ========================================================================== */
.style-detail-section {
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.05) 0%, transparent 60%);
    padding-top: 2rem; /* 緊貼風格卡片區，排版更緊湊 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 舞風切換 Tab 標籤列 */
.detail-tabs-container {
    margin-bottom: 3.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.detail-tabs {
    background: rgba(0, 0, 0, 0.4);
    border: var(--border-glass);
    border-radius: 50px;
    padding: 0.5rem;
    display: inline-flex;
    gap: 0.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tab-btn {
    background: none;
    border: none;
    border-radius: 40px;
    color: var(--text-muted);
    padding: 0.8rem 2.2rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-main);
    text-shadow: var(--glow-blue);
}

.tab-btn.active {
    background: var(--grad-yellow-blue); /* 標籤活躍漸層更換為黃藍科技感 */
    color: var(--text-dark);
    box-shadow: var(--glow-blue), var(--glow-yellow);
}

.detail-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 3.5rem;
    align-items: stretch;
}

/* 左側：舞風發光名片 */
.detail-card-left {
    flex: 0.8;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.detail-glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--grad-yellow-blue); /* 更換為黃藍科技發光 */
    filter: blur(50px);
    opacity: 0.25;
    border-radius: 50%;
    animation: morphAurora 10s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.detail-icon {
    font-size: 6rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.5));
    animation: floatIcon 4s ease-in-out infinite alternate;
}

.detail-badge {
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(0, 242, 254, 0.15);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 242, 254, 0.3);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: var(--glow-blue);
    letter-spacing: 1px;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    position: relative;
    z-index: 2;
    background: var(--grad-yellow-blue); /* 更換為黃藍科技漸層 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(244, 228, 47, 0.15);
}

/* 右側：詳細內容面板 */
.detail-card-right {
    flex: 1.2;
    background: var(--bg-card);
    border: var(--border-glass);
    border-radius: 24px;
    padding: 3.5rem;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 內容更換時的淡出淡入動畫類別 */
.detail-card-right.updating {
    opacity: 0;
    transform: translateY(15px);
}

.detail-block {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-block h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-block h4::before {
    content: '✦';
    color: var(--neon-blue);
    text-shadow: var(--glow-blue);
}

.detail-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 代表舞步列表樣式 */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-left: 0.5rem;
}

.steps-list li {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.steps-list li::before {
    content: '▪';
    color: var(--neon-yellow); /* 改為黃色前綴點 */
    margin-top: 2px;
}

.steps-list li strong {
    color: var(--text-main);
    font-weight: 700;
    min-width: 140px; /* 對齊動作名稱 */
    display: inline-block;
}

.detail-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
}

.detail-actions .btn {
    min-width: 250px;
}

/* Icon 浮動微動畫 */
@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* ==========================================================================
   響應式網頁設計 (Responsive Design 斷點)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        gap: 3rem;
    }
    .hero-content {
        max-width: 100%;
    }
    .hero-title {
        font-size: 3.5rem; /* 平滑縮小標題，防止過度擠壓 */
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-visual {
        width: 300px;
        height: 300px;
    }
    
    /* 修正展示區在平板下被擠壓的重大 bug：大膽轉為 Column 直向排列 */
    .detail-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .detail-card-left {
        min-height: auto;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .navbar {
        padding: 1.2rem 8%;
    }
    
    /* 手機版選單切換開關 */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        gap: 0;
        background: rgba(7, 8, 12, 0.98); /* 與優化後的科技黑背景一致 */
        backdrop-filter: blur(20px);
        transition: height var(--transition-smooth);
        border-bottom: 0px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links.active {
        height: calc(100vh - 70px);
        border-bottom-width: 1px;
    }
    
    .nav-links a {
        width: 100%;
        padding: 1.8rem 8%;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    /* 漢堡按鈕點擊後的動畫 */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem; /* 適應手機寬度 */
        line-height: 1.3;
    }
    
    .hero-buttons {
        flex-direction: column; /* 按鈕直立防擠壓 */
        gap: 1rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* 優化手機端內距，避免太靠近螢幕邊緣 */
    section {
        padding: 6rem 5%;
    }
    
    .quiz-card {
        padding: 2rem 1.5rem;
    }
    
    .result-suggestions ul {
        grid-template-columns: 1fr; /* 推薦項目手機版轉單行 */
    }
    
    .quiz-controls {
        flex-direction: column;
        gap: 1rem;
    }
    .quiz-controls .btn {
        max-width: 100%;
    }
    
    .contact-container {
        padding: 2.5rem 1.5rem;
    }
    
    .detail-card-right {
        padding: 2rem 1.5rem;
    }
}
