@charset "utf-8";
/* CSS Document */

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Microsoft Yahei", sans-serif;
        }
        body {
            background: linear-gradient(135deg, #05192b, #0a2a40);
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .monitor-card {
            width: 900px;
            background-color: rgba(15, 35, 55, 0.75);
            border: 1px solid rgba(0, 180, 255, 0.2);
            border-radius: 16px;
            padding: 36px;
            box-shadow: 0 0 30px rgba(0, 160, 255, 0.12);
        }
        .main-title {
            font-size: 42px;
            text-align: center;
            color: #00e5ff;
            text-shadow: 0 0 12px #00cfff;
            letter-spacing: 2px;
            margin-bottom: 12px;
        }
        .sub-title {
            text-align: center;
            color: #b0d4ec;
            font-size: 18px;
            margin-bottom: 32px;
        }
        .top-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 28px;
        }
        .panel-box {
            background-color: rgba(12, 28, 44, 0.65);
            border: 1px solid rgba(0, 170, 255, 0.22);
            border-radius: 12px;
            padding: 26px;
        }
        .panel-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 22px;
            color: #44ccff;
            margin-bottom: 20px;
            font-weight: 600;
        }
        .threshold-row {
            display: flex;
            align-items: center;
            gap: 12px;
            color: #cce7f8;
            font-size: 18px;
        }
        #thresholdSelect {
            background-color: #0c2c47;
            border: 2px solid #00b8ff;
            color: #00e5ff;
            font-size: 18px;
            padding: 8px 14px;
            border-radius: 6px;
            min-width: 180px;
            outline: none;
        }
        .time-display {
            font-size: 64px;
            color: #ffffff;
            text-align: center;
            font-weight: bold;
            letter-spacing: 6px;
            margin-bottom: 10px;
        }
        .time-tip {
            text-align: center;
            color: #a2c6e0;
            font-size: 16px;
        }
        .volume-section {
            margin-bottom: 32px;
        }
        .volume-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }
        .volume-title {
            font-size: 22px;
            color: #ffffff;
            font-weight: 600;
        }
        .volume-unit {
            color: #00ccff;
            font-size: 17px;
        }
        .volume-current-db {
            color: #46ff79;
            font-size: 18px;
            margin-right: 8px;
        }
        .volume-bar-wrap {
            width: 100%;
            height: 24px;
            background-color: #0a243a;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid rgba(0, 160, 255, 0.25);
        }
        /* 进度条改为绿色渐变 */
        .volume-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #00b848, #46ff79);
            transition: width 0.1s linear;
        }
        .btn-row {
            display: flex;
            gap: 16px;
            justify-content: center;
        }
        .control-btn {
            width: 220px;
            height: 56px;
            border: none;
            border-radius: 8px;
            font-size: 19px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        #startBtn {
            background-color: #0055bb;
            color: #fff;
        }
        #pauseBtn {
            background-color: #ffcc00;
            color: #000;
        }
        #stopBtn {
            background-color: #ff3333;
            color: #fff;
        }
        .status-tip {
            text-align: center;
            margin-top: 16px;
            color: #90b4cf;
            font-size: 15px;
        }

        /* ========== 移动端适配 屏幕宽度小于992px ========== */
        @media screen and (max-width: 992px) {
            body {
                padding: 12px;
            }
            .monitor-card {
                width: 100%;
                padding: 20px;
            }
            .main-title {
                font-size: 26px;
                letter-spacing: 1px;
            }
            .sub-title {
                font-size: 15px;
                margin-bottom: 20px;
            }
            /* 两栏改为单列垂直堆叠 */
            .top-row {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .panel-box {
                padding: 18px;
            }
            .panel-title {
                font-size: 19px;
                margin-bottom: 14px;
            }
            .threshold-row {
                flex-wrap: wrap;
                font-size: 16px;
                gap: 8px;
            }
            #thresholdSelect {
                width: 100%;
                min-width: unset;
                font-size: 16px;
            }
            /* 计时器缩小字号 */
            .time-display {
                font-size: 42px;
                letter-spacing: 2px;
            }
            .volume-title {
                font-size: 19px;
            }
            /* 按钮自适应铺满一行，垂直排列 */
            .btn-row {
                flex-direction: column;
                gap: 12px;
            }
            .control-btn {
                width: 100%;
                height: 48px;
                font-size: 17px;
            }
        }

        /* 超小手机（小于480px）进一步压缩字号间距 */
        @media screen and (max-width: 480px) {
            .main-title {
                font-size: 22px;
            }
            .time-display {
                font-size: 34px;
            }
            .volume-bar-wrap {
                height: 20px;
            }
        }