/* ==========================================================================
   自媒體銷售頁 - 樣式表 (style.css)
   ========================================================================== */

/* 基礎重設與變數 */
:root {
    --primary-blue: #0d1b3e;
    --secondary-blue: #1e3c72;
    --accent-gold: #d4af37;
    --light-gold: #f3e5ab;
    --dark-gold: #aa7c11;
    --text-white: #ffffff;
    --text-dark: #0f2b5c;
    --line-green: #06C755;
    --bg-dark: #050b14;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% 50%, #0d1b3e 0%, var(--bg-dark) 100%);
    font-family: 'Noto Sans TC', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.5;
}

/* 網頁主容器 */
.sales-page-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    background-color: var(--primary-blue);
    display: flex;
    flex-direction: column;
}

/* 圖片段落樣式 */
.page-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0; /* 消除圖片底部空隙 */
}

.sales-img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* 搜尋引擎優化與無障礙網頁 (Hidden for visual, readable for screen readers) */
.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;
}

/* ==========================================================================
   互動按鈕熱區 (Absolute Overlay Hotspots)
   ========================================================================== */
.hotspot-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0);
    border: none;
    outline: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

/* 1. Page 1 立即報名 (Scroll to pricing) */
.btn-hero-cta {
    top: 83.5%;
    left: 28%;
    width: 44%;
    height: 7%;
    border-radius: 40px;
}
.btn-hero-cta:hover {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), inset 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 2. Page 9 推薦方案立即報名 (Direct to C Plan) */
.btn-recommend-cta {
    top: 85%;
    left: 26%;
    width: 48%;
    height: 8.5%;
    border-radius: 40px;
    display: block;
}
.btn-recommend-cta:hover {
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), inset 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 3. Page 11 A方案 (擴大至整個A方案範圍方框) */
.btn-plan-a {
    top: 59.5%;
    left: 5.6%;
    width: 28.5%;
    height: 23.5%;
    border-radius: 15px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0); /* 預設透明邊框 */
}
.btn-plan-a:hover {
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* 4. Page 11 B方案 (擴大至整個B方案範圍方框) */
.btn-plan-b {
    top: 59.5%;
    left: 35.8%;
    width: 28.5%;
    height: 23.5%;
    border-radius: 15px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0);
}
.btn-plan-b:hover {
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* 5. Page 11 C方案 (擴大至整個C方案範圍方框) */
.btn-plan-c {
    top: 59.5%;
    left: 65.8%;
    width: 28.5%;
    height: 23.5%;
    border-radius: 15px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0);
}
.btn-plan-c:hover {
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), inset 0 0 15px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* 6. Page 11 LINE OA 按鈕 */
.btn-line-oa {
    top: 84%;
    left: 27%;
    width: 46%;
    height: 5%;
    border-radius: 30px;
    display: block;
}
.btn-line-oa:hover {
    background: rgba(6, 199, 85, 0.12);
    box-shadow: 0 0 20px rgba(6, 199, 85, 0.8), inset 0 0 10px rgba(6, 199, 85, 0.4);
}

/* ==========================================================================
   浮動控制元件 (Sticky Floating Buttons)
   ========================================================================== */
.floating-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: auto;
    white-space: nowrap;
}

.floating-controls.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 浮動立即報名按鈕 (藍色按鈕 - 縮小 20%) */
.floating-cta-btn {
    position: relative;
    background: linear-gradient(135deg, #0052D4 0%, #4364F7 50%, #6FB1FC 100%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-white);
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(67, 100, 247, 0.4);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.floating-cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(67, 100, 247, 0.6);
}

.floating-cta-btn:active {
    transform: translateY(-1px);
}

/* 呼吸效果外圈 */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    border: 2px solid #6FB1FC;
    animation: cta-pulse 2s infinite;
    pointer-events: none;
}

@keyframes cta-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}

/* 手機版響應式微調 (Responsive adjustments) */
@media (max-width: 600px) {
    .floating-controls {
        bottom: 20px;
    }
    
    .floating-cta-btn {
        font-size: 11.5px;
        padding: 8px 16px;
    }
}

/* ==========================================================================
   頁尾樣式 (Footer Styles)
   ========================================================================== */
.sales-footer {
    background-color: #071128;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 30px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sales-footer .copyright {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.sales-footer .payment-safety {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}
