* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f1 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: transform 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
    border: 2px solid #3498db;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
    transition: all 0.2s ease;
}

.control-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.control-btn:active {
    transform: translateY(0);
}

.zoom-display {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    background: rgba(236, 240, 241, 0.8);
    padding: 8px 16px;
    border-radius: 25px;
    min-width: 80px;
    text-align: center;
    border: 2px solid #3498db;
}

/* 暗亮切换开关样式 */
.onoffswitch {
    position: relative;
    width: 90px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.onoffswitch-checkbox {
    display: none;
}

.onoffswitch-label {
    display: block;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #bdc3c7;
    border-radius: 25px;
}

.onoffswitch-inner {
    display: block;
    width: 200%;
    margin-left: -100%;
    transition: margin 0.3s ease-in 0s;
}

.onoffswitch-inner:before,
.onoffswitch-inner:after {
    display: block;
    float: left;
    width: 50%;
    height: 36px;
    padding: 0;
    line-height: 36px;
    font-size: 16px;
    color: white;
    font-weight: bold;
    box-sizing: border-box;
}

.onoffswitch-inner:before {
    content: "亮";
    padding-left: 12px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: #FFFFFF;
}

.onoffswitch-inner:after {
    content: "暗";
    padding-right: 12px;
    background: linear-gradient(to right, #2c3e50, #34495e);
    color: #FFFFFF;
    text-align: right;
}

.onoffswitch-switch {
    display: block;
    width: 30px;
    height: 30px;
    margin: 3px;
    background: #FFFFFF;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 51px;
    border-radius: 50%;
    transition: all 0.3s ease-in 0s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner {
    margin-left: 0;
}

.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch {
    right: 0px;
}

/* 内容区域样式 */
.content {
    background: rgba(255, 255, 255, 0.9);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(to right, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* 暗色模式样式 */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e6e6e6;
}

body.dark-mode .header,
body.dark-mode .content,
body.dark-mode .feature-card {
    background: rgba(22, 33, 62, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .control-btn {
    background: #2c3e50;
    color: #ecf0f1;
    border-color: #3498db;
}

body.dark-mode .control-btn:hover {
    background: #3498db;
}

body.dark-mode .zoom-display {
    background: rgba(44, 62, 80, 0.8);
    color: #ecf0f1;
    border-color: #3498db;
}

body.dark-mode h1 {
    background: linear-gradient(to right, #3498db, #1abc9c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .feature-card h3 {
    color: #1abc9c;
}

body.dark-mode .feature-card {
    background: rgba(30, 58, 95, 0.7);
}

body.dark-mode p {
    color: #bdc3c7;
}

/* 缩放提示 - 固定在右下角 */
.zoom-notification {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: rgba(52, 152, 219, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
}

.zoom-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.zoom-notification::before {
    content: "ⓘ";
    margin-right: 10px;
    font-size: 18px;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    .controls {
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }
}