
/* 与 yigoai.com 统一：纸白底、墨色字、墨绿强调、黑色主按钮、深色页脚 */
:root { --paper: #f8fafb; --sheet: #ffffff; --ink: #101214; --muted: #69717b; --line: #d9e0e7; --seal: #13514c; --green: #2f9e7c;
  --serif: "Noto Serif SC", "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.yg-nav { position: sticky; top: 0; z-index: 40; background: rgba(248,250,251,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(16,18,20,.08); }
.yg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
#demo-index { width: min(1132px, calc(100% - 48px)); }
.yg-nav .yg-wrap { height: 72px; display: flex; align-items: center; gap: 24px; }
.yg-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.yg-brand svg { display: block; flex: none; }
.yg-brand .name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.yg-crumb { padding-left: 14px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.yg-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.yg-links a { color: var(--muted); text-decoration: none; }
.yg-links a:hover { color: var(--ink); }
.yg-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.yg-btn:hover { box-shadow: 6px 6px 0 #5fd1ad; transform: translateY(-2px); }
.yg-footer { margin-top: 64px; background: #101214; color: #bdc6cf; }
.yg-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 0 44px; }
.yg-footer .yg-brand { color: #fff; }
.yg-footer p { margin: 18px 0 0; max-width: 340px; font-size: 14px; line-height: 1.8; }
.yg-footer h4 { margin: 0 0 16px; font-size: 12px; font-weight: 900; letter-spacing: .08em; color: #98a1ab; }
.yg-footer-col a { display: block; color: #bdc6cf; font-size: 14px; line-height: 2.1; text-decoration: none; }
.yg-footer-col a:hover { color: #fff; }
.yg-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #69717b; }
.yg-footer-bottom a { color: inherit; text-decoration: none; }
.yg-footer-bottom .beian { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.yg-footer-bottom img { height: 18px; width: auto; vertical-align: -4px; margin-right: 6px; }
@media (max-width: 860px) { .yg-links { display: none; } .yg-btn { margin-left: auto; } .yg-footer-top { grid-template-columns: 1fr; gap: 28px; } }
.yg-crumb, .yg-nav .yg-btn { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .yg-brand .name { display: none; } }

.ygm-btn { display: none; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid #101214; border-radius: 4px; background: transparent; color: #101214; font: inherit; font-size: 13px; font-weight: 800; line-height: 1; white-space: nowrap; flex: none; cursor: pointer; }
.ygm-btn i { position: relative; width: 14px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.ygm-btn i::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.ygm-btn[aria-expanded="true"] { background: #101214; color: #fff; }
.ygm-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; max-height: calc(100vh - 72px); overflow: auto; padding: 4px 24px 22px; background: #f8fafb; border-bottom: 1px solid rgba(16,18,20,.12); box-shadow: 0 16px 28px rgba(16,18,20,.10); }
.ygm-panel[hidden] { display: none; }
.ygm-panel h4 { margin: 18px 0 2px; font-size: 12px; font-weight: 900; letter-spacing: .08em; color: #13514c; }
.ygm-panel a { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid #e8edf1; color: #101214; font-size: 16px; font-weight: 600; text-decoration: none; }
.ygm-panel a::after { content: "→"; color: #98a1ab; font-weight: 400; }
.ygm-panel a.hl { color: #13514c; font-weight: 800; }
.ygm-panel a.hl::after { color: #13514c; }
@media (max-width: 920px) { .ygm-btn { display: inline-flex; } }
@media (min-width: 921px) { .ygm-panel { display: none !important; } }
@media (max-width: 920px) { .yg-links { display: none; } .yg-nav .yg-btn { margin-left: auto; } }
