/* =====================================================
   API Shanhe Cloud - 科技感帮助文档页面样式
   ===================================================== */

:root {
    --primary-blue: #2196F3;
    --primary-cyan: #00BCD4;
    --primary-orange: #ff6b35;
    --tech-dark: #0a0e27;
    --tech-purple: #1a1f3a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--tech-dark);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== 导航栏 ========== */

.tech-help-navbar {
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s;
}

.tech-help-nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-help-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tech-help-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.tech-help-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.tech-help-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.tech-help-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.tech-help-search input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.tech-help-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.tech-help-nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.tech-help-nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.tech-help-nav-links a:hover {
    color: white;
    background: var(--glass-bg);
}

.tech-help-nav-links a.active {
    color: var(--primary-cyan);
    background: rgba(33, 150, 243, 0.1);
}

/* ========== 主容器 ========== */

.tech-help-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 80px);
}

/* ========== 侧边栏 ========== */

.tech-help-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.tech-help-sidebar::-webkit-scrollbar {
    width: 6px;
}

.tech-help-sidebar::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 3px;
}

.tech-help-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 3px;
}

.tech-sidebar-section {
    margin-bottom: 1.5rem;
}

.tech-sidebar-section:last-child {
    margin-bottom: 0;
}

.tech-sidebar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-sidebar-list {
    list-style: none;
}

.tech-sidebar-item {
    margin-bottom: 0.25rem;
}

.tech-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.tech-sidebar-link:hover {
    color: white;
    background: var(--glass-bg);
}

.tech-sidebar-link.active {
    color: var(--primary-cyan);
    background: rgba(33, 150, 243, 0.15);
}

.tech-sidebar-link i {
    font-size: 1rem;
    color: var(--primary-cyan);
}

/* ========== 主内容区 ========== */

.tech-help-main {
    background: rgba(26, 31, 58, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
}

.tech-help-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.tech-help-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.tech-help-breadcrumb a:hover {
    color: var(--primary-cyan);
}

.tech-help-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-help-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.tech-help-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-help-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.tech-help-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: white;
}

.tech-help-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: white;
}

.tech-help-content p {
    margin-bottom: 1rem;
}

.tech-help-content code {
    background: var(--glass-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-cyan);
}

.tech-help-content pre {
    background: var(--tech-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.tech-help-content pre code {
    background: none;
    padding: 0;
    color: #e0e0e0;
}

.tech-help-content ul,
.tech-help-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tech-help-content li {
    margin-bottom: 0.5rem;
}

.tech-help-content a {
    color: var(--primary-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.tech-help-content a:hover {
    border-bottom-color: var(--primary-cyan);
}

.tech-help-content blockquote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.tech-help-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.tech-help-content th,
.tech-help-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.tech-help-content th {
    background: var(--glass-bg);
    font-weight: 600;
    color: white;
}

/* ========== 文档列表 ========== */

.tech-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tech-doc-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tech-doc-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.2);
}

.tech-doc-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tech-doc-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.tech-doc-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========== 响应式 ========== */

@media (max-width: 1024px) {
    .tech-help-container {
        grid-template-columns: 1fr;
    }

    .tech-help-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .tech-help-navbar {
        padding: 1rem;
    }

    .tech-help-nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .tech-help-search {
        width: 100%;
        max-width: none;
    }

    .tech-help-nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .tech-help-container {
        padding: 1rem;
    }

    .tech-help-main {
        padding: 1.5rem;
    }

    .tech-help-title {
        font-size: 1.5rem;
    }

    .tech-doc-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 空状态 ========== */

.tech-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.tech-empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.tech-empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========== 加载状态 ========== */

.tech-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.tech-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
