:root { --main-color: #8c50bf; --main-width: 1200px; --h1-size: 2.4rem; --h2-size: 1.8rem; --h3-size: 1.5rem; --h1-color: #fff; --h2-color: #e471ea; --h3-color: #8c50bf; }
body { margin: 0; padding: 0; font-family: 'Segoe UI', 'Arial', sans-serif; background: #170d36; color: #fff; }
.hero-section { padding: 0; position: relative; overflow: hidden; width: 100%; background: rgb(24, 13, 89); }
.hero-bg-container { position: absolute; inset: 0; background: none; z-index: 1; }
.hero-container { max-width: var(--main-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 40px; position: relative; z-index: 2; flex-direction: row; height: 100%; }
.hero-content { flex: 1; margin: 30px 0 30px 0; }
.hero-title { font-size: var(--h1-size); line-height: 1.1; margin-bottom: 20px; position: relative; display: inline-block; color: var(--h1-color); font-weight: 700; text-transform: none; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 30px; position: relative; display: block; margin-top: 20px; color: #fff; }
.hero-btn { background: linear-gradient(135deg, rgb(140, 80, 191) 0%, rgb(194, 56, 186) 100%); color: #fff; border: none; padding: 15px 35px; border-radius: 30px; font-size: 1.1rem; cursor: pointer; font-weight: bold; box-shadow: rgba(0, 0, 0, 0.3) 0px 4px 15px; transition: 0.3s; margin-top: 20px; position: relative; overflow: hidden; }
.hero-btn .hero-btn-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); pointer-events: none; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.hero-btn:hover .hero-btn-shine { animation: hero-shine 1s forwards; }
@keyframes hero-shine { 100% { left: 100%; } }
    .hero-bonus2 { flex: 0 0 500px; display: flex; align-items: center; justify-content: center; height: 292px; position: relative; overflow: hidden; border-left: none; border-right: none; }
    .hero-image-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0px; box-sizing: border-box; }
    .hero-uploaded-image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border: none; box-sizing: border-box; filter: none; border-radius: 0px; }
@media (max-width: 1100px) { .hero-container { flex-direction: column; gap: 20px; text-align: center; } .hero-bonus2 { flex: none; width: 100%; height: 220px; } }
@media (max-width: 700px) { .hero-container { flex-direction: column; gap: 20px; padding: 0 10px; } .hero-content { margin: 20px 0 10px 0; } .hero-bonus2 { height: 170px; width: 100%; } .hero-title { font-size: 2rem; } .hero-subtitle { font-size: 1.05rem; } .hero-btn { font-size: 1rem; padding: 13px 22px; } }
@media (max-width: 480px) { .hero-container { gap: 10px; } .hero-title { font-size: 1.5rem; } .hero-bonus2 { height: 120px; } }
    .content-container { max-width: var(--main-width); margin: 0 auto; padding: 40px 20px 40px 20px; box-sizing: border-box; }
@media (max-width: 900px) { .content-container { padding: 30px 10px; } }
@media (max-width: 700px) { .content-container { padding: 20px 5px; } }
    .content-container img { max-width: 100%; height: auto; display: block; }
    .content-container h1 { color: var(--h1-color); font-size: var(--h1-size); margin: 1.7em 0 1em 0; }
    .content-container h2 { color: var(--h2-color); font-size: var(--h2-size); margin: 2em 0 1em 0; font-weight: 600; letter-spacing: 0.02em; }
    .content-container h3 { color: var(--h3-color); font-size: var(--h3-size); margin: 1.5em 0 0.8em 0; font-weight: 500; }
    .content-container p { margin: 1.1em 0; line-height: 1.7; font-size: 1.1rem; color: #f7f3ff; }
    .content-container ul, .content-container ol { margin: 1.2em 0 1.2em 1.4em; color: #f7f3ff; font-size: 1.08rem; }
    .content-container li { margin: 0.5em 0; }
    .content-container a { color: inherit; text-decoration: underline; transition: color 0.2s; }
    .content-container a:hover { color: var(--main-color); text-decoration: underline; }
    .content-container table { border-collapse: collapse; width: 100%; max-width: 100%; margin: 2em 0; }
    .content-container th, .content-container td { border: 1px solid #8c50bf; padding: 10px 14px; font-size: 1.06rem; }
    .content-container th { background: linear-gradient(90deg, #8c50bf 50%, #c238ba 100%); color: #fff; font-weight: bold; }
    .content-container tr:nth-child(even) td { background: rgba(140,80,191,0.09); }
    .feed-block { margin: 40px 0 0 0; }
    .feed-block-title { font-size: 1.55rem; color: #e471ea; font-weight: bold; margin: 0 0 22px 0; letter-spacing: 0.01em; }
    .feed-list { display: flex; flex-wrap: wrap; gap: 28px; }
    .feed-item { background: #1e1352; border-radius: 20px; box-shadow: 0 2px 20px 0 rgba(194,56,186,0.11); width: calc(33% - 20px); min-width: 260px; max-width: 350px; padding: 22px 18px 18px 18px; display: flex; flex-direction: column; align-items: flex-start; transition: box-shadow 0.2s, transform 0.2s; }
    .feed-item:hover { box-shadow: 0 4px 32px 0 rgba(140,80,191,0.24); transform: translateY(-5px) scale(1.025); }
    .feed-item-image { width: 100%; height: 150px; overflow: hidden; border-radius: 15px; margin-bottom: 14px; display: block; }
    .feed-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .feed-item-title { font-size: 1.1rem; color: #fff; font-weight: 700; margin: 0 0 8px 0; text-decoration: underline; transition: color 0.2s; }
    .feed-item-title:hover { color: var(--main-color); }
    .feed-item-desc { color: #e6cafd; font-size: 0.97rem; line-height: 1.5; margin-bottom: 0; }
@media (max-width: 1000px) { .feed-list { gap: 16px; } .feed-item { width: calc(50% - 14px); } }
@media (max-width: 700px) { .feed-list { gap: 10px; } .feed-item { width: 100%; max-width: 100%; padding: 13px 10px 12px 10px; min-width: unset; } .feed-block-title { font-size: 1.18rem; } }
    .comment-block { margin: 42px 0 0 0; }
    .comment-block-title { color: #fff44d; font-size: 1.22rem; font-weight: 700; margin-bottom: 20px; letter-spacing: 0.04em; text-shadow: 0 1px 10px #8c50bf55; }
    .comment-list { display: flex; flex-direction: column; gap: 19px; }
    .comment-item { padding: 14px 22px 16px 18px; border-left: 5px solid #ffd700; background: rgba(25,13,60,0.94); border-radius: 0 18px 18px 0; }
    .comment-meta { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #ffd700; font-size: 1rem; margin-bottom: 6px; }
    .comment-name { font-size: 1.04rem; font-weight: 600; }
    .comment-date { font-size: 0.98rem; opacity: 0.75; }
    .comment-text { font-size: 1.07rem; color: #fff; }
@media (max-width: 600px) { .comment-item { padding: 10px 8px 10px 8px; border-radius: 0 11px 11px 0; } }
    .faq-block { margin: 44px 0 0 0; }
    .faq-block-title { color: #c238ba; font-size: 1.26rem; font-weight: bold; margin-bottom: 22px; text-shadow: 0 2px 24px #e471ea33; }
    .faq-list { display: flex; flex-direction: column; gap: 22px; }
    .faq-item { border-radius: 20px; background: linear-gradient(90deg, #8c50bf12 0%, #fff1 100%); box-shadow: 0 3px 24px 0 #8c50bf14; padding: 20px 20px 19px 24px; position: relative; }
    .faq-question { font-size: 1.08rem; font-weight: 700; color: #c238ba; margin-bottom: 5px; }
    .faq-answer { font-size: 1.04rem; color: #fff; font-weight: 400; }
@media (max-width: 600px) { .faq-item { padding: 11px 7px 12px 13px; } }
    footer { background: linear-gradient(90deg, #160946 0%, #34083e 100%); padding: 36px 0 18px 0; color: #fff; text-align: center; }
    .footer-inner { max-width: var(--main-width); margin: 0 auto; padding: 0 20px; }
    .footer-menu { display: flex; justify-content: center; gap: 30px; margin-bottom: 15px; flex-wrap: wrap; }
    .footer-menu a { color: #e6cafd; font-weight: 600; text-decoration: none; font-size: 1.02rem; letter-spacing: 0.01em; padding: 7px 10px; border-radius: 20px; transition: background 0.22s, color 0.22s; }
    .footer-menu a:hover { background: var(--main-color); color: #fff; }
    .footer-copyright { color: #e0d7fd; font-size: 0.98rem; text-align: center; margin: 16px 0 0 0; }
@media (max-width: 700px) { .footer-inner { padding: 0 10px; } .footer-menu { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 16px; } .footer-menu a { padding: 9px 5px; font-size: 1rem; } }
@media (max-width: 480px) { .footer-inner { padding: 0 2px; } .footer-copyright { font-size: 0.92rem; } }
    :root { --menu-color: #000000; --menu-text: #FFFFFF; --hover-color: var(--main-color); --hover-text: #000000; }
    [data-theme="light"] { --menu-color: #FFFFFF; --menu-text: #000000; --hover-color: var(--main-color); --hover-text: #FFFFFF; }
    a { color: inherit; text-decoration: underline; }
    .container { max-width: var(--main-width); margin: 0 auto; padding: 0 20px; }
    header { padding: 0; background-color: var(--menu-color); position: relative; }
    .desktop-menu { display: flex; list-style: none; margin: 0; padding: 0; }
    .desktop-menu > li { position: relative; margin: 0px; }
    .desktop-menu > li > a { color: var(--menu-text); text-decoration: none; font-size: 1rem; padding: 10px 15px; display: flex; align-items: center; transition: color 0.1s; }
    .desktop-menu > li > a:hover { color: var(--hover-color); }
    .desktop-menu > li.has-submenu > a::after { content: '▼'; font-size: 0.5rem; margin-top: 2px; margin-left: 5px; }
    .submenu { position: absolute; top: 100%; left: 0; background-color: var(--menu-color); min-width: 200px; list-style: none; opacity: 0; visibility: hidden; transition: all 0.1s; z-index: 1000; border-radius: 5px; overflow: hidden; }
    .desktop-menu > li:hover .submenu { opacity: 1; visibility: visible; }
    .submenu { margin: 0px; padding: 0px !important; }
    .submenu li { margin: 0px; padding: 0px !important; }
    .submenu li a { color: var(--menu-text); text-decoration: none; display: block; width: 100% !important; padding: 12px 15px; margin: 0px !important; transition: background 0.1s; }
    .submenu li a:hover { color: var(--hover-text); background-color: var(--hover-color); }
    .burger-menu { order: 3; display: none; background: none; border: none; color: #ffffff; font-size: 1.6rem; cursor: pointer; }
    .mobile-menu-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: white; font-size: 24px; cursor: pointer; display: none; }
    .header-container { display: flex; flex-wrap: wrap; align-items: center; }
    nav { order: 2; display: block; width: auto; margin-left: auto; margin-top: 12px; margin-bottom: 12px; }
    .logo { order: 1; font-size: 1.8rem; font-weight: bold; color: var(--hover-color); text-decoration: none; margin-right: auto; }
    .logo img { margin: 0px; }
    .header-right { order: 3; display: inline-block; margin-left: 20px; padding: 12px 0; }
    .language-switcher { }
    .language-switcher:empty { display: none; }
    .language-switcher { display: flex; gap: 15px; }
    .language-switcher a { color: #fff; text-decoration: none; font-size: 14px; }
@media (max-width: 768px) {
    .logo { order: 1; font-size: 1.4rem; }
    .burger-menu { display: block; margin-left: auto; }
    .header-right { display: block; width: 100%; text-align: center; }
    .language-switcher { display: inline-flex; margin: 10px auto 0px auto; }
}
@media (max-width: 768px) {
    nav { position: fixed; top: 0; left: 0; width: 80%; height: 100vh; background: #1a1a1a; z-index: 1000; transform: translateX(-100%); transition: transform 0.3s ease; padding: 60px 20px 20px; box-sizing: border-box; }
    nav.active { transform: translateX(0); }
    .desktop-menu { flex-direction: column; margin: 0px; }
    .has-submenu { position: relative; width: 100%; font-size: 0.9rem; margin: 0px; padding-right: 30px; }
    .has-submenu > a { display: flex; }
    .desktop-menu > li.has-submenu > a::after { position: absolute; right: 0px; top: 20px; transform: translateY(-50%); font-size: 0.8rem; margin-left: 0; transition: transform 0.3s; padding: 10px; }
    .desktop-menu > li.has-submenu > a.submenu-active::after { padding: 10px; transform: translateY(-50%) rotate(180deg); }
    .submenu { display: none; position: static; opacity: 1; visibility: visible; background-color: transparent; padding-left: 15px; }
    .submenu.active { display: block; margin-left: 20px; margin-bottom: 0px;}
    .submenu li a { color: var(--menu-text); background-color: transparent; text-decoration: none; display: block; padding: 5px 0px; transition: background 0.1s; }
    .submenu li a:hover { color: var(--hover-color); background-color: transparent; }
    .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; }
    .nav-overlay.active { display: block; }
    .mobile-menu-close { display: block; }
}


@media (max-width: 1919px) { :root { --main-width: 1200px; } [style*="max-width: 1200px"] { max-width: 1200px !important; } }
@media (min-width: 1530px) and (max-width: 1920px) { :root { --main-width: 90%; } [style*="max-width: 1200px"], .hero-container, .hero-section .hero-container, .hero-section .hero-container[style*="max-width: 1200px"], .hero-container[style*="max-width: 1200px"], [style*="max-width: 1200px"].hero-container { max-width: 90% !important; width: 90% !important; } }
@media (min-width: 1921px) { :root { --main-width: 80%; } [style*="max-width: 1200px"], .hero-container, .hero-section .hero-container, .hero-section .hero-container[style*="max-width: 1200px"], .hero-container[style*="max-width: 1200px"], [style*="max-width: 1200px"].hero-container { max-width: 80% !important; width: 80% !important; } }
    .main-content { margin-top: 20px; }
    .sidebar { margin-top: 20px; }
    .main-content > p, .main-content > ul > li, .main-content > ol > li { font-size: 1.15rem; letter-spacing: 0.5px; }
    .main-content > img, .main-content > p > img { max-width: 100%; border-radius: 10px; }
    .toc-section { padding-top: 0px !important; }.language-selector { position: relative; display: inline-block; font-family: system-ui, -apple-system, sans-serif; font-size: 16px; }
    .language-selector-button { display: flex; align-items: center; padding: 8px 12px; background-color: #1E1E1E; border: 1px solid #444444; border-radius: 6px; cursor: pointer; }
    .language-selector-button:hover { background-color: #333333; }
    .language-flag { width: 24px; height: 16px; margin-right: 10px; background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0; }
    .language-code { font-weight: bold; width: 30px; color: #FFFFFF; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
    .language-dropdown { position: absolute; top: 100%; left: 0; min-width: 200px; max-width: 300px; max-height: 300px; overflow-y: auto; background-color: #1E1E1E; border: 1px solid #444444; border-radius: 6px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); z-index: 1000; display: none; margin-top: 5px; }
    .language-option { display: flex; align-items: center; padding: 12px 12px; cursor: pointer; white-space: nowrap; text-decoration: none; color: inherit; }
    .language-option:hover { background-color: #333333; }
    .language-name { margin-left: 8px; color: #CCCCCC; overflow: hidden; text-overflow: ellipsis; }
    .language-dropdown::-webkit-scrollbar { width: 6px; }
    .language-dropdown::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; }
    .language-dropdown::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; transition: background 0.3s ease; }
    .language-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
    .language-dropdown { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05); }

.hero-container{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:18px;
}

.hero-bonus2{
  width:100%;
  height:auto !important;
  flex:0 0 auto !important;
  display:block;
  padding:0;
  margin:0;
  border:none;
  overflow:visible;
}

.hero-image-container{
  width:100%;
  height:auto !important;
  display:block;
  padding:0;
  box-sizing:border-box;
}

.hero-uploaded-image{
  display:block;
  width:100% !important;   
  height:auto !important;
  object-fit:contain;       
  border:0;
  border-radius:0;
  box-sizing:border-box;
}

.toc-section{
  --clr-accent: var(--main-color, #8c50bf);
  --clr-primary: var(--main-color, #8c50bf);
  --clr-surface: #fff;
  --clr-ink: #24141a;
}

.toc-toggle-btn{
  background: linear-gradient(135deg, var(--main-color, #8c50bf) 0%, #c238ba 100%);
  color: #fff;
  border: 0;
}
.toc-toggle-btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(140,80,191,.35), 0 12px 28px rgba(0,0,0,.25);
}

.toc-panel{
  border: 1px solid rgba(140,80,191,.25);
  box-shadow: 0 1px 8px rgba(36,20,26,.06);
}

.toc-content > ol > li::marker{ color: var(--main-color, #8c50bf); }
.toc-content > ol a:hover{ color: var(--main-color, #8c50bf); }
