/* 全局樣式 */
:root {
    --primary-color: #23232a;
    --secondary-color: #18181c;
    --accent-color: #fff;
    --gradient-start: #0a0a0f;
    --gradient-end: #18181c;
    --text-gradient1: #fff;
    --text-gradient2: #e0e0e0;
    --text-gradient3: #b0b0b0;
    --button-gradient1: #23232a;
    --button-gradient2: #18181c;
    --button-gradient3: #23232a;
    --dark-color: #0a0a0f;
    --light-color: #fff;
    --card-bg: rgba(30, 30, 36, 0.85);
    --card-shadow: 0 4px 24px 0 rgba(255,255,255,0.04);
    --glow: 0 0 0 0 #fff0;
}

body {
    font-family: 'Noto Sans TC', 'Inter', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* 導航欄樣式 */
.navbar {
    background: transparent;
    box-shadow: none; 
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff !important;
    text-shadow: 0 2px 8px #0a0a0f99;
}

.navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-weight: 500;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
    color: #fff !important;
}

/* 主要橫幅樣式 */
.hero-section {
    background: none;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 7rem;
    padding-bottom: 3rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, #fff, #e0e0e0, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 16px #23232a33);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-section .lead {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 2.2rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-section .sub-title {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #0a0a0f99;
}

/* 主要按鈕樣式 */
.btn-primary, .btn-gradient {
    background: linear-gradient(90deg, var(--button-gradient1), var(--button-gradient2), var(--button-gradient3));
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 0.85rem 2.7rem;
    border-radius: 2.5rem;
    font-weight: 700;
    font-size: 1.12rem;
    box-shadow: 0 0 0 0 #fff0;
    transition: background 0.2s, box-shadow 0.2s, border 0.2s;
    text-shadow: 0 2px 8px #0a0a0f99;
}

.btn-primary:hover, .btn-gradient:hover {
    background: linear-gradient(90deg, #23232a, #23232a);
    color: #fff;
    box-shadow: 0 0 24px 2px #fff2;
    border: 1.5px solid #fff2;
}

/* 服務卡片樣式 */
.card {
    background: rgba(30, 30, 36, 0.60);
    border: 1.5px solid rgba(255,255,255,0.13);
    border-radius: 1.5rem;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
    color: #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    backdrop-filter: blur(10px) saturate(120%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    pointer-events: none;
    box-shadow: 0 0 32px 8px #fff1 inset;
    opacity: 0.10;
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.22);
    background: rgba(40, 40, 48, 0.68);
}

.card-body {
    padding: 2.2rem 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.card-text {
    color: #b0b0b0;
}

/* 關於我們部分 */
#about {
    background: var(--card-bg);
    border-radius: 1.5rem;
    margin-top: 2rem;
    padding: 2.5rem 1.5rem;
    box-shadow: var(--card-shadow);
}

#about img {
    box-shadow: 0 4px 16px #fff1;
    border-radius: 1rem;
}

/* 聯絡表單樣式 */
.form-control {
    padding: 0.8rem;
    border-radius: 0.7rem;
    border: 1px solid #23232a;
    background: rgba(30,30,36,0.7);
    color: #fff;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem #fff2;
    border-color: #fff2;
    background: rgba(30,30,36,0.9);
    color: #fff;
}

/* 頁尾樣式 */
footer {
    background: rgba(10,10,15,0.98);
    border-top: 1px solid #18181c;
    box-shadow: 0 -2px 16px #fff1;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
    color: #fff !important;
    text-shadow: 0 2px 8px #0a0a0f99;
}

.social-links a:hover {
    color: #e0e0e0 !important;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
    .card-body {
        padding: 1.2rem 0.7rem;
    }
    #about {
        padding: 1.2rem 0.5rem;
    }
    .hero-section .container {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
}

