* {
    font-family: '新細明體';
}

body {
    background-color: #f5f9fe;
    color: #1e293b;
    padding-top: 122px;
    /* 預留頂部信息條(42px) + 導航條(80px) 的高度，避免內容被固定導航遮住 */
    transition: padding-top 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.navbar-fixed {
    padding-top: 80px;
    /* 當導航條固定時，只預留導航條高度（頂部信息條已隱藏） */
}

/* 顶部信息条链接 */
.top-bar {
    background: linear-gradient(95deg, #0b1e33 0%, #1b3a5c 100%);
    color: #e0edff;
    padding: 10px 0;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar a {
    color: #ffdd9e;
    text-decoration: none;
    font-weight: 500;
}

.top-bar .gap-2 a {
    display: flex;
    padding-right: 8px;
}

.top-bar .gap-2 a i {
    padding-right: 2px;
}

.top-bar a:hover {
    color: #e0edff;
}

.old-site {
    background: rgba(255, 215, 120, 0.15);
    padding: 4px 14px;
    border-radius: 40px;
    border: 1px solid #e0edff;
    color: #e0edff !important;
}

/* ===== 導航條樣式 - 滾動時固定頂部 ===== */
.navbar {
    background-color: rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 20, 40, 0.08);
    padding: 10px 0;
    overflow: visible !important;
    position: fixed;
    top: 42px;
    /* 初始時在頂部信息條下方 */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 導航條固定在頂部時的樣式 */
.navbar.navbar-sticky {
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 20, 40, 0.15);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar .container,
.navbar .container-fluid {
    overflow: visible !important;
    position: relative;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-brand img {
    width: 100%;
    height: 55px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    color: #1e2f4a !important;
    margin: 0 1px;
    padding: 8px 5px !important;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #e3ecf7;
}

/* ===== 鼠标悬停显示二级菜单核心样式 ===== */

.dropdown .dropdown-menu {

    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 30px -12px rgba(0, 40, 80, 0.3);
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(255, 215, 140, 0.3);
    z-index: 1050;
    margin-top: 1px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu[data-bs-popper] {
    right: auto;
}

.dropdown-item {
    border-radius: 40px;
    padding: 0.4rem .8rem;
    font-weight: 500;
    color: #1e3b5c;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: linear-gradient(145deg, #e9effa, #dae6f5);
    color: #0b2b4a;

}

/* 移动端适配 */
@media (max-width: 540px) {
    body {
        padding-top: 112px;
        /* 移動端頂部信息條可能更高，預留更多空間 */
    }

    body.navbar-fixed {
        padding-top: 70px;
        /* 移動端導航條高度 */
    }

    .top-bar {
        padding: 8px 0;
    }

    .navbar {
        top: 58px;

    }

}

/* @media (max-width: 1024px){
    
    .dropdown .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
        pointer-events: auto;
        display: none;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.show .dropdown-menu {
        display: block;
    }

    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }

    .dropdown:hover .dropdown-toggle::after {
        transform: none;
    }
} */



/* 轮播 */
.carousel-item {
    height: 50vh;
    min-height: 300px;
    position: relative;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 1;
}

.carousel-caption {
    background: rgba(0, 15, 35, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    padding: 1rem 1.5rem;
    bottom: 20%;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(145deg, #173b5c, #2b5580);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 1.2rem;
}

a .section-more {
    text-decoration: none;
    color: #2b5580;
}

.section-more {
    width: auto;
    font-size: 16px;
    padding: 0px 22px;
    border: 1px solid #2b5580;
    border-radius: 22px;
    height: 40px;
    text-decoration: none;
    line-height: 40px;
}

.section-more:hover {
    color: #fff;
    background-color: #2b5580;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #f6b83e, #d88b2e);
    border-radius: 4px;
    margin-top: 8px;
}

/* 轮播左侧文字样式 */

.carousel-caption-left {
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 10;
    max-width: 40%;
    background: rgba(4, 38, 83, 0.3);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 30px;
    animation: fadeInLeft 1s ease;
}

.carousel-caption-left h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carousel-caption-left p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.carousel-caption-left .btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.carousel-caption-left .btn:hover {
    background: white;
    color: #1e3c72;
    border-color: white;
}

/* 左侧文字入场动画 */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate(-30px, -50%);
    }

    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .carousel-caption-left {
        left: 5%;
        max-width: 80%;
        padding: 1.2rem;
    }

    .carousel-caption-left h3 {
        font-size: 1.5rem;
    }

    .carousel-caption-left p {
        font-size: 0.9rem;
    }
}

/* ===== 服務卡片（完全居中，大屏5個，手機2個）===== */
.service-grid-card {
    background: white;
    border-radius: 36px;
    padding: 1.8rem 0.8rem;
    box-shadow: 0 15px 28px -12px rgba(18, 52, 90, 0.2);
    transition: 0.2s;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-grid-card:hover {
    transform: translateY(-6px);
    background: #ffffff;
    box-shadow: 0 22px 30px -10px #204d8d;
}

.service-icon-grid {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #2266cc, #b13dd3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.4rem;
}

.service-title-grid {
    font-weight: 700;
    font-size: 1.2rem;
    color: #112f4b;
}

/* 大螢幕5個 col-2.4 自訂 */
.col-5th {
    flex: 0 0 auto;
    width: 20%;
}

/* 20% 等於5等份 */
@media (max-width: 768px) {
    .col-5th {
        width: 50%;
    }

    /* 手機版變成2個 */
}

/* 關於我們 影片＋文字 */
.about-video-wrapper {
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 25px -12px #4a5560;
    border: 4px solid white;
    height: 100%;
    min-height: 250px;
    background: #fff;
}

.about-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-text-block {
    background: linear-gradient(125deg, #ffffff, #f3f9ff);
    border-radius: 40px;
    padding: 2rem;
    box-shadow: 0 15px 25px -12px #4a5560;
    height: 100%;
}

/* 最新消息卡片微調 */
.news-item-highlight {
    background: #fff8e7;
    border-left: 8px solid #f3a13b;
    border-radius: 24px;
    padding: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.news-item-highlight a {
    text-decoration: none;
    color: #012b7c;
}

.news-item-highlight a:hover {
    text-decoration: none;
    color: #000;
}

.news-item-normal {
    background: white;
    border-radius: 20px;
    padding: 1rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 14px rgba(0, 32, 64, 0.03);
    border: 1px solid #eef4fa;
}

.news-item-normal span:first-child {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* 全新网页设计流程展示 — 水平时间线风格 */
.timeline-process {
    background: linear-gradient(145deg, #e3eefc, #d9e6f5);
    border-radius: 60px;
    padding: 2rem;
    box-shadow: 0 15px 25px -12px #7a8da1;
    position: relative;
    overflow: hidden;
    /* 保持圆角裁剪，但不影响内部箭头 */
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.timeline-marker {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 5px 0 #aeb3bf, 0 5px 5px -2px #1e3f60;
    color: #fff;
    border: 3px solid white;
    position: relative;
    z-index: 3;
}

.about-text-block b {
    color: #1264ff;
}

.bg-gradient-soft {
    background: linear-gradient(145deg, #dbeafe, #ede9fe);
}

/* 服務卡片 色彩活潑 */
.service-card {
    background: white;
    border-radius: 36px;
    transition: all 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.02);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
    height: 100%;
    padding: 15px 0px;
}

.service-card:hover {
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    box-shadow: 0 15px 25px -12px #8da8c5;
    border-color: #ffffff;
}

.service-icon {
    font-size: 3rem;
    background: linear-gradient(145deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    padding: 6px;
    margin: 6px;
}

.timeline-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.dai {
    position: absolute;
    width: auto;
    background-color: #f55959;
    margin-left: 50px;
    margin-top: -30px;
    border-radius: 6px;
    padding: 0px 5px;
    color: #fff;
    font-size: 14px;
}



@media (max-width: 500px) {

    .tag-buttons {
        gap: 5px !important;
    }

    .tag-buttons2 {
        gap: 3px !important;
    }

    .tag-btn {
        padding: 10px 20px !important;
    }

    .tag-btn2 {
        padding: 10px 6px !important;
    }

    .featured-news h2 {
        font-size: 1.3rem !important;
    }

    .featured-news {
        padding: 22px 15px !important;
    }

    .article-card {
        padding: 22px 18px !important;
    }

    .partner-logo {
        padding: .6rem !important;
    }

    .timeline-content {
        padding-left: 1rem !important;
        padding-bottom: .2rem !important;
    }

    .about-intro {
        margin-top: 2.5rem !important;
        padding: 1.5rem !important;
    }

    .about-text-block {
        padding: 1.3rem;
    }

    .dark-product-section {
        padding: 1.5rem !important;
    }

    .light-contact-section {
        padding: 1.5rem !important;
    }

    .dai {
        margin-left: 35px;
        padding: 0px 2px;
        margin-top: -26px;
        font-size: 13px;
    }

    .service-card h5 {
        font-size: 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .timeline-title {
        font-size: 16px;
    }

    .timeline-desc {
        font-size: 14px;
    }

    .product-cat-title {
        font-size: 16px;
    }

    .product-grid a {
        font-size: 14px;
        margin: 5px 5px 5px 0 !important;
    }

    .timeline-marker {
        font-size: 1.2rem;
        width: 55px;
        height: 55px;
        margin: 0 auto .5rem;
    }

    .timeline-step:first-child {
        margin-top: 50px;
    }

    .timeline-step {
        margin-top: 5px;
    }

    .about-text-block h3 {
        font-size: 18px;
    }

    .news-item-highlight a {
        font-size: 14px;
    }

    .news-item-highlight small {
        display: none;
    }
}


@media (max-width: 1023px) {
    .old-site {
        display: none;
    }
}

/* 箭头连接 - 居中放置 */
@media (min-width: 992px) {
    .timeline-step {
        position: relative;
    }

    /* 使用伪元素创建箭头，并绝对定位使其居中 */
    .timeline-step:not(:last-child)::after {
        content: "→";
        position: absolute;
        top: 80px;
        right: 0px;
        font-size: 2.6rem;
        font-weight: 400;
        color: #f39c12;
        text-shadow: 2px 2px 0 rgba(255, 215, 0, 0.3);
        line-height: 1;
        z-index: 5;
        transform: translateX(50%);
        /* 确保箭头正好在两个圆中间 */
        pointer-events: none;
        /* 让箭头不干扰点击 */
    }

    /* 针对不同列宽微调位置 */
    .row .col-md-3:nth-child(1) .timeline-step::after {
        right: -20px;
    }

    .row .col-md-3:nth-child(2) .timeline-step::after {
        right: -20px;
    }

    .row .col-md-3:nth-child(3) .timeline-step::after {
        right: -20px;
    }
}

/* 平板尺寸调整 */
@media (min-width: 768px) and (max-width: 991px) {
    .timeline-step:not(:last-child)::after {
        display: none;
        /* 平板也不显示箭头，避免混乱 */
    }
}

/* 手机版隐藏箭头 */
@media (max-width: 767px) {
    .timeline-item {
        margin-bottom: .6rem !important;
    }

    .timeline-year {
        min-width: 92px !important;
        font-size: 1rem !important;
    }

    .timeline-year::after {
        right: 20px !important;
        top: 8px !important;
    }

    .timeline-content h4 {
        font-size: 1rem !important;
    }

    .timeline-step:not(:last-child)::after {
        display: none;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .specs-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.all-title {
    margin-top: 28px;
    margin-bottom: 8px;
}

/* 深色产品区块 (第二张图片内容) */
.dark-product-section {
    background: linear-gradient(125deg, #0c233b, #123955);
    border-radius: 48px;
    padding: 2rem;
    color: #f0f6ff;
    margin-top: 1rem;
    box-shadow: 0 15px 25px -12px #4a5560;
}

.product-grid a {
    color: #c2d9ff;
    text-decoration: none;
    display: inline-block;
    margin: 5px 10px 5px 0;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 30px;
}

.product-grid a:hover {
    background: #ffda8a;
    color: #091e30;
}

.product-cat-title {
    color: #ffcd7e;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.light-contact-section {
    background: #ffffff;
    border-radius: 48px;
    padding: 2rem 2.2rem;
    box-shadow: 0 15px 25px -12px #4a5560;
    border: 1px solid #f2e9db;
    margin-top: 1.6rem;
}

/* 联络区块 (现在放到footer上方) 但保留样式，即将移至footer */
.contact-section-footer {
    background: #ffffff;
    border-radius: 48px 48px 0 0;
    padding: 2.5rem 2rem;
    box-shadow: 0 -10px 30px -12px #2b4a6e33;
    border: 1px solid #f2e9db;
    margin-top: 3rem;
}

.service-list-col {
    background: #fcf8f0;
    border-radius: 28px;
    padding: 1rem;
}

.service-list-col ul {
    margin-bottom: .1rem;
    padding-left: 1.5rem !important;
}

.service-list-col a {
    color: #0f2f55;
    text-decoration: none;
}

.service-list-col a:hover {
    color: #000;
    text-decoration: underline;
}

.specil {
    color: #ff6f89;
}

.contact-block a {
    color: #0f2f55;
    text-decoration: none;
    border-bottom: 1px dotted #b99d6b;
}

footer {
    background: #112233;
    color: #ccdbe9;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

/* ===== 返回頂部按鈕樣式 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-top:hover {
    background: linear-gradient(145deg, #2b5580, #1e3c72);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 移動端調整 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/* 公司簡介 */
.about-intro {
    background: white;
    border-radius: 40px;
    padding: 2rem;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
    margin-bottom: 0rem;
    margin-top: 1rem;
}

.about-intro img {
    border-radius: 30px;
    width: 100%;
    height: auto;
}

.about-highlight {
    background: linear-gradient(145deg, #f0f7ff, #ffffff);
    border-radius: 30px;
    padding: 1rem;
    border-left: 6px solid #f3a13b;
}

.about-intro b {
    color: #f55959;
}

/* 里程碑時間線 */
.timeline-section {
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
    background: linear-gradient(145deg, #ffffff, #f8faff);
    border-radius: 60px;
    padding: 2rem;
    margin: 1rem 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 1.6rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-year {
    min-width: 120px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 15px;
    width: 10px;
    height: 10px;
    background: #f39c12;
    border-radius: 50%;
}

.timeline-content {
    flex: 1;
    padding-left: 2rem;
    border-left: 3px solid #e9ecef;
    margin-bottom: 1rem;
    padding-top: .3rem;
    padding-bottom: .3rem;
}

/* .timeline-item:last-child .timeline-content {
    border-left-color: transparent;
} */

.timeline-content h4 {
    font-weight: 600;
    color: #2b4a6e;
    margin-bottom: 0.5rem;
}

/* 服務據點卡片 */
.office-card {
    background: white;
    border-radius: 36px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.3);
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px -15px #1e3c72;
}

.office-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #e3eefc, #d9e6f5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #1e3c72;
}

.office-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #112f4b;
}

.office-card p {
    color: #4a5f7a;
    margin-bottom: 0.5rem;
}

.office-card a {
    color: #1e3c72;
    text-decoration: none;
    border-bottom: 1px dotted #f39c12;
}


/* 合作夥伴 */
.partner-logo {
    background: white;
    border-radius: 24px;
    padding: .6rem;
    text-align: center;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px -12px #8da8c5;
}

.partner-logo img {
    max-width: 100%;
    height: 60px;
    /* filter: grayscale(100%); */
    /* opacity: 0.7; */
    transition: all 0.3s ease;
}

.partner-logo span b {
    float: left;
    font-weight: bold;
    width: 100%;
    background-color: #f5f5f5;
    padding: .6rem;
    border-radius: 12px;
    color: #333;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}


/* 精選置頂消息 */
.featured-news {
    background: linear-gradient(145deg, #ffffff, #f8faff);
    border-radius: 48px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px -15px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
    position: relative;
    overflow: hidden;
}

/* .featured-news::before {
            font-family:"bootstrap-icons";
            content: '\f588   最新';
            position: absolute;
            top: 20px;
            right: 30px;
            background: #f3a13b;
            color: white;
            padding: 3px 13px;
            border-radius: 30px;
            font-weight: 600;
            font-size: 0.9rem;
            box-shadow: 0 5px 15px rgba(243,161,59,0.3);
        } */

.featured-news .date {
    color: #4a5f7a;
    margin-bottom: 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.featured-news .date i {
    color: #f39c12;
}

.featured-news h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-news .excerpt {
    font-size: 15px;
    color: #4a5f7a;
    margin-bottom: 8px;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.featured-news .meta {
    display: flex;
    gap: 20px;
    color: #8a9bb5;
    font-size: 0.9rem;
}

.featured-news .btn-outline-primary {
    font-size: 14px;
}

/* 新聞卡片 */
.news-card {
    background: white;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.2);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px -12px #8da8c5;
    border-color: rgba(255, 215, 140, 0.5);
}

.news-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.news-card-content {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .category-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f4fa;
    color: #1e3c72;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e2f4a;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card .date {
    color: #8a9bb5;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-card .excerpt {
    color: #4a5f7a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card .read-more {
    color: #1e3c72;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.news-card .read-more:hover {
    color: #f39c12;
    gap: 8px;
}

/* 側邊欄 */
.sidebar {
    position: sticky;
    top: 150px;
}

.sidebar-widget {
    background: white;
    border-radius: 36px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 140, 0.2);
}

.sidebar-widget h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #f6b83e, #d88b2e);
    border-radius: 3px;
}

/* 熱門主題 */
.hot-topics {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .hot-topics li {
            margin: 0;
            padding: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.04);
            transition: background 0.2s;
        }

        .hot-topics li:last-child {
            border-bottom: none;
        }

        /* 链接样式 - 作为 flex 容器实现左右布局 */
        .hot-topics a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;          /* 保证标题和日期之间有舒适间距，避免拥挤 */
            text-decoration: none;
            padding: 6px 0px;
            border-radius: 18px;
            transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            background-color: transparent;
            color: #4a5f7a;
        }


        /* 标题区域: 左浮动效果(实际flex自动左对齐) + 溢出省略号核心 */
        .topic-name {
            flex: 1;            /* 占据剩余空间，推动日期靠右 */
            font-size: 1rem !important;
            font-weight: 500;
            color: #1e2f3e;
            letter-spacing: -0.2px;
            line-height: 1.4;
            /* 不换行 + 溢出省略号关键代码 */
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            /* 保证即使非常长的单词也不会破坏布局 */
            max-width: 100%;
            min-width: 0;       /* flex子项防止溢出 (关键) */
        }

        /* 日期区域: 始终右对齐, 保持整洁 */
        .topic-count {
            flex-shrink: 0;     /* 防止日期被压缩变形 */
            font-size: 0.8rem;
            color: #1e3c72;
            font-weight: 450;
            background: #f0f2f6;
            padding: 4px 12px;
            border-radius: 40px;
            letter-spacing: 0.2px;
            transition: all 0.2s;
            text-align: right;
            white-space: nowrap;  /* 日期本身不换行，保持如“2026-03-06”完整 */
            line-height: 1.3;
        }

        /* 可选: 增强移动端体验，同时保证标题依旧不换行、省略号生效 */
        @media (max-width: 640px) {
            .card {
                max-width: 100%;
                border-radius: 28px;
            }
            
            .hot-topics a {
                padding: 10px 0px;
                gap: 12px;      /* 小屏减少间距避免标题过度压缩，但依然保留flex行为 */
            }
            
            .topic-name {
                font-size: 0.92rem;
                /* 不换行属性保留 */
                white-space: nowrap;
            }
            
            .topic-count {
                font-size: 0.72rem;
                padding: 3px 10px;
            }
            
            .card-header {
                padding: 20px 20px 8px 20px;
            }
        }

        /* 针对极端窄屏（例如宽度<360px）进一步优化间距，但所有规则保证标题左日期右 */
        @media (max-width: 480px) {
            .hot-topics a {
                padding: 10px 0px;
                gap: 8px;
            }
            
            .topic-name {
                font-size: 0.85rem;
                /* 依然不换行省略号 */
                white-space: nowrap;
            }
            
            .topic-count {
                font-size: 0.68rem;
                padding: 2px 8px;
            }
        }

        /* 针对超宽屏幕（>1200px），保持优雅比例，标题依然不会换行，日期紧靠右 */
        @media (min-width: 1200px) {
            .card {
                max-width: 880px;
            }
            
            .topic-name {
                font-size: 1.05rem;
                /* 即使放大字体，依然单行省略号 */
            }
            
            .hot-topics a {
                padding: 10px 0px;
            }
        }


/* 分頁 */
.pagination {
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.pagination li {
    float: left;
    padding: 10px 18px;
    border-radius: 30px;
    color: #4a5f7a;
    font-weight: 500;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pagination li a {
    text-decoration: none;
    color: #555;
}

.pagination .active {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white !important;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    color: #4a5f7a;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pagination .disabled {
    color: #b8b8b8;
}

.page-link:hover {
    background: #e9effa;
    color: #1e3c72;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
}

/* ---------------------二級頁面標題------------------ */
.news-header {
    background: linear-gradient(135deg, #0b1f33 0%, #1d3b5c 50%, #0f2842 100%);
    padding: 30px 0 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* 抽象裝飾元素 */
.news-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 140, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: floatGlow 15s ease-in-out infinite;
}

.news-header::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(100, 180, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    animation: floatGlow2 18s ease-in-out infinite;
}

@keyframes floatGlow {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-20px, 20px) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes floatGlow2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(30px, -30px) scale(1.15);
        opacity: 0.7;
    }
}

/* 幾何圖形裝飾 */
.header-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* .header-shape .shape-1 {
            position: absolute;
            top: 20%;
            left: 5%;
            width: 200px;
            height: 200px;
            border: 40px solid rgba(255,215,140,0.1);
            border-radius: 60% 40% 70% 30% / 40% 60% 30% 70%;
            transform: rotate(15deg);
            animation: shapeFloat 20s linear infinite;
        }

        .header-shape .shape-2 {
            position: absolute;
            bottom: 10%;
            right: 5%;
            width: 300px;
            height: 150px;
            background: rgba(255,255,255,0.02);
            border-radius: 50%;
            transform: skewX(-10deg) rotate(-5deg);
            border: 2px dashed rgba(255,215,140,0.2);
            animation: shapeDrift 25s linear infinite;
        } */

@keyframes shapeFloat {
    0% {
        transform: rotate(15deg) translate(0, 0);
    }

    50% {
        transform: rotate(25deg) translate(20px, -20px);
    }

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

@keyframes shapeDrift {
    0% {
        transform: skewX(-10deg) rotate(-5deg) translate(0, 0);
    }

    50% {
        transform: skewX(-10deg) rotate(0deg) translate(-30px, 20px);
    }

    100% {
        transform: skewX(-10deg) rotate(-5deg) translate(0, 0);
    }
}

/* 標題內容容器 */
.news-header .container {
    position: relative;
    z-index: 10;
}

/* 標題主視覺 */
.title-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2px;
}

.title-main {
    flex: 1;
}

.title-main h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    text-stroke: 2px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;
}

.title-main h1 span {
    display: block;
    color: white;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    font-size: 2.4rem;
    background: linear-gradient(135deg, #ffcd7e 0%, #fff3d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -20px;
}

/* 標題裝飾線條 */
.title-decoration {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 10px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f6b83e, #d88b2e, #f6b83e);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 200, 100, 0.5);
}

.title-tag {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 副標題區域 */
.title-sub {
    max-width: 500px;
    margin-left: auto;
}

.title-sub p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 300;
}

.title-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffcd7e;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 麵包屑 */
.breadcrumb-modern {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 215, 140, 0.3);
    margin-top: 0px;
}

.breadcrumb-modern a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb-modern a:hover {
    color: #ffcd7e;
}

.breadcrumb-modern .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 8px;
}

.breadcrumb-modern .current {
    color: #ffcd7e;
    font-weight: 600;
}

/* 文章卡片 */
.article-card {
    background: white;
    border-radius: 48px;
    padding: 25px;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
    margin-bottom: 20px;
}

/* 文章元數據 */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #4a5f7a;
    font-size: 0.95rem;
}

.meta-item i {
    color: #f39c12;
    font-size: 1.1rem;
}

.category-badge {
    background: #f0f4fa;
    color: #1e3c72;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* 文章特色圖片 */
.article-featured-image {}

.article-card img {
    max-width: 100%;
    height: auto;
    border-radius: 30px;
    margin-bottom: 15px;
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.2);
}

/* 文章內容 */
.article-content {
    color: #2c3e4f;
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
    margin: 40px 0 20px;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3c72;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    background: #f0f7ff;
    border-left: 6px solid #f39c12;
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #1e3c72;
    font-size: 1.1rem;
}

.article-content .highlight-box {
    background: linear-gradient(145deg, #f9f3e7, #fff6e5);
    border-radius: 30px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid #ffe6b3;
}

.article-content .highlight-box h4 {
    color: #1e3c72;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 服務介紹卡片 */
.service-intro {
    background: white;
    border-radius: 48px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
}

.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #2c3e4f;
}

.service-feature-list li i {
    width: 30px;
    height: 30px;
    background: linear-gradient(145deg, #f0f7ff, #e3eefc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f39c12;
    font-size: 1rem;
}

/* 流程卡片 */
.process-card {
    background: white;
    border-radius: 40px;
    padding: 20px 20px;
    text-align: center;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.2);
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px -12px #8da8c5;
    border-color: rgba(255, 215, 140, 0.5);
}

.process-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #284cff, #2b5580);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 0 #ffcd7e;
}

.process-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.process-card p {
    color: #4a5f7a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 3px;
}

/* 作品展示卡片 */
.portfolio-card {
    background: white;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.2);
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px -15px #1e3c72;
    border-color: rgba(255, 215, 140, 0.5);
}

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 10px;
}

.portfolio-content {
    padding: 12px 23px;
}

.portfolio-category {
    display: inline-block;
    padding: 5px 15px;
    background: #f0f4fa;
    color: #1e3c72;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e2f4a;
    margin-bottom: 6px;
}

.portfolio-content p {
    color: #4a5f7a;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    background: #f8faff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e3c72;
}

/* 方案卡片 */
.pricing-card {
    background: white;
    border-radius: 48px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: #f39c12;
    box-shadow: 0 30px 60px -20px #1e3c72;
}

.pricing-card.featured::before {
    content: '熱門推薦';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #f39c12;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(145deg, #f0f7ff, #e3eefc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
    color: #1e3c72;
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 5px;
}

.pricing-price small {
    font-size: 1rem;
    font-weight: 400;
    color: #8a9bb5;
}

.pricing-desc {
    color: #4a5f7a;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li i {
    color: #10b981;
    font-size: 1.1rem;
}

.pricing-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px #1e3c72;
}

.pricing-card.featured .pricing-btn {
    background: linear-gradient(145deg, #f39c12, #d88b2e);
}

/* 技術特色 */
.tech-features {
    background: linear-gradient(145deg, #ffffff, #f8faff);
    border-radius: 48px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 215, 140, 0.3);
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.tech-item {
    text-align: center;
    padding: 20px;
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.tech-item h4 {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
}

.tech-item p {
    color: #4a5f7a;
    font-size: 0.95rem;
}

/* CTA 區塊 */
.cta-section {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 48px;
    padding: 50px;
    color: white;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: #1e3c72;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    background: #f39c12;
    color: white;
}


/* 特色卡片 */
.feature-card {
    background: white;
    border-radius: 36px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px -15px #1e3c72;
    border-color: rgba(255, 215, 140, 0.5);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #f0f7ff, #e3eefc);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: #1e3c72;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.feature-card p {
    color: #4a5f7a;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 方案卡片 */
.hosting-card {
    background: white;
    border-radius: 48px;
    padding: 30px 30px;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.3);
    position: relative;
    overflow: hidden;
}


.hosting-card.featured {
    border-color: #f39c12;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    z-index: 2;
}

.hosting-card.featured::before {
    content: '最多人選擇';
    position: absolute;
    top: 20px;
    right: -30px;
    background: #f39c12;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 600;
}

.hosting-header {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.hosting-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
}

.hosting-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e3c72;
    line-height: 1.2;
}

.hosting-price small {
    font-size: 1rem;
    font-weight: 400;
    color: #8a9bb5;
}

.hosting-price-desc {
    color: #f39c12;
    font-size: 0.9rem;
    margin-top: 5px;
}

.hosting-features {
    list-style: none;
    padding: 0;
    margin: 0px;
}


.hosting-features li {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c3e4f;
}

.hosting-features li:last-child {
    border-bottom: 0px solid #e9ecef;
}

.hosting-features li i {
    color: #10b981;
    font-size: 1.2rem;
    width: 24px;
}


.hosting-features li .feature-tag {
    margin-left: auto;
    background: #f0f4fa;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e3c72;
}

.hosting-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hosting-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -12px #8da8c5;
}

.hosting-card.featured .hosting-btn {
    background: linear-gradient(145deg, #f39c12, #d88b2e);
}

/* 技術規格 */
.specs-section {
    background: white;
    border-radius: 48px;
    padding: 22px;
    margin: 40px 0;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.spec-item {
    text-align: center;
}

.spec-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #f0f7ff, #e3eefc);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: #1e3c72;
}

.spec-item h4 {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.spec-item p {
    color: #4a5f7a;
    font-size: 0.9rem;
}

/* 適用場景 */
.scenario-card {
    background: white;
    border-radius: 36px;
    padding: 30px;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -12px #8da8c5;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
    border-color: rgba(58, 51, 39, 0.2);
}

.scenario-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: white;
}

.scenario-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.scenario-card p {
    color: #4a5f7a;
    margin-bottom: 15px;
    line-height: 1.6;
}

.scenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scenario-tags span {
    background: #f0f4fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e3c72;
}

/* 常見問題 */
.faq-section {
    background: linear-gradient(145deg, #ffffff, #f8faff);
    border-radius: 48px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 15px;
}

.accordion-button {
    background: white;
    border-radius: 30px !important;
    padding: 20px 25px;
    font-weight: 600;
    color: #1e3c72;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgb(158 170 213);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 15px;
    background: white;
    border-radius: 30px;
    margin-top: 5px;
    color: #4a5f7a;
}

.section-subtitle {
    text-align: center;
    color: #4a5f7a;
    font-size: 1.2rem;
    margin-bottom: 10px;
}


/* 技術規格 */
.tech-specs {
    background: white;
    border-radius: 48px;
    padding: 25px;
    margin: 10px 0;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 6px;
}

@media (max-width: 768px) {
    .spec-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.spec-item {
    text-align: center;
}

.spec-item i {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 15px;
}

.spec-item h4 {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
}

.spec-item p {
    color: #4a5f7a;
    font-size: 0.95rem;
}

/* 兩岸專線特色 */
.line-feature {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.line-icon {
    min-width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.line-content h4 {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

.line-content p {
    color: #4a5f7a;
    margin-bottom: 0;
}


/* 適用場景 */
.use-case-card {
    background: white;
    border-radius: 36px;
    padding: 20px;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -12px #1e3c72;
}

.use-case-icon {
    width: 66px;
    height: 66px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 2rem;
    color: white;
}

.use-case-card p {
    margin-bottom: 0px;
}

.use-case-card h4 {
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
    font-size: 1.3rem;
}


/* 方案卡片 (用於VPN方案比較) */
.vpn-card {
    background: white;
    border-radius: 36px;
    padding: 20px;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 215, 140, 0.2);
}

.vpn-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px -12px #8da8c5;
    border-color: rgba(255, 215, 140, 0.5);
}

.vpn-card.featured {
    border-color: #f39c12;
    box-shadow: 0 16px 30px -15px #1e3c72;
}

.vpn-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
}

.vpn-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, #f0f7ff, #e3eefc);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #1e3c72;
    margin-right: 12px;
}

.vpn-card h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 15px;
}

.vpn-price {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 10px;
    text-align: center;
}

.vpn-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8a9bb5;
}

.vpn-features {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.vpn-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2c3e4f;
}

.vpn-features li i {
    color: #10b981;
}

.product-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px #1e3c72;
}


/* 地圖 */
.map-container {
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
    margin: 40px 0;
    height: 166px;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #e3eefc, #d9e6f5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.map-overlay {
    position: absolute;
    text-align: center;
    color: #1e3c72;
    cursor: pointer;
}

.map-overlay i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.map-overlay p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* 營業時間 */
.hours-card {
    background: white;
    border-radius: 36px;
    padding: 30px;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 215, 140, 0.2);
    margin-bottom: 30px;
}

.hours-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 16px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 600;
    color: #1e2f4a;
}

.hours-time {
    color: #e58c00;
    font-weight: 500;
}

.hours-time a {
    color: #e58c00;
}

/* 聯絡表單 */
.contact-form {
    background: white;
    border-radius: 48px;
    padding: 35px;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #1e2f4a;
    margin-bottom: 8px;
    display: block;
}

.form-label .required {
    color: #dc2626;
    margin-left: 3px;
}

.form-control-custom,
.form-select-custom {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: #1e3c72;
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 60, 114, 0.1);
}

textarea.form-control-custom {
    min-height: 150px;
    resize: vertical;
}

.form-check {
    margin-bottom: 25px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #1e3c72;
}

.form-check-label {
    color: #4a5f7a;
    font-size: 0.95rem;
}

.form-check-label a {
    color: #1e3c72 !important;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.form-check-label a:hover {
    color: #f39c12;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px #1e3c72;
}

/* 提示訊息 */
.alert-message {
    padding: 15px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


/* 页面偏移 */
.page-wrapper {
    margin-top: 40px;
    margin-bottom: 40px;
    flex: 1 0 auto;
}

/* 侧边导航 */
.sidebar-user {
    background: white;
    border-radius: 48px;
    padding: 30px 20px;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
    transition: all 0.3s ease;
}

/* 桌機版側邊欄固定 */
@media (min-width: 992px) {
    .sidebar-user {
        position: sticky;
        top: 150px;
    }
}

/* 移動端側邊欄折疊樣式 */
@media (max-width: 991px) {
    .sidebar-user {
        padding: 15px;
        cursor: pointer;
        margin-bottom: 12px;
    }

    .sidebar-user.collapsed .user-info {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
    }

    .sidebar-user.collapsed .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin: 0;
    }

    /* .sidebar-user.collapsed .user-details {
                    flex: 1;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                } */

    .sidebar-user.collapsed .user-name {
        font-size: 1.1rem;
        margin-bottom: 0;
    }

    .sidebar-user.collapsed .user-email,
    .sidebar-user.collapsed .user-tier,
    .sidebar-user.collapsed .nav-menu {
        display: none;
    }

    /* 折疊時顯示向下箭頭 */
    .sidebar-user.collapsed .expand-icon {
        display: inline-block;
        font-size: 1.5rem;
        color: #1e3c72;
    }

    .sidebar-user.collapsed .expand-icon {
        transform: rotate(0deg);
    }

    /* 展開時顯示向上箭頭 */
    .sidebar-user:not(.collapsed) .expand-icon {
        display: inline-block;
        font-size: 1.5rem;
        color: #1e3c72;
        transform: rotate(180deg);
    }

    /* 展開時完整顯示所有內容 */
    .sidebar-user:not(.collapsed) .user-info {
        display: flex;
        align-items: center;
    }

    .sidebar-user:not(.collapsed) .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-right: 8px;
    }


    .sidebar-user:not(.collapsed) .user-name {
        font-size: 1.1rem;
        margin-bottom: 0px;
    }

    .sidebar-user:not(.collapsed) .user-email {
        display: block;
    }

    .sidebar-user:not(.collapsed) .user-tier {
        display: inline-block;
    }

    .sidebar-user:not(.collapsed) .nav-menu {
        display: block;
    }
}

/* 桌機版隱藏展開圖標 */
@media (min-width: 992px) {
    .expand-icon {
        display: none !important;
    }
}

.user-info {
    /* text-align: center; */
    padding-bottom: 15px;
    /* border-bottom: 2px solid #e9ecef;
                margin-bottom: 20px; */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 2rem;
    color: white;
    border: 4px solid #ffcd7e;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 5px;
    text-align: left;
}

.user-email {
    color: #4a5f7a;
    font-size: 0.9rem;
}

.user-tier {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: #f0f4fa;
    border-radius: 30px;
    color: #1e3c72;
    font-weight: 600;
    font-size: 0.8rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 30px;
    color: #4a5f7a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: #f0f4fa;
    color: #1e3c72;
}

.nav-menu a.active {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
}

.nav-menu a i {
    font-size: 1.3rem;
}

/* 主内容区 */
.main-panel {
    background: white;
    border-radius: 48px;
    padding: 25px;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3c72;
}

.badge-notify {
    background: #f39c12;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-weight: 600;
}


.form-control-custom:read-only {
    background: #f0f4fa;
    color: #6c757d;
}

.btn-save {
    padding: 8px 26px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px #1e3c72;
}

.btn-cancel {
    padding: 8px 26px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 40px;
    color: #4a5f7a;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 15px;
    font-size: 14px;
}

.btn-cancel:hover {
    border-color: #1e3c72;
    color: #1e3c72;
}



.hosting-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 10px;
}

.hosting-price {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 5px;
}

.hosting-price small {
    font-size: 0.9rem;
    color: #8a9bb5;
}

.hosting-desc {
    color: #4a5f7a;
    font-size: 0.9rem;
    margin-bottom: 20px;
}




.btn-buy {
    width: 100%;
    padding: 12px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px #1e3c72;
}


/* 当前主机状态 */
.current-plan {
    background: #f0f7ff;
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.plan-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 5px;
}

.plan-info p {
    color: #4a5f7a;
    margin: 0;
}

.plan-status {
    padding: 8px 20px;
    background: #10b981;
    color: white;
    border-radius: 30px;
    font-weight: 600;
}

.plan-status.warning {
    background: #f39c12;
}

/* 订单记录 */
.order-table {
    width: 100%;
    border-collapse: collapse;
}

.order-table th {
    text-align: left;
    padding: 15px 10px;
    color: #1e3c72;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.order-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e4f;
    white-space: nowrap;
}

.order-status {
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-expired {
    background: #f8d7da;
    color: #721c24;
}


/* ===== 新增：標籤按鈕樣式 ===== */
.tag-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag-buttons2 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tag-btn {
    padding: 10px 30px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 40px;
    color: #4a5f7a;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.tag-btn2 {
    padding: 10px 30px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 40px;
    color: #4a5f7a;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.tag-btn:hover {
    border-color: #ed9221;
    color: #d7760e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px #a99759;
}

.tag-btn.active {
    background: linear-gradient(145deg, #ef8a23, #e7b118);
    border-color: #ffc800;
    color: #ffffff;
    box-shadow: 0 8px 20px -5px #a99759;
    font-weight: 600;
}

.tag-btn2:hover {
    border-color: #ed9221;
    color: #d7760e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -5px #a99759;
}

.tag-btn2.active {
    background: linear-gradient(145deg, #ef8a23, #e7b118);
    border-color: #ffc800;
    color: #ffffff;
    box-shadow: 0 8px 20px -5px #a99759;
    font-weight: 600;
}

.caseall {
    display: flex;
}

.caseall .form-control {
    -webkit-appearance: auto !important;
    min-width: 220px;
    margin-left: 10px;
    height: 39px;
    border-radius: 12px;
    border: 2px solid #6684a9;
    color: #0f5f95;
}


/* 卡片容器 - 精簡版 */
.product-card {
    width: 100%;
    background: white;
    border-radius: 48px;
    padding: 20px;
    box-shadow: 0 30px 60px -20px rgba(30, 60, 114, 0.3);
    border: 1px solid rgba(255, 215, 140, 0.3);
    margin-bottom: 30px;
}

/* 圖片垂直居中 */
.image-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 20px 30px -10px rgba(30, 60, 114, 0.2);
}

/* 標題區 - 精簡 */
.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-subtitle {
    font-size: 1rem;
    color: #e76200;
    font-weight: 500;
    padding-bottom: 10px;
}

/* 特色亮點 - 精簡 */
.highlight-section {
    background: #f8faff;
    border-radius: 36px;
    padding: 15px;
    border: 1px solid rgba(255, 215, 140, 0.2);
    margin-top: 0px;
}

.highlight-item {
    padding: 3px 0;
    border-bottom: 1px dashed #e9ecef;
    color: #1e2f4a;
    line-height: 1.6;
}

.highlight-item:last-child {
    border-bottom: none;
}

.highlight-item i {
    color: #f39c12;
    margin-right: 8px;
}

/* 響應式 - 移動端優化 */
@media (max-width: 768px) {
    .product-card {
        padding: 15px;
    }

    .product-title {
        font-size: 1.3rem;
        margin-top: 0px;
        line-height: 26px;
    }

    .image-wrapper {
        margin-bottom: 0px;
    }

    .image-wrapper img {
        max-width: 200px;
    }
}


/* 主卡片 */
.vpn-card {
    background: white;
    border-radius: 48px;
    padding: 50px;
    box-shadow: 0 30px 60px -20px rgba(30, 60, 114, 0.3);
    border: 1px solid rgba(255, 215, 140, 0.3);
}

/* 產品介紹區 */
.intro-section {
    background: #f8faff;
    border-radius: 36px;
    padding: 20px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 215, 140, 0.2);
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.intro-text {
    font-size: 1.05rem;
    color: #1e2f4a;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 20px;
}

.intro-text strong {
    color: #1e3c72;
    font-weight: 700;
}

.intro-highlight {
    background: linear-gradient(145deg, #f9f3e7, #fff6e5);
    border-left: 6px solid #f39c12;
    padding: 20px 25px;
    border-radius: 30px;
    margin: 25px 0 15px;
    font-weight: 500;
}

/* 產品特色 */
.features-section {
    background: white;
    border-radius: 36px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 25px 40px -15px rgba(0, 40, 80, 0.15);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8faff;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 140, 0.2);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -12px #8da8c5;
    border-color: rgba(255, 215, 140, 0.5);
}

.features-grid .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

.feature-content p {
    color: #4a5f7a;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* 技術亮點 */
.tech-badge {
    display: inline-block;
    background: linear-gradient(145deg, #f39c12, #d88b2e);
    color: white;
    padding: 5px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* MPLS 特殊標示 */
.mpls-tag {
    background: #1e3c72;
    color: white;
    padding: 8px 25px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 20px;
    border: 2px solid #f39c12;
}

/* 響應式 */
@media (max-width: 768px) {
    .vpn-card {
        padding: 20px;
    }

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

    .feature-item {
        padding: 15px;
    }
}

/* 主卡片 */
.sub-title {
    font-size: 1.2rem;
    color: #4a5f7a;
    line-height: 1.7;
}

/* 核心亮點網格 */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.highlight-item2 {
    display: flex;
    gap: 15px;
    padding: 22px;
    background: #f8faff;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 140, 0.2);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
}

.highlight-item2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px #1e3c72;
    border-color: rgba(255, 215, 140, 0.5);
    box-shadow: 0 15px 25px -12px #8da8c5;
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.highlight-content {
    flex: 1;
}

.highlight-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

.highlight-content p {
    color: #4a5f7a;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}


/* 適用對象 */
.target-section {
    background: white;
    border-radius: 36px;
    padding: 10px 0px;
    margin-bottom: 16px;
}

.target-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.target-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f8faff;
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 140, 0.2);
}

.target-item i {
    color: #f39c12;
    font-size: 1.5rem;
    width: 30px;
}

.target-item span {
    color: #1e2f4a;
    font-weight: 500;
}

/* CTA 按鈕 */
.cta-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.btn-cta {
    display: inline-block;
    padding: 16px 50px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
    text-decoration: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 2px solid #ffcd7e;
    box-shadow: 0 10px 20px -10px #315595;
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 20px -10px #315595;
    background: linear-gradient(145deg, #f39c12, #d88b2e);
    color: white;
}

/* 響應式 */
@media (max-width: 768px) {
    .hosting-card {
        padding: 30px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header h1 i {
        font-size: 2.2rem;
    }

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

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

    .highlight-item2 {
        padding: 20px;
    }

    .route-tags {
        gap: 10px;
    }

    .route-tag {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .btn-cta {
        padding: 14px 40px;
        font-size: 1.1rem;
    }
}



/* 主卡片 */
.vps-card {
    background: white;
    border-radius: 48px;
    padding: 30px 22px;
    box-shadow: 0 25px 50px -20px rgba(0, 40, 80, 0.2);
    border: 1px solid rgba(255, 215, 140, 0.3);

}


/* 特色標籤 */
.fangan-tag {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
    padding: 8px 25px;
    border-radius: 40px;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 20px;
    border: 2px solid #ffcd7e;
}

/* 方案特色 */
.tese-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 6px;
}

.fangan-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8faff;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 140, 0.2);
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
}

.fangan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px #1e3c72;
    border-color: rgba(255, 215, 140, 0.5);
    box-shadow: 0 15px 25px -12px #8da8c5;
}

.fangan-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.fangan-content {
    flex: 1;
}

.fangan-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

.fangan-content p {
    color: #4a5f7a;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}



/* 規格清單 */
.spec-list {
    list-style: none;
    padding: 0;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #e9ecef;
}

.spec-list li i {
    color: #f39c12;
    font-size: 1.2rem;
    width: 24px;
}

.spec-list li span {
    color: #1e2f4a;
}

.spec-list li strong {
    color: #1e3c72;
    margin-left: 5px;
}

/* 線路選擇 */
.route-section {
    background: #f8faff;
    border-radius: 36px;
    padding: 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 215, 140, 0.2);
}

.route-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.route-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.route-tag {
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    color: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #ffcd7e;
    transition: all 0.3s ease;
}

.route-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px #1e3c72;
    background: linear-gradient(145deg, #f39c12, #d88b2e);
}

/* 加購項目 */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0 30px;
}

.addon-item {
    background: #f8faff;
    border-radius: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 215, 140, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
}

.addon-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 140, 0.5);
    box-shadow: 0 15px 25px -12px #8da8c5;
}

.addon-name {
    font-weight: 600;
    color: #1e2f4a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addon-name i {
    color: #f39c12;
}

.addon-price {
    font-weight: 700;
    color: #1e3c72;
    background: white;
    padding: 5px 15px;
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 140, 0.3);
}

/* 禁止項目 */
.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0 30px;
}

.prohibited-item {
    background: #fff5f5;
    border-radius: 30px;
    padding: 15px 20px;
    border: 1px solid #ffcdd2;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c62828;
}

.prohibited-item i {
    font-size: 1.3rem;
    color: #c62828;
}

.prohibited-item span {
    font-weight: 500;
}

/* 適用對象卡片 */
.target-card {
    background: linear-gradient(145deg, #f9f3e7, #fff6e5);
    border-radius: 36px;
    padding: 20px;
    margin: 10px 0;
    border-left: 6px solid #f39c12;
}

.target-item3 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(30, 60, 114, 0.1);
}

.target-item3:last-child {
    border-bottom: none;
}

.target-item3 i {
    color: #f39c12;
    font-size: 1.3rem;
    width: 30px;
}



/* 響應式 */
@media (max-width: 768px) {
    .vps-card {
        padding: 30px;
    }

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

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

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

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

    .fangan-item {
        padding: 20px;
    }
}


.fangan-card {
    background: #f8faff;
    border-radius: 30px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 215, 140, 0.2);
    height: 100%;
    box-shadow: 0 15px 30px -12px rgba(0, 0, 0, 0.1);
}

.fangan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -12px #8da8c5;
    border-color: rgba(255, 215, 140, 0.5);
}

.fangan-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, #1e3c72, #2b5580);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.fangan-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3c72;
}

.fangan-card-text {
    color: #4a5f7a;
    font-size: 1rem;
}

.route-badges .badge {
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 30px;
    background: white !important;
    color: #1e3c72 !important;
    border: 1px solid rgba(30, 60, 114, 0.2);
    transition: all 0.3s ease;
}

.route-badges .badge:hover {
    background: #1e3c72 !important;
    color: white !important;
    border-color: #1e3c72;
    transform: translateY(-2px);
}

.act-title {
    text-align: center;
    font-size: 16px !important;
}

/* 左侧卡片列表: 美观悬浮效果 */
.active-left {
    overflow: hidden;
}

.album-list-group {
    position: sticky;
    top: 108px;
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.album-list-group a {
    text-decoration: none;
}

.album-list-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.2rem 1.5rem;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    color: #2c3e4e;
}

.album-list-item:last-child {
    border-bottom: none;
}

.album-list-item:hover {
    background-color: #f1f5f9;
    transform: translateX(4px);
}

.album-list-item.active {
    background-color: #125199;
    color: white;
    box-shadow: inset 4px 0 0 #ffc107, 0 2px 5px rgba(0, 0, 0, 0.05);
}

.album-list-item.active i {
    color: white;
}

.album-list-item i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 1.6rem;
    color: #0d6efd;
}

.album-list-item.active i {
    color: #ffebc2;
}

/* 右侧内容卡片 */
.content-card {
    border: none;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    height: 100%;
    overflow: hidden;
}

.album-image {
    width: 100%;
    object-fit: contain;
    border-radius: 24px;
    /* 统一图片比例，保持整洁 */
    background: #e9ecef;
    transition: transform 0.3s ease;
}

.album-image:hover {
    transform: scale(1.01);
}

.album-text-content {
    padding: 0;
}

.album-title-large {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    color: #1e2a3a;
    border-left: 5px solid #0d6efd;
    padding-left: 1rem;
}

.album-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 1.5rem;
}

