/* 全局變量 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #29b6f6;
    --dark-bg: #121a2e;
    --darker-bg: #0a1328;
    --light-text: #e6e9ef;
}

/* 基本樣式 */
body {
    font-family: "Microsoft JhengHei", Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* 導航欄樣式 */
.navbar {
    background-color: var(--darker-bg) !important;
    padding: 1rem 2rem;
    top: 60px;
}

@media (max-width: 768px) {
    .navbar {
        top: 0;
    }
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: var(--light-text) !important;
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* 頁腳樣式 */
.footer {
    background-color: var(--darker-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin-bottom: 0;
    text-align: center;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 公共區域標題樣式 */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* 按鈕樣式 */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 首頁 Hero 區域樣式 */
.hero-section {
    position: relative;
    height: 70vh;
    width: 100vw;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.hero-section .carousel,
.hero-section .carousel-inner {
    width: 100%;
    height: 100%;
}

.hero-section .carousel-item {
    width: 100%;
    height: 100%;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    left: 10%;
    max-width: 600px;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
}

/* 服務區域樣式 */
.services-section {
    padding: 5rem 0;
    background-color: var(--darker-bg);
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 30px;
    transition: all 0.3s;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(41, 182, 246, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* 優勢區域樣式 */
.advantages-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.advantage-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.advantage-icon {
    background-color: rgba(13, 110, 253, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

/* 子頁面 Hero 樣式 */
.hero-section.subpage {
    height: 40vh;
}

.hero-image {
    object-fit: cover;
    height: 40vh;
    width: 100%;
    filter: brightness(0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* 關於我們頁面樣式 */
.about-section {
    padding: 5rem 0;
    background-color: var(--darker-bg);
}

.about-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.about-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 時間線樣式 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 45%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.timeline-content:hover {
    border: 1px solid rgba(41, 182, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    z-index: 1;
}

/* 聯繫我們頁面樣式 */
.contact-section {
    padding: 5rem 0;
    background-color: var(--darker-bg);
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(41, 182, 246, 0.3);
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text p,
.contact-text a {
    font-size: 1.1rem;
    color: var(--light-text);
    text-decoration: none;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

.map-container {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 隱私政策頁面樣式 */
.privacy-section {
    padding: 5rem 0;
    background-color: var(--darker-bg);
}

.privacy-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.privacy-content h3 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
} 