/* 字体 */
@font-face {
    font-family: "alimama";
    font-weight: 400;
    src: url("../font/P3YMrUl62Myz.woff2") format("woff2"),
        url("../font/P3YMrUl62Myz.woff") format("woff");
    font-display: swap;
}

/* 基础通用样式 */
* {
    box-sizing: border-box;
    margin: 0;
    font-family: monospace, sans-serif;
}
/* 使用CSS变量 */
:root{
    --background-bg:#dbd2ca;
    --add-bg:#dbd2ca;
    --delete-bg:#dbd2ca;
    --increase-bg:#dbd2ca;
    --menu-bg:#dbd2ca;
    --reduce-bg:#dbd2ca;
    --reset-bg:#dbd2ca;
    --start-bg:#dbd2ca;
    --stop-bg:#dbd2ca;
    --return-bg:#dbd2ca;
    --text-main: #3b3535;
    --text-sub: #5a5353;
    --accent: #a22a2a;
    --shadow-soft: 0 8px 22px rgba(72, 64, 64, 0.18);
    --radius-md: 1.2rem;
    --radius-lg: 1.6rem;
}
html {
    font-size: 10px;
    color: var(--text-main);
    letter-spacing: 2.5px;
    scroll-behavior: smooth;
}

body {
    min-width: 32rem;
    padding: 0.8rem;
    margin: 0.8rem;
    border-radius: 1.2rem;
}

body button:hover {
    cursor: pointer;
    border: solid 0.1rem rgba(255, 255, 255, 0.95);
}

body li:active,
header button:active {
    background: white;
}

body button,
body li {
    border: none;
    -webkit-tap-highlight-color: transparent;
}

button,
input,
li {
    transition: all 0.2s ease;
}

button:focus-visible,
input:focus-visible,
li:focus-visible {
    outline: 0.2rem solid rgba(162, 42, 42, 0.42);
    outline-offset: 0.2rem;
}

body,
header,
.subnav {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), center / cover no-repeat url('/images/background.jpg');
 }

.background-tag {
    background-color: #eee;
}

p,
li,
ul,
button,
label {
    font-size: 1.7rem;
    color: var(--text-sub);
}

b {
    color: var(--accent);
    font-size: 1.7rem;

}

/* 页面两条分割线 */
header,
main,
footer {
    margin-bottom: 10px;
    box-shadow: var(--shadow-soft);
}

/* 头部样式 */
header {
    margin-top: -1rem;
    min-height: 7rem;
    padding: 0.8rem 1.6rem;
    display: flex;
    flex-flow: row wrap;
    position: sticky;
    top: 0rem;
    z-index: 99;
    border-radius: 0px 0px 30px 30px;
    backdrop-filter: blur(2px);
}

header img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
}

header .right {
    flex: 1 320px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

header .right-menu {
    flex: 1 100px;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 1rem;
}

.menu {
    width: 3.2rem;
    height: 3.2rem;
    border-style: hidden;
    background: center / 68% 68% no-repeat url("/images/menu.svg"), #565858;
    border-radius: 1rem;
}

header .logo-title {
    flex: 1 220px;
    align-self: center;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;

}

header .ambition {
    font-size: 2.3rem;
    text-align: center;
    display: inline-block;
    font-family: alimama, monospace;

    color: var(--text-main);
}


header h1 {
    font-size: 3rem;
    margin-top: 0;
    font-family: alimama, monospace;
}

/* 内容体样式 */
main {
    min-height: calc(100vh - 19rem);
    display: flex;
    gap: 1rem;
    box-shadow: none;
}

section {
    flex: 5;
    display: flex;
    flex-flow: row wrap;
    overflow: auto;
    justify-content: start;
    gap: 1.2rem;
    line-height: 3.2rem;
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
    align-content: flex-start;
    border-radius: var(--radius-lg);
}

section div {
    box-shadow: var(--shadow-soft);
    border-radius: 1.4rem;
    width: min(100%, 31rem);
    min-height: 37rem;
    padding: 0rem 1rem 0.5rem 1rem;
    overflow: auto;
    position: relative;
}

section div:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 10px 26px rgba(72, 64, 64, 0.24);
}

h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 2rem;
    text-align: center;
    border-bottom: solid 0.2rem rgba(72, 64, 64, 0.65);
    color: var(--text-main);
}

.start-skill {
    position: absolute;
    bottom: 1rem;
    width: 5rem;
    height: 5rem;
    border-radius: 4rem;
    opacity: 0.7;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.delete-skill {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 3rem;
    height: 3rem;
    background: center / 70% 70% no-repeat url("/images/delete.svg");
}

.add-skill {
    width: 3.2rem;
    height: 3.2rem;
    border-style: hidden;
    background: center / 70% 70% no-repeat url("/images/add.svg"), green;
    border-radius: 1rem;
}

aside {
    box-shadow: var(--shadow-soft);
    flex: 2;
    min-width: 34rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
    border-radius: 1.4rem;
}

.subnav ul li {
    padding: 0.5rem 0.8rem;
    list-style-type: none;
    display: inline;
    border-radius: 0.8rem;

}

.subnav {
    padding: 12px;
    height: 5rem;
    position: sticky;
    top: 0rem;
    border-radius: 20px 20px 0px 0px;
    border-bottom: 0.1rem solid rgba(72, 64, 64, 0.15);
}

.return {
    width: 3.2rem;
    height: 3.2rem;
    border-style: hidden;
    background: center / 68% 68% no-repeat url("/images/return.svg"), #565858;
    content: "返回";
    position: absolute;
    z-index: 1;
    left: 8px;
    top: 7px;
}

.content {
    flex: 30;
    display: flex;
    flex-flow: column;
    overflow: auto;
    height: 100%;
    border-radius: var(--radius-md);
}

.subnav li:hover {
    cursor: pointer;
    border: solid 0.1rem #eee;
    background: rgba(255, 255, 255, 0.75);
}

.subnav ul {
    padding-left: 5rem;
}

.switch {
    width: 3rem;
    height: 3rem;
    border-style: hidden;
    border-radius: 1.2rem;
    position: absolute;
    right: 1.5rem;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    display: none;
}

.log-info {
    padding: 2rem;
    overflow: auto;
    height: 100%;
    line-height: 1.8;
}

#loading {
    background-color: transparent;
    font-size: 1.4rem;
    margin-top: 2rem;
}