.badge-date {
    background-color: #eef2ff;
    color: #1e40af;
    font-weight: 500;
    padding: 0.35rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

hr {
    margin: 1.2rem 0;
    opacity: 0.5;
}

/* 移动端适配：小于768px时左侧右侧堆叠，左侧标题变成横向滚动或常规，但使用flex列更友好 */
@media (max-width: 767.98px) {
    .album-container {
        padding: 1rem;
    }

    .album-list-item {
        padding: 0.9rem 1rem;
    }

    .album-title-large {
        font-size: 1.4rem;
    }

    .album-text-content {
        padding: 1.2rem;
    }
}

/* 去除任何可能的默认header/footer残留，body无额外边距 */
.no-gutter {
    margin: 0;
    padding: 0;
}

/* 自定义图片容器轻微圆润 */
.img-wrapper {
    background: #f1f5f9;
    border-radius: 24px;
    overflow: hidden;
}

.ab-2 {
    color: #0d5ef7 !important;
}

.ab-3 {
    color: #00af3f !important;
}

.ab-4 {
    color: #f55959 !important;
}

#vpsTab .hosting-card {
    padding: 20px;
}

#vpsTab .hosting-header h3 {
    font-size: 18px !important;
}

#vpsTab .hosting-price {
    font-size: 18px !important;
}

