/* Google Fonts 已由 functions.php wp_enqueue_style 加載，移除 @import 避免重複和渲染阻塞 */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

:root {
    --primary: #1f3b63;
    --accent: #2ab3a6;
    --text: #1f2937;
    --muted: #6b7280;
    --background: #f3f7fb;
    --card: rgba(255, 255, 255, 0.92);
    --border: rgba(148, 163, 184, 0.25);
    --shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft YaHei', sans-serif;
    line-height: 1.9;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 236, 255, 0.9), transparent 55%),
        radial-gradient(circle at 80% 0%, rgba(245, 249, 237, 0.82), transparent 45%),
        linear-gradient(180deg, #f8fbff 0%, #fdfdfd 60%, #f4f7fb 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

main {
    display: block;
    margin-top: 36px;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    /* 為移動端下拉菜單提供定位參考 */
    position: -webkit-sticky;
    position: sticky;
}

/* Header 两行布局 */
.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 14px;
    border-top: 1px solid rgba(31, 59, 99, 0.1);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    max-height: 90px;
    width: auto;
    display: block;
}

/* Logo 文字樣式 */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: var(--primary);
    text-decoration: none;
}

.logo-text .logo-primary {
    font-family: 'Noto Sans TC', 'PingFang TC', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo-text .logo-secondary {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 4px;
    color: var(--accent);
    text-transform: uppercase;
}

.logo-text:hover .logo-primary {
    color: var(--accent);
}

.logo-text:hover .logo-secondary {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

nav a:hover,
.nav-link.is-active {
    color: var(--accent);
}

nav a:hover::after,
.nav-link.is-active::after {
    opacity: 1;
    transform: translateY(0);
}

/* External link indicator */
.nav-external::after {
    content: "↗" !important;
    display: inline-block !important;
    position: static !important;
    opacity: 1 !important;
    transform: none !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: super;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 語言選擇器 - Header 右上角 */
.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

/* 漢堡菜單按鈕 - 桌面隱藏 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1.5px solid rgba(31, 59, 99, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.mobile-menu-toggle:hover .hamburger-line {
    background: #fff;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 漢堡菜單動畫 - 打開狀態 */
.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.lang-switcher button {
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(31, 59, 99, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-switcher button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 59, 99, 0.3);
}

.lang-switcher button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(42, 179, 166, 0.4);
}

.hero {
    margin: 60px auto 30px;
    max-width: 1200px;
    text-align: center;
    border-radius: 40px;
    color: var(--primary);
    position: relative;
    overflow: hidden;
    min-height: 520px;
    box-shadow: var(--shadow);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 14, 34, 0.65), rgba(16, 61, 90, 0.5));
    z-index: 1;
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 60px;
    color: #fff;
}

.hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 20px rgba(31, 59, 99, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
    color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 25px 40px rgba(31, 59, 99, 0.2);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.hero-meta span {
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(31, 59, 99, 0.12);
    font-weight: 600;
    color: var(--primary);
}

.home-panel {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 50px auto 30px;
    display: block;
}

.home-panel:not(.is-active) {
    display: none;
}

.home-sections {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.intro-section,
.choice-section,
.success-section,
.partners-section,
.custom-service {
    background: var(--card);
    border-radius: 32px;
    padding: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    align-items: center;
}

.intro-media img,
.intro-video video {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
    object-fit: cover;
}

.section-heading {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
}

.choice-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-card span {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary);
    background: rgba(42, 179, 166, 0.1);
}

.success-grid,
.partners-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.workshop-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.workshop-item {
    background: #fff;
    border-radius: 20px;
    padding: 0;
    border: 1px solid rgba(31, 59, 99, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.workshop-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.workshop-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.workshop-item:hover img {
    opacity: 0.9;
}

/* Image Lightbox Modal */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    cursor: pointer;
}

.image-lightbox.is-visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.image-lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    cursor: default;
}

.image-lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.image-lightbox-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.case-card,
.partner-card {
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(31, 59, 99, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-card img,
.partner-card img {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 12px;
    object-fit: cover;
}

.custom-service {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
}

.service-gallery {
    border-radius: 24px;
    border: 1px dashed rgba(31, 59, 99, 0.15);
    padding: 20px;
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-gallery .service-image {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-gallery .service-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.service-gallery .service-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 四張圖片 2x2 佈局 */
.service-gallery-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.service-gallery-4 .service-image img {
    height: 180px;
    object-fit: cover;
}

.service-gallery span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 59, 99, 0.05);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

.content-section {
    background: rgba(255, 255, 255, 0.96);
    margin: 40px 0 50px;
    padding: 60px;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    /* backdrop-filter 移除 — 大幅減少 GPU 開銷和卡頓 */
    position: relative;
    overflow: hidden;
    display: none;
}

.content-section.is-active {
    display: block;
}

/* 只在 section 可見時才加載背景圖（性能優化） */
.content-section.is-active::before,
.standalone-page .content-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/bg-wide.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    z-index: 0;
}

.scenic-panel.is-active::before, .standalone-page .scenic-panel::before { background-image: url('../images/about.jpg'); }
.philosophy-panel.is-active::before, .standalone-page .philosophy-panel::before { background-image: url('../images/gallery-1.jpg'); opacity: 0.18; }
.product-panel.is-active::before, .standalone-page .product-panel::before { background-image: url('../images/portrait.jpg'); opacity: 0.15; }
.program-panel.is-active::before, .standalone-page .program-panel::before { background-image: url('../images/bg-wide.jpg'); opacity: 0.16; }
.corporate-panel.is-active::before, .standalone-page .corporate-panel::before { background-image: url('../images/about.jpg'); opacity: 0.14; }
.news-panel.is-active::before, .standalone-page .news-panel::before { background-image: url('../images/hero.jpg'); opacity: 0.12; }

.content-section > * {
    position: relative;
    z-index: 1;
}

h2 {
    font-size: 34px;
    color: var(--primary);
    margin-bottom: 18px;
    position: relative;
    padding-left: 48px;
}

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

h3 {
    font-size: 24px;
    color: var(--primary);
    margin: 25px 0 18px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    color: var(--primary);
    margin: 20px 0 12px;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--text);
}

.highlight {
    color: var(--accent);
    font-weight: 600;
}

.mission-box {
    margin: 30px 0;
    padding: 24px 28px;
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(42, 179, 166, 0.08), rgba(31, 59, 99, 0.05));
    border: 1px solid rgba(42, 179, 166, 0.3);
}

.table-shell {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
    margin: 28px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 15px;
}

table th {
    background: var(--primary);
    color: #fff;
    padding: 16px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.85);
}

table tr:nth-child(even) td {
    background: rgba(245, 248, 255, 0.9);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin: 30px 0;
}

.case-study {
    background: rgba(247, 249, 255, 0.95);
    padding: 28px;
    margin: 24px 0;
    border-radius: 24px;
    border: 1px solid rgba(31, 59, 99, 0.12);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.case-study ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
}

.case-study li {
    margin: 10px 0;
    padding-left: 26px;
    position: relative;
}

.case-study li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.contact-section {
    background: linear-gradient(135deg, #1f3b63 0%, #2ab3a6 100%);
    color: white;
    padding: 60px;
    border-radius: 32px;
    margin: 60px 0;
    border: none;
    box-shadow: 0 35px 60px rgba(5, 17, 38, 0.45);
}

.booking-layout {
    margin-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr);
    gap: 32px;
}

.booking-form {
    background: rgba(255, 255, 255, 0.12);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 5; /* Ensure inputs are clickable */
}

.content-section::before {
    /* ... existing styles ... */
    pointer-events: none; /* Ensure background doesn't block clicks */
}

.option-group,
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-grid,
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.form-control,
.booking-form input,
.booking-form textarea {
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    font-size: 15px;
}

.contact-form button {
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
}