.feature-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(20,20,28,0.98) 60%, rgba(10,10,15,1) 100%);
    padding-top: 4rem;
    padding-bottom: 4rem;
    margin-top: 0;
    border-radius: 0 0 2rem 2rem;
    box-shadow: 0 -2px 32px 0 #000a, 0 -1px 0 0 rgba(255,255,255,0.04) inset;
    /* 更細緻、重複平鋪的小型電路圖SVG背景 */
    background-image:
        url('data:image/svg+xml;utf8,<svg width="120" height="80" viewBox="0 0 120 80" fill="none" xmlns="http://www.w3.org/2000/svg"><g opacity="0.06" stroke="%23fff" stroke-width="1"><rect x="10" y="10" width="100" height="60" rx="12"/><path d="M30 40h60"/><path d="M60 10v60"/><circle cx="30" cy="40" r="3"/><circle cx="90" cy="40" r="3"/><circle cx="60" cy="10" r="3"/><circle cx="60" cy="70" r="3"/></g></svg>'),
        linear-gradient(180deg, rgba(20,20,28,0.98) 60%, rgba(10,10,15,1) 100%);
    background-repeat: repeat, no-repeat;
    background-size: 220px 140px, cover;
    background-position: center, center;
}

.feature-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 100%);
    border-radius: 0 0 2rem 2rem;
    z-index: 2;
    pointer-events: none;
}

.feature-section > .container {
    position: relative;
    z-index: 3;
}

.feature-section .card .card-body i.lni {
    font-size: 112px;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
}