#vpsTab .hosting-features li {
    font-size: 15px;
}

#hostingTab .hosting-header h3 {
    font-size: 18px !important;
}

#hostingTab .hosting-price {
    font-size: 18px !important;
}

#hostingTab .hosting-card {
    padding: 20px;
}

#hostingTab .hosting-features li {
    font-size: 15px;
}


/* tFocus */
#tFocus-btn li.active,
#tFocus-leftbtn,
#tFocus-rightbtn {
    display: block;
    background: url(../images/spr.png) no-repeat;
}

#tFocus {
    width: 400px;
    height: 430px;
    overflow: hidden;
    margin: 0px auto 0 auto;
}

#tFocus-pic {
    width: 400px;
    height: 330px;
    position: relative;
}

.img-responsive {
    height: 320px;
    width: 370px;
}

#tFocus-pic li {
    width: 400px;
    height: 330px;
    position: absolute;
    left: 0;
    top: 0;
    /* filter: alpha(opacity:0);
    opacity: 0; */
}

#tFocusBtn {
    width: 470px;
    height: 115px;
    margin-top: 20px;
    z-index: 20;
    overflow: hidden;
    margin-left: 2px;
}

#tFocus-btn {
    width: 358px;
    height: 115px;
    position: relative;
    left: 0;
    bottom: 0;
    overflow: hidden;
    float: left;
    margin-right: 3px;
}

