* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif !important;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #FFFFFF;
    color: #374151;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

.top-header {
    background: #0E121B;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 17px 24px;
    flex-shrink: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.header-logo {
    height: 30px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

.lang-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #CACFD8;
    line-height: 24px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lang-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 136px;
    background: #181B25;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown.active .lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown.active .nav-arrow {
    transform: rotate(180deg);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(108, 82, 255, 0.15);
    color: #A78BFA;
}

.lang-option.active {
    color: #A78BFA;
}

.lang-option.active:hover {
    background: rgba(108, 82, 255, 0.15);
}

.lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 14px;
    width: 340px;
    transition: border-color 0.2s ease;
    margin-left: 70px;
}

.search-box:focus-within {
    border-color: rgba(108, 82, 255, 0.5);
}

.search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #FFFFFF;
    min-width: 240px;
}

.search-input:hover {
    border-color: #6C52FF;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.tabs-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
    z-index: 999;
}

.tabs-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 0;
}

.tabs-tab {
    padding: 16px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tabs-tab.active {
    color: #6C52FF;
}

.tabs-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: #6C52FF;
    border-radius: 1px;
}

.tabs-tab:hover:not(.active) {
    color: #6C52FF;
}

.doc-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: 1440px;
    margin: 0 auto;
}

.sidebar {
    width: 340px;
    background: #FFFFFF;
    border-right: 1px solid #E5E7EB;
    padding: 20px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.nav-tree {
    padding: 0;
}

.nav-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.nav-item-group {
    margin-bottom: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s ease;
    margin-left: 8px;
    margin-right: 8px;
}

.nav-item .nav-bullet {
    margin-right: 10px;
}

.nav-item.has-arrow {
    justify-content: flex-start;
}

.nav-item.has-arrow span:first-of-type:not(.nav-bullet) {
    flex: 1;
}

.nav-item:hover {
    background: #F5F7FA;
}

.nav-item.active {
    background: rgba(108, 82, 255, 0.1);
    color: #6C52FF;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
}

.nav-item.active-highlight {
    background: rgba(108, 82, 255, 0.1);
    color: #6C52FF;
    font-weight: 500;
    font-size: 13px;
    border-radius: 8px;
}

.nav-item.has-arrow:not(.active):not(.active-highlight) {
    background: transparent;
    border-radius: 8px;
}

.nav-bullet {
    width: 6px;
    height: 6px;
    background: #6C52FF;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.nav-item:not(.active):not(.active-highlight) .nav-bullet {
    background: #D1D5DB;
}

.nav-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
    margin-left: auto;
}

.nav-item.active-highlight .nav-arrow {
    opacity: 1;
}

.nav-group-header {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s ease;
    margin-left: 8px;
    margin-right: 8px;
    width: calc(100% - 16px);
}


.nav-group-header .expand-icon {
    margin-left: auto;
}

.nav-group-header:hover {
    background: #F5F7FA;
}

.expand-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.nav-group-content {
    display: none;
    padding-left: 16px;
}

.nav-group-content.open {
    display: block;
}

.content-area {
    flex: 1;
    padding: 32px;
    background: #FFFFFF;
    overflow-y: auto;
}

.content-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #1F2937;
    color: #FFFFFF;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.page-content {
    max-width: 800px;
}

.intro-paragraph {
    margin-bottom: 16px;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
}

.intro-paragraph strong {
    color: #374151;
    font-weight: 600;
}

.product-notice {
    margin-bottom: 16px;
}

.product-notice p {
    margin: 0;
    font-size: 15px;
    color: #4B5563;
    line-height: 1.7;
}

.product-notice strong {
    color: #111827;
    font-weight: 700;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.info-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 28px;
    transition: all 0.2s ease;
}

.info-card:hover {
    border-color: #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.card-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(108, 82, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}

.toc-sidebar {
    width: 240px;
    padding: 32px 20px;
    flex-shrink: 0;
    border-left: 1px solid #E5E7EB;
    overflow-y: auto;
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.toc-menu-icon {
    flex-shrink: 0;
}

.toc-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    opacity: 0.6;
}

.toc-title {
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0;
}

.toc-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease;
    position: relative;
    padding-left: 12px;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 0;
    background: #6C52FF;
    transition: height 0.2s ease;
}

.toc-link:hover {
    color: #6C52FF;
}

.toc-link.active {
    color: #6C52FF;
    font-weight: 500;
}

.toc-link.active::before {
    height: 16px;
}

