/* PaperAIGC 全局样式 - Sketch Style */

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========== 导航栏 ========== */
.navbar {
    background: var(--sketch-white);
    border-bottom: 2px dashed var(--sketch-dark);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    height: 56px;
}

.nav-logo {
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    color: var(--sketch-dark);
    font-style: italic;
}

.logo-icon {
    margin-right: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.nav-link {
    color: var(--sketch-dark);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px dashed transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}

.nav-quota {
    font-size: 14px;
    color: var(--theme-accent);
    font-weight: 600;
}

/* ========== 主题切换按钮 ========== */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.theme-switcher-label {
    font-size: 12px;
    color: #666;
    margin-right: 4px;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border: 2px dashed var(--sketch-dark);
    background: var(--sketch-white);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-btn:hover {
    border-color: var(--theme-accent);
    background: var(--theme-accent-soft);
    transform: translateY(-1px);
}

.theme-btn.active {
    border-color: var(--theme-accent);
    background: var(--theme-accent);
    box-shadow: 0 0 0 2px var(--theme-accent-soft);
}

/* 主题色 */
body.theme-pink { --theme-accent: #e91e63; }
body.theme-blue { --theme-accent: #3498db; }
body.theme-green { --theme-accent: #27ae60; }

/* ========== 主内容 ========== */
.main-content {
    flex: 1;
    position: relative;
}

/* ========== 页脚 ========== */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #666;
    border-top: 1px dashed var(--sketch-dark);
    background: var(--sketch-paper);
}

.footer a {
    color: var(--theme-accent);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 0;
        gap: 12px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
    }

    .theme-switcher {
        order: 2;
    }
}