footer {
    background: #cddff7;
    margin-top: 60px;
    padding: 60px 30px 30px;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: start;
    gap: 30px;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    display: none;
}

.footer-social {
    display: none;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
}

.map-embed {
    margin-top: 20px;
    height: 200px;
    border-radius: 12px;
    border: 1px solid rgba(31,59,99,0.1);
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--primary);
}

/* Pre-Footer */
.pre-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
}

.pf-column {
    padding: 80px 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.pf-newsletter {
    background-color: #9e9e9e;
}

.pf-contact {
    background-color: #f0f4f1;
    color: var(--primary);
}

.pf-column h3 {
    font-size: 24px;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.pf-form button,
.pf-btn {
    display: inline-block;
    background: #fff;
    color: #333;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.pf-contact .pf-btn {
    background: #5d5d5d;
    color: #fff;
}

.pf-form button:hover,
.pf-btn:hover {
    opacity: 0.9;
}

.content-switcher {
    position: relative;
    margin-top: 40px;
}

/* Dropdown Navigation */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    min-width: 220px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 10px 0;
    list-style: none;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.has-dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(42, 179, 166, 0.1);
    color: var(--primary);
}

/* Corporate Sub-content */
.corp-sub-content {
    padding: 20px;
    animation: fadeUp 0.4s ease;
}

.back-to-corp {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    padding: 0;
    font-size: 15px;
}

.back-to-corp:hover {
    text-decoration: underline;
}

/* Corporate Hero Section */
.corp-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(31, 59, 99, 0.05) 0%, rgba(31, 59, 99, 0.02) 100%);
    border-radius: 20px;
}

.corp-hero h2 {
    padding-left: 0;
    font-size: 28px;
    margin-bottom: 16px;
}

.corp-hero h2::before {
    display: none;
}

.corp-hero p {
    font-size: 16px;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Corporate Sections */
.corp-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    border: 1px solid rgba(31, 59, 99, 0.08);
}

.corp-section-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

/* Service List */
.service-list {
    display: grid;
    gap: 16px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(31, 59, 99, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(31, 59, 99, 0.08);
}

.service-item .icon {
    font-size: 24px;
    flex-shrink: 0;
}

.service-item h4 {
    font-size: 17px;
    color: var(--primary);
    margin: 0 0 8px 0;
}

.service-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}

/* Advantage Grid */
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.advantage-item {
    padding: 24px;
    background: linear-gradient(135deg, rgba(31, 59, 99, 0.03) 0%, rgba(31, 59, 99, 0.01) 100%);
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(31, 59, 99, 0.06);
}

.advantage-item .icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.advantage-item h4 {
    font-size: 16px;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.advantage-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* Process Steps */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.process-step .step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.process-step h4 {
    font-size: 16px;
    color: var(--primary);
    margin: 0 0 6px 0;
}

.process-step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* Case Cards */
.case-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(31, 59, 99, 0.08);
    box-shadow: 0 4px 16px rgba(31, 59, 99, 0.04);
}

