.senior-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    font-family: "Microsoft YaHei", Verdana, sans-serif;
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    padding: 10px 20px;
    display: none;
}

.senior-toolbar.show {
    display: block;
}

.senior-toolbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.senior-toolbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.senior-toolbar-title {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255,0.3);
}

.senior-btn-group {
    display: flex;
    gap: 6px;
}

.senior-btn {
    padding: 8px 16px;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    transition: all 0.2s;
}

.senior-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

.senior-btn.active {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
}

.senior-btn.restore-btn {
    background: #3498db;
    border-color: #2980b9;
}

.senior-btn.restore-btn:hover {
    background: #2980b9;
}

.senior-btn.exit-btn {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    padding: 8px 20px;
}

.senior-btn.exit-btn:hover {
    background: rgba(255,255,255,0.3);
}

.senior-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 14px;
}

.senior-switch label {
    cursor: pointer;
}

.senior-switch input[type="checkbox"] {
    width: 40px;
    height: 22px;
    cursor: pointer;
    accent-color: #fff;
}

.senior-read-btn {
    padding: 8px 20px;
    background: #27ae60;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.senior-read-btn:hover {
    background: #219a52;
}

.senior-read-btn.reading {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.senior-toggle-btn {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 9999;
    width: 80px;
    height: 40px;
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.senior-toggle-btn:hover {
    background: #a93226;
    transform: scale(1.05);
}

.senior-toggle-btn span {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.senior-scale-container {
    transform-origin: center top;
    transition: transform 0.3s ease;
    position: relative;
    margin: 0 auto;
}

body.senior-high-contrast {
    background: #000 !important;
}

body.senior-high-contrast body,
body.senior-high-contrast #win,
body.senior-high-contrast #home_jq,
body.senior-high-contrast table,
body.senior-high-contrast td,
body.senior-high-contrast div,
body.senior-high-contrast span,
body.senior-high-contrast a,
body.senior-high-contrast p,
body.senior-high-contrast li {
    background: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.senior-high-contrast a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.senior-high-contrast img {
    filter: contrast(1.5) brightness(1.2);
}

body.senior-high-contrast #top {
    background: #000 !important;
}

body.senior-high-contrast .topCenter {
    background: #000 !important;
}

body.senior-read-aloud {
    cursor: text !important;
}

body.senior-read-aloud * {
    cursor: text !important;
    user-select: text !important;
}

body.senior-read-aloud ::selection {
    background: #3498db !important;
}

body.senior-toolbar-active {
    padding-top: 60px;
}

.senior-toolbar-active #top {
    position: relative;
}
