/* ------------------------------
   基本設定
------------------------------ */
:root {
    --red: #d32f2f;
    --blue: #1976d2;
    --bg-overlay: rgba(248, 241, 233, 0.80);
    --card-bg: rgba(255, 255, 255, 0.12);
    --card-bg-fallback: rgba(255, 255, 255, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans TC', Arial, sans-serif;
    background-image: url('media/images/myco_bg03.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: -1;
}

/* ------------------------------
   Header
------------------------------ */
.site-header {
    text-align: center;
    padding: 20px 0;
}

.banner {
    max-width: 1440px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform .3s ease;
}

@media (hover: hover) {
    .banner:hover {
        transform: scale(1.02);
    }
}

h1 {
    color: var(--red);
    font-size: 2.5rem;
    margin: 10px 0;
}

h2 {
    color: var(--red);
    font-size: 1.5rem;
    font-weight: 400;
}

/* ------------------------------
   Section 標題
------------------------------ */
.section-title {
    text-align: center;
    color: var(--red);
    font-size: 1.8rem;
    margin: 20px 0;
    position: relative;
}

.section-title::after {
    content: '';
    width: 50px;
    height: 2px;
    background: var(--red);
    display: block;
    margin: 5px auto;
}

.center-text {
    text-align: center;
}

/* ------------------------------
   Contact Info
------------------------------ */
.contact-info p {
    text-align: center;
    color: var(--blue);
    font-weight: bold;
    margin: 10px 0;
}

/* ------------------------------
   Facebook Plugin
------------------------------ */
.fb-wrapper {
    margin: 40px auto;
    max-width: 380px;
    text-align: center;
    background: #f8f1e9;
    padding: 10px;
    border-radius: 8px;
}

/* ------------------------------
   Social Links
------------------------------ */
.social-links {
    text-align: center;
    margin-top: 20px;
}

.qr-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.qr-list img {
    width: 80px;
    height: 80px;
    transition: transform .3s ease;
}

@media (hover: hover) {
    .qr-list img:hover {
        transform: scale(1.1);
    }
}

.highlight {
    color: var(--red);
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
    margin: 15px 0;
}

/* ------------------------------
   Members Table
------------------------------ */
.members table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

@supports not (backdrop-filter: blur(6px)) {
    .members table {
        background: var(--card-bg-fallback);
    }
}

.members th, .members td {
    border: 1px solid #ddd;
    padding: 12px;
}

.members th {
    color: var(--blue);
    font-weight: bold;
    width: 25%;
    text-align: center;
}

/* ------------------------------
   Conductor
------------------------------ */
.conductor h3 {
    color: var(--red);
    margin-top: 30px;
}

/* ------------------------------
   Join Form
------------------------------ */
.join-form {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

@supports not (backdrop-filter: blur(6px)) {
    .join-form {
        background: var(--card-bg-fallback);
    }
}

.form-intro {
    text-align: center;
    margin-bottom: 20px;
    color: var(--red);
}

.join-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
    color: var(--red);
}

.join-form input,
.join-form select,
.join-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid var(--red);
    border-radius: 6px;
    background: rgba(255,255,255,0.18);
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.3);
    background: rgba(255,255,255,0.15);
}

.submit-btn {
    background: var(--red);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
    width: 100%;
    transition: opacity .3s ease;
}

@media (hover: hover) {
    .submit-btn:hover {
        opacity: 0.85;
    }
}

/* ------------------------------
   RWD
------------------------------ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.2rem; }
    .section-title { font-size: 1.5rem; }
    .qr-list img { width: 60px; height: 60px; }
    .members table { font-size: 0.9rem; }
}