/* ============================================
   香港宗親會聯誼總會網站 - 樣式表
   設計風格：傳統文化現代詮釋
   色彩方案：深紅色 (#8B2C2C) + 金色 (#D4AF37) + 白色
   ============================================ */

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

html {
    font-family: 'Noto Sans TC', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
    color: #2C3E50;
    line-height: 1.6;
}

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    color: #8B2C2C;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: #8B2C2C;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #D4AF37;
}

/* ============ Container ============ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============ Navigation ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E8E8E8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 3rem;
    width: 3rem;
    object-fit: contain;
}

.brand-text {
    display: none;
}

.brand-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #8B2C2C;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: #999;
    margin: 0;
}

@media (min-width: 768px) {
    .brand-text {
        display: block;
    }
}

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

.nav-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #8B2C2C;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 2px;
    background-color: #2C3E50;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* ============ Hero Section ============ */
.hero {
    position: relative;
    height: 24rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .hero {
        height: 31rem;
    }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #FFFFFF;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .hero-text h2 {
        font-size: 3.5rem;
    }
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 32rem;
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #8B2C2C;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #A63C3C;
    box-shadow: 0 4px 12px rgba(139, 44, 44, 0.3);
}

/* ============ Sections ============ */
.section {
    padding: 4rem 0;
    animation: fadeInUp 0.6s ease-out;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.bg-white {
    background-color: #FFFFFF;
}

.bg-light {
    background-color: #F5F5F5;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .section-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* ============ About Section ============ */
.section-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.section-highlight {
    display: flex;
    align-items: center;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(139, 44, 44, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
    padding: 2rem;
    width: 100%;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-number {
    font-size: 2rem;
    font-weight: 700;
    color: #8B2C2C;
    min-width: 4rem;
}

.highlight-item:nth-child(2) .highlight-number {
    color: #D4AF37;
}

.highlight-text h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.highlight-text p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* ============ News Section ============ */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background-color: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #D4AF37;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.125rem;
    margin: 0;
}

.news-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.news-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============ Culture Section ============ */
.culture-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .culture-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.culture-image {
    order: 2;
}

@media (min-width: 768px) {
    .culture-image {
        order: 1;
    }
}

.culture-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.culture-text {
    order: 1;
}

@media (min-width: 768px) {
    .culture-text {
        order: 2;
    }
}

.culture-list {
    list-style: none;
    margin-top: 1.5rem;
}

.culture-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.culture-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #D4AF37;
    border-radius: 50%;
}

/* ============ FAQ Section ============ */
.faq-container {
    max-width: 48rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #D4AF37;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #2C3E50;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #F5F5F5;
}

.faq-icon {
    font-size: 1.5rem;
    color: #8B2C2C;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #F5F5F5;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
}

/* ============ Contact Section ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: #666;
    margin: 0;
}

.contact-form-box {
    background: linear-gradient(135deg, rgba(139, 44, 44, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    padding: 2rem;
}

.contact-form-box h3 {
    margin-bottom: 1.5rem;
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-box input,
.contact-form-box textarea {
    padding: 0.75rem;
    border: 1px solid #E8E8E8;
    border-radius: 0.5rem;
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    outline: none;
    border-color: #8B2C2C;
    box-shadow: 0 0 0 3px rgba(139, 44, 44, 0.1);
}

.contact-form-box textarea {
    resize: vertical;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
    margin-top: 1rem;
}

.form-message.success {
    background-color: #D4EDDA;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #F8D7DA;
    color: #721C24;
    display: block;
}

/* ============ Footer ============ */
.footer {
    background-color: #8B2C2C;
    color: #FFFFFF;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h4 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: #D4AF37;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============ Responsive ============ */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section {
        padding: 2rem 0;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}
