@font-face {
    font-family: 'PingFang SC';
    src: url('https://assets.swayingmoon.com/fonts/PingFangSC-Light.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'PingFang SC';
    src: url('https://assets.swayingmoon.com/fonts/PingFangSC-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'PingFang SC';
    src: url('https://assets.swayingmoon.com/fonts/PingFangSC-Semibold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'PolyMath';
    src: url('https://assets.swayingmoon.com/fonts/Polymath-LightIt.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'PolyMath Var';
    src: url('https://assets.swayingmoon.com/fonts/PolymathVar.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Polymath-Bold';
    src: url('https://assets.swayingmoon.com/fonts/Polymath-Bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --color-primary-accent: #000000;
    --color-primary-accent-hover: #333333;
    --color-text-main: #000000;
    --color-text-secondary: #86868b;
    --color-text-disabled: #c8c8cc;
    --bg-body: #ffffff;
    --bg-block: #f5f5f7;
    --bg-dark: #000000;
    --border-color: #d2d2d7;
    --radius-l: 18px;
    --radius-m: 12px;
    --spacing-section: 5rem;
    --base-font-size: 16px;
    --spacing-unit: 1rem;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary-accent);
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid var(--color-primary-accent);
    outline-offset: 2px;
}

* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

body {
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.47059;
    font-size: var(--base-font-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-body);
    overflow-x: hidden;
}

:lang(en) {
    font-family: 'PolyMath Var', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-weight: 400;
}

:lang(zh-CN) {
    font-family: 'PingFang SC', 'PolyMath Var', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-weight: 300;
}

:lang(ja) {
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", 'PolyMath Var', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 300;
}

em, i, .italic {
    font-family: 'PolyMath', sans-serif;
    font-style: italic;
    font-weight: 300;
}

/* 4. 侧边栏 - 已修改 */
.sidebar {
    width: 350px; /* *** 1. 宽度已修改 *** */
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 3.75rem 0; /* 60px 0 */
    border-right: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    flex-shrink: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.brand-logo-link {
    display: block;
    margin-bottom: 2.5rem; /* 40px */
    text-decoration: none;
    padding: 0 2.5rem; /* 40px padding */
}

.brand-logo-link img {
    max-width: 100%;
    height: 2.75rem; /* 44px */
    object-fit: contain;
    display: block;
}

.nav-menu { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    flex-grow: 1; 
}

.nav-menu li { 
    margin-bottom: 0.125rem; /* 2px */
}

/* L1 导航项 (链接) */
.nav-menu a {
    display: block;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9375rem; /* 15px */
    padding: 0.625rem 2.5rem; /* 10px 40px */
    transition: color 0.2s ease, background-color 0.2s ease;
    font-weight: 400;
    position: relative;
}

.nav-menu a:hover, 
.nav-menu a:focus {
    color: var(--color-primary-accent); 
    background-color: var(--bg-block);
    outline: none;
}

.nav-menu a.active {
    color: var(--color-text-main);
    font-weight: 600;
}

/* L1 导航项 (可折叠按钮) */
.nav-link-group {
    display: block;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--color-text-secondary);
    font-size: 0.9375rem; /* 15px */
    padding: 0.625rem 2.5rem; /* 10px 40px */
    font-family: inherit;
    font-weight: 400;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* 按钮右侧的箭头 */
.nav-link-group::after {
    content: '›';
    position: absolute;
    right: 2rem; /* 32px */
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 1.25rem;
    color: var(--color-text-disabled);
    transition: transform 0.2s ease;
}

.nav-link-group:hover,
.nav-link-group:focus {
    color: var(--color-primary-accent); 
    background-color: var(--bg-block);
    outline: none;
}

/* 展开状态的按钮 */
.nav-link-group.active {
    color: var(--color-text-main);
    font-weight: 600;
}
.nav-link-group.active::after {
    transform: translateY(-50%) rotate(90deg); /* 保持朝下 */
}
/* 折叠状态的按钮 */
.nav-link-group[aria-expanded="false"]::after {
    transform: translateY(-50%) rotate(0deg); /* 箭头朝右 */
}


/* L2 子菜单 */
.nav-submenu {
    list-style: none;
    padding: 0; /* *** 3. 折叠修复：移除 padding *** */
    margin: 0;
    background-color: #fbfbfd;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.nav-submenu.active {
    max-height: 500px; 
    padding: 0.25rem 0 0.5rem; /* *** 3. 折叠修复：将 padding 移到 active 状态 *** */
}
.nav-submenu li {
    margin-bottom: 0;
}
/* L2 子菜单链接 */
.nav-submenu a {
    font-size: 0.875rem; /* 14px */
    padding: 0.5rem 2.5rem 0.5rem 3.5rem; /* 增加左侧缩进 */
    font-weight: 400;
}
.nav-submenu a.active {
    color: var(--color-text-main);
    font-weight: 600;
}
.nav-submenu a::after {
    content: '';
    position: absolute;
    left: 3.5rem; 
    right: 2.5rem;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-submenu a.active::after,
.nav-submenu a:hover::after {
    width: calc(100% - 6rem); 
}


/* 5. 主内容区 */
main {
    flex-grow: 1;
    padding: 10.24rem 5rem 7.5rem; /* 100px 80px 120px */
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

main a {
    color: var(--color-primary-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

main a:hover,
main a:focus {
    text-decoration: underline;
    outline: none;
}

main a.download-btn {
    color: white;
    text-decoration: none;
    font-weight: 400;
}

h1 {
    font-size: 3rem; /* 48px */
    line-height: 1.08349;
    letter-spacing: -0.003em;
    margin-bottom: 1.25rem; /* 20px */
}

.intro-text {
    font-size: 1.3125rem; /* 21px */
    line-height: 1.381;
    font-weight: 300;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin-bottom: 3.75rem; /* 60px */
}

section { 
    margin-bottom: var(--spacing-section); 
    scroll-margin-top: 4rem; /* 64px - 增加滚动偏移 */
}

h2 {
    font-size: 2rem; /* 32px */
    line-height: 1.125;
    letter-spacing: .004em;
    margin-bottom: 1.5rem; /* 24px */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem; /* 16px */
}

p { 
    color: var(--color-text-main); 
    margin-bottom: 1rem; /* 16px */
    max-width: 800px; 
    font-weight: 300; 
}

/* 6. 资源展示卡片 */
.asset-block {
    background-color: var(--bg-block);
    border-radius: var(--radius-l);
    padding: 2.5rem; /* 40px */
    margin-top: 1.5rem; /* 24px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reverse-logo-block {
    background-color: var(--bg-dark);
}

.white-caption {
    color: rgba(255, 255, 255, 0.8);
}

.clearspace-block {
    margin-top: 2.5rem; /* 40px */
    align-items: flex-start;
}

.clearspace-desc {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-secondary);
    font-weight: 300;
    margin-bottom: 1rem;
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem; /* 24px */
}

.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.25rem; /* 20px */
}

.img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 12.5rem; /* 200px */
}

.dont-rotate img {
    transform: rotate(-15deg);
    max-height: 7.5rem; /* 120px */
}

.dont-stretch img {
    width: 100%;
    height: 5rem; /* 80px */
    object-fit: fill;
}

.dont-color img {
    max-height: 7.5rem; /* 120px */
}

.dont-shadow img {
    filter: drop-shadow(3px 3px 4px rgba(0, 0, 0, 0.5));
    max-height: 7.5rem; /* 120px */
}

.img-container img { 
    max-width: 80%; 
    max-height: 10rem; /* 160px */
    height: auto; 
}

.caption {
    margin-top: 1.25rem; /* 20px */
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* 安全空间示意图 */
.clear-space-visual {
    display: inline-block;
    margin-top: 1.25rem; /* 20px */
    background-color: transparent;
    border: 1px dashed var(--color-text-secondary);
    border-radius: 4px;
    padding: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.clear-space-visual img {
    display: block;
    height: 5rem; /* 80px */
    width: auto;
}

/* 7. 错误用法 */
.dont-block {
    background: var(--bg-block);
    border-radius: var(--radius-m);
    padding: 1.875rem; /* 30px */
    position: relative;
    overflow: hidden;
    min-height: 180px;
    transition: transform 0.2s ease;
}

.dont-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dont-block img { 
    width: 100%; 
    opacity: 1; 
}

.cross-icon {
    position: absolute; 
    top: 0.9375rem; /* 15px */ 
    right: 0.9375rem; /* 15px */ 
    width: 1.5rem; /* 24px */ 
    height: 1.5rem; /* 24px */
    background: #ff3b30; 
    color: white; 
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1rem; /* 16px */
    font-weight: bold; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

.dont-caption {
    font-size: 0.75rem; /* 12px */
    color: #ff3b30; 
    margin-top: 0.625rem; /* 10px */
    font-weight: 600;
}

.recolor-example {
    filter: brightness(0) 
            invert(50%)  
            sepia(100%)  
            hue-rotate(190deg) 
            saturate(700%); 
}

/* 8. 版权与合作伙伴 */
.legal-box {
    background: #fbfbfd;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-m);
    padding: 1.875rem; /* 30px */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.legal-title { 
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-secondary); 
    margin-bottom: 0.5rem; /* 8px */
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.design-description, .rights-description, .legal-footer {
    font-weight: 400;
    flex-grow: 1;
}

.art-direction {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    font-weight: 300;
    display: block;
    margin-top: 0.25rem;
}

.legal-footer {
    font-size: 0.75rem; /* 12px */
    color: var(--color-text-secondary);
    font-weight: 300;
    margin-top: 1.25rem; /* 20px */
    align-self: flex-end;
}

/* 表格容器 */
.table-container {
    position: relative;
    width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: thin;
    padding: 0.5px; /* 防止iOS滚动边界问题 */
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.partner-table {
    width: 100%;
    min-width: 600px; /* 确保表格有最小宽度 */
    border-collapse: collapse;
    font-size: 0.875rem; /* 14px */
}

.partner-table th,
.partner-table td {
    padding: 0.75rem 1rem; /* 12px 16px */
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
    white-space: nowrap; /* 保持内容不换行 */
}

.partner-table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.75rem; /* 12px */
    background-color: #fbfbfd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.partner-table td.license-cell {
    text-align: center;
    font-weight: 600;
    width: 15%;
}

.license-yes {
    color: #28a745; /* Green */
}

.license-no {
    color: var(--color-text-disabled); /* Light Gray */
}

.partner-table td:first-child a {
    font-weight: 600;
    color: var(--color-primary-accent);
}

.internal-partner {
    color: var(--color-text-main);
    font-weight: 600;
    font-style: normal; /* 确保不斜体 */
}

.coop-email {
    margin-top: 1.25rem; /* 20px */
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
}

/* 表格响应式 */
@media (max-width: 768px) {
    .table-container {
        position: relative;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        margin: 1.5rem 0 !important;
        padding: 0 !important;
        touch-action: manipulation !important; /* 修复触摸问题 */
    }
    
    .partner-table {
        display: table !important; /* 保持表格布局 */
        width: auto !important;
        min-width: 480px !important; /* 确保足够宽度显示所有列 */
        table-layout: auto !important;
    }
    
    .partner-table th,
    .partner-table td {
        padding: 0.625rem 0.75rem !important; /* 10px 12px */
        font-size: 0.8125rem !important; /* 13px */
    }
    
    .partner-table th {
        font-size: 0.6875rem !important; /* 11px */
        padding: 0.5rem 0.75rem !important; /* 8px 12px */
    }
    
    .partner-table th:nth-child(4),
    .partner-table td:nth-child(4) {
        display: none;
    }
    
    .table-container::before,
    .table-container::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40px;
        pointer-events: none;
        z-index: 5;
    }
    
    .table-container::before {
        left: 0;
        background: linear-gradient(to right, rgba(255,255,255,0.95), transparent);
    }
    
    .table-container::after {
        right: 0;
        background: linear-gradient(to left, rgba(255,255,255,0.95), transparent);
    }
    
    .table-container.scrollable::before,
    .table-container.scrollable::after {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .partner-table th:nth-child(3),
    .partner-table td:nth-child(3) {
        display: none;
    }
    
    .partner-table {
        min-width: 360px !important;
    }
}

/* 9. 下载按钮 */
.download-btn {
    display: inline-flex; 
    align-items: center;
    background-color: var(--color-primary-accent);
    color: white;
    padding: 0.875rem 1.875rem; /* 14px 30px */
    border-radius: 99px;
    font-size: 1rem; /* 16px */
    font-weight: 400;
    text-decoration: none; 
    transition: all 0.2s ease;
    margin-top: 1.25rem; /* 20px */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-btn:hover, 
.download-btn:focus {
    background-color: var(--color-primary-accent-hover); 
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    outline: none;
}

.download-btn:focus-visible {
    outline: 2px solid var(--color-primary-accent);
    outline-offset: 2px;
}

/* 10. 页脚 (侧边栏底部) */
.sidebar-footer {
    margin-top: auto; 
    padding: 2.5rem 2.5rem 1.5rem; /* 40px 40px 24px */
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem; /* 12px */
    color: var(--color-text-secondary);
    font-weight: 300;
}

.sidebar-footer a {
    color: var(--color-text-secondary); 
    text-decoration: none; 
    font-weight: 400; 
    transition: color 0.2s ease;
}

.sidebar-footer a:hover,
.sidebar-footer a:focus {
    color: var(--color-text-main); 
    text-decoration: underline; 
    outline: none;
}

/* 语言切换器 (侧边栏版) */
.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 0.5rem; /* 8px */
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
    margin-bottom: 1.5rem; /* 24px */
}
.lang-separator {
    margin: 0 0.3125rem; /* 5px */
}
.lang-switcher .lang-link {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    margin: 0;
    cursor: pointer;
    font: inherit;
    color: var(--color-text-secondary);
    text-align: center;
    outline: none;
    position: relative;
    min-width: auto; 
    border-radius: 4px;
    transition: all 0.2s ease;
}
.lang-switcher .lang-link:hover,
.lang-switcher .lang-link:focus {
    color: var(--color-text-main);
    background-color: rgba(0,0,0,0.05);
}
.lang-switcher .lang-link.active {
    color: var(--color-text-main);
    font-weight: 600;
}
.lang-switcher .lang-link.active::after {
    display: none;
}
.lang-switcher .lang-link:focus-visible {
    outline: 2px solid var(--color-primary-accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* 版权和 ICP 链接 (侧边栏版) */
.copyright {
    margin-bottom: 0.5rem; /* 8px */
}
.footer-links {
    text-align: left; 
    white-space: normal; /* 允许换行 */
}
.footer-separator {
    margin: 0 0.625rem; /* 10px */
}


/* 特定语言的标题字重 */
:lang(en) h1,
:lang(en) h2,
:lang(en) .legal-title,
:lang(en) .dont-caption,
:lang(en) .nav-menu a.active,
:lang(en) .nav-link-group.active { 
    font-family: 'Polymath-Bold', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    font-weight: 700;
}

:lang(zh-CN) h1,
:lang(zh-CN) h2,
:lang(zh-CN) .legal-title,
:lang(zh-CN) .dont-caption,
:lang(zh-CN) .nav-menu a.active,
:lang(zh-CN) .nav-link-group.active { 
    font-family: 'PingFang SC', 'PolyMath Var', -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-weight: 600;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) .legal-title,
:lang(ja) .dont-caption,
:lang(ja) .nav-menu a.active,
:lang(ja) .nav-link-group.active { 
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", 'PingFang SC', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600; 
}

/* 11. 打印样式 */
@media print {
    .sidebar, .lang-switcher, .download-btn, .sidebar-footer { 
        display: none;
    }
    main {
        padding: 1rem;
        max-width: 100%;
    }
    .asset-block, .dont-block {
        break-inside: avoid;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body { 
        flex-direction: column; 
    }
    .sidebar { 
        width: 100%; 
        height: auto; 
        position: relative; 
        border-bottom: 1px solid #eee; 
        border-right: none; 
        padding: 1.25rem 0; 
        z-index: 99;
    }
    .brand-logo-link {
        padding: 0 1.875rem; /* 30px */
        margin-bottom: 1.5rem;
    }
    .nav-menu a, .nav-link-group {
        padding: 0.75rem 1.875rem; /* 30px padding */
    }
    .nav-submenu a {
        padding: 0.5rem 1.875rem 0.5rem 2.5rem; /* 调整 L2 缩进 */
    }
    .nav-submenu a::after {
        left: 2.5rem;
        right: 1.875rem;
        width: calc(100% - 4.375rem);
    }
    .nav-link-group::after {
        right: 1.875rem;
    }

    .sidebar-footer {
        padding: 1.5rem 1.875rem 1rem; /* 30px padding */
    }
    .lang-switcher {
        justify-content: flex-start;
    }

    main { 
        padding: 1.875rem; /* 30px */
    }
    .grid-2, .grid-4 { 
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 320px) {
    .sidebar {
        padding: 1.25rem 0;
    }
    .brand-logo-link {
        padding: 0 1rem;
    }
    .nav-menu a, .nav-link-group {
        padding: 0.75rem 1rem;
    }
    .nav-submenu a {
        padding: 0.5rem 1rem 0.5rem 1.5rem;
    }
    .nav-submenu a::after {
        left: 1.5rem;
        right: 1rem;
        width: calc(100% - 2.5rem);
    }
    .sidebar-footer {
        padding: 1.5rem 1rem 1rem;
    }
    main {
        padding: 1.25rem; /* 20px */
    }
    h1 {
        font-size: 2rem; /* 32px */
    }
    .grid-2, .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-logo-link {
        padding: 0 1.875rem;
    }
    .nav-menu a, .nav-link-group {
        padding: 0.75rem 1.875rem;
    }
    .sidebar-footer {
        padding: 1.5rem 1.875rem 1rem;
    }
    .partner-table {
        min-width: 320px !important;
    }
}

@media (min-width: 1440px) {
    main {
        padding-left: 6.25rem; /* 100px */
        padding-right: 6.25rem; /* 100px */
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 800px) and (max-width: 1200px) { /* (修改) 调整断点以适应 350px 侧边栏 */
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .sidebar {
        width: 300px; 
        padding: 3rem 0;
    }
    .brand-logo-link, .nav-menu a, .nav-link-group {
        padding: 0.75rem 1.5rem;
    }
    .nav-submenu a {
        padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    }
    .sidebar-footer {
        padding: 1.5rem;
    }
}

@media (max-width: 320px) {
    .table-container {
        max-width: 100%;
        overflow-x: auto;
    }
    .partner-table {
        min-width: 300px !important;
    }
}

/* 11. About Page - Service List (已更新：支持文档禁用状态) */
#service-list-container, 
#organization-list-container { /* <-- 在这里添加了新的 ID */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px */
    width: 100%; 
}

/* (A) 服务项容器 */
.service-item {
    text-decoration: none;
    padding: 2.5rem; /* 24px */
    border-radius: var(--radius-m); /* 12px */
    width: 100%; 
    background-color: transparent;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden; 
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* (B) 主要内容区 (Logo + 标题/状态) */
.service-content {
    display: flex;
    align-items: center; /* 垂直居中 */
}

.service-logo {
    /* (核心) 保证高度一致, 并保留固定宽度用于对齐 */
    height: 3rem; /* 48px (保证高度一致) */
    width: 17rem;  /* 128px (用于左对齐) */
    object-fit: contain;
    object-position: left;
    margin-right: 1.25rem; /* 20px */
    flex-shrink: 0; 
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.service-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1; 
    min-height: 3rem; /* 至少和 logo 一样高 */
}

.service-name {
    font-size: 1.25rem; /* 18px */
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.2;
    transition: color 0.2s ease;
}

.service-status {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-secondary);
    font-weight: 400;
}
/* (D) 悬停动作区 */
.service-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex;
    flex-direction: column; /* 垂直堆叠 */
    align-items: center;
    justify-content: center;
    gap: 1rem; /* 16px (描述和按钮组的间距) */
    padding: 1rem;
    
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.service-item:hover .service-actions {
    opacity: 1;
    pointer-events: auto;
}

/* 悬停时的居中描述 */
.service-action-description {
    font-size: 0.875rem; /* 14px */
    color: var(--color-text-main);
    font-weight: 400;
    text-align: center; /* 居中显示 */
    margin: 0;
    max-width: 90%;
}

/* 按钮组容器 */
.service-button-group {
    display: flex;
    flex-direction: row; /* 保持按钮水平 */
    gap: 1rem; /* 16px */
}

/* (E) 悬停按钮样式 (*** 样式已交换 ***) */
.service-button {
    text-decoration: none;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    padding: 0.625rem 1rem; /* 10px 16px */
    border-radius: 99px; 
    border: 1px solid var(--color-primary-accent);
    transition: all 0.2s ease;
}

/* (已修改) "查看文档" - 次要按钮 */
.service-button.btn-docs {
    background-color: transparent;
    color: var(--color-primary-accent);
}
.service-button.btn-docs:hover {
    background-color: rgba(0,0,0,0.05); /* 浅灰色背景 */
}

/* (已修改) "进入服务" - 主要按钮 */
.service-button.btn-service {
    background-color: var(--color-primary-accent);
    color: white;
}
.service-button.btn-service:hover {
    background-color: var(--color-primary-accent-hover);
    border-color: var(--color-primary-accent-hover);
}


/* --- 状态管理 --- */
/* (已存在) Live 状态 */
.service-item[data-status="live"] .service-status {
    color: #28a745;
}

/* (已存在) Soon 状态 */
.service-item[data-status="soon"] .service-status {
    color: #007aff;
}

/* (已存在) Dev 状态 */
.service-item[data-status="dev"] .service-status {
    color: var(--color-text-secondary);
}

/* (新) Deprecated 状态 (橙色) */
.service-item[data-status="deprecated"] .service-status {
    color: #ff9500; 
}

/* (新) Offline 状态 (红色) */
.service-item[data-status="offline"] .service-status {
    color: #ff3b30; 
}


/* (已更新) 灰色 Logo 和 标题 (dev, soon, deprecated, offline) */
.service-item[data-status="dev"] .service-name,
.service-item[data-status="soon"] .service-name,
.service-item[data-status="deprecated"] .service-name, /* <-- 新增 */
.service-item[data-status="offline"] .service-name {   /* <-- 新增 */
    color: var(--color-text-disabled);
}

.service-item[data-status="dev"] .service-logo,
.service-item[data-status="soon"] .service-logo,
.service-item[data-status="deprecated"] .service-logo, /* <-- 新增 */
.service-item[data-status="offline"] .service-logo {   /* <-- 新增 */
    filter: grayscale(100%);
    opacity: 0.6;
}


/* (已更新) 禁用所有按钮的样式 */
.service-item[data-status="dev"] .btn-service,
.service-item[data-status="soon"] .btn-service,
.service-item[data-status="deprecated"] .btn-service, /* <-- 新增 */
.service-item[data-status="offline"] .btn-service,    /* <-- 新增 */
.service-item .btn-docs[data-doc-status="wip"] {
    background-color: #f5f5f7;
    border-color: var(--border-color);
    color: var(--color-text-disabled);
    cursor: not-allowed;
    pointer-events: none;
}

/* (已更新) 确保禁用的按钮在悬停时不会改变样式 */
.service-item[data-status="dev"] .btn-service:hover,
.service-item[data-status="soon"] .btn-service:hover,
.service-item[data-status="deprecated"] .btn-service:hover, /* <-- 新增 */
.service-item[data-status="offline"] .btn-service:hover {    /* <-- 新增 */
    background-color: #f5f5f7;
    border-color: var(--border-color);
}

/* (关键) 禁用所有按钮的样式 */
.service-item[data-status="dev"] .btn-service,
.service-item[data-status="soon"] .btn-service,
.service-item .btn-docs[data-doc-status="wip"] {
    background-color: #f5f5f7;
    border-color: var(--border-color);
    color: var(--color-text-disabled);
    cursor: not-allowed;
    pointer-events: none;
}

/* (新) 确保禁用的按钮在悬停时不会改变样式 */
.service-item[data-status="dev"] .btn-service:hover,
.service-item[data-status="soon"] .btn-service:hover {
    background-color: #f5f5f7;
    border-color: var(--border-color);
}

.service-item .btn-docs[data-doc-status="wip"]:hover {
    background-color: #f5f5f7;
    color: var(--color-text-disabled);
}