.news-section {
    background: none;
    margin-top: 0;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.news-title {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
}
 
.news-card {
    background: rgba(30,30,36,0.72);
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.13);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.22);
    transform: translateY(-4px) scale(1.02);
}
.news-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #23232a;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.85) contrast(1.1);
    display: block;
}
.news-content {
    padding: 1rem 1rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.news-title {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.news-headline-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}
.news-headline {
    flex: 1 1 0%;
    min-width: 0;
    word-break: break-all;
    white-space: normal;
    margin-bottom: 0;
}
.news-date {
    color: #b0b0b0;
    font-size: 0.98rem;
    flex-shrink: 0;
    margin-left: 0.7rem;
    margin-top: 0.1rem;
    white-space: nowrap;
}
.news-desc {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}
.news-meta {
    font-size: 0.92rem;
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: space-between;
}
.news-meta .news-views {
    margin-left: auto !important;
    flex-shrink: 0;
}
.news-meta i {
    font-size: 1em;
    margin-right: 0.2em;
    vertical-align: middle;
    color: #b0b0b0;
}
 

.tabs-section {
    background: none;
    margin-top: 0;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.tabs-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0.4rem 0.5rem;
    margin: 0 0 2.2rem 0;
    border: none;
    border-radius: 2.5rem;
    background: rgba(24,25,38,0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    box-shadow: 0 2px 16px 0 #0002;
}
.tabs-nav::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -10px;
    height: 2px;
    background: linear-gradient(90deg, #23232a 0%, #181926 100%);
    opacity: 0.18;
    border-radius: 1px;
}
.tab-item {
    color: #e0e0e0;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 0.7rem 2.2rem;
    background: none;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    position: relative;
    outline: none;
    z-index: 1;
}
.tab-item.active {
    color: #fff;
    background: rgba(30,30,40,0.22); /* 黑色半透明 */
    box-shadow: 0 2px 12px #23232a22;
}
.tab-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.07);
}
.tabs-content {
    width: 100%;
}
.tab-panel {
    display: none;
    animation: fadeIn 0.4s;
}
.tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.tabs-section .news-card {
    background: rgba(30,30,36,0.72);
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.13);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}
.tabs-section .news-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.22);
    transform: translateY(-4px) scale(1.02);
}
.tabs-section .news-img-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #23232a;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tabs-section .news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.2) brightness(0.85) contrast(1.1);
    display: block;
}
.tabs-section .news-content {
    padding: 1rem 1rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.tabs-section .news-headline {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    margin-top: 0.15rem;
    line-height: 1.25;
}
.tabs-section .news-desc {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}
@media (max-width: 1200px) {
    .tabs-section .col-md-3 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
@media (max-width: 991px) {
    .tabs-section .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .tabs-section .news-img-wrapper { aspect-ratio: 4/3; }
}
@media (max-width: 767px) {
    .tabs-section .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .tabs-section .news-img-wrapper { aspect-ratio: 4/3; }
    .tabs-section .row { flex-direction: column; }
}

.card-col {
    flex: 0 0 20%;
    max-width: 20%;
}
@media (max-width: 991px) {
    .card-col { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
    .card-col { flex: 0 0 100%; max-width: 100%; }
}

/* 精選區塊 */
.featured-section {
    background: none;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}
.section-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
}
.featured-card {
    background: rgba(30,30,36,0.82);
    border-radius: 1.3rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    position: relative;
}
.featured-card:hover {
    box-shadow: 0 8px 32px 0 #6d28d944, 0 2px 16px 0 #0002;
    background: rgba(40,40,48,0.92);
    transform: translateY(-4px) scale(1.02);
}
.featured-img-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #23232a;
    position: relative;
}
.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.1) brightness(0.92) contrast(1.08);
}
.featured-tags {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.featured-tags .tag {
    background: #181926;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 1.2rem;
    padding: 0.22rem 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px #0002;
    opacity: 0.92;
}
.featured-title {
    color: #fff;
    font-size: 1.13rem;
    font-weight: 700;
    margin: 1.1rem 1.1rem 0.7rem 1.1rem;
    line-height: 1.35;
    min-height: 3.2em;
}
.featured-meta {
    color: #b0b0b0;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 0 1.1rem 1.1rem 1.1rem;
}
.featured-meta i {
    font-size: 1em;
    margin-right: 0.3em;
    vertical-align: middle;
    color: #b0b0b0;
}
.category-list {
    background: rgba(24,25,38,0.92);
    border-radius: 1.3rem;
    padding: 2.2rem 1.2rem;
    box-shadow: 0 2px 16px 0 #0002;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.category-item {
    background: #111216;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    border-radius: 1.2rem;
    padding: 0.7rem 1.5rem 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    transition: background 0.18s, color 0.18s;
    cursor: pointer;
}
.category-item:hover {
    background: #23232a;
    color: #fff;
}
.category-item .count {
    background: #23232a;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 1.2rem;
    padding: 0.18rem 1.1rem;
    margin-left: 1.1rem;
    min-width: 2.2em;
    text-align: center;
    box-shadow: 0 2px 8px #0002;
}
@media (max-width: 991px) {
    .featured-section .col-lg-8, .featured-section .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .category-list {
        margin-top: 2.5rem;
    }
}

.featured-horizontal-card {
    background: rgba(30,30,36,0.88);
    border-radius: 1.3rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.10);
    transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
    position: relative;
    min-height: 220px;
}
.featured-horizontal-card:hover {
    box-shadow: 0 8px 32px 0 #6d28d944, 0 2px 16px 0 #0002;
    background: rgba(40,40,48,0.95);
    transform: translateY(-4px) scale(1.01);
}
.featured-img-col {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 220px;
    background: #23232a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
    min-height: 180px;
}
.featured-content-col {
    flex: 1 1 0%;
    min-width: 0;
    padding: 1.5rem 1.5rem 1.2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: none;
}
.featured-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.featured-tags .tag {
    background: #181926;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: 1.2rem;
    padding: 0.22rem 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px #0002;
    opacity: 0.92;
}
.featured-tags .tag-secondary {
    background: #23232a;
    color: #fff;
}
.featured-title {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    line-height: 1.35;
}
.featured-desc {
    color: #b0b0b0;
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.featured-meta-row {
    color: #b0b0b0;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 0.5rem;
}
.featured-meta-row i {
    font-size: 1em;
    margin-right: 0.3em;
    vertical-align: middle;
    color: #b0b0b0;
}
.featured-meta-row .btn {
    font-size: 0.98rem;
    border-radius: 1.2rem;
    padding: 0.32rem 1.2rem;
    font-weight: 700;
    margin-left: 0.5rem;
}
@media (max-width: 991px) {
    .featured-horizontal-card {
        flex-direction: column;
        min-height: unset;
    }
    .featured-img-col {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }
    .featured-content-col {
        padding: 1.2rem 1rem 1rem 1rem;
    }
}

.weather-card {
    background: linear-gradient(135deg, #181926 60%, #23232a 100%);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
    color: #fff;
    padding: 2.2rem 1.2rem 1.5rem 1.2rem;
    margin-top: 2.2rem;
    text-align: center;
    min-width: 0;
    min-height: 340px;
    position: relative;
    overflow: hidden;
}
.weather-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.weather-city {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
}
.weather-icon img {
    width: 84px;
    height: 84px;
    margin-bottom: 0.5rem;
}
.weather-temp {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: 1px;
}
.weather-temp .unit {
    font-size: 1.2rem;
    font-weight: 500;
    margin-left: 0.1em;
}
.weather-desc {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}
.weather-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    width: 100%;
    margin-top: 1.2rem;
}
.weather-detail {
    flex: 1 1 0;
    text-align: center;
}
.weather-detail .label {
    font-size: 0.98rem;
    color: #b0b0b0;
    margin-bottom: 0.2rem;
}
.weather-detail .value {
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
}
.weather-detail .unit {
    font-size: 0.98rem;
    font-weight: 400;
    color: #b0b0b0;
    margin-left: 0.1em;
}
@media (max-width: 991px) {
    .weather-card {
        margin-top: 2.5rem;
        min-height: 260px;
        padding: 1.5rem 0.7rem 1.2rem 0.7rem;
    }
    .weather-detail-row {
        gap: 0.5rem;
    }
}

.external-links-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2.2rem;
}
.external-link-card {
    background: rgba(30,30,36,0.82);
    border-radius: 1.2rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.13);
    padding: 1.2rem 1.3rem 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: box-shadow 0.18s, background 0.18s;
    border: 1px solid rgba(255,255,255,0.08);
}
.external-link-card:hover {
    background: rgba(40,40,48,0.92);
    box-shadow: 0 4px 24px 0 #6d28d933;
}
.external-link-title {
    color: #8ab4f8;
    font-size: 1.13rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.18s, text-shadow 0.18s;
    word-break: break-all;
}
.external-link-title:hover {
    color: #fff;
    text-shadow: 0 0 8px #6d28d9cc;
}
.external-link-desc {
    color: #b0b0b0;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-left: 0.1rem;
}

