/* 參考福智佛教学院官网的设计风格 */
:root {
    --primary-color: #2c5aa0;
    --primary-light: #4a7bc8;
    --primary-dark: #1e4080;
    --secondary-color: #d4a574;
    --accent-color: #e67e22;
    --text-color: #2c3e50;
    --text-light: #5d6d7e;
    --text-muted: #7f8c8d;
    --light-gray: #f8f9fa;
    --lighter-gray: #f1f3f4;
    --border-color: #e1e8ed;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 6px 20px rgba(44, 90, 160, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #e5b885 100%);
    --gradient-hero: linear-gradient(135deg, rgba(44, 90, 160, 0.85) 0%, rgba(212, 165, 116, 0.75) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 導覽列樣式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要內容區域 */
.main-content {
    margin-top: 80px;
}

.hero-section {
    background-image: url('images/herosection-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.academic-year {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.4;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.9) 0%, rgba(255, 193, 7, 0.85) 100%);
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid rgba(255, 193, 7, 0.6);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    color: var(--white);
    border-color: var(--white);
    background-color: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* 內容區域樣式 */
.content-section {
    padding: 80px 0;
    position: relative;
}

.bg-light {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--lighter-gray) 100%);
    position: relative;
}

.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23f0f0f0" fill-opacity="0.4"><circle cx="30" cy="30" r="2"/></g></g></svg>');
    pointer-events: none;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: rgba(44, 90, 160, 0.2);
    border-radius: 1px;
}

/* 資訊卡片樣式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.info-card p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 10px;
}

/* 申請要求樣式 */
.requirements-list {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.requirement-item {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.requirement-item:hover {
    transform: translateX(12px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--secondary-color);
}

.requirement-item:hover {
    transform: translateX(10px);
}

.requirement-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* 流程時間軸樣式 */
.process-timeline {
    display: grid;
    gap: 30px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 35px;
    padding: 30px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.05), transparent);
    transition: left 0.6s ease;
}

.process-step:hover::before {
    left: 100%;
}

.process-step:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.3s ease;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(44, 90, 160, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.process-step:hover .step-number::after {
    transform: scale(1.1);
    border-color: rgba(44, 90, 160, 0.4);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* 表格樣式 */
.schedule-table,
.tuition-table {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.schedule-table.expanded {
    max-width: 1400px;
}

.schedule-table th,
.schedule-table td,
.tuition-table th,
.tuition-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}

.schedule-table.expanded th {
    width: 20%;
}

.schedule-table.expanded th:first-child {
    width: 18%;
}

.schedule-table.expanded th:last-child {
    width: 42%;
}

.schedule-table th,
.tuition-table th {
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.schedule-table tbody tr,
.tuition-table tbody tr {
    transition: all 0.3s ease;
}

.schedule-table tbody tr:hover,
.tuition-table tbody tr:hover {
    background: linear-gradient(90deg, var(--light-gray) 0%, var(--lighter-gray) 100%);
    transform: scale(1.01);
}

.schedule-table tr:last-child td,
.tuition-table tr:last-child td {
    border-bottom: none;
}

/* 其他費用樣式 */
.other-fees {
    margin-top: 50px;
}

.tuition-notes {
    margin-top: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.tuition-notes h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tuition-notes ul {
    line-height: 1.8;
    color: var(--text-color);
    padding-left: 20px;
}

.tuition-notes li {
    margin-bottom: 12px;
    position: relative;
}

.tuition-notes li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

/* 費用表格特別樣式 */
.tuition-table thead th {
    font-size: 0.95rem;
    padding: 18px 15px;
}

.tuition-table tbody td {
    font-size: 0.95rem;
    vertical-align: middle;
}

.tuition-table tbody tr:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

/* 文件清單樣式 */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.document-item {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 3px solid var(--secondary-color);
}

.document-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--accent-color);
}

.document-item h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.document-item ul {
    list-style: none;
}

.document-item li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    transition: all 0.2s ease;
}

.document-item li:hover {
    padding-left: 30px;
    color: var(--primary-color);
}

.document-item li::before {
    content: '▶';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.document-item li:hover::before {
    transform: translateX(2px);
    color: var(--secondary-color);
}

/* 聯絡資訊樣式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-item {
    background: var(--white);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-item:hover::after {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.contact-item p {
    margin-bottom: 8px;
}

/* PDF查看器樣式 */
.pdf-viewer-section {
    padding: 40px 0;
    background-color: var(--light-gray);
}

.pdf-viewer {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 30px;
}

.pdf-viewer iframe {
    border: none;
}

/* 頁尾樣式 */
.footer {
    background: linear-gradient(135deg, var(--text-color) 0%, #1a252f 100%);
    color: var(--white);
    padding: 50px 0 25px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    z-index: 999;
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.back-to-top:hover::before {
    width: 100px;
    height: 100px;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    display: flex;
}

/* 圖標樣式 */
.icon-download::before {
    content: '⬇';
    margin-right: 8px;
}

.icon-external::before {
    content: '↗';
    margin-right: 8px;
}

.icon-arrow-up::before {
    content: '↑';
}

.icon-arrow-down::before {
    content: '▼';
    margin-left: 8px;
    font-size: 0.8em;
}

.icon-file-word::before {
    content: '📄';
    margin-right: 8px;
}

.icon-file-open::before {
    content: '📝';
    margin-right: 8px;
}

/* 下拉選單樣式 */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.dropdown-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 5px;
    list-style: none;
    padding: 8px 0;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    font-size: 0.8rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.download-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 導覽列下拉選單樣式 */
.dropdown-nav {
    position: relative;
}

.dropdown-toggle-nav {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

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

.dropdown-toggle-nav::after {
    content: '▼';
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown-toggle-nav.active::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 10px;
    list-style: none;
    padding: 8px 0;
}

.nav-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-download-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-download-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* 獎助學金樣式 */
.scholarship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.scholarship-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.scholarship-card.primary {
    border-top: 5px solid var(--primary-color);
}

.scholarship-card.secondary {
    border-top: 5px solid var(--secondary-color);
}

.scholarship-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    background: var(--gradient-primary);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.card-content {
    padding: 30px;
    flex: 1;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.card-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.card-features {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.feature-icon {
    background: var(--primary-color);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

.support-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.support-list li {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.support-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.support-icon {
    font-size: 1.2rem;
}

.support-title strong {
    color: var(--text-color);
    font-size: 1rem;
}

.support-list p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

.note-box {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
}

.note-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.note-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.note-box li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.note-box li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* 獎助學金響應式設計 */
@media (max-width: 768px) {
    .scholarship-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .scholarship-card {
        border-radius: 12px;
    }
    
    .card-content {
        padding: 25px;
    }
    
    .card-content h3 {
        font-size: 1.2rem;
    }
    
    .card-features {
        gap: 12px;
    }
    
    .support-list li {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .note-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-section {
        padding: 80px 0;
        min-height: 60vh;
        display: flex;
        align-items: center;
    }

    .page-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .content-section {
        padding: 60px 0;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px 20px;
    }

    .schedule-table,
    .tuition-table {
        font-size: 0.9rem;
    }

    .schedule-table th,
    .schedule-table td,
    .tuition-table th,
    .tuition-table td {
        padding: 10px;
    }

    .schedule-table.expanded {
        font-size: 0.8rem;
    }

    .schedule-table.expanded th,
    .schedule-table.expanded td {
        padding: 8px 12px;
    }

    .tuition-table {
        font-size: 0.85rem;
    }

    .tuition-table th,
    .tuition-table td {
        padding: 8px 6px;
        font-size: 0.8rem;
    }

    .tuition-notes {
        padding: 20px 15px;
    }

    .tuition-notes ul {
        padding-left: 15px;
        font-size: 0.9rem;
    }

    .schedule-table.expanded br {
        display: none;
    }

    .timeline-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .pdf-viewer iframe {
        height: 600px;
    }

    .logo-image {
        height: 35px;
    }

    .dropdown-menu {
        right: auto;
        left: 0;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        padding: 0;
    }

    .nav-dropdown-menu.show {
        display: block;
    }

    .nav-dropdown-menu.hide {
        display: none;
    }

    .nav-download-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .academic-year {
        font-size: 0.95rem;
        padding: 10px 18px;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
    }

    .info-grid,
    .documents-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card,
    .document-item,
    .contact-item {
        padding: 25px 20px;
    }

    .requirement-item {
        padding: 25px 20px;
    }

    .tuition-table {
        font-size: 0.75rem;
    }

    .tuition-table th,
    .tuition-table td {
        padding: 6px 4px;
    }

    .tuition-notes {
        padding: 15px 12px;
        margin-top: 20px;
    }

    .tuition-notes h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .tuition-notes ul {
        font-size: 0.85rem;
        padding-left: 12px;
    }

    .pdf-viewer iframe {
        height: 400px;
    }

    .logo-image {
        height: 30px;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out;
}

/* 滾動顯示動畫 */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* 加載動畫 */
.page-loading {
    animation: fadeInUp 1s ease-out;
}

/* 改進的可訪問性 */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 改進的按鈕可訪問性 */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* 自定義滾動條 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}