/* ================= 基礎設定與字體 ================= */
/* ================= 主要內容區塊 ================= */
main {
    flex: 1;
    background-color: #fff;
}
.media-section {
    width: 100%;
    margin: 0;
    padding: 0;
}
.media-item {
    width: 100%;
    height: auto;
    display: block;
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ================= 底部雙欄聯繫區塊 ================= */
.contact-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 120px;
    display: flex;
    gap: 40px;
}
.contact-card {
    flex: 1;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 60px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* 【修正重點】：從 space-between 改為 flex-start，讓間距由文字的 margin-bottom 控制 */
    justify-content: flex-start;
}

.contact-card a:hover, .contact-card a:focus , .contact-card a:active{
    color: #fff;
}
.contact-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-align: left;
}
.contact-text {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 1px;
    /* 這個 35px 將會精準成為兩邊按鈕與文字統一的間距 */
    margin: 0 0 35px 0;
    text-align: left;
}
/* 統一按鈕設計 */
.btn-submit {
    background-color: #e65c00;
    color: #fff;
    border: none;
    padding: 15px 45px;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(230, 92, 0, 0.3);
}
.btn-submit:hover {
    background-color: #cc5200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 92, 0, 0.4);
}
.btn-line {
    background-color: #06C755;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
}
.btn-line:hover {
    background-color: #05a647;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.4);
}
.line-action-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.qr-placeholder {
    width: 100px;
    height: 100px;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.qr-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
}
/* ================= FOOTER 區塊 ================= */
footer {
    background-color: #2b2b2b;
    color: #ddd;
    padding: 60px 0 20px;
    font-family: "Noto Sans TC", sans-serif;
}
.footer-top {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px 50px;
    border-bottom: 1px solid #444;
}
.footer-col {
    flex: 1;
}
.footer-logo {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}
.footer-col h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li {
    margin-bottom: 20px;
}
.footer-col a {
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: #e65c00;
}
.footer-col span {
    color: #888;
    font-size: 12px;
}
.footer-bottom {
    max-width: 1100px;
    margin: 30px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #777;
}
.copyright-text a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 500;
}
.social-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.fb-icon {
    color: #888;
    text-decoration: none;
    font-size: 16px;
    font-family: serif;
    font-weight: bold;
    transition: color 0.3s;
}
.fb-icon:hover {
    color: #fff;
}
.btn-top {
    color: #888;
    text-decoration: none;
    border: 1px solid #555;
    padding: 6px 20px;
    font-size: 11px;
    letter-spacing: 2px;
    transition: all 0.3s;
}
.btn-top:hover {
    background-color: #444;
    color: #fff;
}

/* ================= RWD 響應式設定 ================= */
@media screen and (max-width: 900px) {
header {
    height: auto;
    min-height: 54px;
    flex-wrap: wrap;
    padding-bottom: 10px;
}
.logo {
    padding-top: 10px;
    padding-left: 20px;
}
.header-right {
    margin-left: auto;
    border-left: none;
    padding-top: 10px;
}
/* nav {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 15px 20px 5px;
}
nav ul {
    margin-right: 0;
} */
}

@media screen and (max-width: 768px) {
.page-header-inner h1 {
    font-size: 24px;
    letter-spacing: 4px;
}
.contact-section {
    flex-direction: column;
    padding: 60px 20px 80px;
    gap: 25px;
}
.contact-card {
    padding: 40px 30px;
}
.footer-top {
    flex-direction: column;
    gap: 40px;
}
.footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
}
.social-links {
    justify-content: center;
}
}