:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --primary-light: #0080ff;
    --dark: #1a1a1a;
    --dark-secondary: #333;
    --light: #ffffff;
    --light-secondary: #f5f5f5;
    --gray: #666;
    --gray-light: #999;
    --border: #ddd;
    --text: #333;
    --text-muted: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.logo-icon {
    color: var(--primary-light);
}

.search-box input {
    width: 280px;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    background: var(--dark-secondary);
    color: white;
    font-size: 0.85rem;
}

.search-box input:focus {
    outline: 2px solid var(--primary);
}

.search-box input::placeholder {
    color: var(--gray-light);
}

.container {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 260px;
    background: var(--light-secondary);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 20px 0;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 10px;
}

.menu-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    padding: 16px 12px 8px;
}

.menu-item {
    display: block;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.menu-item:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
}

.menu-item.active {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.content {
    flex: 1;
    margin-left: 260px;
    padding: 32px 48px;
    max-width: 800px;
}

.doc-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
    border-bottom: none;
}

.doc-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.doc-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

.doc-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.doc-section ul, .doc-section ol {
    color: var(--text-muted);
    margin-left: 24px;
    margin-bottom: 16px;
}

.doc-section li {
    margin-bottom: 6px;
}

.doc-section a {
    color: var(--primary);
    text-decoration: none;
}

.doc-section a:hover {
    text-decoration: underline;
}

.doc-section code {
    background: #f0f0f0;
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

.intro {
    font-size: 1.05rem;
    color: var(--gray) !important;
}

.info-box {
    background: #e6f3ff;
    border-left: 4px solid var(--primary);
    padding: 14px;
    border-radius: 0 6px 6px 0;
    color: var(--text);
    margin: 16px 0;
}

.warning-box {
    background: #fff8e6;
    border-left: 4px solid #f59e0b;
    padding: 14px;
    border-radius: 0 6px 6px 0;
    color: var(--text);
    margin: 16px 0;
}

.contact-box {
    background: var(--light-secondary);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    margin-top: 16px;
}

.contact-box p {
    margin-bottom: 6px;
}

.contact-box strong {
    color: var(--dark);
}

.policy-box {
    background: var(--light-secondary);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.policy-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.policy-box ul {
    margin-left: 20px;
}

.policy-box ul li {
    margin-bottom: 6px;
}

.policy-box.warning {
    border-left: 4px solid #f59e0b;
}

.policy-box.danger {
    border-left: 4px solid var(--primary);
}

.video-links {
    margin: 20px 0;
}

.video-item {
    background: var(--light-secondary);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.video-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.video-item a {
    color: var(--primary);
    font-size: 0.85rem;
}

.download-section {
    background: var(--light-secondary);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.download-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.download-section p {
    margin-bottom: 8px;
}

.gif-container {
    margin: 20px 0;
    text-align: center;
    background: var(--light-secondary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.gif-container img {
    width: 100%;
    max-width: 600px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gif-container img:hover {
    transform: scale(1.02);
}

.modal-gif {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal-gif.active {
    display: flex;
}

.modal-gif img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
}

.modal-gif .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.phase-box {
    background: var(--light-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.phase-box h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.phase-box.heated {
    border-left-color: var(--primary);
}

.phase-box.heated h3 {
    color: var(--primary);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .content {
        margin-left: 0;
        padding: 20px;
    }
    
    .search-box input {
        width: 140px;
    }
}
