:root {
    --primary-color: #C4181E;
    /* 深紅色，主色 */
    --secondary-color: #3A4F66;
    /* 深藍灰色，輔助色 */
    --accent-color: #E8A923;
    /* 柔和金黃色，點綴色 */
    --dark-color: #2A2F38;
    /* 深灰藍色，深色背景 */
    --light-color: #F7F8FA;
    /* 淺灰白，淺色背景 */
    --gray-color: #7A8799;
    /* 中灰色，次要文字 */
    --text-color: #333333;
    /* 深灰黑色，主要文字 */
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;

    /* 新增CSS變量 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #FF6B6B);
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #FFD384);
    --gradient-dark: linear-gradient(135deg, var(--dark-color), #4A5568);
    --blur-effect: blur(10px);
    --card-hover-transform: translateY(-8px) scale(1.02);
}

/* IE 降級方案 */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    body {
        color: #333333;
        background-color: #F7F8FA;
    }

    .btn-gradient {
        background-color: #C4181E;
        background-image: none;
    }

    .glass-card {
        background-color: rgba(255, 255, 255, 0.9);
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* 安全字體堆疊，提高可訪問性 */
body {
    font-family: 'Noto Serif TC', "PingFang TC", "Microsoft JhengHei", serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.4;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: #ECDCBF;
    /* 改用新的米褐色 */
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

/* 無障礙性焦點狀態增強 */
a:focus,
button:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(196, 24, 30, 0.4);
    outline-offset: 2px;
}

a:hover {
    color: var(--accent-color);
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Noto Sans TC', "PingFang TC", "Microsoft JhengHei", sans-serif;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    position: relative;
    /* 適用於焦點狀態 */
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #a01418;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2e3f54;
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 漸變按鈕效果 */
.btn-gradient {
    background-image: var(--gradient-primary);
    background-size: 200% auto;
    transition: background-position 0.5s;
    color: white;
}

.btn-gradient:hover {
    background-position: right center;
    color: white;
}

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

/* 導航欄 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
    transition: padding 0.3s, box-shadow 0.3s;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: var(--transition);
}

.nav-link {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 400;
    color: var(--dark-color);
    padding: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-btn {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* 修正hamburger為button */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* 全局動畫效果 */
@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes moveCircle {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, -50px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveBg {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* 滾動觸發動畫類 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* 毛玻璃效果卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 添加毛玻璃效果降級方案 */
@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
    .glass-card {
        background: rgba(255, 255, 255, 0.9);
        /* 降級方案 */
    }
}

/* 改進的卡片懸停效果 */
.card-hover-effect {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.card-hover-effect:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 英雄區域 */
.hero {
    padding: 9rem 0 6rem;
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
    perspective: 1000px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(196, 24, 30, 0.05);
    border-radius: 50%;
    z-index: 0;
    animation: moveCircle 5s infinite;
}

/* 修改英雄區背景圖片和處理 */
.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.imgur.com/y7wJdqE.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    /* 增加透明度 */
    z-index: 0;
    filter: blur(2px) brightness(1.1);
    /* 添加模糊和亮度效果 */
    -webkit-filter: blur(2px) brightness(1.1);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
    animation: slideInFromLeft 1s ease-in-out;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* 無障礙性：增加色彩對比度 */
.hero-subtitle {
    font-size: 1.25rem;
    color: #5a6677;
    /* 增加對比度 */
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-image {
    z-index: 1;
    position: relative;
    animation: slideInFromRight 1s ease-in-out;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
}

/* 特色功能 */
.features {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    display: inline-block;
}

.section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.section-subheader {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    animation: fadeInUp 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-image: var(--gradient-primary);
    z-index: -1;
    transition: height 0.3s ease;
}

.feature-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.feature-icon::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(196, 24, 30, 0.1);
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s infinite;
}

.feature-title {
    margin-bottom: 1rem;
}

/* 服務方案 */
.services {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* 修復裁剪路徑問題 */
.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-in-out;
    position: relative;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%);
}

.service-card:nth-child(2) {
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
}

@supports not (clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95%)) {
    .service-card {
        /* 不支援clip-path的降級方案 */
        border-radius: var(--border-radius) var(--border-radius) 0 var(--border-radius);
    }

    .service-card:nth-child(2) {
        border-radius: var(--border-radius) var(--border-radius) var(--border-radius) 0;
    }
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: rgba(196, 24, 30, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.service-price {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    font-size: 1.25rem;
}

.service-features {
    margin: 1.5rem 0;
    list-style: none;
    flex-grow: 1;
}

.service-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 成功案例 */
.cases {
    padding: 5rem 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.5s ease-in-out;
}

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

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-industry {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(232, 169, 35, 0.15);
    /* 增加不透明度 */
    border: 1px solid rgba(232, 169, 35, 0.3);
    /* 添加邊框增強可見性 */
    color: #C67C00;
    /* 使用更深的金色，提高對比度 */
    border-radius: 6px;
    /* 稍微增大圓角 */
    font-size: 0.85rem;
    /* 增大字號 */
    font-weight: 600;
    /* 加粗 */
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* 輕微陰影增強層次感 */
}

/* 為不同產業類型添加不同的顏色方案，增加視覺區分度 */
.case-industry[data-industry="製造業"] {
    background-color: rgba(41, 128, 185, 0.15);
    border-color: rgba(41, 128, 185, 0.3);
    color: #1a5276;
}

.case-industry[data-industry="新產品"] {
    background-color: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
    color: #1e8449;
}

.case-industry[data-industry="服務業"] {
    background-color: rgba(155, 89, 182, 0.15);
    border-color: rgba(155, 89, 182, 0.3);
    color: #6c3483;
}

.case-industry[data-industry="教育業"] {
    background-color: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.3);
    color: #a93226;
}

.case-industry[data-industry="醫療業"] {
    background-color: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
    color: #1f618d;
}

.case-industry[data-industry="旅遊業"] {
    background-color: rgba(243, 156, 18, 0.15);
    border-color: rgba(243, 156, 18, 0.3);
    color: #b9770e;
}

.case-results {
    display: flex;
    margin-top: auto;
    gap: 1.5rem;
}

.case-result {
    text-align: center;
}

.case-number {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* 由於網頁使用明亮背景，使用較深文字色彩確保對比度 */
.case-label {
    font-size: 0.9rem;
    color: #5a6677;
    /* 增強對比度 */
}

/* CTA區塊 */
.cta {
    padding: 5rem 0;
    background-image: var(--gradient-primary);
    background-size: 200% auto;
    color: white;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    position: relative;
    overflow: hidden;
    transition: background-position 5s;
}

.cta:hover {
    background-position: right center;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 10px,
            transparent 10px,
            transparent 20px);
    animation: moveBg 20s linear infinite;
    z-index: 0;
}

.cta h2 {
    color: white;
    position: relative;
    z-index: 1;
}

.cta h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    background-color: white;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.cta .btn {
    position: relative;
    z-index: 1;
}

/* 滾動快照效果 */
.scroll-snap-container {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

.scroll-snap-section {
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 頁腳 */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--dark-color);
    color: white;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-logo {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    position: relative;
    font-size: 1.3rem;
}

.footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 50px;
    background-color: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        grid-row: 1;
        margin-bottom: 2rem;
    }

    .hero-content {
        grid-row: 2;
    }

    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: 100vh;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding-top: 80px;
        align-items: center;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
    }

    .nav-btn {
        margin-top: 20px;
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .case-results {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 17px;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }

    .features,
    .services,
    .cases {
        padding: 3rem 0;
    }

    .cta {
        padding: 3rem 0;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-container {
        gap: 2rem;
    }
}

/* 強化小螢幕和超小螢幕尺寸的處理 */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .footer h3 {
        font-size: 1.1rem;
    }
}

/* 移除固定高度避免內容溢出 */
.feature-card,
.service-card,
.case-card {
    min-height: 100%;
    height: auto;
}

.case-image,
.service-image {
    height: 200px;
    min-height: 150px;
    max-height: 250px;
}

/* 添加鍵盤可訪問焦點效果 */
.nav-link:focus-visible,
.social-icon:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(196, 24, 30, 0.4);
    outline-offset: 2px;
}

/* 由於網頁使用明亮背景，使用較深文字色彩確保對比度 */
.section-subheader {
    color: #5a6677;
    /* 增強對比度 */
}

/* 添加列印樣式 */
@media print {

    .navbar,
    .hero-btns,
    .cta,
    .footer-social {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    .feature-card,
    .service-card,
    .case-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000;
        page-break-after: avoid;
    }
}