@charset "UTF-8";

* {
    /* -webkit-appearance: none; */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

/* 统一页面背景色和Sticky Footer布局 */
body {
    background: #EEF1F3;
    min-height: 100vh;
    margin: 0;
    padding: 80px 0 0 0;
    display: flex;
    flex-direction: column;
}

#all{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    width: 100%;
}

#main{
    margin: 0 auto;
    text-align: center;
    width: 80%;
    display: block;
    flex: 1;
    padding-bottom: 40px;
}

/* 通用返回按钮样式 */
.back-btn {
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #45a049;
}

.back-btn:active {
    background: #3d8b40;
}

/* 固定Header样式 */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px #E5E6EB solid;
}

/* Header固定后的body padding已在上方body样式中设置 */

/* Header布局样式 */
.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Header Logo样式 */
.header-logo-desktop {
    height: 40px;
    width: auto;
    max-width: 165px;
    display: block;
}

.header-logo-mobile {
    height: 40px;
    width: auto;
    max-width: 50px;
    display: none;
}

/* 用户信息样式 */
.user {
    font-size: 20px;
    padding-top: 5px;
    display: block;
    color: #ffffff;
}

.bold {
    font-weight: bold;
}

/* 登出按钮样式 */
.logout {
    display: block;
}

.logout a {
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    color: #ffffff;
    background-color: rgb(0, 97, 177);
    border: 1px solid #ffffff;
    transition: 0.5s;
    text-decoration: none;
}

.logout a:hover {
    color: rgb(0, 97, 177);
    background-color: #ffffff;
    border: 1px solid #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* 移动端header可能更高 */
    }
    
    .back-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    #header {
        height: auto;
        min-height: 80px;
    }
    
    .header-left, .header-right {
        justify-content: center;
    }
    
    .user {
        font-size: 18px;
    }
    
    .logout a {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* 移动端Logo切换 */
    .header-logo-desktop {
        display: none;
    }
    
    .header-logo-mobile {
        display: block;
    }
}

/* ==================== 统一Footer样式 ==================== */
/* Footer整体容器 */
#footer {
    width: 100%;
    background: #191414;
    margin-top: auto;
    position: static;
    display: block;
}

/* Footer容器 */
.footer-container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 10px;
    background: #191414;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Footer内容 */
.footer-content-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    display: flex;
}

/* Footer版权文字 */
.footer-copyright {
    color: var(--Text-colorTextLight, white);
    font-size: 12px;
    font-family: Noto Sans JP;
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    display: block;
}

/* Footer响应式样式 */
@media screen and (max-width: 1024px) {
    .footer-container {
        width: 100%;
        padding: 15px;
    }
}

@media screen and (max-width: 768px) {
    .footer-container {
        padding: 10px;
    }
    
    .footer-copyright {
        font-size: 11px;
        line-height: 14px;
        white-space: nowrap;
    }
}

@media screen and (max-width: 480px) {
    .footer-container {
        padding: 8px;
    }
    
    .footer-copyright {
        font-size: 10px;
        line-height: 12px;
        white-space: nowrap;
    }
}
