/* Local WebFonts - 使用本地字型，避免依賴 Google Fonts/CDN */
/* 字型檔需放在 /static/fonts/ 目錄下，發布後路徑為 /fonts/... */
@font-face {
    font-family: "Noto Sans TC";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/NotoSansTC-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Noto Sans TC";
    font-style: normal;
    font-weight: 700;
    src: url("/fonts/NotoSansTC-Bold.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/Inter-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 600;
    src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    src: url("/fonts/Roboto-Regular.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    src: url("/fonts/Roboto-Bold.woff2") format("woff2");
    font-display: swap;
}

:root {
    --primary-color: #0066cc;
    /* Professional Blue */
    --primary-dark: #004494;
    --accent-color: #ff6b00;
    /* Vibrant Orange */
    --accent-hover: #e65c00;
    --text-dark: #1a1a1a;
    --text-gray: #4a4a4a;
    --text-light: #888888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e4e8;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family:
        "Noto Sans TC",
        "Inter",
        "Roboto",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width) !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

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

.nav-actions {
    display: flex;
    gap: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    color: #333;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    padding: 10px 0;
}

.nav-item > a {
    color: var(--text-gray);
}

.nav-item:hover > a,
.nav-item > a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Dropdown Toggle Arrow */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-light);
    margin-left: 6px;

    display: inline-block;
    vertical-align: middle;
    transition:
        transform 0.3s ease,
        border-top-color 0.3s ease;
}

.dropdown:hover > .dropdown-toggle::after {
    transform: rotate(180deg);
    border-top-color: var(--primary-color);
}

/* Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Dropdown Item Spacing */
.dropdown-menu li a {
    display: block;
    padding: 12px 24px;
    /* Increased padding for better spacing */
    color: var(--text-dark);
    font-size: 0.95rem;
    /* Slightly smaller than top level */
    line-height: 1.5;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 28px;
    /* Subtle hover slide effect */
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    gap: 60px;
}

/* Nested Dropdown Styles */
.dropdown-submenu {
    position: relative;
    width: 100%;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-submenu > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid var(--text-light);
    margin-left: 10px;
    transition: border-left-color 0.2s;
}