#tFocus-btn ul {
    width: 100000px;
    position: absolute;
    left: 0;
    top: 0;
}

#tFocus-btn li {
    height: 59px;
    width: 67px;
    padding-top: 4px;
    display: block;
    float: left;
    margin-right: 5px;
    text-align: center;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

#tFocus-btn li img {
    width: auto;
    max-width: 56px;
    height: 50px;
    border-radius: 3px;
}

#tFocus-btn li.active {
    float: left;
    border: 1px solid #fe7877;
}

#lightgallery .col-md-3 {
    padding-left: 0px;
    padding-right: 0px;
}

#tFocus-btn li:hover {
    cursor: pointer;
}

#tFocus-btn li.active img {}

#tFocus-leftbtn,
#tFocus-rightbtn {
    height: 40px;
    margin-top: 18px;
    width: 15px;
    float: left;
    text-indent: -9999px;
}

#tFocus-leftbtn {
    margin-right: 5px;
    background-position: -455px -68px;
}

#tFocus-rightbtn {
    background-position: -480px -68px;
}



.demo-gallery>ul {
    margin-bottom: 0;
}

.demo-gallery>ul>li {
    float: left;
    margin-bottom: 15px;
    margin-right: 20px;
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.demo-gallery>ul>li a {
    display: block;
    overflow: hidden;
    position: relative;
    float: left;
    border-radius: 6px;
}

.demo-gallery>ul>li a>img {
    -webkit-transition: -webkit-transform 0.15s ease 0s;
    -moz-transition: -moz-transform 0.15s ease 0s;
    -o-transition: -o-transform 0.15s ease 0s;
    transition: transform 0.15s ease 0s;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    max-height: 100%;
    width: auto;
    text-align: center;
}

.demo-gallery>ul>li a:hover>img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
}

