:root {
    --ystc-primary: #86ae3f;
    --ystc-primary-dark: #5f8c1f;
    --ystc-secondary: #1f2937;
    --ystc-surface: #ffffff;
    --ystc-surface-alt: #f8fafc;
    --ystc-border: #dbe3ea;
    --ystc-text: #475569;
    --ystc-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
    --ystc-radius: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

body.ystc-body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, "Microsoft JhengHei", sans-serif;
    color: var(--ystc-text);
    background:
        radial-gradient(circle at top left, rgba(134, 174, 63, 0.12), transparent 35%),
        linear-gradient(180deg, #eef4e7 0%, #f4f7fb 22%, #f8fafc 100%);
}

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

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

.ystc-topbar {
    background: linear-gradient(90deg, #6c9930 0%, #86ae3f 100%);
    color: #ffffff;
    font-size: 0.95rem;
}

.ystc-topbar .badge {
    letter-spacing: 0.08em;
}

.ystc-navbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.96);
}

.ystc-navbar .navbar-brand {
    gap: 0.9rem;
}

.ystc-navbar .navbar-brand img {
    width: auto;
    max-height: 64px;
}

.ystc-brand-title {
    color: var(--ystc-secondary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.ystc-brand-subtitle {
    color: #64748b;
    font-size: 0.82rem;
}

.ystc-navbar .nav-link {
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: #334155;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ystc-navbar .nav-link:hover,
.ystc-navbar .nav-link:focus,
.ystc-navbar .nav-link.active {
    color: var(--ystc-primary-dark);
    background: rgba(134, 174, 63, 0.12);
    box-shadow: inset 0 0 0 1px rgba(134, 174, 63, 0.12);
}

.ystc-navbar .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    box-shadow: var(--ystc-shadow);
    padding: 0.6rem;
}

.ystc-navbar .dropdown-item {
    border-radius: 0.75rem;
    padding: 0.55rem 0.85rem;
}

.ystc-navbar .dropdown-item:hover,
.ystc-navbar .dropdown-item:focus {
    background: rgba(134, 174, 63, 0.1);
    color: var(--ystc-primary-dark);
}

.ystc-page-wrap {
    flex: 1 0 auto;
    padding: 2.25rem 0 3rem;
}

.ystc-section-card,
.ystc-sidebar-card,
.ystc-info-card,
.ystc-download-card,
.ystc-auth-card,
.ystc-placeholder-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--ystc-border);
    border-radius: var(--ystc-radius);
    box-shadow: var(--ystc-shadow);
}

.ystc-product-detail {
    scroll-margin-top: 8rem;
}

.ystc-section-card,
.ystc-sidebar-card,
.ystc-info-card,
.ystc-download-card,
.ystc-auth-card {
    padding: 1.5rem;
}

.ystc-placeholder-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.ystc-section-header {
    margin-bottom: 1.5rem;
}

.ystc-eyebrow {
    display: inline-block;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(134, 174, 63, 0.12);
    color: var(--ystc-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ystc-section-title {
    margin-bottom: 0;
    color: var(--ystc-secondary);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 800;
}

.ystc-section-title span {
    color: var(--ystc-primary);
}

.ystc-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.ystc-divider::before {
    content: "";
    width: 68px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ystc-primary) 0%, #b8d67e 100%);
}

.ystc-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--ystc-border);
}

.ystc-copy,
.ystc-copy p,
.ystc-copy li {
    font-size: 1rem;
    line-height: 1.9;
}

.ystc-copy p:last-child,
.ystc-copy ul:last-child {
    margin-bottom: 0;
}

.ystc-copy img,
.ystc-thumbnail {
    max-width: 100%;
    height: auto !important;
    border-radius: 1rem;
    border: 1px solid var(--ystc-border);
    box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.1);
    background: #ffffff;
}

.ystc-thumbnail {
    display: block;
}

.ystc-hero-slider {
    overflow: hidden;
    padding: 0;
}

.ystc-hero-slider .flexslider {
    margin: 0;
    border: 0;
    border-radius: var(--ystc-radius);
    overflow: hidden;
    box-shadow: none;
}

.ystc-hero-slider .slides li {
    position: relative;
}

.ystc-hero-slider .slides a {
    display: block;
}

.ystc-hero-slider .slides img {
    width: 100%;
    min-height: 240px;
    object-fit: cover;
}

.ystc-hero-slider .flex-caption {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.5);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.ystc-service-card,
.ystc-product-card,
.ystc-feature-card {
    height: 100%;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.4rem rgba(15, 23, 42, 0.08);
}

