@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;700&display=swap');

:root {
    /* 主要橘色系顏色 */
    --primary-color: #FF9F67;
    --secondary-color: #FFCC80;
    --accent-color: #FF6B35;
    --tertiary-color: #FFF8F0;

    /* 舊版相容性 - 對應到新的橘色系 */
    --banner-color: #FF9F67;
    --thirth-color: #FFAA70;

    /* 功能性顏色 */
    --danger-color: #D27276;
    --success-color: #4CAF50;
    --message-color: #3456AF;
    --warning-color: #FFA726;
    --info-color: #29B6F6;

    /* 文字顏色 */
    --text-color: #4A4A4A;
    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #9CA3AF;

    /* 背景顏色 */
    --white: #ffffff;
    --background-light: #ffffff;
    --light-gray: #f5f5f5;
    --dark-bg: #2C2C2C;
    --footer-bg: #292929;

    /* 邊框與分隔 */
    --border-color: #dee2e6;
    --disabled-color: #d2d1d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', "微軟正黑體", sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--tertiary-color);
}

/* Header Styles */
.top-banner {
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-top {
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-search-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: inline-block;
    text-decoration: none;
}

.btn i {
    margin-right: 5px;
    vertical-align: middle;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #B55B5F;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 400px;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 9999px;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 159, 103, 0.1);
}

.search-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-login-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    font-weight: 500;
}


.navigation {
    background: var(--white);
    padding: 0;
    border-top: 1px solid #f0f0f0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 1rem 0;
    transition: color 0.3s;
    display: block;
}

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

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul i {
    margin-right: 5px; /* 圖示和文字之間的距離 */
    vertical-align: middle; /* 垂直對齊 */
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Link Styles */
a {
    color: var(--primary-color);
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* Content Styles */
.content {
    margin-top: 0px;
    padding: 2rem 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    font-size: 1rem;
}

.form-control:hover {
    border-color: #555;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Footer Styles */
footer {
    background: var(--footer-bg);
    color: #9CA3AF;
    padding: 4rem 1.5rem 2rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    font-style: italic;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.footer-section p {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: #3F3F3F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #3F3F3F;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
    max-width: 1400px;
    margin: 0 auto;
}

.scroll-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}


.scroll-bottom {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-bottom:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}


/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    
}

.table tr:hover {
    background-color: #f5f5f5;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

.table th {
    background: #FFF3E6;
}

.error-message {
    margin-bottom: 20px;
    font-size: 1.2rem;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.success-message {
    margin-bottom: 20px;
    font-size: 1.2rem;
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}
.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    transition: opacity 0.5s ease-in-out;
}
.fade-out {
    opacity: 0;
}