@media (max-width: 1200px) {
    .toc-sidebar {
        display: none;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .search-box {
        width: 220px;
    }

    .content-area {
        padding: 20px;
    }

    .page-title {
        font-size: 28px;
    }
}

/* 子菜单nav-item缩进样式 */
.nav-group-content .nav-item {
    padding-left: 24px;
}

/* ==========================================================================
   Top-tier Domestic Tech Site Documentation Styling (国内一线大厂风格 - 飞书/阿里云/掘金)
   ========================================================================== */

#articleContent {
    font-size: 16px;
    line-height: 1.8;
    color: #252933;
    word-break: break-word;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", sans-serif;
    letter-spacing: 0.01em;
}

/* Margin resets for cleaner flow */
#articleContent > *:first-child,
#articleContent #section-content > *:first-child {
    margin-top: 0 !important;
}

#articleContent > *:last-child,
#articleContent #section-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Headings - 国内一线大厂竖条+微渐变背景风格 */
#articleContent h1,
#articleContent h2,
#articleContent h3,
#articleContent h4,
#articleContent h5,
#articleContent h6 {
    color: #1d2129;
    font-weight: 600;
    line-height: 1.4;
    scroll-margin-top: 84px;
}

#articleContent h1 {
    font-size: 26px;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f2f3f5;
    letter-spacing: -0.01em;
}

#articleContent h2 {
    font-size: 21px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 18px;
    padding: 6px 16px;
    border-left: 4px solid #6C52FF;
    background: linear-gradient(90deg, rgba(108, 82, 255, 0.06) 0%, rgba(108, 82, 255, 0) 100%);
    border-radius: 0 6px 6px 0;
}

#articleContent h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 14px;
    color: #1d2129;
}

#articleContent h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 22px;
    margin-bottom: 10px;
    color: #333333;
}

#articleContent h5,
#articleContent h6 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
    color: #86909c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Paragraphs & Core Text */
#articleContent p {
    margin-top: 0;
    margin-bottom: 18px;
    color: #252933;
    line-height: 1.8;
}

#articleContent strong,
#articleContent b {
    font-weight: 600;
    color: #1d2129;
}

#articleContent em,
#articleContent i {
    font-style: italic;
    color: #4e5969;
}

#articleContent s,
#articleContent del {
    text-decoration: line-through;
    color: #86909c;
}

#articleContent mark {
    background: linear-gradient(180deg, rgba(255,255,255,0) 50%, rgba(108, 82, 255, 0.2) 50%);
    color: #1d2129;
    padding: 0 4px;
    border-radius: 2px;
}

#articleContent kbd {
    display: inline-block;
    padding: 3px 7px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    line-height: 1;
    color: #1d2129;
    background-color: #f2f3f5;
    border: 1px solid #e5e6eb;
    border-bottom: 2px solid #c9cdd4;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Links */
#articleContent a,
.page-content a {
    color: #6C52FF !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    text-decoration-color: rgba(108, 82, 255, 0.5) !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-bottom: none !important;
    transition: color 0.15s ease, text-decoration-color 0.15s ease !important;
}

#articleContent a:hover,
.page-content a:hover {
    color: #4B32DB !important;
    text-decoration-color: #4B32DB !important;
    background: transparent !important;
}

#articleContent a span,
.page-content a span {
    color: inherit !important;
    background-color: transparent !important;
}

/* Lists - 飞书/掘金风格列表边距与加亮标记 */
#articleContent ul,
#articleContent ol {
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 24px;
}

#articleContent li {
    margin-bottom: 8px;
    line-height: 1.75;
    color: #252933;
}

#articleContent li > ul,
#articleContent li > ol {
    margin-top: 6px;
    margin-bottom: 6px;
}

#articleContent ul {
    list-style-type: disc;
}

#articleContent ul ul {
    list-style-type: circle;
}

#articleContent ol {
    list-style-type: decimal;
}

#articleContent ::marker {
    color: #6C52FF;
    font-weight: 600;
}

#articleContent dl {
    margin-bottom: 20px;
}

#articleContent dt {
    font-weight: 600;
    color: #1d2129;
    margin-top: 14px;
    font-size: 15px;
}

#articleContent dd {
    margin-left: 20px;
    color: #4e5969;
    margin-bottom: 8px;
}

/* Inline Code */
#articleContent code {
    font-family: "JetBrains Mono", Fira Code, Consolas, Monaco, "Courier New", monospace;
    font-size: 0.88em;
    color: #6C52FF;
    background-color: #f2f3f5;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #e5e6eb;
    font-weight: 500;
    margin: 0 2px;
    word-break: break-word;
}

/* Mac Terminal Style Code Block (Mac 终端控制弹窗外观) */
#articleContent pre {
    background-color: #18191c;
    color: #e6e8eb;
    font-family: "JetBrains Mono", Fira Code, Consolas, Monaco, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.7;
    padding: 46px 20px 20px 20px;
    border-radius: 12px;
    border: 1px solid #2d2e36;
    margin-top: 20px;
    margin-bottom: 24px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    position: relative;
}

