body
{
    background: snow;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* 工具顶部导航条 */
.tool-navbar
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 48px;
    z-index: 1000;
}

.tool-nav-back
{
    color: white;
    text-decoration: none;
    font-size: 24px;
    padding: 8px;
    transition: color 0.2s;
}

.tool-nav-back:hover
{
    color: #dc2626;
}

.tool-nav-placeholder
{
    width: 40px;
}

.tool-nav-fullscreen
{
    color: white;
    font-size: 20px;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
}

.tool-nav-fullscreen:hover
{
    color: #dc2626;
}

.tool-nav-title
{
    flex: 1;
    text-align: center;
}

.tool-nav-title select
{
    background: #374151;
    color: white;
    border: 1px solid #4b5563;
    padding: 8px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

.tool-nav-title select:hover
{
    background: #4b5563;
}

/* 页面内容区域 */
body > .card
{
    margin: 64px 16px;
}

.card
{
    background: white;
    max-width: 400px;
    width: 100%;
    padding: 20px 18px;
    border: 1px solid lightgray;
}

h1
{
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.sub
{
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid lightgray;
    color: #6c757d;
    font-size: 0.8rem;
    text-align: center;
}

.toggle-row
{
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.toggle-btn
{
    flex: 1;
    background: lightgray;
    border: 1px solid darkgray;
    padding: 10px 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    color: #212529;
    transition: none;
    text-align: center;
    line-height: 1.3;
}

.toggle-btn.active
{
    color: white;
    background: darkcyan;
    border: 1px solid darkgray;
}

.toggle-btn span
{
    font-size: 0.7rem;
}

.status-bar
{
    background: snow;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    margin: 16px 0 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.status-left
{
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot
{
    width: 14px;
    height: 14px;
    background-color: #adb5bd;
}

.status-text
{
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
}

.status-desc
{
    font-size: 0.7rem;
    color: #495057;
    margin-left: 4px;
}

.real-datetime
{
    font-size: 0.8rem;
    background: #e9ecef;
    padding: 4px 8px;
    color: #0b3b5f;
}

.qrcode-box
{
    background: white;
    border: 1px solid #dee2e6;
    padding: 16px;
    margin: 12px 0;
    text-align: center;
}

#qrcode
{
    display: inline-block;
}

.time-stamp
{
    background: #f1f3f5;
    padding: 8px 12px;
    font-size: 0.75rem;
    margin: 12px 0;
    color: #212529;
    border: 1px solid #e9ecef;
}

#refreshBtn
{
    background: darkcyan;
    color: white;
    border: none;
    padding: 10px 16px;
    width: 100%;
    cursor: pointer;
    margin-top: 8px;
    font-weight: 500;
}

#refreshBtn:disabled
{
    opacity: 0.7;
    cursor: not-allowed;
}

.note
{
    font-size: 0.7rem;
    color: #495057;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #dee2e6;
}

.footer
{
    font-size: 0.65rem;
    color: #6c757d;
    margin-top: 12px;
    text-align: center;

}

/* 全屏模式 */
body.fullscreen-mode
{
    align-items: center;
}

body.fullscreen-mode > .card
{
    max-width: none;
    width: auto;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

body.fullscreen-mode > .card > h1,
body.fullscreen-mode > .card > .sub
{
    display: none;
}