.ystc-service-card .card-body,
.ystc-product-card .card-body,
.ystc-feature-card .card-body {
    padding: 1.4rem;
}

.ystc-service-icon,
.ystc-feature-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.ystc-news-panel .table,
.ystc-table-card .table,
.ystc-detail-card .table {
    margin-bottom: 0;
}

.ystc-table-gridview th,
.ystc-table-gridview td,
.ystc-detail-view th,
.ystc-detail-view td {
    padding: 0.9rem 1rem !important;
    vertical-align: middle;
}

.ystc-table-gridview tr:last-child td,
.ystc-detail-view tr:last-child td,
.ystc-detail-view tr:last-child th {
    border-bottom: 0;
}

.ystc-detail-view th {
    width: 120px;
    color: var(--ystc-secondary);
    background: #f8fafc;
    font-weight: 700;
}

.ystc-detail-view td {
    color: var(--ystc-text);
}

.ystc-gridview-empty,
.ystc-muted {
    color: #64748b;
}

.ystc-sidebar-card h3,
.ystc-sidebar-card h4,
.ystc-info-card h3,
.ystc-info-card h4 {
    color: var(--ystc-secondary);
    font-weight: 700;
}

.ystc-product-sidebar .list-group-item {
    border: 0;
    border-bottom: 1px solid #edf2f7;
    padding-inline: 0;
}

.ystc-product-sidebar .list-group-item:last-child {
    border-bottom: 0;
}

.ystc-feature-list li {
    margin-bottom: 0.75rem;
}

.ystc-feature-list li:last-child {
    margin-bottom: 0;
}

.ystc-download-card .btn,
.ystc-auth-card .btn,
.ystc-section-card .btn,
.ystc-sidebar-card .btn {
    border-radius: 0.85rem;
}

.ystc-download-card .form-select,
.ystc-download-card .btn,
.ystc-auth-card .form-control,
.ystc-auth-card .btn,
.ystc-section-card .form-control,
.ystc-section-card .form-select {
    min-height: 48px;
}

.ystc-login-links a {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    margin-right: 1rem;
}

.ystc-auth-captcha {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 1rem;
}

.ystc-auth-captcha img,
.ystc-contact-captcha img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid var(--ystc-border);
}

.ystc-map-frame {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 1rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ystc-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ystc-contact-list li {
    display: flex;
    gap: 0.9rem;
    padding: 0.95rem 0;
    border-bottom: 1px solid #edf2f7;
}

.ystc-contact-list li:last-child {
    border-bottom: 0;
}

.ystc-contact-label {
    min-width: 80px;
    font-weight: 700;
    color: var(--ystc-secondary);
}

.ystc-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: #0f172a;
    color: rgba(255, 255, 255, 0.8);
}

.ystc-footer a {
    color: #d8f0a8;
}

.ystc-footer-title {
    color: #ffffff;
    font-weight: 700;
}

.ystc-footer-meta {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.93rem;
}

.ystc-back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ystc-primary) 0%, var(--ystc-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 0.85rem 1.75rem rgba(95, 140, 31, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, box-shadow 0.2s ease;
    z-index: 1100;
}

.ystc-back-to-top-icon {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5.5 4.5 13l1.8 1.8 4.4-4.4V20h2.6v-9.6l4.4 4.4 1.8-1.8Z' fill='white'/%3E%3C/svg%3E");
}

.ystc-back-to-top:active,
.ystc-back-to-top:hover {
    box-shadow: 0 1rem 2rem rgba(95, 140, 31, 0.36);
}

.ystc-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.ystc-empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: rgba(134, 174, 63, 0.16);
    color: var(--ystc-primary-dark);
    font-size: 1.75rem;
    font-weight: 800;
}

@media (max-width: 991.98px) {
    .ystc-navbar .navbar-brand img {
        max-height: 54px;
    }

    .ystc-navbar .nav-link {
        border-radius: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .ystc-page-wrap {
        padding-top: 1.4rem;
    }

    .ystc-section-card,
    .ystc-sidebar-card,
    .ystc-info-card,
    .ystc-download-card,
    .ystc-auth-card {
        padding: 1.15rem;
        border-radius: 1rem;
    }

    .ystc-hero-slider .flex-caption {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.85rem 1rem;
        font-size: 0.92rem;
    }

    .ystc-copy img {
        float: none !important;
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 1rem !important;
    }

    .ystc-contact-list li {
        flex-direction: column;
        gap: 0.35rem;
    }

    .ystc-product-detail {
        scroll-margin-top: 7rem;
    }

    .ystc-back-to-top {
        display: inline-flex;
        right: 0.9rem;
        bottom: 0.9rem;
    }
}