/* Mac 窗口红黄绿三色控件圆点 */
#articleContent pre::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

/* Code Tag Reset inside Pre */
#articleContent pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    white-space: pre;
    word-break: normal;
    margin: 0;
}

#articleContent pre::-webkit-scrollbar {
    height: 6px;
}

#articleContent pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

#articleContent pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

#articleContent pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* Blockquotes & Callouts - 飞书/Notion 风格高亮块 */
#articleContent blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    border-left: 4px solid #6C52FF;
    background-color: #f7f8fa;
    border-radius: 0 10px 10px 0;
    color: #4e5969;
    font-size: 15px;
}

#articleContent blockquote p {
    margin-bottom: 8px;
    color: inherit;
    font-size: 15px;
}

#articleContent blockquote p:last-child {
    margin-bottom: 0;
}

/* 丰富 Alert / Callout 异色状态框 (Info/Tip/Warning/Danger) */
#articleContent .alert,
#articleContent .callout,
#articleContent .note,
#articleContent .tip,
#articleContent .warning,
#articleContent .danger,
#articleContent .info {
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.7;
    border-left: 4px solid #6C52FF;
    background-color: #f7f8fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

#articleContent .alert-info,
#articleContent .info,
#articleContent .note {
    border-left-color: #165dff;
    background-color: #e8f3ff;
    color: #165dff;
}

#articleContent .alert-success,
#articleContent .tip,
#articleContent .success {
    border-left-color: #00b42a;
    background-color: #e6f8f1;
    color: #00b42a;
}

#articleContent .alert-warning,
#articleContent .warning {
    border-left-color: #ff7d00;
    background-color: #fff7e8;
    color: #ff7d00;
}

#articleContent .alert-danger,
#articleContent .danger,
#articleContent .error {
    border-left-color: #f53f3f;
    background-color: #ffece8;
    color: #f53f3f;
}

#articleContent .alert p,
#articleContent .callout p,
#articleContent .note p,
#articleContent .tip p,
#articleContent .warning p,
#articleContent .danger p,
#articleContent .info p {
    margin-bottom: 6px;
    color: inherit;
}

#articleContent .alert p:last-child,
#articleContent .callout p:last-child,
#articleContent .note p:last-child,
#articleContent .tip p:last-child,
#articleContent .warning p:last-child,
#articleContent .danger p:last-child,
#articleContent .info p:last-child {
    margin-bottom: 0;
}

/* Tables - 阿里云 / 腾讯云 API 文档规范表格 */
#articleContent table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    border: 1px solid #e5e6eb;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

#articleContent th,
#articleContent td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #f2f3f5;
    border-right: 1px solid #f2f3f5;
}

#articleContent th:last-child,
#articleContent td:last-child {
    border-right: none;
}

#articleContent tr:last-child td {
    border-bottom: none;
}

#articleContent th {
    background-color: #f7f8fa;
    color: #1d2129;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
}

#articleContent tr:hover {
    background-color: #f4f5f7;
}

/* Images & Visual Media - 带有浮雕阴影与圆角的沉浸式插图 */
#articleContent img,
.content img,
.nv-article-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e6eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

#articleContent img:hover,
.content img:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

#articleContent figure {
    margin: 24px 0;
    text-align: center;
}

#articleContent figure img {
    margin-bottom: 8px;
}

#articleContent figcaption {
    font-size: 13px;
    color: #86909c;
    margin-top: 8px;
}

/* Gradient Horizontal Line (微渐变分割线) */
#articleContent hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, rgba(229,230,235,0) 0%, #e5e6eb 50%, rgba(229,230,235,0) 100%);
    margin: 36px 0;
}

/* Details & Summary 折叠面板 */
#articleContent details {
    margin: 20px 0;
    padding: 14px 18px;
    background-color: #f7f8fa;
    border: 1px solid #e5e6eb;
    border-radius: 10px;
    transition: all 0.2s ease;
}

#articleContent details[open] {
    background-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

#articleContent summary {
    font-weight: 600;
    color: #1d2129;
    cursor: pointer;
    outline: none;
    user-select: none;
    font-size: 15px;
}

#articleContent details[open] summary {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f2f3f5;
}

/* ==========================================================================
   Image Preview Lightbox Modal (图片点击放大弹窗)
   ========================================================================== */

.img-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 18, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    cursor: zoom-out;
    padding: 20px;
    box-sizing: border-box;
}

.img-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.img-lightbox-container {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.img-lightbox-overlay.active .img-lightbox-container {
    transform: scale(1);
}

.img-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.img-lightbox-caption {
    margin-top: 14px;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    max-width: 80vw;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.img-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
}

.img-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

