/* number.ttf removed - using system font fallback */

audio {
    display: none;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px 10px;
}

.body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ac-size {
    margin: 0 auto;
    width: 85%;
    min-width: 250px;
    max-width: 500px;
}

.ac {
    position: relative;
    height: 150px;
    border-radius: 10px 10px 20px 20px;
    border: 1px solid #e0e0e0;
    box-shadow: rgba(0,0,0,0.2) 0 3px 3px -2px,
                rgba(0,0,0,0.14) 0 3px 4px 0,
                rgba(0,0,0,0.12) 0 1px 8px 0;
    overflow: hidden;
    /* 默认关闭状态背景 */
    background: linear-gradient(180deg, #555 0%, #333 100%);
}

.ac.cold-mode {
    background: linear-gradient(180deg, #a5d8ff 0%, #e7f1ff 100%);
}

.ac.hot-mode {
    background: linear-gradient(180deg, #ffd3a5 0%, #ffecdb 100%);
}

.ac .top {
    margin-top: 8px;
    border: 1px solid rgba(255,255,255,0.3);
}

.ac .logo {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 50px;
    height: 70px;
    background: url(png.png) center center / contain no-repeat;
    background-size: 100% 100%;
}

.ac .brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.15;
    pointer-events: none;
}

.ac .brand-text {
    font-size: 11px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
    white-space: nowrap;
}

.ac .brand-logo {
    display: block;
    width: 24px;
    height: 24px;
    background: url(logo.png) center center / contain no-repeat;
}

.ac .temperature {
    display: none;
    position: absolute;
    top: 25px;
    right: 30px;
    color: #666;
    text-align: right;
}

.ac .temperature.show {
    display: block;
}

.ac .temperature .number b {
    font-weight: normal;
    font-size: 32px;
    font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
    text-shadow: 0 0 2px rgba(0,0,0,.1);
}

.ac .temperature .number i {
    font-size: 28px;
    font-style: normal;
    font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
    text-shadow: 0 0 2px rgba(0,0,0,.1);
}

.ac .temperature .mode {
    display: block;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
}

.ac .status {
    display: block;
    position: absolute;
    right: 10px;
    bottom: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.ac .status.on {
    background: #38f709;
    box-shadow: 0 0 6px #38f709;
}

.wind {
    display: flex;
    justify-content: space-around;
    margin: 25px auto;
    height: 44px;
    opacity: 0;
    transition: opacity 1s;
}

.wind.active {
    opacity: 1;
}

.wind i {
    display: block;
    width: 5px;
    height: 44px;
    background: #bbb;
    border-radius: 2px;
    transform-origin: top center;
}

.buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.buttons .button {
    display: block;
    position: relative;
    margin: 8px;
    width: 56px;
    height: 56px;
    background: #f50057;
    border-radius: 50%;
    border: none;
    overflow: hidden;
    cursor: pointer;
    box-shadow: rgba(0,0,0,0.2) 0 3px 5px -1px,
                rgba(0,0,0,0.14) 0 6px 10px 0,
                rgba(0,0,0,0.12) 0 1px 18px 0;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
                box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
                opacity 200ms,
                transform 100ms;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.buttons .button:active,
.buttons .button.active {
    opacity: .7;
    transform: scale(0.95);
}

.buttons .button svg {
    fill: #fff;
    width: 50%;
    height: 50%;
    margin: 25%;
    pointer-events: none;
}

.buttons .button.plus svg,
.buttons .button.minus svg {
    fill: #333;
}

.buttons .button.open {
    background: #4caf50;
}

.buttons .button.hot {
    background: #ffa500;
}

.buttons .button.hot svg {
    fill: #fff;
}

h2 {
    font-weight: normal;
    font-size: 1.2rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin: 0.5rem 0;
}

h5 {
    margin-bottom: .4rem;
    color: #ddd;
    font-weight: normal;
    font-size: 0.8rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
}

h5.show {
    opacity: 1;
}

h5 i {
    font-style: normal;
}

h5 svg {
    position: relative;
    top: .1rem;
    fill: #ddd;
    width: .8rem;
    height: .8rem;
    vertical-align: middle;
}

.more-link {
    display: none; /* 默认隐藏 */
}

.bottom-link {
    display: block;
    margin: .5rem auto;
    padding: 0 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

@media (max-width: 400px) {
    .buttons .button {
        width: 48px;
        height: 48px;
        margin: 6px;
    }

    .ac {
        height: 130px;
    }

    h2 {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    body {
        padding: 40px 20px;
    }

    h2 {
        font-size: 1.5rem;
    }
}
