/* --- General Styles --- */
body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    color: #343a40;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Header --- */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #343a40;
}

.main-nav a {
    margin-left: 25px;
    font-size: 1rem;
    color: #495057;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

/* --- Hero Section --- */
.hero-section {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* --- Philosophy Section --- */
.philosophy-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.philosophy-image {
    flex: 1;
    max-width: 50%;
}

.philosophy-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
}

.philosophy-text {
    flex: 1;
    max-width: 50%;
}

.philosophy-text h2 {
    font-size: 2.5rem;
    color: #343a40;
    margin-bottom: 1rem;
}

.philosophy-text h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.philosophy-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #495057;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #fff;
}

/* --- Portal Section --- */
.portal-section {
    padding: 80px 0;
}

.portal-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #343a40;
}

.portal-tabs {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background-color: #e9ecef;
}

.tab-link {
    flex-grow: 1;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #495057;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-link:hover {
    background-color: #dee2e6;
}

.tab-link.active {
    color: #007bff;
    background-color: #fff;
    border-bottom-color: #007bff;
}

.tab-content {
    padding: 40px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.city-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.city-list a {
    display: block;
    padding: 15px 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.city-list a:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
    transform: translateY(-3px);
}

.city-list a.coming-soon {
    color: #adb5bd;
    cursor: not-allowed;
}

.city-list a.coming-soon:hover {
    border-color: #dee2e6;
    box-shadow: none;
    transform: none;
}

.city-name {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
}

.branch-name {
    font-size: 0.9rem;
    color: #6c757d;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .philosophy-content {
        flex-direction: column;
        text-align: center;
    }
    .philosophy-image,
    .philosophy-text {
        max-width: 80%;
    }
    .philosophy-image {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .philosophy-text h2 { font-size: 2rem; }
    .philosophy-text h3 { font-size: 1.25rem; }
    .philosophy-image, .philosophy-text { max-width: 100%; }
}

/* --- Footer --- */
.main-footer {
    background-color: #343a40;
    color: #f8f9fa;
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}