/* 基礎樣式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-primary: #1E3A8A;
    --blue-secondary: #3B82F6;
    --blue-light: #93C5FD;
    --gold-primary: #D4AF37;
    --gold-secondary: #B8860B;
    --dark-bg: #0F172A;
    --dark-secondary: #1E293B;
    --light-text: #F8FAFC;
    --gray-text: #94A3B8;
    --font-main: 'Noto Sans HK', sans-serif;
    --font-sc: 'Noto Sans SC', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--light-text);
    background-color: var(--dark-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 語言特定字體 */
body.lang-zh-Hant {
    font-family: var(--font-main);
}

body.lang-zh-Hans {
    font-family: var(--font-sc);
}

body.lang-en {
    font-family: 'Playfair Display', serif;
}

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

/* 通用樣式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}

/* 簡化分隔線設計 - 純金色橫線 */
.divider {
    width: 100px;
    height: 3px;
    margin: 0 auto;
    background-color: var(--gold-primary);
}

.gold-text {
    color: var(--gold-primary);
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-secondary));
    color: var(--light-text);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

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

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* 導航欄樣式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--light-text);
    max-width: 250px;
}

.logo-main {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.6rem;
    color: var(--gray-text);
    margin-top: 1px;
}

.logo-badges {
    display: flex;
    gap: 10px;
    margin-top: 3px;
}

.logo-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block; /* 確保正確顯示 */

}

.badge-license {
    background-color: var(--gold-primary);
    color: var(--dark-bg);
}

.badge-since {
    background-color: var(--blue-secondary);
    color: var(--light-text);
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.language-switcher {
    display: flex;
    margin-left: 30px;
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--gray-text);
    color: var(--gray-text);
    padding: 5px 12px;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:first-child {
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.lang-btn.active {
    background-color: var(--blue-primary);
    color: var(--light-text);
    border-color: var(--blue-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: var(--transition);
}

/* 主視覺區域樣式 */
.hero {
    height: 100vh;
    background:
        linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--blue-light);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 關於我們樣式 */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--blue-light);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-text);
}

.about-image {
    flex: 1;
}

.image-frame {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    z-index: -1;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

/* 服務範疇樣式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--dark-secondary);
    border-radius: 8px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--blue-secondary);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light-text);
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin-top: 15px;
}

.service-list li {
    color: var(--gray-text);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

/* 活動/事件樣式 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--dark-secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
}

.event-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--light-text);
    line-height: 1.4;
}

.event-date {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    padding: 5px 12px;
    background-color: rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.event-content p {
    color: var(--gray-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.event-location {
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.event-location p {
    font-size: 0.9rem;
    color: var(--blue-light);
}

/* 模態框樣式（活動詳細信息） */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: var(--dark-secondary);
    margin: 5% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    position: relative;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--gray-text);
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--gold-primary);
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.3;
}

.modal-details p {
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.modal-feature {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.modal-feature i {
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-right: 15px;
}

.modal-feature div h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.modal-feature div p {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 0;
}

/* 聯絡我們樣式 */
.contact-content {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.company-name {
    color: var(--blue-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--gold-primary);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.contact-item p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* 辦公時間收起/展開功能 */
.office-hours-toggle {
    color: var(--blue-light);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.office-hours-toggle:hover {
    color: var(--gold-primary);
}

.office-hours-toggle i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.office-hours-toggle.expanded i {
    transform: rotate(180deg);
}

.office-hours-details {
    display: none;
    margin-top: 10px;
    padding-left: 35px;
    color: var(--gray-text);
}

.office-hours-details.show {
    display: block;
}

.appointment-note {
    background-color: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--gold-primary);
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.appointment-note p {
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--dark-secondary);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.contact-form > p {
    color: var(--gray-text);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    color: var(--light-text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-secondary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-text);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* WhatsApp 按鈕樣式 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 32px;
}

/* 頁尾樣式 */
.footer {
    background-color: var(--dark-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-logo,
.footer-links,
.footer-services {
    flex: 1;
    min-width: 200px;
}

.footer-logo h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--light-text);
}

.footer-logo p {
    color: var(--gray-text);
    margin-bottom: 5px;
    font-size: 0.8rem;
}

.footer-tagline {
    color: var(--gold-primary) !important;
    font-weight: 600;
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-links h4,
.footer-services h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--light-text);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--gold-primary);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: var(--gray-text);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
    font-size: 0.8rem;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--blue-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--blue-primary);
    color: var(--light-text);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--blue-secondary);
    transform: translateY(-5px);
}

/* 新增報名表單樣式 */
#registrationFormContainer {
    transition: all 0.3s ease;
}

/* 取消按鈕樣式 */
#cancelRegistration {
    background-color: transparent;
    color: var(--gray-text);
    border: 1px solid var(--gray-text);
}

#cancelRegistration:hover {
    background-color: rgba(148, 163, 184, 0.1);
    color: var(--light-text);
    border-color: var(--light-text);
}

/* 新增修復標題高亮樣式 */
.section-title span.gold-text {
    color: var(--gold-primary) !important;
}

/* 表單加載狀態 */
.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 確保活動日期保持金色 */
.event-date.gold-text {
    color: var(--gold-primary) !important;
}

/* 確保頁尾標語保持金色 */
.footer-tagline.gold-text {
    color: var(--gold-primary) !important;
}

/* 確保公司英文名稱保持藍色 */
.company-name.blue-text {
    color: var(--blue-secondary) !important;
}

/* 導航連結顏色修復 */
.nav-link {
    color: var(--light-text) !important;
}

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

/* 主標題顏色修復 */
.hero-title {
    color: var(--light-text) !important;
}

/* 按鈕文字顏色修復 */
.btn-primary, .btn-secondary {
    color: var(--light-text) !important;
}

.btn-secondary {
    color: var(--gold-primary) !important;
}

/* 修復其他文本元素的顏色 */
.section-title,
.about-text h3,
.service-card h3,
.event-content h3,
.modal-details h3,
.contact-info h3,
.contact-form h3,
.footer-logo h2,
.footer-links h4,
.footer-services h4,
.contact-item h4,
.modal-feature div h4,
#registrationTitle {
    color: var(--light-text) !important;
}

/* 修復灰色文本 */
.section-subtitle,
.hero-description,
.about-text p,
.service-card p,
.event-content p,
.modal-details p,
.contact-form > p,
.contact-item p,
.modal-feature div p,
.footer-logo p,
.footer-links a,
.footer-services a,
.footer-bottom,
.footer-bottom a,
#registrationDesc {
    color: var(--gray-text) !important;
}

/* 修復藍色文字 */
.hero-subtitle,
.event-location p,
.footer-bottom a:hover,
.company-name {
    color: var(--blue-light) !important;
}
