:root {
    --primary-blue: #1a73e8;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --bg-light: #f8f9fa;
    --border-gray: #dadce0;
}

body {
    font-family: "PingFang TC", "Microsoft JhengHei", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 60px 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

/* 切換開關樣式 */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    font-weight: bold;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px; width: 18px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--primary-blue); }
input:checked + .slider:before { transform: translateX(24px); }

/* 卡片與網格 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

/* 強化外框效果 */
.card.featured {
    border: 2px solid var(--primary-blue);
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.15);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
}

/* 內容樣式 */
.plan-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f3f4;
    padding-bottom: 20px;
}

.plan-name {
    font-size: 22px;
    margin-bottom: 15px;
}

.price {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-blue);
}

.price span {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: normal;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.features-list li {
    padding: 10px 0 10px 28px;
    position: relative;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 1px solid #fafafa;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.btn {
    display: block;
    text-align: center;
    padding: 14px;
    background: white;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.featured .btn {
    background: var(--primary-blue);
    color: white;
}

.btn:hover {
    background: #f1f8ff;
}

.featured .btn:hover {
    background: #1765cc;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-gray);
    margin: 80px 0;
}

/* 響應式微調 */
@media (max-width: 768px) {
    .card.featured {
        transform: none;
    }
}