/* ═══ webpage.php 靜態頁面 ═══════════════════════ */

.webpage-banner {
    margin: 0 0 40px;
    border-radius: 16px;
    overflow: hidden;
}

.webpage-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.webpage-content {
    line-height: 1.9;
}

.webpage-content img {
    max-width: 100%;
    height: auto;
}

/* ─── 附件下載 ─────────────────────────────────── */
.webpage-attachments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.webpage-attachments-title {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
}

.webpage-attachments .attachment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.webpage-attachments .attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
}

.webpage-attachments .attachment-item:hover {
    border-color: var(--fju-blue);
    background: var(--primary-soft);
    color: var(--fju-blue);
}

.webpage-attachments .attachment-icon { font-size: 1.2rem; }

.webpage-attachments .attachment-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.webpage-attachments .attachment-name:hover {
    color: var(--fju-blue);
    text-decoration: underline;
}

.webpage-attachments .attachment-meta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.webpage-attachments .attachment-ext {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--primary-soft);
    color: var(--fju-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.webpage-attachments .attachment-download {
    padding: 6px 14px;
    border-radius: 8px;
    background: var(--fju-blue);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.webpage-attachments .attachment-download:hover {
    opacity: 0.85;
}
