/* ============================================
   成果展示頁面統一樣式
   Achievements Page Unified Styles
   ============================================ */

.results-page {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    min-height: 100vh;
}

/* ===== Hero 區塊 ===== */
.page-hero-results {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero-results::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23fff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-results .hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.page-hero-results .hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.page-hero-results .shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(14, 165, 233, 0.4);
    top: -100px;
    left: -50px;
}

.page-hero-results .shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(99, 102, 241, 0.4);
    top: 50%;
    right: 10%;
}

.page-hero-results .shape-3 {
    width: 150px;
    height: 150px;
    background: rgba(16, 185, 129, 0.3);
    bottom: -50px;
    left: 30%;
}

.page-hero-results .hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-results .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* 5G 專屬徽章樣式 */
.page-hero-results .hero-badge.fiveg {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.page-hero-results h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.page-hero-results p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin: 0;
}

/* ===== 操作區 ===== */
.action-bar {
    margin-bottom: 2rem;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #0088cc 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* ===== 年度區塊 ===== */
.year-section {
    margin-bottom: 3rem;
}

.year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.year-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.year-badge i {
    color: #0066cc;
}

.year-count {
    font-size: 0.9rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

/* ===== 成果網格 ===== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 2rem;
}

/* ===== 成果卡片 ===== */
.result-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 102, 204, 0.15);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: white;
}

.school-badge {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: white;
    font-size: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 5G 專屬學校徽章 */
.school-badge.fiveg {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
    border-color: rgba(139, 92, 246, 0.4);
}

.school-info {
    flex: 1;
}

.result-card .school-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.125rem;
}

.result-card .school-code {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.result-body {
    padding: 0;
    background: #f8fafc;
}

/* ===== PDF 卡片式預覽（高科技風格） ===== */
.pdf-card-preview {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.3);
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-card-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pdf-card-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25), 0 0 40px rgba(14, 165, 233, 0.15);
    border-color: rgba(99, 102, 241, 0.6);
}

.pdf-card-preview:hover::before {
    opacity: 1;
}

/* 5G 專屬主題 */
.pdf-card-preview.fiveg {
    border-color: rgba(139, 92, 246, 0.3);
}

.pdf-card-preview.fiveg:hover {
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25), 0 0 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.6);
}

/* 視覺區域 */
.pdf-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.pdf-card-visual.compact {
    padding: 1.5rem;
}

/* 科技感背景動畫 */
.pdf-card-visual::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent 30%);
    animation: rotate-bg 8s linear infinite;
    opacity: 0.5;
}

@keyframes rotate-bg {
    100% { transform: rotate(360deg); }
}

/* 掃描線效果 */
.pdf-card-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.8), transparent);
    animation: scan-line 3s ease-in-out infinite;
}

@keyframes scan-line {
    0%, 100% { top: 0; opacity: 0; }
    50% { top: 100%; opacity: 1; }
}

/* PDF 圖示 */
.pdf-icon-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 1.5rem;
    color: white;
    font-size: 3rem;
    box-shadow: 
        0 10px 40px rgba(239, 68, 68, 0.4),
        0 0 60px rgba(239, 68, 68, 0.2),
        inset 0 -4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.pdf-card-preview:hover .pdf-icon-large {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 
        0 15px 50px rgba(239, 68, 68, 0.5),
        0 0 80px rgba(239, 68, 68, 0.3);
}

.pdf-card-preview.fiveg .pdf-icon-large {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 
        0 10px 40px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2);
}

.pdf-card-preview.fiveg:hover .pdf-icon-large {
    box-shadow: 
        0 15px 50px rgba(139, 92, 246, 0.5),
        0 0 80px rgba(139, 92, 246, 0.3);
}

.pdf-card-preview.compact .pdf-icon-large {
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

/* 光環效果 */
.pdf-icon-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3) 0%, transparent 70%);
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 1;
}

.pdf-card-preview.fiveg .pdf-icon-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* 裝飾線條 */
.pdf-card-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0.2;
    width: 180px;
    z-index: 0;
}

.decoration-line {
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
    border-radius: 3px;
}

.decoration-line.short {
    width: 50%;
    margin-left: 25%;
}

/* 內容區域 */
.pdf-card-content {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.5) 100%);
    position: relative;
    z-index: 3;
}

.pdf-card-content.compact {
    padding: 1rem;
}

.pdf-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.375rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pdf-card-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 1.25rem;
}

.pdf-card-content.compact .pdf-card-subtitle {
    margin-bottom: 1rem;
}

/* 操作按鈕 */
.pdf-card-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.pdf-card-actions.compact {
    gap: 0.5rem;
}

.pdf-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pdf-card-actions.compact .pdf-action-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* 檢視按鈕 - 主要 CTA */
.pdf-action-btn.view {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-action-btn.view::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.pdf-action-btn.view:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
    color: white;
}

.pdf-action-btn.view:hover::before {
    left: 100%;
}