.hero-bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-bg-video::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(10,10,15,0.82) 60%, rgba(24,24,28,0.82) 100%);
    z-index: 2;
    pointer-events: none;
}

/* YTPlayer 背景影片樣式 */
.player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 多層遮罩效果 */
.player::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(10,10,15,0.95) 60%, rgba(24,24,28,0.95) 100%);
    z-index: 1;
    pointer-events: none;
}

.player::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

/* 內容區塊樣式 */
.hero-section h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-section .lead {
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* 確保影片在移動裝置上也能正常顯示 */
@media (max-width: 768px) {
    .player {
        height: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(0,0,0,0.1) 60%, rgba(40,40,50,0.15) 100%),
                radial-gradient(circle at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
    /* 可依需求調整透明度或漸層顏色 */
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-marquee {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.1em;
    opacity: 0.32;
    animation: marquee-move 16s linear infinite;
    user-select: none;
    text-shadow: 0 2px 24px #000, 0 1px 0 #fff2;
}

@keyframes marquee-move {
    0% { transform: translateX(-60%); }
    100% { transform: translateX(100%); }
}

.infinite-marquee-wrap {
    width: 100%;
    overflow: hidden;
    background: none;
    position: relative;
    padding: 0.7rem 0 0.7rem 0;
    margin-bottom: 0.5rem;
    z-index: 5;
}
.infinite-marquee {
    display: flex;
    align-items: center;
    gap: 3.2rem;
    font-size: 2.8rem;
    font-weight: 900;
    font-family: 'Inter', 'Segoe UI', 'Arial Black', Impact, Arial, sans-serif;
    color: #fff;
    opacity: 0.7;
    letter-spacing: 0.08em;
    white-space: nowrap;
    animation: infinite-marquee-move 28s linear infinite;
    user-select: none;
    text-shadow: 0 2px 24px #000, 0 1px 0 #fff2;
    line-height: 1.05;
    text-transform: uppercase;
}
.infinite-marquee span {
    display: inline-block;
    padding: 0 1.2rem;
    border-radius: 1.2rem;
    background: rgba(30,30,36,0.12);
    box-shadow: 0 2px 12px #0001;
    margin-right: 0.2rem;
    transition: background 0.2s, color 0.2s;
}
.infinite-marquee span:hover {
    background: rgba(40,40,48,0.32);
    color: #fff;
    opacity: 0.7;
}
@keyframes infinite-marquee-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .infinite-marquee {
        font-size: 1.6rem;
        gap: 1.2rem;
    }
    .infinite-marquee span {
        padding: 0 0.7rem;
    }
} 