body, html {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', 'roboto', sans-serif;
    background: #f5f6fa;
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;
}
.main-header {
    width: 100vw;
    height: 60px;
    background: #1976d2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    box-sizing: border-box;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
    letter-spacing: 2px;
}
.main-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 16px;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    background: rgba(255,255,255,0.18);
}
#main-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 60px; left: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #f5f6fa;
}
.section {
    width: 100vw;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: row;
    position: absolute;
    top: 0; left: 0;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1);
    background: transparent;
}
.page {
    width: 100vw;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    box-shadow: 0 0 16px rgba(0,0,0,0.08);
    margin: 24px 16px 16px 16px;
    border-radius: 18px;
    transition: background 0.3s;
}
.tab-nav {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10;
}
.tab-nav button {
    border: none;
    background: none;
    color: #1976d2;
    font-size: 1.1em;
    padding: 10px 28px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}
.tab-nav button.active {
    background: #1976d2;
    color: #fff;
    font-weight: bold;
}
.section-indicator {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 20;
}
.section-indicator button {
    width: 14px;
    height: 14px;
    margin: 10px 0;
    border-radius: 50%;
    border: none;
    background: #e3e3e3;
    box-shadow: 0 0 6px #1976d2;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.section-indicator button.active {
    background: #1976d2;
    transform: scale(1.5);
}
/* 多风格支持 */
.type-index .page { background: linear-gradient(135deg,#e3f2fd 60%,#fffde7 100%); }
.type-download .page { background: linear-gradient(135deg,#e1f5fe 60%,#fff8e1 100%); }
.type-video .page { background: linear-gradient(135deg,#ede7f6 60%,#fce4ec 100%); }
.type-titpic .page { background: linear-gradient(135deg,#e8f5e9 60%,#fff3e0 100%); }
.type-table .page { background: linear-gradient(135deg,#fffde7 60%,#f3e5f5 100%); }
@media (max-width: 600px) {
    .main-header { height: 48px; padding: 0 8px; }
    .logo { font-size: 1.1em; }
    .main-nav a { margin: 0 6px; font-size: 1em; padding: 6px 6px; }
    #main-container { top: 48px; }
    .section, .page { height: calc(100vh - 48px); }
    .tab-nav button { padding: 8px 12px; font-size: 1em; }
    .section-indicator { right: 8px; }
} 