body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    background: #f5f7fa;
    font-family: '微软雅黑', Arial, sans-serif;
}

/* 弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.popup-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.popup-message {
    margin-bottom: 30px;
    text-align: justify;
    line-height: 1.6;
}

.popup-message p {
    margin-bottom: 15px;
    color: #34495e;
    font-size: 14px;
}

.popup-button {
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-button:hover {
    background-color: #2980b9;
}

.popup-button:active {
    background-color: #1f618d;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

/* 水印容器 */
.watermark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* 斜放水印 */
.watermark-diagonal {
    position: absolute;
    background-color: rgba(200, 200, 200, 0.15);
    color: rgba(100, 100, 100, 0.3);
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    transform: rotate(-45deg);
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid rgba(150, 150, 150, 0.2);
}

.watermark-diagonal:nth-child(1) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.watermark-diagonal:nth-child(2) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    display: none;
}

/* 全局显示口令按钮 */
.show-password-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(52, 152, 219, 0.85);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.show-password-overlay:hover {
    background-color: rgba(52, 152, 219, 0.95);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.show-password-overlay:active {
    transform: translate(-50%, -50%) scale(0.98);
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

.link-buttons {
    margin-bottom: 20px;
}

.car-selector {
    margin-bottom: 20px;
    text-align: center;
}

.car-selector label {
    font-size: 16px;
    color: #2c3e50;
    margin-right: 10px;
}

.car-selector select {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #3498db;
    border-radius: 4px;
    background-color: white;
    color: #2c3e50;
    cursor: pointer;
    min-width: 180px;
}

.car-selector select:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.link-button:hover {
    background-color: #2980b9;
}

.link-button:active {
    background-color: #1f618d;
}

.version-switcher {
    margin-bottom: 20px;
    text-align: center;
}

.version-switcher h3 {
    margin-bottom: 10px;
    color: #34495e;
}

.version-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.version-button {
    padding: 10px 20px;
    border: 1px solid #3498db;
    border-radius: 4px;
    background-color: white;
    color: #3498db;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.version-button:hover {
    background-color: #3498db;
    color: white;
}

.version-button.active {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.hour-password-group {
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.9);
}

.hour-indicator {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #34495e;
}

.password-group {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.password-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.password-card:hover {
    transform: translateY(-2px);
}

.password-card h2 {
    color: #34495e;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.password-value {
    font-size: 32px;
    color: #e74c3c;
    font-weight: bold;
    letter-spacing: 2px;
    font-family: 'DS-DIGI ITC', monospace; 
}

.password-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

#serialNumberInput {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#serialNumberInput input {
    width: 100%;
    max-width: 200px;
}

#serialNumberInput input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    width: 100%;
    max-width: 200px;
    font-size: 16px;
    text-align: center;
    height: 44px;
    box-sizing: border-box;
}

#calculateAdbButton {
    margin-top: 10px;
    padding: 6px 8px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s;
    white-space: nowrap;
    min-width: 100px;
    max-width: 140px;
    height: 28px;
    box-sizing: border-box;
    text-align: center;
    line-height: 16px;
}

#calculateAdbButton:hover {
    background-color: #2980b9;
}

#calculateAdbButton:active {
    background-color: #1f618d;
}

.toggle-button {
    margin-top: 10px;
    padding: 6px 8px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: background-color 0.3s;
    white-space: nowrap;
    min-width: 100px;
    max-width: 140px;
    height: 28px;
    box-sizing: border-box;
    text-align: center;
    line-height: 16px;
}

.toggle-button:hover {
    background-color: #2980b9;
}

.toggle-button:active {
    background-color: #1f618d;
}

.update-info {
    color: #7f8c8d;
    font-size: 16px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    display: inline-block;
}
#nextUpdateTime {
    color: #e74c3c;
    font-weight: bold;
}

#carInstructions {
    margin-top: 5px;
    font-size: 0.9em;
    color: #e74c3c;
    font-weight: bold;
    padding-left: 20px;
}

#adbInstructions {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
    padding-left: 20px;
}
#notes {
    font-size: 0.9em;
    color:  #e74c3c;
}