.dropdown-submenu > a:hover::after {
    border-left-color: var(--primary-color);
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -5px;
    display: none;
    opacity: 0;
    visibility: hidden;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-text {
    flex: 1;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

/* Hero with full-width background image（產品頁 Banner：淺色文字） */
.hero-with-bg {
    position: relative;
    color: #fff;
}

/* 有背景圖時不加疊層，以文字陰影保證可讀性 */
.hero-with-bg::before {
    display: none;
}

.hero-with-bg .hero-content {
    position: relative;
    z-index: 1;
}

.hero-with-bg .hero-text {
    max-width: 540px;
}

.hero-with-bg h1 {
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
/* 標題單行顯示，避免「China Direct 雲端主機」等斷成兩行 */
.hero h1 .hero-title-line {
    white-space: nowrap;
}
@media (max-width: 640px) {
    .hero h1 .hero-title-line {
        white-space: normal;
    }
}
.hero-with-bg h1 .text-gradient {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: none;
    background-clip: unset;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-with-bg .hero-subhead {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    font-size: 1.15rem;
}
.hero-with-bg .breadcrumbs {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.hero-with-bg .breadcrumbs a,
.hero-with-bg .breadcrumbs span {
    color: rgba(255, 255, 255, 0.9);
}
.hero-with-bg .breadcrumbs a:hover {
    color: #fff;
}
.hero-with-bg .hero-cta {
    margin-top: 0.5rem;
}
.hero-with-bg .btn-outline {
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.hero-with-bg .btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    color: #fff;
}

/* Gradient Primary Background (for value-added-services and similar pages) */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0066cc 0%, #004494 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.badge-new {
    display: inline-block;
    background-color: #ffebee;
    color: #d32f2f;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

/* China Direct badge colors */
.hero-dedicated.china-direct .badge-new {
    background-color: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--text-light);
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* 僅在無背景圖的 hero 使用深色標題，有背景圖的由 .hero-with-bg h1 設為白字 */
.hero:not(.hero-with-bg) h1 {
    color: #1a1a1a;
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 首页 Hero（含 China 动态切换）副标题：背景图下统一为白字+阴影，保证可读 */
.hero.hero-home #hero-title .text-gradient {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    background: none !important;
    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.8),
        0 2px 12px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.15);
}

.hero-subhead {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-trust-badges {
    display: flex;
    gap: 25px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.hero-trust-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
}

.network-map {
    position: relative;
    width: 100%;
    height: 100%;
    background: url("assets/images/map-bg.svg") no-repeat center center;
    /* Placeholder if image missing */
    background-size: contain;
}

/* Simple CSS Map Visualization */
.map-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 4px solid rgba(0, 86, 179, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.map-point.taiwan {
    top: 50%;
    left: 20%;
}

.map-point.china {
    top: 40%;
    left: 70%;
}

.connection-line {
    position: absolute;
    top: 45%;
    left: 22%;
    width: 48%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: rotate(-10deg);
    transform-origin: left center;
}

.connection-line::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 10px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 3px;
    animation: moveData 2s linear infinite;
}

@keyframes moveData {
    0% {
        left: 0;
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.ping-indicator {
    position: absolute;
    top: 35%;
    left: 45%;
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #28a745;
    box-shadow: var(--shadow-sm);
}

.feature-card {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 6s ease-in-out infinite;
}

.feature-card .icon {
    font-size: 1.5rem;
}

.feature-card .text {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

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

/* Features Section */
.features {
    padding: var(--section-padding);
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a1a1a;
}

/* Trust section 標題加粗 */
.trust .section-header h2 {
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

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

.feature-item {
    position: relative;
    transition: all 0.3s;
}

.feature-item-card {
    padding: 30px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    height: 100%;
}

.feature-item:hover .feature-item-card {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* 有圖標時：圖標在方框左上、略超出框上（與首頁一致） */
.feature-item-card-with-icon {
    padding-top: 2.5rem;
}

.feature-icon-float {
    position: absolute;
    left: 1.5rem;
    top: -2.25rem;
    width: 4.5rem;
    height: 4.5rem;
    z-index: 1;
}

.feature-icon-float .feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-icon-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
}

.feature-item-card h3,
.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-item-card p,
.feature-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background-color: var(--bg-light);
    background-image: url("/images/pricing-bg-v2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* 服務透明度區塊：與首頁價格表同背景、sticky 固定背景 */
.transparency-section {
    padding: var(--section-padding);
    background-color: var(--bg-light);
    background-image: url("/images/pricing-bg-v2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.transparency-section .section-header h2 {
    color: var(--text-dark);
}

.transparency-section .section-header p {
    color: var(--text-gray);
}

.transparency-status-block .service-status-simple {
    margin-top: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.transparency-status-block .status-simple-header {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.transparency-status-block .system-status-bar {
    margin-bottom: 20px;
}

.transparency-status-block .groups-grid {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    gap: 14px;
}

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

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-header .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-header .price span {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.features-list {
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 12px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li::before {
    content: "\2713";
    color: #28a745;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.features-list li.highlight-feature {
    color: var(--text-dark);
    font-weight: 600;
}

/* Trust Section */
.trust {
    padding: var(--section-padding);
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

/* 見證區：桌面雙欄、手機單欄，卡片與區塊背景區隔 */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .testimonials {
        grid-template-columns: 1fr;
        max-width: none;
    }
}

.testimonials .testimonial-card {
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 引用語意：大號裝飾引號 */
.trust .quote {
    position: relative;
    padding-left: 28px;
}

.trust .quote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -4px;
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(0, 102, 204, 0.18);
    font-family: Georgia, "Noto Serif TC", serif;
}

/* 見證區頭像：略大 + 邊框，與背景區隔 */
.trust .avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* 服務狀態區視覺分組：上邊距 + 頂部分隔線 + 副標題引導 */
.trust-status-block {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 2px solid #cbd5e1;
}

/* 狀態區加入小標題 */
.trust-status-block::before {
    content: "服務透明度";
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-align: center;
}

/* 服務狀態區內部層次：標題 / 狀態條 / 網格 分開 */
.trust-status-block .service-status-simple {
    margin-top: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.trust-status-block .status-simple-header {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.trust-status-block .system-status-bar {
    margin-bottom: 20px;
}

.trust-status-block .groups-grid {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    gap: 14px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.info strong {
    display: block;
    color: #1a1a1a;
}

.info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.looking-glass {
    background: #1e1e1e;
    color: white;
    padding: 30px;
    border-radius: 12px;
    font-family: "Courier New", monospace;
}

/* 覆寫 Tailwind 的字體設定，讓 .font-sans 也使用本地字型 */
.font-sans {
    font-family:
        "Noto Sans TC",
        "Inter",
        "Roboto",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
}

/* 表單元素也統一使用同一組字型 */
button,
input,
select,
textarea {
    font-family:
        "Noto Sans TC",
        "Inter",
        "Roboto",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.looking-glass h3 {
    margin-bottom: 20px;
    color: #00ff00;
}

.lg-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.lg-row.header {
    color: #888;
    font-size: 0.9rem;
}

.lg-row .good {
    color: #00ff00;
}

.status-ok {
    color: #00ff00;
}

.lg-actions {
    margin-top: 20px;
    text-align: right;
}

.text-link {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer */
/* Footer Styles - Modern & Clean Design with Super Enhanced Tech Background */
.footer {
    background: 
        linear-gradient(135deg, transparent 0%, rgba(0, 102, 204, 0.05) 50%, transparent 100%),
        linear-gradient(45deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    border-top: 3px solid rgba(0, 102, 204, 0.6);
    overflow: hidden;
    box-shadow: 
        inset 0 2px 0 0 rgba(0, 102, 204, 0.4),
        inset 0 4px 20px 0 rgba(0, 102, 204, 0.15);
}

/* Strong Grid Pattern */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0, 102, 204, 0.25) 1px, transparent 1px),
        linear-gradient(rgba(0, 102, 204, 0.25) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Animated Dots Pattern - Much Brighter */
.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.5) 2px, transparent 2px);
    background-size: 50px 50px;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

/* Diagonal Light Beams */
.footer .container::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0, 102, 204, 0.1) 49%, rgba(0, 102, 204, 0.2) 50%, rgba(0, 102, 204, 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0, 102, 204, 0.05) 49%, rgba(0, 102, 204, 0.1) 50%, rgba(0, 102, 204, 0.05) 51%, transparent 52%);
    background-size: 200px 200px, 300px 300px;
    pointer-events: none;
    animation: beamMove 30s linear infinite;
}

.footer .container {
    position: relative;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes beamMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 100px) rotate(5deg);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #fff;
}

/* Footer Logo */
.footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-col p {
    color: #999;
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-col a {
    display: block;
    color: #999;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

.footer-col a:hover {
    color: var(--primary-color, #0066cc);
    padding-left: 8px;
}

/* Footer Contact Items with Icons */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: #999;
    line-height: 1.8;
}

.footer-contact-item a {
    display: inline;
    margin-bottom: 0;
}

.footer-contact-item a:hover {
    padding-left: 0;
    color: var(--primary-color, #0066cc);
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    opacity: 0.7;
}

/* Fix address wrapping */
.footer-address {
    align-items: center;
}

.footer-address span {
    white-space: nowrap;
}

/* Trusted Partners Section - Low-key for SEO */
.footer-trusted {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    filter: grayscale(100%);
    opacity: 0.4;
    position: relative;
    z-index: 1;
}

.trusted-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.trusted-partner {
    font-size: 0.85rem;
    color: #888;
}

/* Footer Bottom - Copyright */
.footer-bottom {
    border-top: 1px solid rgba(0, 102, 204, 0.2);
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 10px 0;
    color: #999;
    line-height: 1.6;
}

.footer-bottom p:first-child {
    font-size: 0.95rem;
    font-weight: 500;
    color: #bbb;
}

.footer-bottom p:nth-child(2) {
    font-size: 0.9rem;
    color: #aaa;
    font-weight: 500;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color, #0066cc);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

.back-to-top:hover {
    background: #0052a3;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-trust-badges {
        justify-content: center;
    }

    .trust-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 350px);
        /* Adjust based on menu height */
        left: 0;
        width: 100%;
        background: white;
        padding: 0 20px 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-item {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
    }

    .dropdown.active > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > .dropdown-menu {
        margin-top: 0;
        padding-left: 20px;
        border-left: 2px solid #eee;
    }

    .dropdown-submenu.active > .dropdown-menu {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }

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

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .footer-logo {
        width: 100px;
        margin-bottom: 16px;
    }

    .footer-trusted {
        flex-direction: column;
        gap: 8px;
    }

    .footer-address span {
        white-space: normal;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* WordPress Menu Adapter */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-navigation .menu-item {
    position: relative;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    padding: 10px 0;
}

.main-navigation .menu-item > a {
    color: var(--text-gray);
}

.main-navigation .menu-item:hover > a,
.main-navigation .menu-item > a:hover {
    color: var(--primary-color);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: block;
    /* Override WP default if needed */
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    position: relative;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Nested Sub-menu */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
}

/* Arrow indicators */
.main-navigation .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.main-navigation .sub-menu .menu-item-has-children > a::after {
    content: "▶";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    list-style: none;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs li {
    display: inline-block;
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumbs .bread-current {
    color: var(--text-gray);
    font-weight: 500;
}

/* Toggle Switch */
.toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #f1f1f1;
    padding: 8px 20px;
    border-radius: 30px;
}

.toggle-label {
    font-weight: 600;
    color: #888;
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-label.active {
    color: var(--primary-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.main-navigation .menu-item > a {
    color: var(--text-gray);
}

.main-navigation .menu-item:hover > a,
.main-navigation .menu-item > a:hover {
    color: var(--primary-color);
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: block;
    /* Override WP default if needed */
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu li {
    position: relative;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* Nested Sub-menu */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: -10px;
}

/* Arrow indicators */
.main-navigation .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.7em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.main-navigation .sub-menu .menu-item-has-children > a::after {
    content: "▶";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    list-style: none;
    border-radius: 4px;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs li {
    display: inline-block;
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumbs .bread-current {
    color: var(--text-gray);
    font-weight: 500;
}

/* Toggle Switch */
.toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #f1f1f1;
    padding: 8px 20px;
    border-radius: 30px;
}

.toggle-label {
    font-weight: 600;
    color: #888;
    transition: color 0.3s;
    cursor: pointer;
}

.toggle-label.active {
    color: var(--primary-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.text-gradient-gold {
    background: linear-gradient(to right, #e74c3c, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Colocation Hero Highlights */
.hero-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
    text-align: left;
}

@media (min-width: 768px) {
    .hero-highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-item .icon {
    font-size: 24px;
    line-height: 1;
}

.highlight-item .text strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.highlight-item .text p {
    font-size: 14px;
    color: #4a4a4a;
    margin: 0;
    line-height: 1.4;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .hero-cta-group {
        flex-direction: column;
    }
}

/* Dedicated Page Specific Styles */
.tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tech-spec-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-spec-icon {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(0, 102, 204, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comparison Chart */
.compare-chart-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.chart-row {
    margin-bottom: 20px;
}

.chart-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
}

.chart-bar-bg {
    background: #f0f0f0;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--accent-hover)
    );
    width: 0;
    border-radius: 12px;
    transition: width 1s ease-out;
}

.chart-bar-fill.competitor {
    background: #ccc;
}

/* Latency Grid */
.latency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.latency-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: transform 0.2s;
}

.latency-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.latency-loc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.latency-ms {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745;
}

.latency-ms small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Configurator Styles (Simplified) */
.config-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.config-tag {
    background: #eef2f7;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

/* FAQ Section Styles (mimicking Tailwind) */
.faq-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 0;
    cursor: pointer;
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 500;
    /* font-medium */
    color: #111827;
    /* text-gray-900 */
}

.faq-btn:focus {
    outline: none;
}

.faq-content {
    margin-top: 8px;
    /* mt-2 */
    color: #6b7280;
    /* text-gray-500 */
    font-size: 1rem;
    /* text-base */
    line-height: 1.5;
    padding-bottom: 16px;
}

.faq-icon {
    height: 1.5rem;
    /* h-6 */
    width: 1.5rem;
    /* w-6 */
    color: #6b7280;
    /* text-gray-500 */
    transition: transform 0.2s;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    /* border-gray-200 */
}
/* DDoS Hub Sticky Nav */
.ddos-selector-strip {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 74px;
    z-index: 90;
    margin-top: 80px; /* Pushes content down below fixed/floating navbar */
}
.ddos-selector-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    max-width: 800px;
    margin: 0 auto;
}
.ddos-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.ddos-selector-btn:hover {
    color: #334155;
    background: #f8fafc;
}
.ddos-selector-btn.active {
    color: var(--primary-color);
    border-bottom: none;
    background: #f0f7ff;
    font-weight: 600;
}
.ddos-selector-icon {
    font-size: 1.2rem;
}

/* Section Dark - 用于地区切换section */
.section-dark {
    background: #f8fafc;
}

/* Toggle Wrapper - 地区切换toggle switch样式 */
.toggle-wrapper {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.toggle-label {
    padding: 8px 20px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 25px;
    font-size: 0.95rem;
    user-select: none;
}

.toggle-label.active {
    color: var(--primary-color);
    font-weight: 600;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0 10px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.round {
    border-radius: 34px;
}

.round:before {
    border-radius: 50%;
}

/* Billing Cycle Control */
.billing-cycle-control {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.billing-btn {
    background: white;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.billing-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
}

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

.billing-discount {
    background: #ffc107;
    color: #212529;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 5px;
    font-weight: 700;
}

.region-content {
    display: none;
}

.region-content.active {
    display: grid;
}

.plan-loc {
    font-size: 0.8em;
    color: #64748b;
    font-weight: 400;
}

/* Hero Dedicated Style - 深色背景 */
.hero-dedicated {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-dedicated::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(37, 99, 235, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(236, 72, 153, 0.05) 0%,
            transparent 50%
        );
}

/* DDoS 页面专用浅色背景（無背景圖時） */
.hero-dedicated.hero-ddos:not(.hero-dedicated-with-bg) {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: #1a1a1a;
}

.hero-dedicated.hero-ddos:not(.hero-dedicated-with-bg)::before {
    display: none;
}

.hero-dedicated.hero-ddos:not(.hero-dedicated-with-bg) h1 {
    color: #1a1a1a;
    text-shadow: none;
}

.hero-dedicated.hero-ddos:not(.hero-dedicated-with-bg) .subhead {
    color: #4a4a4a;
}

/* 有背景圖時：完全不用基底漸層與裝飾疊層，只保留 inline 的 background-image */
.hero-dedicated.hero-dedicated-with-bg {
    background: transparent;
    background-image: none;
}
.hero-dedicated.hero-dedicated-with-bg::before {
    display: none;
}
.hero-dedicated.hero-dedicated-with-bg h1,
.hero-dedicated.hero-ddos.hero-dedicated-with-bg h1 {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero-dedicated.hero-dedicated-with-bg .subhead,
.hero-dedicated.hero-ddos.hero-dedicated-with-bg .subhead {
    color: rgba(255, 255, 255, 0.92);
}
.hero-dedicated.hero-dedicated-with-bg .breadcrumbs a,
.hero-dedicated.hero-dedicated-with-bg .breadcrumbs span {
    color: rgba(255, 255, 255, 0.9);
}
.hero-dedicated.hero-dedicated-with-bg .breadcrumbs a:hover {
    color: #fff;
}
.hero-dedicated.hero-dedicated-with-bg .hero-visual-dedicated {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: none;
}
.hero-dedicated.hero-ddos.hero-dedicated-with-bg .hero-visual-dedicated {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

/* DDoS 页面的 hero-visual-dedicated 需要白色半透明背景 */
.hero-dedicated.hero-ddos .hero-visual-dedicated {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

/* China Direct variant - red theme */
.hero-dedicated.china-direct::before {
    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(220, 38, 38, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(234, 179, 8, 0.05) 0%,
            transparent 50%
        );
}

.hero-dedicated h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-dedicated .subhead {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-visual-dedicated {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 40px rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* China Direct variant - red shadow */
.hero-dedicated.china-direct .hero-visual-dedicated {
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.1);
}

.badge-new {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@keyframes moveData {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Pricing Table Styles */
.price-table-container {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    table-layout: auto;
}

.price-table th {
    background: #f8f9fa;
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.price-table td {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

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

.price-cell {
    text-align: right;
    min-width: 180px;
}

.price-tag {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0066cc;
}

.price-note {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-buy {
    margin-top: 8px;
}

.region-tbody {
    display: none;
}

.region-tbody.active {
    display: table;
}

/* CRO Section */
.cro-section {
    padding: 60px 0;
}

.cro-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.cro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cro-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Partners Grid */
/* Partners Section */
.partners-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Colocation Pricing Grid - Responsive */
@media (min-width: 768px) {
    .pricing-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .pricing-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Colocation Region Toggle Styles */
.region-toggle-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.region-toggle-container .toggle-wrapper {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.region-toggle-container .toggle-label {
    padding: 8px 24px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 25px;
    font-size: 0.95rem;
    user-select: none;
}

.region-toggle-container .toggle-label.active {
    color: #2563eb;
    font-weight: 700;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.region-toggle-container .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0 10px;
}

.region-toggle-container .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.region-toggle-container .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 34px;
}

.region-toggle-container .toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.region-toggle-container input:checked + .toggle-slider {
    background-color: #2563eb;
}

.region-toggle-container input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Colocation Pricing Grid - Responsive */
.pricing-grid.region-content {
    display: none;
}

.pricing-grid.region-content.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

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

/* Colocation specific pricing grid styles */
/* 使用专用类名，不依赖内联样式属性选择器（更稳定） */
.pricing-grid-colocation {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .pricing-grid-colocation {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pricing-grid-colocation {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 保留旧的属性选择器作为后备 */
.pricing-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .pricing-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pricing-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
        grid-template-columns: repeat(4, 1fr);
    }
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.partner-logo {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #495057;
    border: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

.partner-logo-img {
    max-height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Risk Badge */
.risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f4ea;
    color: #1e7e34;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 20px;
}

/* DDoS Selector Strip */
.ddos-selector-strip {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 74px;
    z-index: 90;
    margin-top: 74px;
}

.ddos-selector-container {
    display: flex;
    justify-content: center;
    gap: 5px;
    max-width: 800px;
    margin: 0 auto;
}

.ddos-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.ddos-selector-btn:hover {
    color: #334155;
    background: #f8fafc;
}

.ddos-selector-btn.active {
    color: var(--primary-color);
    border-bottom: none;
    background: #f0f7ff;
    font-weight: 600;
}

.ddos-selector-icon {
    font-size: 1.2rem;
}

/* ============================================
   Service Status - Simple Groups Display
   ============================================ */

.service-status-simple {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
}

.status-simple-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.status-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-title-group h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.status-time {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.status-detail-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 102, 204, 0.08);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.status-detail-link:hover {
    background: rgba(0, 102, 204, 0.15);
}

/* System Status Bar */
.system-status-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.system-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.system-badge.up {
    color: #059669;
}

.system-badge.slow {
    color: #d97706;
}

.system-badge.issue {
    color: #ea580c;
}

.system-badge.down {
    color: #dc2626;
}

.system-badge.error {
    color: #64748b;
}

.system-badge.loading {
    color: #64748b;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.system-badge.up .pulse-dot {
    animation: none;
}

.system-badge.slow .pulse-dot {
    animation: pulse-yellow 2s infinite;
}

.system-badge.issue .pulse-dot {
    animation: pulse-orange 2s infinite;
}

.system-badge.down .pulse-dot {
    animation: pulse-red 1.5s infinite;
}

.system-badge.loading .pulse-dot {
    animation: pulse 2s infinite;
    background: #cbd5e1;
}

.system-stats {
    margin-left: auto;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

@keyframes pulse-yellow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
    }
}

@keyframes pulse-orange {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
    }
}

@keyframes pulse-red {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* Groups Grid - 桌面5列 */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 1000px) {
    .groups-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 手机端强制2列 */
@media (max-width: 640px) {
    .groups-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .group-cell {
        padding: 10px 10px;
        gap: 6px;
    }

    .group-name {
        font-size: 0.8rem;
    }

    .group-status-text {
        font-size: 0.65rem;
    }

    .group-indicator {
        width: 6px;
        height: 6px;
    }
}

/* 超小屏幕才用1列 */
@media (max-width: 320px) {
    .groups-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Active Incidents Alert */
.incidents-alert {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid;
}

/* 警告樣式 - 有進行中的事件 */
.incidents-alert.incidents-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
    border-left-color: #f59e0b;
}

.incidents-alert.incidents-warning .incidents-title-text {
    color: #92400e;
}

.incidents-alert.incidents-warning .incident-item {
    border: 1px solid #fde68a;
}

.incidents-alert.incidents-warning .incident-more {
    color: #b45309;
}

/* 信息樣式 - 只有已解決的事件 */
.incidents-alert.incidents-info {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
    border-left-color: #10b981;
}

.incidents-alert.incidents-info .incidents-title-text {
    color: #065f46;
}

.incidents-alert.incidents-info .incident-item {
    border: 1px solid #a7f3d0;
}

.incidents-alert.incidents-info .incident-item.resolved {
    opacity: 0.85;
}

.incidents-alert.incidents-info .incident-more {
    color: #047857;
}

.incidents-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.incidents-icon {
    font-size: 1.1rem;
}

.incidents-title-text {
    font-weight: 700;
    font-size: 0.9rem;
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.incident-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 6px;
}

.incident-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.incident-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    flex-shrink: 0;
}

.incident-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.incident-time {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.incident-more {
    text-align: center;
    padding: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.group-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: default;
}

.group-cell:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.group-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.group-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.group-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-status-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
}

.group-cell.up .group-status-text {
    color: #059669;
}

.group-cell.slow .group-status-text {
    color: #d97706;
}

.group-cell.issue .group-status-text {
    color: #ea580c;
}

.group-cell.down .group-status-text {
    color: #dc2626;
}

/* Skeleton Loading */
.group-cell.skeleton {
    background: #f1f5f9;
    border-color: #e2e8f0;
    pointer-events: none;
    min-height: 50px;
}

.group-cell.skeleton > div {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #e2e8f0 25%, #cbd5e1 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.groups-empty,
.groups-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 0.9rem;
    background: white;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.groups-error a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .service-status-simple {
        padding: 16px 12px;
        margin-top: 30px;
    }

    .status-simple-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .system-status-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }

    .system-badge {
        font-size: 0.9rem;
    }

    .system-stats {
        width: 100%;
        margin-left: 14px;
        font-size: 0.75rem;
    }
}

/* Legacy Looking Glass Styles (保留向后兼容) */
.looking-glass {
    background: #1e1e1e;
    color: white;
    padding: 30px;
    border-radius: 12px;
    font-family: "Courier New", monospace;
}

.looking-glass h3 {
    margin-bottom: 20px;
    color: #00ff00;
}

.lg-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.lg-row.header {
    color: #888;
    font-size: 0.9rem;
}

.lg-row .good {
    color: #00ff00;
}

.status-ok {
    color: #00ff00;
}

.lg-actions {
    margin-top: 20px;
    text-align: right;
}

/* ========================================
   主機服務頁面專屬主題色
   ======================================== */

/* 實體主機主題 (#0361bd) */
[data-theme="dedicated"] .btn-primary,
[data-theme="dedicated"] .hero-cta .btn-primary,
[data-theme="dedicated"] .btn.btn-primary {
    background-color: #0361bd;
    border-color: #0361bd;
    color: #fff;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 8px 16px;
    border: none;
}

[data-theme="dedicated"] .btn-primary:hover,
[data-theme="dedicated"] .hero-cta .btn-primary:hover,
[data-theme="dedicated"] .btn.btn-primary:hover {
    background-color: #0bcf98;
    border-color: #0bcf98;
}

[data-theme="dedicated"] .btn-outline,
[data-theme="dedicated"] .hero-cta .btn-outline {
    background-color: #01a6e5;
    border-color: #01a6e5;
    color: #fff;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 8px 16px;
}

[data-theme="dedicated"] .btn-outline:hover,
[data-theme="dedicated"] .hero-cta .btn-outline:hover {
    background-color: #0bcf98;
    border-color: #0bcf98;
}

[data-theme="dedicated"] .text-gradient {
    background: linear-gradient(135deg, #0361bd, #01a6e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dedicated"] .highlight-text {
    color: #fff;
    background-color: #0361bd;
    padding: 1px 5px;
    border-radius: 3px;
}

/* 雲端主機主題 (#0bcf98) */
[data-theme="cloud"] .btn-primary,
[data-theme="cloud"] .hero-cta .btn-primary,
[data-theme="cloud"] .btn.btn-primary {
    background-color: #0bcf98;
    border-color: #0bcf98;
    color: #fff;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 8px 16px;
    border: none;
}

[data-theme="cloud"] .btn-primary:hover,
[data-theme="cloud"] .hero-cta .btn-primary:hover,
[data-theme="cloud"] .btn.btn-primary:hover {
    background-color: #0361bd;
    border-color: #0361bd;
}

[data-theme="cloud"] .btn-outline,
[data-theme="cloud"] .hero-cta .btn-outline {
    background-color: #01a6e5;
    border-color: #01a6e5;
    color: #fff;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 8px 16px;
}

[data-theme="cloud"] .btn-outline:hover,
[data-theme="cloud"] .hero-cta .btn-outline:hover {
    background-color: #0361bd;
    border-color: #0361bd;
}

[data-theme="cloud"] .text-gradient {
    background: linear-gradient(135deg, #0bcf98, #01a6e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="cloud"] .highlight-text {
    color: #fff;
    background-color: #0bcf98;
    padding: 1px 5px;
    border-radius: 3px;
}

/* Proxy 主機主題 (#01a6e5) */
[data-theme="proxy"] .btn-primary,
[data-theme="proxy"] .hero-cta .btn-primary,
[data-theme="proxy"] .btn.btn-primary {
    background-color: #01a6e5;
    border-color: #01a6e5;
    color: #fff;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 8px 16px;
    border: none;
}

[data-theme="proxy"] .btn-primary:hover,
[data-theme="proxy"] .hero-cta .btn-primary:hover,
[data-theme="proxy"] .btn.btn-primary:hover {
    background-color: #0361bd;
    border-color: #0361bd;
}

[data-theme="proxy"] .btn-outline,
[data-theme="proxy"] .hero-cta .btn-outline {
    background-color: #0bcf98;
    border-color: #0bcf98;
    color: #fff;
    font-weight: 400;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
    border-radius: 6px;
    padding: 8px 16px;
}

[data-theme="proxy"] .btn-outline:hover,
[data-theme="proxy"] .hero-cta .btn-outline:hover {
    background-color: #0361bd;
    border-color: #0361bd;
}

[data-theme="proxy"] .text-gradient {
    background: linear-gradient(135deg, #01a6e5, #0361bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="proxy"] .highlight-text {
    color: #fff;
    background-color: #01a6e5;
    padding: 1px 5px;
    border-radius: 3px;
}

/* 有背景圖的 hero 在 theme 下仍強制淺色文字（覆蓋 theme 的 .text-gradient 等） */
[data-theme="cloud"] .hero-with-bg h1,
[data-theme="dedicated"] .hero-with-bg h1,
[data-theme="proxy"] .hero-with-bg h1 {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
[data-theme="cloud"] .hero-with-bg h1 .text-gradient,
[data-theme="dedicated"] .hero-with-bg h1 .text-gradient,
[data-theme="proxy"] .hero-with-bg h1 .text-gradient {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    background-clip: unset !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
[data-theme="cloud"] .hero-with-bg .hero-subhead,
[data-theme="dedicated"] .hero-with-bg .hero-subhead,
[data-theme="proxy"] .hero-with-bg .hero-subhead {
    color: rgba(255, 255, 255, 0.92) !important;
}
[data-theme="cloud"] .hero-with-bg .breadcrumbs a,
[data-theme="cloud"] .hero-with-bg .breadcrumbs span,
[data-theme="dedicated"] .hero-with-bg .breadcrumbs a,
[data-theme="dedicated"] .hero-with-bg .breadcrumbs span,
[data-theme="proxy"] .hero-with-bg .breadcrumbs a,
[data-theme="proxy"] .hero-with-bg .breadcrumbs span {
    color: rgba(255, 255, 255, 0.9) !important;
}
[data-theme="cloud"] .hero-with-bg .breadcrumbs a:hover,
[data-theme="dedicated"] .hero-with-bg .breadcrumbs a:hover,
[data-theme="proxy"] .hero-with-bg .breadcrumbs a:hover {
    color: #fff !important;
}

/* 實體主機 sticky 背景：疊一層白讓線條不搶戲（用於 .dedicated-sticky-block 各區塊） */
.dedicated-sticky-block {
    position: relative;
    background-image: url('/images/dedicated-sticky-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.dedicated-sticky-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.52);
    pointer-events: none;
    z-index: 0;
}
.dedicated-sticky-block > * {
    position: relative;
    z-index: 1;
}

/* 雲端主機子頁 feature-grid 區塊 sticky（cloud-hosting-global / cloud-hosting-china-direct）*/
.cloud-sticky-block {
    position: relative;
    background-image: url('/images/cloud-sticky-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.cloud-sticky-block > * {
    position: relative;
    z-index: 1;
}

/* 主機服務總覽頁 /products/hosting/：sticky 區塊壓制疊層 */
.hosting-sticky-section {
    position: relative;
}
.hosting-sticky-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.52);
    pointer-events: none;
    z-index: 0;
}
.hosting-sticky-section > * {
    position: relative;
    z-index: 1;
}

/* Sticky 背景頁（cloud/proxy 整頁包層）：子區塊改為半透明讓底圖可見 */
.cloud-sticky-section > [class*="bg-white"],
.proxy-sticky-section > [class*="bg-white"] {
    background-color: rgba(255, 255, 255, 0.92) !important;
}
.cloud-sticky-section > [class*="bg-gray-50"],
.cloud-sticky-section > [class*="bg-slate-50"],
.proxy-sticky-section > [class*="bg-gray-50"],
.proxy-sticky-section > [class*="bg-slate-50"] {
    background-color: rgba(249, 250, 251, 0.85) !important;
}

/* 主機服務總覽三卡片：小螢幕單欄 */
@media (max-width: 900px) {
    .service-overview-grid {
        grid-template-columns: 1fr !important;
    }
}
