﻿/* 自訂配色 - 豐富色彩方案 */
:root {
    /* 主色系 - 綠色 */
    --Applications-primary-color: #00874A;
    --Applications-primary-hover: #00a55a;
    --Applications-primary-dark: #006838;
    --Applications-primary-light: #e6f4ed;
    /* 輔色系 - 藍色科技感 */
    --Applications-secondary-color: #39c03b;
    --Applications-secondary-hover: #00a55a;

    --Applications-secondary-light: #e6f0ff;
    /* 強調色 - 橙色活力 */
    --Applications-accent-color: #ff6b35;
    --Applications-accent-hover: #ff5722;
    --Applications-accent-light: #fff3ee;
    /* 資訊色 - 青藍色 */
    --Applications-info-color: #17a2b8;
    --Applications-info-light: #d1ecf1;
    /* 成功色 - 青綠色 */
    --Applications-success-color: #28a745;
    --Applications-success-light: #d4edda;
    /* 背景色 */
    --Applications-bg-light: #f8f9fa;
    --Applications-bg-gradient-1: linear-gradient(135deg, #00874A 0%, #0066cc 100%);
    --Applications-bg-gradient-2: linear-gradient(135deg, #ff6b35 0%, #f7b731 100%);
    --Applications-bg-gradient-3: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    /* 中性色 */
    --Applications-sidebar-bg: #f5f5f5;
    --Applications-border-color: #dee2e6;
    --Applications-text-muted: #6c757d;
    --Applications-text-dark: #2d3436;
    /* 漸層背景 */
    --Applications-gradient-primary: linear-gradient(135deg, #00874A 0%, #00a55a 100%);
    --Applications-gradient-hero: linear-gradient(135deg, #00874A 0%, #0066cc 80%);
    --Applications-gradient-card: linear-gradient(135deg, rgba(0, 135, 74, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
}

.apps-accordion .apps-item {
    border: none;
    background: transparent;
    margin-bottom: 1rem;
    position: relative;
}

.apps-accordion .apps-toggle {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, var(--Applications-primary-color), #09500a);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 135, 74, 0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.apps-accordion .apps-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 135, 74, 0.3);
}

.apps-accordion .apps-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 102, 204, 0.18);
    background: linear-gradient(135deg, var(--Applications-primary-hover), var(--Applications-secondary-hover));
}

.apps-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.apps-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--Applications-primary-light);
    color: var(--Applications-primary-dark);
    box-shadow: inset 0 0 0 1px rgba(0, 135, 74, 0.15);
    flex-shrink: 0;
    font-size: 1rem;
}

.apps-name {
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.apps-desc {
    display: none;
}

.apps-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.apps-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.apps-badge i {
    font-size: 0.85rem;
}

.apps-chevron {
    transition: transform .2s ease;
    color: #fff;
}

.apps-item[data-expanded="true"] .apps-chevron {
    transform: rotate(180deg);
}

.apps-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    /*background: linear-gradient(180deg, rgba(0, 135, 74, 0.04), rgba(0, 102, 204, 0.05));*/
    border-radius: 0 0 6px 6px;
    background-color: #fff;
}

.apps-panel-inner {
    padding: 16px 10px 6px;
}

.apps-list-item {
    display: block;
    /*background: linear-gradient(90deg, rgba(0, 135, 74, 0.06), rgba(255, 107, 53, 0.08) 45%, #fff 45%);*/
    border: 1px solid #e0e0e0;
    border-left: 6px solid var(--Applications-accent-color);
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.apps-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--Applications-primary-hover);
    border-left-color: var(--Applications-accent-color);
   /* background: linear-gradient(90deg, rgba(0, 135, 74, 0.08), rgba(255, 107, 53, 0.12) 50%, #fff 50%);*/
}

.apps-list-item-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apps-list-item h4 {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--Applications-primary-color);
    min-width: 250px;
}

.apps-list-item p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

.apps-list-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 1.2rem;
    color: var(--Applications-accent-color);
    opacity: 0.3;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.apps-list-item:hover .apps-list-icon {
    opacity: 0.6;
    transform: translateY(-2px) scale(1.03);
}

.apps-item[data-expanded="true"] .apps-panel {
    animation: apps-fade-in 0.25s ease;
}


.applications-header {
    padding: 0.25rem 0.5rem 0.75rem;
}

.applications-page-title {
    font-weight: 800;
    font-size: 2rem;
    color: var(--Applications-primary-dark);
    margin-bottom: 1.75rem;
}

.applications-page-desc {
    font-size: 1.3rem;
    color: var(--Applications-text-muted);
    line-height: 1.6;
}


@keyframes apps-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
