/* --- 全局變數定義 --- */
:root {
    /* 品牌色系：深海軍藍搭配金屬質感 */
    --primary-navy: #0f1c2e;
    /* 深夜藍背景 */
    --card-bg: rgba(255, 255, 255, 0.95);
    /* 卡片本體 */
    --accent-gold: #c5a059;
    /* 質感金 (用於強調) */
    --accent-blue: #1c5291;
    /* 連結與按鈕藍 */
    --line-green: #06c755;
    /* LINE 官方品牌色 */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-gradient: linear-gradient(135deg, #0f1c2e 0%, #1c3b57 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    /* 文字平滑 */
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-gradient);
    color: var(--text-main);
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* --- 背景裝飾 --- */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 這裡可以放一張模糊的工廠或金屬紋理背景圖，目前用漸層代替 */
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -2;
}

.bg-overlay {
    /* 增加紋理或是暗度 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- 主要卡片容器 --- */
.main-container {
    width: 100%;
    max-width: 480px;
    /* 手機優先的寬度設計 */
    position: relative;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    /* 玻璃擬態模糊效果 */
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    text-align: center;
    transition: transform 0.3s ease;
}

/* --- LOGO 與 標題區域 --- */
.logo-area {
    width: 80px;
    height: 80px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(15, 28, 46, 0.2);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* 分隔線 */
    display: inline-block;
    width: 100%;
}

/* --- 服務標籤 --- */
.services-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tag {
    background: #f0f2f5;
    color: var(--primary-navy);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- 按鈕區域 --- */
.action-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* 電話按鈕樣式 */
.btn-phone {
    background: linear-gradient(135deg, #1c5291, #2a6fb3);
    color: white;
    box-shadow: 0 8px 20px rgba(28, 82, 145, 0.3);
}

.btn-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(28, 82, 145, 0.4);
}

/* LINE 按鈕樣式 */
.btn-line {
    background: #06c755;
    color: white;
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.3);
}

.btn-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(6, 199, 85, 0.4);
}

/* Facebook 按鈕樣式 */
.btn-fb {
    background: #1877F2;
    color: white;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.btn-fb:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(24, 119, 242, 0.4);
}

.icon-box {
    font-size: 1.8rem;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 15px;
    padding-right: 15px;
}

.text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text-box small {
    font-size: 0.8rem;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.text-box span {
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- QR Code 區塊 --- */
.qr-section {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.qr-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.official-line-btn img {
    height: 36px;
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.official-line-btn:hover img {
    transform: scale(1.05);
}

.qr-img-box img {
    width: 160px;
    height: 160px;
    border-radius: 8px;
    padding: 5px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- 頁腳 --- */
footer {
    font-size: 0.9rem;
    color: #888;
    margin-top: 20px;
}

footer i {
    color: var(--accent-blue);
    margin-right: 5px;
}

/* --- RWD --- */
@media (max-width: 400px) {
    .card {
        padding: 30px 20px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 15px;
    }
}