/* 下載按鈕 */
.pdf-action-btn.download {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.pdf-action-btn.download:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(14, 165, 233, 0.5);
    color: #0ea5e9;
    transform: translateY(-3px);
}

/* 點擊提示 */
.pdf-click-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.8rem;
}

.pdf-click-hint i {
    animation: bounce-hint 1.5s ease-in-out infinite;
}

@keyframes bounce-hint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ===== PDF 直接嵌入預覽（保留備用） ===== */
.pdf-embed-container {
    position: relative;
    width: 100%;
    height: 480px;
    background: #f1f5f9;
    overflow: hidden;
}

.pdf-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* PDF 載入中遮罩 */
.pdf-loading-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    text-align: center;
    padding: 1rem;
}

.pdf-loading-overlay.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pdf-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pdf-loading-text {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

.pdf-error-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 1rem;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* PDF 底部操作欄 */
.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-toolbar-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.pdf-toolbar-info i {
    color: #ef4444;
}

.pdf-toolbar-actions {
    display: flex;
    gap: 0.5rem;
}

.pdf-toolbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pdf-toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pdf-toolbar-btn.primary {
    background: linear-gradient(135deg, #0066cc 0%, #0088cc 100%);
    border-color: transparent;
}

.pdf-toolbar-btn.primary:hover {
    background: linear-gradient(135deg, #0077dd 0%, #0099dd 100%);
    transform: translateY(-1px);
}

/* PDF 載入失敗提示 */
.pdf-error-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    height: 100%;
}

.pdf-error-fallback.show {
    display: flex;
}

.pdf-error-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 1rem;
    color: white;
    font-size: 1.75rem;
}

.pdf-error-text {
    color: #991b1b;
    font-weight: 600;
}

.pdf-error-hint {
    color: #b91c1c;
    font-size: 0.85rem;
}

/* 舊版點擊式 PDF 卡片（備用） */
.pdf-preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fecaca;
    border-radius: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pdf-preview-card:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #f87171;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.pdf-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 0.75rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.pdf-info {
    flex: 1;
}

.pdf-label {
    display: block;
    font-weight: 700;
    color: #991b1b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pdf-action {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: #dc2626;
}

/* ===== 圖片預覽 ===== */
.result-image {
    width: 100%;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* ===== PDF 彈出視窗 ===== */
.pdf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdf-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-container {
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.pdf-modal-backdrop.active .pdf-modal-container {
    transform: scale(1);
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: white;
}

.pdf-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.pdf-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pdf-modal-body {
    flex: 1;
    background: #f1f5f9;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== 操作按鈕 ===== */
.result-actions {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.result-actions .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-actions .action-btn.edit {
    background: #f1f5f9;
    color: #475569;
}

.result-actions .action-btn.edit:hover {
    background: #e2e8f0;
}

.result-actions .action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.result-actions .action-btn.delete:hover {
    background: #fecaca;
}

/* ===== Modal 樣式 ===== */
.modal-modern {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
}

.modal-modern .modal-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-modern .modal-body {
    padding: 1.5rem;
}

.form-group-modern {
    margin-bottom: 1.25rem;
}

.form-label-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label-modern i {
    color: #0066cc;
}

.form-input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-input-modern:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.file-upload-area {
    position: relative;
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.file-upload-content i {
    font-size: 2rem;
    color: #9ca3af;
}

.file-upload-content span {
    color: #6b7280;
    font-size: 0.9rem;
}

.file-upload-area:hover .file-upload-content {
    border-color: #0066cc;
    background: #f0f9ff;
}

.modal-modern .modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
}

.btn-cancel {
    padding: 0.625rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #0088cc 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* ===== 響應式設計 ===== */
@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
    
    .pdf-embed-container {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .page-hero-results {
        padding: 3rem 1.5rem 2rem;
    }
    
    .page-hero-results h1 {
        font-size: 1.75rem;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .year-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .pdf-embed-container {
        height: 350px;
    }
    
    .pdf-toolbar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .pdf-toolbar-actions {
        width: 100%;
    }
    
    .pdf-toolbar-btn {
        flex: 1;
        justify-content: center;
    }
    
    .pdf-preview-card {
        padding: 1rem;
    }
    
    .pdf-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .pdf-modal-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    /* PDF 卡片響應式 */
    .pdf-card-visual {
        padding: 2rem 1.5rem;
    }
    
    .pdf-icon-large {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .pdf-card-actions {
        flex-direction: column;
    }
    
    .pdf-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .pdf-click-hint {
        font-size: 0.75rem;
    }
}

/* 減少動畫效果（節省效能） */
@media (prefers-reduced-motion: reduce) {
    .pdf-card-visual::before,
    .pdf-card-visual::after,
    .pdf-icon-glow {
        animation: none;
    }
    
    .pdf-card-preview,
    .pdf-action-btn {
        transition: none;
    }
}
