@charset "utf-8";
:root {
    --bg:#f0f1f5;
    --text: #60616f; 
    --text-hover: #2e465f; 

    --text-surface-panel:#ffffff; 
    --text-surface-inset:color-mix(in srgb, var(--bg), black 0.5%);
    --shadow-color: rgba(0, 0, 0, 0.1);

    --gap:1.8rem;


    --height-footer: 1.8rem;

    --aside-width: 265px;

    --border-color: #cad3dd;
    --log-src: url(/comm/assets/logo.svg);

    --radius-md: 6px;
    --radius-lg: 10px;



}
@media (prefers-color-scheme: dark) {
    :root {
        --bg:#424346;
        --text: #f8f8fa; 
        --text-hover: #ffffff; 

        --text-surface-panel: color-mix(in srgb, var(--bg), white 10%); 
        

        --shadow-color: rgba(0, 0, 0, 0.2);
    }
}

html{font-size:16px;}

body{color:var(--text);
    font:1rem/1.5 system-ui, "-apple-system", "Segoe UI",sans-serif, "Helvetica Neue",Tahoma,Verdana,"Microsoft YaHei",Arial; clear:both;
}

*,*::before,*::after
    {
        padding:0;
        margin:0;
        box-sizing:border-box;
        border:none;
        list-style: none;
        text-decoration: none;
        font-family: inherit; 
        outline: 0;clear:both;
    }


img[src='']{visibility:hidden;}

h1{font-size: 2.2rem;}
h2{font-size: 1.9rem;}
h3{font-size: 1.5rem;}
h4{font-size: 1.2rem;}
h5{font-size: 1.1rem;}

@media (max-width: 576px){
    h1{font-size: 1.8rem;}
    h2{font-size: 1.6rem;}
    h3{font-size: 1.4rem;}
    h4{font-size: 1.2rem;}
    h5{font-size: 1.1rem;}
}

small, .small{font-size:0.6rem; line-height: 1rem;}

a,a:link,a:visited{
    text-decoration:none; 
    color:color-mix(in srgb, var(--text), white 5%);
}
a:focus,a:active,a:hover{color:var(--text-hover);}


.gap-bottom{
    margin-bottom: 1.8rem;
}

.card{
    border-radius: var(--radius-lg);
    background-color: var(--text-surface-panel);
    padding: 1rem; 
    box-shadow: 0 0 15px var(--shadow-color);
}
.card-inset{
    border-radius:var(--radius-md);
    background-color: var(--text-surface-inset);
    padding: 0.6rem; 
    box-shadow: none;
}


/*------------------*/

body {
    background: var(--bg);
    width: 100%;
    min-height: 100vh;
}

.layout{
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    display: grid;
    grid-template-rows: fit-content(100%) 1fr var(--height-footer); 
    gap: var(--gap);
    
}


.wrap{
    width: 95%;
    overflow-x: hidden;
    max-width:1280px;
    margin: 0 auto;
}

header.wrap{
    height: fit-content;
    
}

header.wrap>.card{
   border-top-left-radius: 0;
   border-top-right-radius: 0;
   position: relative;   
}


.main.wrap{
    height: auto;
    
    display: flex;
    flex-direction: row;
    gap: 20px;
}


.main.wrap>.card{
    flex-grow: 1;
}

aside{
    width: var(--aside-width);
    flex-shrink: 0;
}

footer{
    text-align: center; 
    height: var(--height-footer); 
    display: flex; 
    align-items: center; 
    justify-content: center;
}




@media (max-width: 900px){
    aside.card{width: calc(var(--aside-width) - 60px)}  
}
@media (max-width: 768px){
    .main.wrap{        
        flex-direction: column;
    }
    aside.card{width: 100%;}
}

@media (max-width: 576px){
    .wrap{ width: 100%;}
    .layout{ gap:12px; }
}

footer .footer-info{ font-size: 12px; }


.logo{

    --logo-bg:#a8d1f7;

    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px; /* 控制三角形大小 */
    height:45px;
    background-color: var(--logo-bg);
    background-image: var(--log-src);
    background-repeat: no-repeat;
    background-position: right 3px bottom 3px;
    background-size: 40% auto;
    background-blend-mode: overlay; 
    border-radius: inherit;
    border-bottom-left-radius: 0;
    
    /* 关键：裁剪为直角三角形 */
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transition: all 0.3s ease-in-out;
}

.logo a{ display: block;
    width: 100%;
    height: 100%;
}

.logo:hover{
    background-color: color-mix(in srgb, var(--logo-bg), black 10%);
    background-position: right 4px bottom 4px;
    width: 80px;
    height: 80px;
}
@media (prefers-color-scheme: dark) {
    .logo{
       --logo-bg:#6985a0;

    }
}



.subtitle {
    text-align: center;
    color: hsl(from var(--text) h s l / 0.6);
    font-size: 15px;
}

h1.title {
   
    text-align: center;
    font-weight: 600;
}





/* Aside------------------*/         

aside>*{
    margin-bottom: 2rem;
}

.tools-list li{
    border: 1px solid var(--border-color);
    margin-bottom: 0.7em;
    border-radius: var(--radius);
    padding: 0.4rem 0.6rem;
}
.tools-list li>a{
    display: block;
    width: 100%;    
}

.tools-list li:hover{
    background: #f0f0f0;
}

aside .ad-slot{
    width: 100%;
    height: auto;
    
}

/*临时*/
aside .ad-slot img{
    width: 100%;
    height: auto;
}
   
/* page index*/
.page-index ul.app-list{

    & li{
        margin-bottom: 2rem;

        & h3{
            padding:0.6rem;
        }
    }
}




/* 用户手册------------------*/         

.manual {
    margin: 50px auto;
    padding: 30px 50px;
    border-radius:var(--radius);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px){
    .manual{
        margin: 30px auto;
        padding: 20px 10px;
    }
}

.manual>*{
    margin-bottom: 2rem;
}
.manual header p{
    font-size: 0.8rem;
}

.manual .mainly dl{
    margin-bottom: 2rem;
}

.manual .mainly dt{
    font-weight: bold;
    margin: 1.4rem 0 0.2rem 0;
    font-size: 1.4rem;
}
.manual .mainly dd li{ margin: 0 0 0.6rem 1.4rem; }

.manual .mainly dd li::marker {
    /* 专门控制项目符号的样式 */
    color: #afafaf; /* 圆点颜色 */
    
    content: '\00B7'; /* 甚至可以自定义符号，默认是 disc */
   

    vertical-align: -5px; /* 可尝试：middle | baseline | text-bottom | 数字px */
}



.manual code {
    background-color: color-mix(in srgb, var(--bg), black 5%);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}


.manual .faq dt{
    font-weight: bold;
   margin-top: 0.5rem;
    font-size: 1.1rem;

}

.manual .faq dd{
    margin: 0 0 1.4rem 0;
}

