/* 網站主題顏色 */
:root {
    --color-primary: #3B82F6; /* 天空藍 */
    --color-secondary: #60A5FA; /* 淡藍 */
    --color-accent: #4ADE80; /* 淡綠 */
    --color-dark: #1E40AF; /* 深藍 */
    --color-light: #DBEAFE; /* 最淺藍 */
    --color-nature: #166534; /* 自然綠 */
}

/* 基本樣式 */
body {
    font-family: 'Noto Sans TC', sans-serif;
}

/* 自定義樣式 */
.content-auto {
    content-visibility: auto;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-dark);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.project-card {
    background-color: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--color-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-accent);
    color: var(--color-nature);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background-color: var(--color-nature);
    color: white;
    transform: translateY(-2px);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.qa-item {
    border-bottom: 1px solid #e2e8f0;
}

.qa-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.qa-question:hover {
    color: var(--color-primary);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding-bottom: 0;
}

.qa-answer.active {
    max-height: 500px;
    padding-bottom: 1rem;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.document-item:hover {
    background-color: var(--color-light);
}

.message-item {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.message-item:hover {
    border-color: var(--color-primary);
    background-color: rgba(59, 130, 246, 0.05);
}

/* 平滑滾動 */
html {
    scroll-behavior: smooth;
}

/* 圖片響應式 */
.responsive-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.txtb {
    font-weight: bold;
}

/* 背景色彩 */
.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.bg-dark {
    background-color: var(--color-dark);
}

.bg-light {
    background-color: var(--color-light);
}

.bg-nature {
    background-color: var(--color-nature);
}

/* 文字顏色 */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

.text-dark {
    color: var(--color-dark);
}

.text-light {
    color: var(--color-light);
}

.text-nature {
    color: var(--color-nature);
}

/* 響應式佈局調整 */
@media (max-width: 768px) {
    .container {
        width: 100%;
    }
}

/* 審查書件分頁樣式 */
.document-tab.active {
    background-color: var(--color-primary);
    color: white;
}

.document-content {
    display: none;
}

.document-content.active {
    display: block;
}

/* 模態框樣式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}