/* ===============================
   1. Reset 與基本設定
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* ===============================
   2. 版型容器與排版
   =============================== */
.container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #333;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

a {
    color: #007bff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ===============================
   3. 按鈕樣式（圖形化按鈕）
   =============================== */
   .button {
    background: linear-gradient(45deg, #ff9800, #f57c00); /* 原本橘色漸層 */
    color: #fff;
    margin-top: 20px;
}
.button:hover {
    background: linear-gradient(45deg, #f57c00, #ff9800);
}

.button,
.btn,
button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
            background: linear-gradient(45deg, #ff9800, #f57c00);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.button:hover,
.btn:hover,
button:hover {
            background: linear-gradient(45deg, #f57c00, #ff9800);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button:active,
.btn:active,
button:active {
    transform: translateY(0);
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
}

/* ===============================
   4. 虛擬會員卡樣式
   =============================== */
.card-container {
    max-width: 400px;
    margin: 20px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    background: #007bff;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.card-header img {
    max-width: 80px;
    margin-bottom: 10px;
}

.card-header h1 {
    margin: 0;
    font-size: 24px;
}

.card-content {
    padding: 20px;
}

.card-content h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.card-content p {
    margin: 10px 0;
    font-size: 16px;
    color: #555;
}

.qr-code {
    text-align: center;
    margin: 15px 0;
}

.qr-code img {
    max-width: 150px;
    border: 1px solid #ddd;
    padding: 5px;
    background: #fff;
}

.card-footer {
    background: #f8f8f8;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666;
}

/* ===============================
   5. Add to Wallet 按鈕樣式（Apple / Samsung Wallet）
   =============================== */
.wallet-button a {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.wallet-button a img {
    max-width: 200px;
    transition: transform 0.2s ease;
}

.wallet-button a:hover img {
    transform: scale(1.05);
}

/* ===============================
   6. 表格樣式（用於管理頁面）
   =============================== */
table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
}

/* ===============================
   7. 響應式調整
   =============================== */
@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    h1 {
        font-size: 1.4em;
    }
    h2 {
        font-size: 1.2em;
    }
    .card-container {
        margin: 10px;
        padding: 10px;
    }
}
/* 內嵌調整：使按鈕圖形化 */
        .button {
            display: inline-block;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: bold;
            text-align: center;
            text-decoration: none;
            color: #fff;
            background: linear-gradient(45deg, #1abc9c, #16a085);
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            margin: 4px 2px;
        }
        .button:hover {
            background: linear-gradient(45deg, #16a085, #1abc9c);
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0,0,0,0.15);
        }
        .button:active {
            transform: translateY(0);
            box-shadow: 0 3px 4px rgba(0,0,0,0.1);
        }
        /* 管理後台按鈕較小 */
        .small-button {
            padding: 8px 16px;
            font-size: 14px;
        }
        /* 調整按鈕容器 */
        .button-group {
            margin-top: 20px;
            text-align: center;
        }