.demo-gallery>ul>li a:hover .demo-gallery-poster>img {
    opacity: 1;
}

.demo-gallery>ul>li a .demo-gallery-poster {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
}

.demo-gallery>ul>li a .demo-gallery-poster>img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
}

.demo-gallery>ul>li a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.1);
}

.demo-gallery .justified-gallery>a>img {
    -webkit-transition: -webkit-transform 0.15s ease 0s;
    -moz-transition: -moz-transform 0.15s ease 0s;
    -o-transition: -o-transform 0.15s ease 0s;
    transition: transform 0.15s ease 0s;
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
    height: 100%;
    width: 100%;
}

.demo-gallery .justified-gallery>a:hover>img {
    -webkit-transform: scale3d(1.1, 1.1, 1.1);
    transform: scale3d(1.1, 1.1, 1.1);
}

.demo-gallery .justified-gallery>a:hover .demo-gallery-poster>img {
    opacity: 1;
}

.demo-gallery .justified-gallery>a .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
}

.demo-gallery .justified-gallery>a .demo-gallery-poster>img {
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    opacity: 0;
    position: absolute;
    top: 50%;
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
}

.demo-gallery .justified-gallery>a:hover .demo-gallery-poster {
    background-color: rgba(0, 0, 0, 0.5);
}

