/* ===== 公告頁面樣式 ===== */
.policy-page {
    min-height: calc(100vh - 200px);
    background: #f5f5f5;
}

/* 頁面標題區 */
.policy-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    padding: 40px 0 30px;
    color: white;
    margin-bottom: 30px;
}

.policy-header .breadcrumb {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.policy-header .breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.policy-header .breadcrumb a:hover {
    opacity: 0.8;
}

.policy-header .breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.policy-header .breadcrumb span {
    font-weight: 500;
}

.policy-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.policy-title i {
    font-size: 28px;
}

/* 公告內容區 */
.policy-content {
    padding: 0 0 60px;
}

.policy-content .container {
    max-width: 1000px;
}

/* 載入中狀態 */
.loading-container {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loading-container .spinner-border {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

/* 公告卡片 */
.policy-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 公告元資訊 */
.policy-meta {
    padding: 20px 30px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.update-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.update-date i {
    color: var(--primary-color);
}

/* 公告內容 */
.policy-body {
    padding: 40px 30px;
    line-height: 1.8;
    color: var(--text-primary);
}

.policy-body h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-darker);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.policy-body h2:first-child {
    margin-top: 0;
}

.policy-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-body p {
    margin-bottom: 15px;
    font-size: 16px;
    text-align: justify;
}

.policy-body strong {
    color: var(--primary-darker);
    font-weight: 600;
}

.policy-body ul,
.policy-body ol {
    margin: 15px 0;
    padding-left: 30px;
}

.policy-body li {
    margin-bottom: 10px;
}

.policy-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.policy-body a:hover {
    border-bottom-color: var(--primary-color);
}

/* 錯誤容器 */
.error-container {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-container i {
    font-size: 60px;
    color: #f44336;
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-retry {
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-retry:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 999;
    transition: all 0.3s;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .policy-header {
        padding: 30px 0 20px;
    }

    .policy-title {
        font-size: 24px;
    }

    .policy-title i {
        font-size: 20px;
    }

    .policy-body {
        padding: 30px 20px;
    }

    .policy-body h2 {
        font-size: 20px;
        margin-top: 30px;
    }

    .policy-body h3 {
        font-size: 18px;
    }

    .policy-body p,
    .policy-body li {
        font-size: 15px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .policy-header .breadcrumb {
        font-size: 12px;
    }

    .policy-title {
        font-size: 20px;
        gap: 10px;
    }

    .policy-meta {
        padding: 15px 20px;
    }

    .policy-body {
        padding: 20px 15px;
    }

    .policy-body h2 {
        font-size: 18px;
    }

    .policy-body h3 {
        font-size: 16px;
    }
}

