/* Broken Access Control PPT v2 - 新配色與可讀性優化 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #3b82f6 100%);
    color: #1f2937;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
}

.presentation-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 導航控制 - 移到右邊 */
.slide-nav {
    position: fixed;
    bottom: 50%;
    right: 30px;
    transform: translateY(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: rgba(31, 41, 55, 0.95);
    padding: 20px 15px;
    border-radius: 25px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide-nav button {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 48px;
    min-height: 48px;
}

.slide-nav button:hover {
    background: #059669;
    transform: scale(1.1);
}

.slide-nav button:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
}

#slideCounter {
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    writing-mode: horizontal-tb;
    white-space: nowrap;
}

/* 投影片容器 */
.slides-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

/* 投影片內容 - 優化可讀性 */
.slide-content {
    max-width: 1200px;
    width: 100%;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    text-align: left;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* 標題投影片 */
.title-slide {
    text-align: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.title-header {
    margin-bottom: 40px;
}

.title-icon {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 20px;
    display: block;
}

.title-slide h1 {
    font-size: 3.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.title-slide h2 {
    font-size: 2.5rem;
    color: #dc2626;
    margin-bottom: 40px;
    font-weight: 500;
}

.subtitle {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.highlight-badge {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.subtitle p {
    font-size: 1.3rem;
    color: #64748b;
    margin: 0;
}

.course-info {
    font-size: 1.1rem !important;
    font-style: italic;
}

/* 內容投影片 */
.content-slide h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 25px;
    border-bottom: 3px solid #10b981;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-slide h2 i {
    color: #10b981;
}

.content-slide h3 {
    font-size: 1.4rem;
    color: #374151;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.content-slide p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin: 15px 0;
}

.main-text {
    font-size: 1.1rem !important;
    font-weight: 500;
    color: #1e293b !important;
    text-align: center;
    margin: 20px 0 !important;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 12px;
    border-left: 4px solid #10b981;
}

.content-slide ul {
    margin: 20px 0;
    padding-left: 0;
}

.content-slide li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin: 8px 0;
    padding: 6px 0 6px 25px;
    position: relative;
}

.content-slide li::before {
    content: "▶";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 大綱網格 */
.outline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.outline-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.outline-section:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.outline-section h3 {
    color: #1e293b;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.outline-section ul {
    margin: 0;
}

.outline-section li {
    font-size: 0.9rem;
    margin: 6px 0;
    padding-left: 18px;
}

/* 三大支柱設計 */
.three-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.pillar {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
    border-color: #10b981;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1);
}

.pillar-icon {
    margin-bottom: 20px;
}

.pillar-icon i {
    font-size: 2.2rem;
    color: #10b981;
}

.pillar h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 12px 0 4px 0;
    font-weight: 600;
}

.pillar p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 4px 0 12px 0;
    font-style: italic;
}

.pillar-detail {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 重要提示 */
.important-note {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #92400e;
}

.important-note i {
    font-size: 1.2rem;
    color: #f59e0b;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .slide-content {
        padding: 30px;
        max-width: 95%;
    }
    
    .title-slide h1 {
        font-size: 2.8rem;
    }
    
    .title-slide h2 {
        font-size: 2rem;
    }
    
    .content-slide h2 {
        font-size: 2rem;
    }
    
    .outline-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .three-pillars {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 20px;
    }
    
    .slide-content {
        padding: 25px;
        min-height: auto;
    }
    
    .title-slide h1 {
        font-size: 2.2rem;
    }
    
    .title-slide h2 {
        font-size: 1.6rem;
    }
    
    .content-slide h2 {
        font-size: 1.8rem;
    }
    
    .content-slide p,
    .main-text {
        font-size: 1.1rem !important;
    }
    
    .slide-nav {
        bottom: 50%;
        right: 15px;
        padding: 15px 10px;
    }
    
    .slide-nav button {
        padding: 10px 12px;
        min-width: 40px;
        min-height: 40px;
    }
}

/* 新增樣式 - 漏洞類型展示 */
.vulnerability-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.vuln-category {
    padding: 25px;
    border-radius: 16px;
    border: 2px solid;
}

.danger-box {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.example-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}

.vuln-category h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-box h3 {
    color: #dc2626;
}

.example-box h3 {
    color: #0284c7;
}

.code-example {
    background: #1f2937;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
}

.code-line {
    margin: 8px 0;
    font-size: 1rem;
}

.code-line.normal {
    color: #10b981;
}

.code-line.attack {
    color: #ef4444;
}

.code-line code {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    color: #e5e7eb;
}

.code-comment {
    color: #9ca3af;
    font-style: italic;
    margin-top: 10px;
}

.stats-highlight {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #5b21b6;
    font-weight: 500;
}

.stats-highlight i {
    font-size: 1.5rem;
    color: #8b5cf6;
}

/* 排名展示 */
.ranking-display {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
    border: 3px solid #f59e0b;
}

.rank-number {
    font-size: 6rem;
    font-weight: 900;
    color: #dc2626;
    text-shadow: 3px 3px 0px #fbbf24;
    line-height: 1;
}

.rank-info h3 {
    font-size: 2rem;
    color: #92400e;
    margin: 0 0 10px 0;
}

.rank-info p {
    font-size: 1.2rem;
    color: #a16207;
    margin: 0;
    font-style: italic;
}

/* 原因網格 */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.reason-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.reason-card:hover {
    transform: translateY(-5px);
    border-color: #10b981;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.reason-icon {
    margin-bottom: 15px;
}

.reason-icon i {
    font-size: 2.5rem;
    color: #10b981;
}

.reason-card h4 {
    font-size: 1.3rem;
    color: #1f2937;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.reason-card p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.cwe-info {
    background: #f3f4f6;
    border-left: 5px solid #6b7280;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #374151;
    margin: 30px 0;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .vulnerability-types {
        grid-template-columns: 1fr;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-display {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .rank-number {
        font-size: 4rem;
    }
}

/* 攻擊手法展示樣式 */
.attack-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.attack-type {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.attack-type.horizontal {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.attack-type.vertical {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}

.attack-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.attack-header {
    margin-bottom: 20px;
    text-align: center;
}

.attack-header i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.horizontal .attack-header i {
    color: #dc2626;
}

.vertical .attack-header i {
    color: #0284c7;
}

.attack-header h3 {
    font-size: 1.3rem;
    margin: 8px 0 4px 0;
    font-weight: 600;
}

.horizontal .attack-header h3 {
    color: #dc2626;
}

.vertical .attack-header h3 {
    color: #0284c7;
}

.attack-subtitle {
    font-size: 1rem;
    color: #6b7280;
    font-style: italic;
}

.attack-type ul {
    margin: 0;
    padding: 0;
}

.attack-type li {
    font-size: 0.95rem;
    margin: 8px 0;
    padding-left: 20px;
    position: relative;
}

.attack-type li::before {
    content: "●";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.horizontal li::before {
    color: #dc2626;
}

.vertical li::before {
    color: #0284c7;
}

.other-attacks {
    margin-top: 25px;
}

.other-attacks h3 {
    margin-bottom: 15px;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
}

.attack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.attack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.attack-item:hover {
    background: #f1f5f9;
    border-color: #10b981;
    transform: translateX(5px);
}

.attack-item i {
    font-size: 1.5rem;
    color: #10b981;
    min-width: 24px;
}

.attack-item span {
    font-size: 1rem;
    color: #374151;
}

/* IDOR 詳解樣式 */
.idor-explanation {
    margin: 30px 0;
}

.concept-box {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #16a34a;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.concept-box h3 {
    color: #15803d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.concept-box p {
    color: #166534;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.idor-demo h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #374151;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.code-block {
    background: #1f2937;
    color: #e5e7eb;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.code-block.attack {
    background: #7f1d1d;
    border: 2px solid #dc2626;
}

.code-block code {
    color: inherit;
    background: none;
    padding: 0;
}

.step-content p {
    color: #6b7280;
    font-size: 1rem;
    margin: 10px 0 0 0;
}

.result-box {
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.result-box.danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #dc2626;
    color: #991b1b;
}

.result-box i {
    font-size: 1.2rem;
}

.impact-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #92400e;
    font-weight: 500;
}

.impact-warning i {
    font-size: 1.5rem;
    color: #f59e0b;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .attack-categories {
        grid-template-columns: 1fr;
    }
    
    .attack-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-steps {
        gap: 20px;
    }
    
    .step {
        flex-direction: column;
        gap: 10px;
    }
    
    .step-number {
        align-self: flex-start;
    }
}

/* 參數篡改攻擊樣式 */
.tampering-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.tampering-method {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.tampering-method:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.tampering-method h3 {
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attack-example {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.example-step h4 {
    color: #1f2937;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.attack-note {
    color: #dc2626;
    font-style: italic;
    margin: 8px 0 0 0;
    font-weight: 500;
}

.prevention-tip {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #15803d;
    font-weight: 500;
}

.prevention-tip i {
    font-size: 1.5rem;
    color: #16a34a;
}

/* 垂直權限提升樣式 */
.privilege-scenarios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.scenario-card {
    border-radius: 16px;
    padding: 25px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.scenario-card.admin-access {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.scenario-card.api-bypass {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}

.scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.scenario-header i {
    font-size: 2rem;
}

.admin-access .scenario-header i,
.admin-access .scenario-header h3 {
    color: #dc2626;
}

.api-bypass .scenario-header i,
.api-bypass .scenario-header h3 {
    color: #0284c7;
}

.scenario-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.scenario-content h4 {
    color: #374151;
    margin: 15px 0 10px 0;
    font-size: 1.1rem;
}

.path-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 15px 0;
}

.path-item {
    background: rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #374151;
    text-align: center;
}

.scenario-note {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 15px 0 0 0;
    font-style: italic;
}

/* 強制瀏覽攻擊樣式 */
.browsing-techniques {
    margin: 30px 0;
}

.technique-section {
    margin-bottom: 40px;
}

.technique-section h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.technique-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.technique-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.technique-item:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.technique-item h4 {
    color: #1f2937;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.path-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.path {
    background: #1f2937;
    color: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.attack-tools {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #cbd5e1;
}

.attack-tools h3 {
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tools-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tool-item:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateX(3px);
}

.tool-item i {
    color: #10b981;
    font-size: 1.2rem;
    min-width: 20px;
}

.tool-item span {
    font-size: 0.95rem;
    color: #374151;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .tampering-types,
    .privilege-scenarios,
    .technique-grid,
    .tools-list {
        grid-template-columns: 1fr;
    }
    
    .path-list {
        grid-template-columns: 1fr;
    }
}

/* 真實案例分析樣式 */
.case-overview {
    margin: 30px 0;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    border: 2px solid #cbd5e1;
}

.case-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.case-icon.taiwan {
    background: linear-gradient(135deg, #dc2626, #991b1b);
}

.case-info h3 {
    color: #1f2937;
    font-size: 1.8rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.case-date {
    color: #6b7280;
    font-size: 1.1rem;
    margin: 0;
    font-style: italic;
}

.case-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.detail-section {
    padding: 25px;
    border-radius: 16px;
    border: 2px solid;
}

.detail-section.vulnerability {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.detail-section.impact {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.detail-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vulnerability h3 {
    color: #dc2626;
}

.impact h3 {
    color: #f59e0b;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.case-lesson {
    margin: 30px 0;
}

.case-lesson h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lesson-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: #dcfce7;
    transform: translateY(-2px);
}

.lesson-item i {
    color: #16a34a;
    font-size: 1.3rem;
    min-width: 24px;
}

.lesson-item span {
    font-size: 1rem;
    color: #15803d;
    font-weight: 500;
}

/* 攻擊流程樣式 */
.attack-flow {
    margin: 30px 0;
}

.attack-flow h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flow-steps {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
}

.flow-step {
    min-width: 200px;
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.flow-step:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateY(-3px);
}

.flow-step .step-number {
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 15px auto;
}

.flow-step h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.flow-step p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.flow-arrow {
    font-size: 1.5rem;
    color: #10b981;
    font-weight: bold;
    min-width: 30px;
}

/* 技術細節樣式 */
.technical-details {
    margin: 30px 0;
}

.technical-details h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.code-section {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid;
}

.code-section.normal {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #16a34a;
}

.code-section.attack {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.code-section h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.normal h4 {
    color: #15803d;
}

.attack h4 {
    color: #dc2626;
}

.fix-solution {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #16a34a;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #15803d;
    font-weight: 500;
}

.fix-solution i {
    font-size: 1.5rem;
    color: #16a34a;
}

/* 潛在危害分析樣式 */
.harm-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.harm-section {
    padding: 25px;
    border-radius: 16px;
    border: 2px solid;
}

.harm-section.direct {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.harm-section.indirect {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}

.harm-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.harm-header i {
    font-size: 2rem;
}

.direct .harm-header i,
.direct .harm-header h3 {
    color: #dc2626;
}

.indirect .harm-header i,
.indirect .harm-header h3 {
    color: #0284c7;
}

.harm-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.harm-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.harm-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.harm-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.harm-item i {
    font-size: 1.5rem;
    color: #374151;
    min-width: 24px;
    margin-top: 2px;
}

.harm-content h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.harm-content p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* CIA 三元組評估 */
.cia-assessment {
    margin: 40px 0;
}

.cia-assessment h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.cia-item {
    text-align: center;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.cia-item.high {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.cia-item.medium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.cia-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cia-icon {
    margin-bottom: 15px;
}

.cia-icon i {
    font-size: 2.5rem;
    color: #374151;
}

.cia-item h4 {
    color: #1f2937;
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.impact-level {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.high .impact-level {
    background: #dc2626;
    color: white;
}

.medium .impact-level {
    background: #f59e0b;
    color: white;
}

.cia-item p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .case-details,
    .harm-categories,
    .code-comparison,
    .lesson-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-stats,
    .cia-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        flex-direction: column;
        gap: 20px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* 經濟損失統計樣式 */
.cost-overview {
    text-align: center;
    margin: 40px 0;
}

.main-cost {
    padding: 40px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 20px;
    border: 3px solid #f59e0b;
}

.cost-number {
    font-size: 4rem;
    font-weight: 900;
    color: #dc2626;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px #fbbf24;
}

.cost-label {
    font-size: 1.3rem;
    color: #92400e;
    font-weight: 600;
}

.cost-breakdown {
    margin: 40px 0;
}

.cost-breakdown h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.breakdown-item {
    text-align: center;
    padding: 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.breakdown-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.breakdown-amount {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.breakdown-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.taiwan-regulations {
    margin: 40px 0;
}

.taiwan-regulations h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.regulation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.regulation-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border: 2px solid #dc2626;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.regulation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
}

.regulation-icon {
    margin-bottom: 15px;
}

.regulation-icon i {
    font-size: 2.5rem;
    color: #dc2626;
}

.regulation-card h4 {
    color: #1f2937;
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.penalty {
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.regulation-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* 檢測方法樣式 */
.detection-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.method-section {
    padding: 25px;
    border-radius: 16px;
    border: 2px solid;
}

.method-section.manual {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #16a34a;
}

.method-section.automated {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.method-header i {
    font-size: 2rem;
}

.manual .method-header i,
.manual .method-header h3 {
    color: #16a34a;
}

.automated .method-header i,
.automated .method-header h3 {
    color: #0284c7;
}

.method-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.method-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.method-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.method-item i {
    font-size: 1.5rem;
    color: #374151;
    min-width: 24px;
    margin-top: 2px;
}

.method-content h4 {
    color: #1f2937;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.method-content p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.tools-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tool-category h4 {
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.tool-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tool:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(3px);
}

.tool-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.tool-desc {
    font-size: 0.9rem;
    color: #6b7280;
}

.detection-recommendation {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 2px solid #8b5cf6;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #5b21b6;
    font-weight: 500;
}

.detection-recommendation i {
    font-size: 1.5rem;
    color: #8b5cf6;
}

/* 防禦策略樣式 */
.defense-framework {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.framework-section {
    padding: 25px;
    border-radius: 16px;
    border: 2px solid;
}

.framework-section.technical {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #16a34a;
}

.framework-section.management {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0284c7;
}

.framework-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.framework-header i {
    font-size: 2rem;
}

.technical .framework-header i,
.technical .framework-header h3 {
    color: #16a34a;
}

.management .framework-header i,
.management .framework-header h3 {
    color: #0284c7;
}

.framework-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.defense-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.defense-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.defense-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.defense-item i {
    font-size: 1.3rem;
    color: #374151;
    min-width: 24px;
}

.defense-item span {
    font-size: 1rem;
    color: #374151;
    font-weight: 500;
}

.defense-principles {
    margin: 40px 0;
}

.defense-principles h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.principle-card {
    text-align: center;
    padding: 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.principle-card:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.principle-icon {
    margin-bottom: 15px;
}

.principle-icon i {
    font-size: 2.5rem;
    color: #10b981;
}

.principle-card h4 {
    color: #1f2937;
    font-size: 1.2rem;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.principle-card p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .breakdown-grid,
    .regulation-cards,
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detection-methods,
    .defense-framework {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .breakdown-grid,
    .regulation-cards,
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-number {
        font-size: 3rem;
    }
}

/* 實作比較樣式 */
.implementation-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.wrong-way,
.right-way {
    padding: 25px;
    border-radius: 16px;
    border: 2px solid;
}

.wrong-way {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.right-way {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #16a34a;
}

.wrong-way h3 {
    color: #dc2626;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.right-way h3 {
    color: #16a34a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-note {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid #dc2626;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc2626;
    font-weight: 500;
}

.best-practices {
    margin: 40px 0;
}

.best-practices h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.practice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.practice-item:hover {
    background: #dcfce7;
    transform: translateY(-2px);
}

.practice-item i {
    color: #16a34a;
    font-size: 1.3rem;
    min-width: 24px;
}

.practice-item span {
    font-size: 1rem;
    color: #15803d;
    font-weight: 500;
}

/* API 設計樣式 */
.api-design-sections {
    margin: 30px 0;
}

.design-section {
    margin-bottom: 40px;
}

.design-section h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.id-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.bad-example,
.good-example {
    padding: 20px;
    border-radius: 12px;
    border: 2px solid;
}

.bad-example {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #dc2626;
}

.good-example {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #16a34a;
}

.bad-example h4 {
    color: #dc2626;
    margin-bottom: 15px;
}

.good-example h4 {
    color: #16a34a;
    margin-bottom: 15px;
}

/* 權限矩陣樣式 */
.privilege-matrix {
    margin: 40px 0;
}

.privilege-matrix h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.matrix-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.matrix-header,
.matrix-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
}

.matrix-header {
    background: #f3f4f6;
    font-weight: 600;
}

.matrix-row:nth-child(even) {
    background: #f9fafb;
}

.matrix-cell {
    padding: 12px 15px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.matrix-cell:last-child {
    border-right: none;
}

.matrix-cell.role {
    font-weight: 600;
    color: #374151;
    justify-content: flex-start;
}

.matrix-cell.allow {
    color: #16a34a;
    font-weight: bold;
    font-size: 1.2rem;
}

.matrix-cell.deny {
    color: #dc2626;
    font-weight: bold;
    font-size: 1.2rem;
}

.matrix-cell.limited {
    color: #f59e0b;
    font-weight: bold;
    font-size: 1.2rem;
}

.matrix-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* 練習環境樣式 */
.practice-environments {
    margin: 30px 0;
}

.practice-environments h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.env-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.env-card {
    text-align: center;
    padding: 25px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.env-card:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.env-icon {
    margin-bottom: 15px;
}

.env-icon i {
    font-size: 2.5rem;
    color: #10b981;
}

.env-card h4 {
    color: #1f2937;
    font-size: 1.3rem;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.env-card p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.env-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.env-features span {
    background: #f0fdf4;
    color: #15803d;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 檢查清單樣式 */
.security-checklist {
    margin: 40px 0;
}

.security-checklist h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.checklist-section {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
}

.checklist-section h4 {
    color: #374151;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.checklist-item label {
    color: #374151;
    font-size: 1rem;
    cursor: pointer;
    line-height: 1.5;
}

.reminder-note {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: #92400e;
    font-weight: 500;
}

.reminder-note i {
    font-size: 1.5rem;
    color: #f59e0b;
}

/* 課程總結樣式 */
.summary-section {
    margin: 30px 0;
}

.summary-section h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-points {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.point-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.point-item:hover {
    border-color: #10b981;
    background: #f0fdf4;
    transform: translateX(5px);
}

.point-number {
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.point-content h4 {
    color: #1f2937;
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.point-content p {
    color: #6b7280;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* 參考資源樣式 */
.resources-section {
    margin: 40px 0;
}

.resources-section h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.resource-category {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.resource-category:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
}

.resource-category h4 {
    color: #374151;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-links a {
    color: #3b82f6;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.resource-links a:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    transform: translateX(3px);
}

/* 下一步行動樣式 */
.next-steps {
    margin: 40px 0;
}

.next-steps h3 {
    color: #374151;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f0fdf4;
    border: 1px solid #16a34a;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.action-item:hover {
    background: #dcfce7;
    transform: translateX(5px);
}

.action-item i {
    color: #16a34a;
    font-size: 1.3rem;
    min-width: 24px;
}

.action-item span {
    font-size: 1rem;
    color: #15803d;
    font-weight: 500;
}

/* 感謝頁面樣式 */
.thank-you {
    text-align: center;
    margin: 50px 0 20px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 20px;
    border: 2px solid #0284c7;
}

.thank-you h2 {
    color: #0284c7;
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.thank-you p {
    color: #0369a1;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

/* 響應式調整 */
@media (max-width: 1024px) {
    .implementation-comparison,
    .id-comparison,
    .checklist-sections,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .practices-grid,
    .env-grid {
        grid-template-columns: 1fr;
    }
    
    .matrix-header,
    .matrix-row {
        grid-template-columns: 1fr;
    }
    
    .matrix-cell {
        justify-content: flex-start;
        border-bottom: 1px solid #e5e7eb;
    }
}

@media (max-width: 768px) {
    .thank-you h2 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
}