.demo-gallery .video .demo-gallery-poster img {
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    opacity: 0.8;
    width: 48px;
}

.demo-gallery.dark>ul>li a {
    border: 3px solid #04070a;
}



        /* 主容器卡片效果 */
        .gallery-container {
            width: 100%;
            margin: 0 auto;
            background: white;
            border-radius: 28px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            padding: 20px 20px 30px 20px;
        }

        /* 中央大图区域 - 使用 flex 实现图片垂直居中且保持容器固定比例 */
        .main-image-area {
            position: relative;
            border-radius: 24px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
            margin-bottom: 12px;
            cursor: pointer;
            /* 固定宽高比 16:9，且内部图片垂直居中 */
            aspect-ratio: 16 / 9;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .main-img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;  /* 保证图片完整显示且不变形，垂直居中由父级flex负责 */
            display: block;
            transition: transform 0.25s ease;
            padding: 10px 10px;
            border-radius: 24px;
        }

        /* 左右按钮样式 (保持绝对定位，相对于父容器) */
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
            transition: all 0.2s ease;
            z-index: 12;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .nav-btn:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: translateY(-50%) scale(1.03);
        }

        .nav-btn:active {
            transform: translateY(-50%) scale(0.96);
        }

        .btn-prev {
            left: 22px;
        }

        .btn-next {
            right: 22px;
        }

        /* 图片信息卡片：名称 + 浏览次数 */
        .image-info-card {
            background: #ffffff;
            border-radius: 20px;
            padding: 12px 20px;
            margin-top: 8px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 12px;
            border: 1px solid #eef2f6;
        }

        .image-name {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1f2a3e;
            letter-spacing: -0.2px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .image-name i {
            color: #4f7a3f;
            font-size: 1.25rem;
        }

        .view-count {
            background: #f0f3f8;
            padding: 6px 14px;
            border-radius: 40px;
            font-size: 0.9rem;
            font-weight: 500;
            color: #2c3e4e;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .view-count i {
            color: #e67e22;
            font-size: 1rem;
        }

        /* 缩略图滚动区域 */
        .thumbnail-wrapper {
            width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            white-space: nowrap;
            scroll-behavior: smooth;
            padding-bottom: 12px;
            margin-top: 8px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }

        .thumbnail-track {
            display: inline-flex;
            gap: 12px;
            padding: 4px 2px;
        }

        .thumbnail-item {
            flex: 0 0 auto;
            width: 85px;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 3px solid transparent;
            opacity: 0.7;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        .thumbnail-item.active {
            border-color: #0d6efd;
            opacity: 1;
            transform: scale(1.02);
            box-shadow: 0 6px 12px rgba(13,110,253,0.2);
        }

        .thumbnail-img {
            width: 100%;
            aspect-ratio: 11 / 9;
            object-fit: cover;
            display: block;
        }

        /* 移动端适配 */
        @media (max-width: 576px) {
            .thumbnail-item {
                width: 70px;
            }
            .nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1.4rem;
            }
            .gallery-container {
                padding: 14px;
            }
            .image-name {
                font-size: 1.1rem;
            }
            .view-count {
                font-size: 0.8rem;
                padding: 4px 12px;
            }
            .image-info-card {
                padding: 10px 16px;
            }
        }

        /* ========== 模态框样式：图片实际大小，垂直居中，关闭按钮在图片右上角 ========== */
        .modal-full-image {
            --bs-modal-zindex: 1055;
            --bs-modal-backdrop-bg: rgba(0,0,0,0.9);
        }
        /* 自定义模态框内容背景透明，用于显示大图实际尺寸 */
        .modal-content.bg-transparent-custom {
            background: transparent;
            border: none;
            box-shadow: none;
            margin: 0;
            width: auto;
            display: inline-block;
        }
        /* 模态框主体设置为 flex 垂直居中 */
        .image-zoom-modal .modal-dialog {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: calc(100% - 3.5rem);
            margin: 1.75rem auto;
        }
        .image-zoom-modal .modal-body {
            padding: 0;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        /* 图片容器：用于包裹图片和关闭按钮，inline-block 适应内容大小 */
        .image-wrapper-active {
            position: relative;
            display: inline-block;
            max-width: 95vw;
            max-height: 90vh;
            background: transparent;
        }
       
        /* 图片实际大小展示，不加限制，保留原始宽高，超出时可滚动查看 */
        .smart-zoom-img {
            display: block;
            /* 关键：最大宽度和最大高度限制为视口大小，保证图片不会超出屏幕 */
            max-width: 95vw;
            max-height: 90vh;
            /* 宽度和高度自动，保持原始宽高比 */
            width: auto;
            height: auto;
            /* 当图片原始尺寸小于 max-width/max-height 时，图片保持原始大小 */
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 20px 35px rgba(0,0,0,0.3);
        }
        
        /* 关闭按钮始终位于图片的右上角 */
        .close-btn-overlay {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 1060;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.4rem;
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }
        
        .close-btn-overlay:hover {
            background: rgba(220, 53, 69, 0.9);
            transform: scale(1.05);
        }
        
        /* 模态框内的左右切换按钮 - 位于图片左右两侧居中 */
        .modal-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            border: none;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 1061;
            box-shadow: 0 2px 12px rgba(0,0,0,0.3);
        }

        .modal-nav-btn:hover {
            background: rgba(0, 0, 0, 0.85);
            transform: translateY(-50%) scale(1.05);
        }

        .modal-nav-btn:active {
            transform: translateY(-50%) scale(0.95);
        }

        .modal-btn-prev {
            left: 10px;
        }

        .modal-btn-next {
            right: 10px;
        }

        /* 移动端适配：模态框按钮位置调整 */
        @media (max-width: 768px) {
            .modal-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1.4rem;
            }
            .modal-btn-prev {
                left: -20px;
            }
            .modal-btn-next {
                right: -20px;
            }
            .close-btn-overlay {
                width: 38px;
                height: 38px;
                font-size: 1.2rem;
                top: 8px;
                right: 8px;
            }
        }

        /* 当图片容器较小时，按钮不超出视口 */
        @media (max-width: 576px) {
            .modal-btn-prev {
                left: -10px;
            }
            .modal-btn-next {
                right: -10px;
            }
        }

        /* 模态框背景深色 */
        .modal-backdrop.show {
            opacity: 0.92;
        }