/* ===============================
   Root Design System
   =============================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
}

/* ===============================
   Base
   =============================== */

body {
    font-family: "Inter", "Noto Sans TC", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: .2s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    padding: 0 !important;
}

/* ===============================
   Typography
   =============================== */

h1, h2, h3, h4, h5 {
    font-weight: 600;
    letter-spacing: -0.3px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ===============================
   Layout Sections
   =============================== */

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.container-narrow {
    max-width: 960px;
}

/* ===============================
   Navbar
   =============================== */

.navbar {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    --bs-nav-link-font-size: .9rem;
    --bs-navbar-toggler-focus-width: .1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
}

.nav-link:hover {
    color: var(--primary);
}

/* ===============================
   Hero Section
   =============================== */

.hero {
    padding: 7rem 0 5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-text {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===============================
   Carousel
   =============================== */

.carousel-control-prev {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%);
}

.carousel-control-next {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.0001) 100%);
}

/* ===============================
   Cards
   =============================== */

.card-saas {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: .3s ease;
}

.card-saas:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card {
    border: 1px solid #e5e7eb;          /* 柔和冷灰邊框 */
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,.04);
}

.card-header {
    background-color: #f1f5ff;          /* 主色極淡底 */
    border-bottom: 1px solid #e5e7eb;
    color: #1e3a8a;                     /* 深藍文字 */
    font-weight: 600;
    font-size: 1rem;
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(37,99,235,.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* ===============================
   Slider
   =============================== */

.slider-wrapper {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform .4s ease;
    margin: 0 0 10px;
}

.slider-item {
    flex: 0 0 auto;
    padding: 0 10px;
}

.slider-btn {
    background: rgba(0,0,0,.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

#carousel-blog {
    transition: transform .35s ease;
}

.game-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    color: #fff;
}

.game-thumb img {
    width: 95px;
    height: 95px;
    border-radius: 20px !important;
    object-fit: cover;
}

.game-content {
    flex: 1;
}

.game-title a {
    font-size: 1rem;
    font-weight: 700;
    color: #980531;
    text-decoration: none;
}

.game-title a:hover {
    text-decoration: underline;
}

.game-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 6px;
    opacity: .95;
    color: #ffffff;
}

.game-card .btn-primary {
    border: none;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 8px;
}

/* ===============================
   Buttons
   =============================== */

.btn {
    border-radius: 999px;
    padding: .5rem 1rem;
    font-weight: 600;
    transition: .2s ease;
}

.btn-primary {
    background: var(--primary);
    border: none;
    box-shadow: 0 5px 20px rgba(37,99,235,.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--border);
    background: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===============================
   Shop
   =============================== */

.shop-nav-icon {
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-item {
    max-width: 300px;
}

.product-item img {
    border-radius: 16px 16px 0 0;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-article h3 {
    border-bottom: 1px solid #d8d8d8;
    padding: 0 0 12px 0;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    background: #f0f0f2;
    border-radius: 12px;
    padding: 2px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-val {
    width: 35px;
    text-align: center;
    font-weight: 800;
    border: none;
    background:
    transparent;
    font-size: 14px;
}

/* ===============================
   Pricing
   =============================== */

.pricing-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: .3s ease;
}

.pricing-card:hover {
    transform: scale(1.04);
    box-shadow: var(--shadow-lg);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-list li {
    padding: .5rem 0;
    color: var(--text-light);
}

/* ===============================
   Order
   =============================== */

.order-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.order-id {
    font-size: 0.8rem;
    color: #6b7280;
}

.order-name {
    font-weight: 600;
}

.order-price {
    font-weight: 700;
    color: #2563eb;
}

.order-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* ===============================
   News
   =============================== */

.newshight {
    list-style: none;
    margin-bottom: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;

    text-decoration: none;
    padding: 12px;

    background: #fff;
    border-radius: 12px;

    transition: .2s ease;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.imgbox {
    object-fit: cover;

    border-radius: 10px;

    flex-shrink: 0;
}

.news-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: left;
    width: 100%;
}

.news-title {
    display: block;

    font-weight: 600;
    font-size: 1rem;

    margin-bottom: 6px;

    color: #333 !important;
}

.news-date {
    display: block;

    font-size: 0.85rem;
    color: #888;
}

/* ===============================
   Blog
   =============================== */

.blog-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: .3s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    font-size: .85rem;
    color: var(--text-light);
}

/* ===============================
   Sidebar
   =============================== */

.sidebar {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.sidebar-image-list {
    padding: 0;
}

/* ===============================
   TextWidget
   =============================== */

.text-widget {
    border-radius: 16px;
}

/* ===============================
   Member
   =============================== */

.member-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1rem;
    border: 1px solid #e5e7eb;
    transition: .3s ease;
    text-decoration: none;
    color: #1f2937;
}

.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    border-color: #c7d2fe;
}

.member-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 50%;
}

.member-title {
    font-weight: 600;
    font-size: 1rem;
    margin-top: .5rem;
}

/* ===============================
   Footer
   =============================== */

footer {
    background: none repeat scroll 0 0 #111;
    color: #65676b;
    padding: 1rem 0 1rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    display: block;
    color: #94a3b8;
    margin-bottom: .5rem;
}

.footer-link:hover {
    color: #fff;
}

/* ===============================
   Animation
   =============================== */

@keyframes popIn {
    0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0px); }
}

/* ===============================
   Mobile Optimization
   =============================== */

@media (max-width: 992px) {

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .card-saas {
        padding: 2rem;
    }

    .game-card {
        flex-direction: column;
    }
    
    .game-desc,
    .game-card .btn {
        display: none !important;
    }
}

@media (max-width: 768px) {

    body {
        font-size: 15px;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .pricing-card {
        margin-bottom: 2rem;
    }

    .navbar {
        padding: .75rem 0;
    }

    .game-thumb img {
        width: 70px;
        height: 70px;
    }

}

@media (max-width: 625px) {

    .newshight {
        width: 100%;
    }

    .news-item {
        flex-direction: column;
        text-align: center;
    }

}

@media (max-width: 576px) {

    .hero {
        text-align: center;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .product-item {
        max-width: 100%;
    }

}