.case-card h4 {
    font-size: 17px;
    color: var(--primary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-card .case-tag {
    font-size: 12px;
    background: var(--accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.case-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}

/* Topic Cards Grid */
.topic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.topic-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(31, 59, 99, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(31, 59, 99, 0.1);
}

.topic-card .icon {
    font-size: 28px;
    margin-bottom: 14px;
}

.topic-card h4 {
    font-size: 17px;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.topic-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a4a7a 100%);
    border-radius: 20px;
    margin-top: 40px;
}

.cta-section h3 {
    color: #fff;
    font-size: 24px;
    margin: 0 0 12px 0;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin: 0 0 24px 0;
}

.cta-section .cta-button {
    background: #fff;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Highlight Box */
.highlight-box {
    padding: 24px;
    background: linear-gradient(135deg, rgba(93, 175, 125, 0.1) 0%, rgba(93, 175, 125, 0.05) 100%);
    border-radius: 14px;
    border-left: 4px solid var(--accent);
    margin: 20px 0;
}

.highlight-box h4 {
    font-size: 17px;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.highlight-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(31, 59, 99, 0.06);
}

.feature-item .icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-item h4 {
    font-size: 15px;
    color: var(--primary);
    margin: 0 0 8px 0;
}

.feature-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

/* Zone Grid for Plan Sections */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.zone-item {
    padding: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(31, 59, 99, 0.08);
    box-shadow: 0 4px 16px rgba(31, 59, 99, 0.04);
}

.zone-item h4 {
    font-size: 18px;
    color: var(--primary);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone-item .zone-icon {
    font-size: 24px;
}

.zone-item ul {
    margin: 0;
    padding-left: 20px;
}

.zone-item li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 6px;
}

/* Assessment Table Styles */
.corp-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
}

.corp-section table th {
    background: var(--primary);
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.corp-section table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(31, 59, 99, 0.08);
    font-size: 14px;
    color: var(--text);
}

.corp-section table tr:last-child td {
    border-bottom: none;
}

.corp-section table tr:hover td {
    background: rgba(31, 59, 99, 0.02);
}

/* Plan Exhibition Styles */
.plan-exhibit {
    margin-top: 30px;
}

.zone-content {
    margin-bottom: 30px;
}

.zone-content h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(31, 59, 99, 0.1);
}

.lecture-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.lecture-topics li {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    list-style: none;
    border-left: 3px solid var(--accent);
}

/* Corporate Content Lists */
.corp-sub-content ul {
    padding-left: 20px;
    margin: 16px 0;
}

.corp-sub-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.corp-sub-content strong {
    color: var(--primary);
}

/* Mobile Responsive for Corporate Content */
@media (max-width: 768px) {
    /* Custom Service 四張圖片移動端 */
    .custom-service {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-gallery-4 {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .service-gallery-4 .service-image img {
        height: 120px;
    }
    
    .corp-hero {
        padding: 20px;
    }

    .corp-hero h2 {
        font-size: 22px;
    }

    .corp-section {
        padding: 20px;
    }

    .corp-section-title {
        font-size: 18px;
    }

    .service-item {
        flex-direction: column;
        gap: 12px;
    }

    .advantage-list {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex-direction: column;
        gap: 12px;
    }

    .topic-list {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-section h3 {
        font-size: 20px;
    }

    .zone-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lecture-topics {
        grid-template-columns: 1fr;
    }

    .corp-section table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .corp-hero h2 {
        font-size: 20px;
    }

    .corp-hero p {
        font-size: 14px;
    }

    .cta-section .cta-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .content-section {
        padding: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .custom-service {
        grid-template-columns: 1fr;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 380px;
        border-radius: 20px;
        margin: 20px 15px;
    }

    .hero-content {
        padding: 50px 25px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .content-section {
        padding: 30px 20px;
        margin: 30px 0;
        border-radius: 20px;
        overflow-x: hidden;
    }

    /* Fix list bullets overflow on mobile */
    ul, ol {
        padding-left: 20px;
        margin-left: 0;
        overflow: visible;
    }
    
    li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .advantage-list,
    .service-list,
    .process-list,
    .detail-list,
    .esg-dimension-list {
        padding-left: 0;
        list-style-position: inside;
    }
    
    .advantage-list li,
    .service-list li,
    .process-list li,
    .detail-list li,
    .esg-dimension-list li {
        padding-left: 0;
        text-indent: 0;
    }
    
    .corporate-panel ul,
    .corp-sub-content ul {
        padding-left: 15px;
        list-style-position: inside;
    }

    .booking-layout {
        grid-template-columns: 1fr;
    }

    .pre-footer {
        grid-template-columns: 1fr;
    }

    .pf-column {
        padding: 50px 30px;
    }

    /* Mobile Header */
    .header-top {
        padding: 12px 15px;
    }

    .logo-text .logo-primary {
        font-size: 16px;
    }

    .logo-text .logo-secondary {
        font-size: 9px;
    }

    .lang-switcher button {
        padding: 4px 10px;
        font-size: 11px;
    }

    /* 顯示漢堡菜單按鈕 */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Navigation - 默認隱藏 */
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
        padding: 0;
        border-top: 1px solid rgba(31, 59, 99, 0.1);
        max-height: 70vh;
        overflow-y: auto;
        z-index: 1000;
    }

    /* Mobile Navigation - 打開狀態 */
    .header-nav.is-open {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }

    nav ul li {
        border-bottom: 1px solid rgba(31, 59, 99, 0.08);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 14px 20px;
        font-size: 14px;
        text-align: left;
    }

    nav a:hover,
    nav a.is-active {
        background: rgba(42, 179, 166, 0.08);
    }

    nav a::after {
        display: none;
    }

    /* Mobile Dropdown Menu */
    .has-dropdown {
        position: relative;
    }
    
    .has-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .has-dropdown > .nav-link::after {
        content: "▼";
        display: inline-block !important;
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s ease;
        position: static;
        opacity: 1;
        transform: none;
        background: none;
        width: auto;
        height: auto;
    }
    
    .has-dropdown.is-open > .nav-link::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        display: none;
        position: static;
        background: rgba(245, 247, 250, 0.95);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: auto;
        width: 100%;
        backdrop-filter: none;
    }
    
    .has-dropdown.is-open .dropdown-menu {
        display: flex;
        flex-direction: column;
    }
    
    /* Override desktop hover behavior on mobile */
    .has-dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .has-dropdown.is-open:hover .dropdown-menu {
        display: flex;
    }
    
    .dropdown-menu li {
        border-bottom: 1px solid rgba(31, 59, 99, 0.05);
    }
    
    .dropdown-menu li:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu a {
        padding: 12px 20px 12px 35px;
        font-size: 13px;
        color: var(--text);
        background: transparent;
    }
    
    .dropdown-menu a:hover {
        background: rgba(42, 179, 166, 0.1);
    }

    /* Mobile Grid Adjustments */
    .choice-grid,
    .success-grid,
    .partners-logos,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .workshop-gallery {
        grid-template-columns: 1fr;
    }

    /* Mobile Tables */
    .table-shell {
        margin: 15px -15px;
        border-radius: 0;
    }

    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 10px 8px;
    }

    /* Mobile Typography */
    h2 {
        font-size: 22px;
        padding-left: 32px;
    }

    h2::before {
        width: 22px;
    }

    h3 {
        font-size: 18px;
    }

    h4 {
        font-size: 16px;
    }

    p {
        font-size: 15px;
    }

    /* Health Management Sections */
    .hm-importance,
    .hm-concept,
    .hm-intro,
    .hm-roles,
    .hc-section {
        margin-bottom: 25px;
    }

    .highlight-quote {
        padding: 15px;
        font-size: 15px;
    }

    /* Mobile Contact Section */
    .contact-section {
        padding: 40px 25px;
    }

    .contact-section h2 {
        font-size: 22px;
    }

    /* Mobile Modal */
    .modal-content {
        padding: 30px 20px;
        width: 95%;
        max-width: 360px;
    }
}

@media (max-width: 540px) {
    .hero {
        margin: 15px 10px;
        border-radius: 16px;
        min-height: 320px;
    }

    .hero-content {
        padding: 35px 18px;
    }

    .hero h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .container {
        padding: 0 12px 25px;
    }

    .content-section {
        padding: 20px 15px;
        border-radius: 16px;
        margin: 20px 0;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-meta span {
        padding: 6px 12px;
        font-size: 11px;
    }

    /* Small Mobile Header */
    .header-top {
        padding: 10px 12px;
    }

    .header-right {
        gap: 8px;
    }

    .logo-text .logo-primary {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .logo-text .logo-secondary {
        font-size: 7px;
        display: none;
    }

    .lang-switcher {
        gap: 3px;
    }

    .lang-switcher button {
        padding: 3px 6px;
        font-size: 10px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .hamburger-line {
        width: 18px;
    }

    /* Small Mobile Navigation */
    nav a {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Small Mobile Form */
    .booking-form {
        padding: 18px 12px;
        border-radius: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .checkbox-grid,
    .radio-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-control,
    .booking-form input,
    .booking-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Small Mobile Footer */
    footer {
        padding: 30px 12px 15px;
        border-radius: 20px 20px 0 0;
    }

    .footer-column h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .footer-column ul {
        font-size: 12px;
        line-height: 1.7;
    }

    .footer-column ul li {
        margin-bottom: 6px;
    }

    .map-embed {
        height: 140px;
        border-radius: 8px;
    }

    .footer-bottom {
        font-size: 11px;
        text-align: center;
    }

    /* Small Mobile Pre-footer */
    .pf-column {
        padding: 30px 15px;
    }

    .pf-column h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    .pf-form button,
    .pf-btn {
        padding: 12px 24px;
        font-size: 13px;
    }

    /* Small Mobile Sections */
    .intro-section,
    .choice-section,
    .success-section,
    .partners-section,
    .custom-service {
        padding: 25px 15px;
        border-radius: 16px;
    }

    .section-heading {
        font-size: 18px;
        margin-bottom: 18px;
    }

    /* Small Mobile Contact */
    .contact-section {
        padding: 30px 15px;
        border-radius: 16px;
        margin: 40px 0;
    }

    .contact-section h2 {
        font-size: 20px;
        padding-left: 28px;
    }

    .contact-section h2::before {
        width: 18px;
    }

    /* Small Mobile Typography */
    h2 {
        font-size: 20px;
        padding-left: 28px;
        margin-bottom: 14px;
    }

    h2::before {
        width: 18px;
        height: 3px;
    }

    h3 {
        font-size: 17px;
        margin: 18px 0 12px;
    }

    h4 {
        font-size: 15px;
        margin: 15px 0 10px;
    }

    p {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 12px;
    }

    /* Small Mobile Quiz */
    .quiz-container {
        padding: 20px 15px;
    }

    /* Small Mobile Constitution Cards */
    .constitution-card {
        padding: 15px;
    }

    /* Small Mobile Tables */
    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px 6px;
    }

    /* Small Mobile Modal */
    .modal-content {
        padding: 25px 15px;
        width: 95%;
        border-radius: 16px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 22px;
    }

    /* Small Mobile Workshop */
    .workshop-gallery {
        gap: 15px;
    }

    .workshop-item {
        border-radius: 12px;
    }
}

/* Extra Small Devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 20px;
    }

    .hero p {
        font-size: 13px;
    }

    .logo-text .logo-primary {
        font-size: 13px;
    }

    .lang-switcher button {
        padding: 2px 5px;
        font-size: 9px;
    }

    h2 {
        font-size: 18px;
        padding-left: 24px;
    }

    h2::before {
        width: 16px;
    }

    h3 {
        font-size: 16px;
    }

    .content-section {
        padding: 15px 12px;
    }

    .contact-section {
        padding: 25px 12px;
    }

    .booking-form {
        padding: 15px 10px;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 12px;
    }

    .hero-meta span {
        padding: 5px 10px;
        font-size: 10px;
    }

    .footer-column ul {
        font-size: 11px;
    }

    .pf-column h3 {
        font-size: 14px;
    }
}

/* Modal Dialog */
.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.newsletter-modal.is-visible {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden; /* Prevent overflow */
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 8px 12px;
    z-index: 10;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.modal-header {
    display: none; /* Header removed */
}

.modal-content input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.modal-content button {
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.modal-content button:hover:not(:disabled) {
    background: var(--primary-dark, #1a8a7d);
}

.modal-content button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 179, 166, 0.1);
}

.modal-content input.error {
    border-color: #d32f2f;
}

#subscribe-error {
    font-size: 14px;
    text-align: left;
}

.modal-close-btn {
    margin-top: 16px;
    background: var(--secondary, #6c757d) !important;
}

.modal-close-btn:hover {
    background: #5a6268 !important;
}

/* Spacing Adjustments */
.hero {
    margin-top: 20px; /* Reduced from 60px */
}

.pre-footer {
    margin-bottom: -20px; /* Pull footer closer */
    position: relative;
    z-index: 10;
}

footer {
    margin-top: 0;
    padding-top: 40px;
}

/* Refined Backgrounds */
body {
    background: linear-gradient(180deg, #f8fbff 0%, #eff6fc 100%);
}

.content-section::before {
    filter: blur(4px) saturate(0.8);
}

/* Larger Logo */
.logo img {
    max-height: 100px; /* Increased from 90px */
}

/* Email Subscribers Plugin Overrides */
.es_shortcode_form {
    margin: 0 !important;
}

.es_shortcode_form .es_textbox_class {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    margin-bottom: 12px;
}

.es_shortcode_form .es_button {
    width: 100%;
    background: #fff !important;
    color: #333 !important;
    font-weight: 600 !important;
    padding: 14px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer;
}

.es_shortcode_form .es_button:hover {
    opacity: 0.9;
}

.es_msg {
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
}

/* ========================================
   企業服務子頁面樣式
   ======================================== */

.corp-sub-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.corp-sub-content h2 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    padding-left: 0;
}

.corp-sub-content h2::before {
    display: none;
}

.corp-sub-content .english-subtitle {
    font-size: 14px;
    color: #888;
    font-style: italic;
    margin-bottom: 24px;
}

.corp-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.corp-section:last-of-type {
    border-bottom: none;
}

.corp-section h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 600;
}

.corp-section h4 {
    font-size: 17px;
    color: var(--primary);
    margin: 20px 0 12px;
    font-weight: 600;
}

.corp-section h5 {
    font-size: 16px;
    color: var(--text);
    margin: 16px 0 8px;
    font-weight: 600;
}

.corp-section p {
    line-height: 1.8;
    margin-bottom: 12px;
    color: #555;
}

/* Service List */
.service-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.service-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 16px;
}

.service-list li strong {
    color: var(--primary);
}

/* Advantage List */
.advantage-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.advantage-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.advantage-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 20px;
}

/* Process List */
.process-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: process;
}

.process-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 16px;
    line-height: 1.7;
    counter-increment: process;
}

.process-list li::before {
    content: counter(process);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Detail List */
.detail-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.detail-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    line-height: 1.7;
}

.detail-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

/* ESG Dimension List */
.esg-dimension-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.esg-dimension-list li {
    padding: 16px 20px;
    margin-bottom: 12px;
    background: rgba(42, 179, 166, 0.06);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    line-height: 1.7;
}

/* Highlight Box */
.corp-section.highlight-box {
    background: linear-gradient(135deg, rgba(42, 179, 166, 0.08) 0%, rgba(31, 59, 99, 0.06) 100%);
    padding: 24px;
    border-radius: 16px;
    border-bottom: none;
    margin-bottom: 32px;
}

.corp-section.highlight-box h3 {
    color: var(--primary);
}

/* Commitment Box */
.commitment-box {
    background: linear-gradient(135deg, #fff 0%, rgba(42, 179, 166, 0.05) 100%);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(42, 179, 166, 0.2);
}

.commitment-box ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.commitment-box ul li {
    padding: 8px 0 8px 24px;
    position: relative;
}

.commitment-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Case Cards */
.cases-section {
    border-bottom: none !important;
}

.case-card {
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-left: 4px solid var(--accent);
}

.case-card h4 {
    font-size: 17px;
    color: var(--primary);
    margin: 0 0 16px 0;
}

.case-card p {
    margin-bottom: 10px;
    font-size: 14px;
}

/* Topic Cards */
.topic-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.topic-card h5 {
    color: var(--primary);
    margin: 0 0 8px 0;
}

.topic-card p {
    font-size: 14px;
    margin: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #1a4a6e 100%);
    border-radius: 20px;
    margin-top: 32px;
}

.cta-section p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.cta-section .cta-button {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-section .cta-button:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Back Button */
.back-to-corp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(31, 59, 99, 0.08);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.back-to-corp:hover {
    background: rgba(31, 59, 99, 0.15);
    transform: translateX(-4px);
}

/* Topics Section */
.topics-section h4 {
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 24px 0 16px;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .corp-sub-content {
        padding: 10px 0;
    }
    
    .corp-sub-content h2 {
        font-size: 22px;
    }
    
    .corp-section {
        margin-bottom: 24px;
        padding-bottom: 18px;
    }
    
    .corp-section h3 {
        font-size: 18px;
    }
    
    .service-list li,
    .advantage-list li,
    .process-list li {
        font-size: 14px;
    }
    
    .case-card {
        padding: 18px;
    }
    
    .cta-section {
        padding: 24px 16px;
    }
    
    .cta-section p {
        font-size: 14px;
    }
}

/* ========================================
   CORPORATE PAGE IMAGE GALLERIES
   ======================================== */

/* Hero Gallery - 2 columns */
.corp-hero-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.corp-hero-gallery img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.corp-hero-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Row Gallery - 3 columns */
.corp-gallery-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.corp-gallery-row img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.corp-gallery-row img:hover {
    transform: scale(1.03);
}

/* Single Hero Image */
.corp-hero-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Image Grid - 2x2 */
.corp-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.corp-image-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Side by Side - Image with content */
.corp-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
}

.corp-side-by-side img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.corp-side-by-side.reverse {
    direction: rtl;
}

.corp-side-by-side.reverse > * {
    direction: ltr;
}

/* Responsive for Corporate Images */
@media (max-width: 768px) {
    .corp-hero-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .corp-hero-gallery img {
        height: 220px;
    }

    .corp-gallery-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .corp-gallery-row img {
        height: 180px;
    }

    .corp-image-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .corp-image-grid img {
        height: 200px;
    }

    .corp-side-by-side {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .corp-side-by-side.reverse {
        direction: ltr;
    }
}

/* ===================================
   在線商店頁面樣式 - Store Section
   =================================== */

/* Store Hero */
.store-panel {
    padding: 40px 20px;
}

.store-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(42, 179, 166, 0.08) 0%, rgba(31, 59, 99, 0.05) 100%);
    border-radius: 20px;
}

.store-hero h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.store-subtitle {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.store-hero p:last-of-type {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Category Filter Buttons */
.store-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.category-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(31, 59, 99, 0.25);
}

.category-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(31, 59, 99, 0.25);
}

/* Products Grid */
.store-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-card.hidden {
    display: none;
}

/* Product Image */
.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.badge-new {
    background: #e74c3c;
}

.product-badge.badge-sale {
    background: #f39c12;
}

/* Product Info */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 2.8em;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.price-original {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
}

/* Product Button */
.product-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 179, 166, 0.35);
}

/* Store Footer */
.store-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(31, 59, 99, 0.03) 0%, rgba(42, 179, 166, 0.05) 100%);
    border-radius: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Info Cards */
.store-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Store CTA */
.store-cta {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.store-cta p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 20px;
}

.store-cta .cta-button {
    display: inline-block;
    padding: 14px 35px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.store-cta .cta-button:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31, 59, 99, 0.3);
}

/* Store Responsive */
@media (max-width: 1024px) {
    .store-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .store-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .store-hero h2 {
        font-size: 1.8rem;
    }
    
    .store-subtitle {
        font-size: 1.1rem;
    }
    
    .store-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 0.95rem;
        min-height: auto;
    }
    
    .product-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    
    .price-current {
        font-size: 1.1rem;
    }
    
    .product-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .store-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .info-card {
        padding: 15px 10px;
    }
    
    .info-icon {
        font-size: 1.5rem;
    }
    
    .info-card h4 {
        font-size: 0.9rem;
    }
    
    .info-card p {
        font-size: 0.75rem;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .store-products-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .store-categories {
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}
