html,
body {
    padding: 0;
    margin: 0;
    overflow-y: auto;
    height: 100%;
    background: linear-gradient(120deg, #232526 0%, #414345 100%);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Arial', sans-serif;
}

#main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 48px;
    padding-bottom: 48px;
    box-sizing: border-box;
    overflow: hidden;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2em;
    margin-bottom: 1em;
}

.logo {
    width: 128px;
    height: 128px;
    border-radius: 16px;
    box-shadow: 0 4px 24px #0008;
    object-fit: cover;
    background: #222;
}

.title {
    font-size: 2.6em;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 2px 8px #0008;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.tabs {
    display: flex;
    margin-bottom: 1em;
    gap: 1em;
}

.tab-btn {
    background: #232526;
    color: #8ec6ff;
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 0.7em 2em;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 8px #0006;
    transition: background 0.2s, color 0.2s;
    outline: none;
}

.tab-btn.active {
    background: #3498db;
    color: #fff;
}

.tab-content {
    background: rgba(40, 44, 52, 0.85);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 2px 12px #0006;
    padding: 2em 2em 1.5em 2em;
    max-width: 800px;
    width: 100%;
    color: #eee;
    line-height: 1.8;
    overflow-y: auto;
    max-height: 40vh;
    margin-bottom: 2em;
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    color: #8ec6ff;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: bold;
    border-left: 4px solid #3498db;
    padding-left: 0.5em;
    letter-spacing: 1px;
}

.tab-content em {
    color: #8ec6ff;
    font-style: normal;
}

.tab-content .quote {
    color: #8ec6ff;
    font-size: 1.05em;
    margin: 1em 0;
    padding-left: 1em;
    border-left: 3px solid #3498db;
}

.start-btn {
    padding: 0.8em 2.5em;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px #0006;
    transition: background 0.2s;
    margin-bottom: 2em;
    margin-top: 1em;
}

.start-btn:hover {
    background: #217dbb;
}

#qtspinner {
    display: none;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1em auto;
}

.highlight-quote {
    background: rgba(40, 44, 52, 0.85);
    color: #fff;
    font-size: 1.6em;
    font-weight: bold;
    padding: 2em 2em 2em 2em;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0004;
    margin-bottom: 1.5em;
    text-align: center;
    letter-spacing: 2px;
    border-left: 8px solid #3498db;
    line-height: 2.1;
    max-width: 800px;
    width: 100%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#screen {
    width: 1344px;
    height: 756px;
    margin: 40px auto;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 4px 32px #0008;
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .logo {
        width: 220px;
        height: 220px;
    }

    .tab-content {
        padding: 1em;
        max-width: 98vw;
        max-height: 50vh;
    }

    .title {
        font-size: 2em;
    }
}

/* 备案信息底部样式 */
.beian-bar {
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 998;
    background: rgba(40, 44, 52, 0.85);
    box-shadow: 0 2px 8px #0004;
    border-radius: 12px 12px 0 0;
    height: 2.8em;
}

.beian-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    color: #8ec6ff;
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
}

.beian-info a {
    color: #8ec6ff;
    text-decoration: underline;
    font-weight: bold;
}

.beyondxin-link {
    position: absolute;
    right: 2em;
    top: 50%;
    transform: translateY(-50%);
    color: #8ec6ff;
    text-decoration: underline;
    font-weight: bold;
    font-size: 1em;
}