.log-info p {
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    line-height: 2.5rem;
}

.download {
    position: absolute;
    top: 6rem;
    right: 2rem;
    font-size: 1.4rem;
    border-radius: 1rem;
}

.statistics {
    padding: 1rem;
    position: relative;
    text-align: center;
    overflow: auto;
    height: 100%;
    border-radius: var(--radius-md);

}

.instruction {
    padding: 0rem 2rem 2rem 2rem;
    overflow: auto;
    height: 100%;
    border-radius: var(--radius-md);
}

/* 技能相页关操作 */
.skill-info {
    flex: 30;
    padding: 1rem 3rem 3rem 3rem;
    overflow: auto;
    height: 100%;
    border-radius: var(--radius-md);
}

.skill-form {
    display: grid;
    border-radius: 1rem;
    gap: 0.4rem;
}

.skill-form fieldset,
label {
    margin-top: 1.5rem;
    font-size: 1.6rem;
}

.skill-form datalist {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.skill-form input {
    border-radius: 0.5rem;
}

.skill-form input[type='text'] {
    height: 3rem;
    border: 0.1rem solid rgba(72, 64, 64, 0.35);
    padding: 0 0.8rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.8);
}

.duration {
    font-size: 1.4rem;
    color: #a22a2a;
}

.author-said {
    color: #325374;
    margin-top: 2rem;
    font-size: 1.4rem;
    padding: 0rem 2rem 1rem 2rem;
    line-height: 1.6;
}

.author-said li {
    color: #325374;
    margin-top: 2rem;
    font-size: 1.4rem;
    text-align: start;
}

.submit {
    margin-top: 1rem;
    border-style: hidden;
    min-height: 3.4rem;
    border-radius: 1rem;
    background: #4f5f58;
    color: #fff;
}


/* 蒙版样式 */
.mask {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    min-width: 32rem;
    z-index: 9999;
    visibility: hidden;
    text-align: center;
    align-content: center;
    display: flex;
    flex-flow: column wrap;
    border-radius: 0;
    background: center / cover no-repeat url("/images/background.jpg");
}

.time-show {
    color: aliceblue;
    font-size: 9rem;
}

.off {
    background: center / 95% 95% no-repeat url("/images/stop.svg"),white;
}

.on {
    background: center / 100% 100% no-repeat url("/images/start.svg"),white;
}

.increase {
    background: left 12px/ 50% 50% no-repeat url("/images/increase.svg"),white;
}

.reduce {
    background: left 12px/ 50% 50% no-repeat url("/images/reduce.svg"),white;
}

.on-off {
    border-style: hidden;
    padding: 1.5rem;
    border-radius: 5rem;
    opacity: 0.7;
    width: 8rem;
    height: 8rem;
    margin: 2rem 3rem 2rem 3rem;
}

.timer-mode {
    font-size: 2rem;
    border-radius: 40px;
    border-style: hidden;
    padding: 1.5rem 0 1.5rem 3.5rem;
    width: 14rem;
    height: 6rem;
    margin-top: 7rem;
    opacity: 0.5;
}

.mask div {
    flex: 1;
    width: 100%;
}

.reset {
    background: center / 100% 100% no-repeat url("/images/reset.svg"), white;
}
.warning{
    color: red;
    font-size: 4rem;
    opacity: 0.5;
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

/* 页尾样式 */
footer {
    height: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 1.2rem;
}
/*导出样式*/
.export-import{
    display: flex;
    justify-content: space-around;
    height: 7rem;
    width: 13rem;
    background: #a2aba8;
    position: fixed;
    top:50%;
    left:50%;
    transform: translateY(-50%) translateX(-50%);
    opacity: 0.6;
    border-radius: 1.4rem;
    box-shadow: var(--shadow-soft);
}
/* 隐藏类 */
.display-none {
    display: none;
}

/* 浏览器视口宽度小于650px*/
@media screen and (max-width:650px) {
    body {
        margin: 0;
        padding: 0.6rem;
        border-radius: 0;
    }

    header {
        margin-top: 0;
        border-radius: 0 0 1.6rem 1.6rem;
        padding: 0.8rem 1rem;
    }

    header .right {
        flex-direction: column;
        align-items: flex-start;
    }

    header .ambition {
        font-size: 1.8rem;
    }

    main {
        min-height: calc(100vh - 15rem);
    }

    section {
        justify-content: space-around;
    }

    section div {
        width: 100%;
    }

    aside {
        min-width: 0;
        width: 100%;
    }

    .subnav ul {
        padding-left: 3.6rem;
    }

    .mask .time-show {
        font-size: 5rem;
    }

}
