@charset "utf-8";

:root{
    --paper:#f7f1e3;
    --paper-deep:#efe3c9;
    --ink:#2b2118;
    --muted:#74634f;
    --line:#ddc79e;
    --line-soft:#eadbbf;
    --red:#9a2f22;
    --red-deep:#6f1f17;
    --gold:#b8893d;
    --green:#315f4e;
    --blue:#28566f;
    --white:#fffaf0;
    --shadow:0 16px 36px rgba(80,48,24,.12);
}

*{box-sizing:border-box;}
html{font-size:16px;}
body{
    margin:0;
    color:var(--ink);
    background:
        linear-gradient(90deg,rgba(120,84,42,.05) 1px,transparent 1px),
        linear-gradient(180deg,rgba(120,84,42,.04) 1px,transparent 1px),
        var(--paper);
    background-size:34px 34px;
    font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;
    line-height:1.75;
}
body.nav-open{overflow:hidden;}
a{color:inherit;text-decoration:none;}
a:hover{color:var(--red);}
img{max-width:100%;display:block;object-fit:cover;}
button,input,select{font:inherit;}
.tools-width{width:min(1180px,calc(100% - 32px));margin:0 auto;}

.site-header{
    position:sticky;
    top:0;
    z-index:2147483000;
    background:rgba(247,241,227,.96);
    border-bottom:1px solid rgba(154,47,34,.18);
    box-shadow:0 8px 30px rgba(51,31,14,.08);
    backdrop-filter:blur(10px);
    isolation:isolate;
}
.header-top{
    background:linear-gradient(135deg,#461a14 0%,#7d2a1f 52%,#214c3d 100%);
    color:#fff8e7;
}
.header-main{
    min-height:96px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:12px 0;
}
.brand{
    display:flex;
    align-items:center;
    min-width:0;
}
.brand-logo{
    width:190px;
    height:72px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border:0;
    box-shadow:none;
    overflow:hidden;
}
.brand-logo img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}
.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}
.site-search{
    width:292px;
    max-width:34vw;
    height:44px;
    display:flex;
    align-items:center;
    background:rgba(255,250,240,.14);
    border:1px solid rgba(255,239,197,.38);
    overflow:hidden;
}
.site-search input[type=text]{
    flex:1;
    min-width:0;
    height:100%;
    border:0;
    outline:0;
    background:transparent;
    color:#fff8e7;
    padding:0 14px;
    font-size:14px;
}
.site-search input[type=text]::placeholder{color:#efd8b0;}
.site-search button{
    width:48px;
    height:100%;
    border:0;
    cursor:pointer;
    color:#fff9e8;
    background:var(--gold);
    font-size:15px;
    font-weight:700;
}
.nav-toggle{
    display:none;
    width:44px;
    height:44px;
    border:1px solid rgba(255,239,197,.38);
    background:rgba(255,250,240,.12);
    cursor:pointer;
    padding:10px;
}
.nav-toggle span{
    display:block;
    height:2px;
    background:#fff4d8;
    margin:5px 0;
}
.site-nav{background:rgba(255,250,240,.9);}
.nav-inner>ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    align-items:center;
    gap:4px;
}
.nav-inner li{position:relative;list-style:none;}
.nav-inner>ul>li>a{
    display:block;
    padding:14px 18px;
    color:#463321;
    font-weight:700;
    font-size:15px;
    line-height:1.4;
}
.nav-inner>ul>li.active>a,
.nav-inner>ul>li>a:hover{
    color:var(--red);
    background:#f2e5ca;
}
.nav-inner li ul{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    min-width:190px;
    margin:0;
    padding:8px;
    background:var(--white);
    border:1px solid var(--line-soft);
    box-shadow:var(--shadow);
    z-index:20;
}
.nav-inner li:hover>ul{display:block;}
.nav-inner li ul a{
    display:block;
    padding:10px 12px;
    color:#51402f;
    white-space:nowrap;
}
.nav-inner li ul a:hover{
    background:#f4ead6;
    color:var(--red);
}

.tools-hero{
    padding:44px 0 30px;
    color:#fff8e8;
    background:
        linear-gradient(135deg,#3a1511 0%,#68251b 48%,#23483d 100%);
}
.tools-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
    gap:34px;
    align-items:center;
}
.tools-kicker{
    display:inline-flex;
    min-height:32px;
    align-items:center;
    padding:4px 12px;
    color:#f0d8a8;
    border:1px solid rgba(255,239,197,.26);
    background:rgba(255,250,240,.1);
    font-size:14px;
}
.tools-hero h1{
    max-width:780px;
    margin:18px 0 14px;
    color:#fffaf0;
    font-size:clamp(34px,5vw,54px);
    line-height:1.13;
    letter-spacing:0;
}
.tools-hero p{
    max-width:760px;
    margin:0;
    color:#ecd6b1;
    font-size:18px;
}
.hero-stat{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}
.hero-stat div{
    min-height:96px;
    padding:18px;
    background:rgba(255,250,240,.94);
    color:var(--ink);
    border:1px solid rgba(255,239,197,.7);
    box-shadow:0 18px 42px rgba(0,0,0,.14);
}
.hero-stat strong{
    display:block;
    color:var(--red-deep);
    font-size:26px;
    line-height:1.2;
}
.hero-stat span{
    display:block;
    margin-top:6px;
    color:var(--muted);
    font-size:13px;
}

.tools-main{padding:30px 0 42px;}
.tool-center-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}
.tool-entry{
    min-height:164px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:22px;
    background:rgba(255,250,240,.94);
    border:1px solid var(--line-soft);
    box-shadow:var(--shadow);
}
.tool-entry strong{
    display:block;
    color:var(--red-deep);
    font-size:22px;
    line-height:1.35;
}
.tool-entry span{
    display:block;
    margin-top:10px;
    color:var(--muted);
}
.tool-entry em{
    display:inline-flex;
    align-items:center;
    width:max-content;
    min-height:32px;
    margin-top:18px;
    padding:4px 11px;
    color:#fff8e7;
    background:var(--green);
    font-style:normal;
    font-size:13px;
}
.tool-entry:nth-child(2) em{background:var(--blue);}
.tool-entry:nth-child(3) em{background:var(--gold);}
.tool-entry:nth-child(4) em{background:var(--red);}
.tool-entry:nth-child(5) em{background:var(--green);}

.tool-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 370px;
    gap:22px;
    align-items:start;
}
.tool-panel,
.result-panel,
.content-section,
.related-tools{
    background:rgba(255,250,240,.94);
    border:1px solid var(--line-soft);
    box-shadow:var(--shadow);
}
.tool-panel{padding:24px;}
.result-panel{
    position:sticky;
    top:104px;
    padding:22px;
}
.section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
    margin-bottom:18px;
    padding-bottom:10px;
    border-bottom:1px solid var(--line-soft);
}
.section-head h2{
    margin:0;
    color:var(--red-deep);
    font-size:24px;
    line-height:1.35;
    font-family:"STKaiti","KaiTi","SimSun",serif;
}
.section-head p{
    margin:0;
    color:var(--muted);
    font-size:13px;
}
.form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}
.field label{
    display:block;
    margin-bottom:6px;
    color:#5c4833;
    font-weight:700;
    font-size:14px;
}
.field input,
.field select{
    width:100%;
    height:44px;
    padding:0 12px;
    color:var(--ink);
    background:#fffaf0;
    border:1px solid var(--line);
    outline:0;
}
.field input:focus,
.field select:focus{
    border-color:var(--red);
    box-shadow:0 0 0 3px rgba(154,47,34,.12);
}
.field small{
    display:block;
    min-height:20px;
    color:#9a8264;
    font-size:12px;
}
.form-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:18px;
}
.btn{
    min-height:44px;
    padding:8px 18px;
    border:1px solid var(--red-deep);
    background:var(--red-deep);
    color:#fff8e7;
    cursor:pointer;
    font-weight:700;
}
.btn:hover{background:var(--red);border-color:var(--red);}
.btn.secondary{
    color:var(--red-deep);
    background:#fff8e8;
    border-color:var(--line);
}
.btn.secondary:hover{
    color:#fff8e7;
    background:var(--green);
    border-color:var(--green);
}

.result-title{
    margin:0 0 14px;
    color:var(--red-deep);
    font-size:22px;
    font-family:"STKaiti","KaiTi","SimSun",serif;
}
.result-list{
    display:grid;
    gap:10px;
    margin-bottom:16px;
}
.result-item{
    padding:14px;
    background:#f6ecd7;
    border:1px solid var(--line-soft);
}
.result-item span{
    display:block;
    color:var(--muted);
    font-size:13px;
}
.result-item strong{
    display:block;
    margin-top:4px;
    color:#23483d;
    font-size:24px;
    line-height:1.25;
}
.result-note{
    margin:0;
    padding:12px 14px;
    color:#5d4933;
    background:#fff4dc;
    border-left:4px solid var(--gold);
    font-size:14px;
}
.breakdown{
    width:100%;
    border-collapse:collapse;
    margin-top:14px;
    font-size:14px;
}
.breakdown th,
.breakdown td{
    padding:9px 8px;
    border:1px solid var(--line-soft);
    text-align:left;
}
.breakdown th{
    color:#fff8e7;
    background:var(--red-deep);
}
.breakdown td:last-child{text-align:right;}

.content-section{
    margin-top:22px;
    padding:24px;
}
.content-section h2,
.content-section h3{
    color:var(--red-deep);
    line-height:1.35;
}
.content-section h2{
    margin:0 0 12px;
    font-size:24px;
    font-family:"STKaiti","KaiTi","SimSun",serif;
}
.content-section h3{
    margin:18px 0 8px;
    font-size:18px;
}
.content-section p{margin:0 0 12px;color:#493a2c;}
.content-section ul{margin:0 0 14px 20px;padding:0;color:#493a2c;}
.content-section li{margin:5px 0;}

.related-tools{
    margin-top:22px;
    padding:22px;
}
.related-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
}
.related-grid a{
    min-height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:12px;
    color:#fff8e7;
    background:var(--green);
    border:1px solid rgba(255,239,197,.34);
    font-weight:700;
}
.related-grid a:nth-child(2){background:var(--blue);}
.related-grid a:nth-child(3){background:var(--red-deep);}
.related-grid a:nth-child(4){background:var(--gold);}

.equipment-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin-bottom:14px;
}
.equipment-table-wrap{overflow:auto;border:1px solid var(--line-soft);}
.equipment-table{
    width:100%;
    min-width:760px;
    border-collapse:collapse;
    background:#fffaf0;
}
.equipment-table th,
.equipment-table td{
    padding:10px;
    border-bottom:1px solid var(--line-soft);
    text-align:left;
}
.equipment-table th{
    color:#fff8e7;
    background:var(--red-deep);
}
.equipment-table input[type=number]{
    width:96px;
    height:36px;
    padding:0 8px;
    border:1px solid var(--line);
    background:#fffaf0;
}
.equipment-table input[type=checkbox]{width:18px;height:18px;}
.badge{
    display:inline-flex;
    min-height:26px;
    align-items:center;
    padding:3px 8px;
    color:#fff8e7;
    background:var(--green);
    font-size:12px;
}
.badge.optional{background:var(--gold);}

.score-grid{
    display:grid;
    gap:14px;
}
.score-field{
    padding:14px;
    background:#fff7e8;
    border:1px solid var(--line-soft);
}
.score-field label{
    display:grid;
    grid-template-columns:minmax(0,1fr) 42px;
    gap:12px;
    align-items:center;
    color:#5c4833;
    font-weight:700;
}
.score-field input[type=range]{
    width:100%;
    margin-top:10px;
    accent-color:var(--red);
}
.score-field p{
    margin:6px 0 0;
    color:var(--muted);
    font-size:13px;
}
.advice-list{
    margin:12px 0 0;
    padding:0;
    list-style:none;
}
.advice-list li{
    padding:8px 0 8px 14px;
    border-bottom:1px dashed var(--line-soft);
    position:relative;
    color:#5d4933;
    font-size:14px;
}
.advice-list li:before{
    content:"";
    position:absolute;
    left:0;
    top:19px;
    width:5px;
    height:5px;
    background:var(--gold);
}

.site-footer{
    margin-top:34px;
    color:#efe1c4;
    background:linear-gradient(135deg,#33150f 0%,#602219 55%,#234b3e 100%);
}
.footer-grid{
    display:grid;
    grid-template-columns:1.2fr 1fr 1fr;
    gap:26px;
    padding:34px 0;
}
.footer-grid h2,
.footer-grid h3{
    margin:0 0 10px;
    color:#fff8e7;
    font-family:"STKaiti","KaiTi","SimSun",serif;
    letter-spacing:0;
}
.footer-grid p{
    margin:0;
    color:#e2cda5;
}
.footer-links p{
    display:flex;
    flex-wrap:wrap;
    gap:10px 16px;
}
.footer-links a,
.footer-copy a{color:#fff1c9;}
.footer-links a:hover,
.footer-copy a:hover{color:#fff;}
.footer-copy{
    padding:14px 0;
    color:#d8bc8a;
    background:rgba(0,0,0,.18);
    font-size:13px;
}

@media (max-width:1024px){
    .tools-hero-grid,
    .tool-layout{grid-template-columns:1fr;}
    .result-panel{position:static;}
    .tool-center-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .related-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .site-search{max-width:42vw;}
}

@media (max-width:760px){
    .tools-width{width:min(100% - 24px,1180px);}
    .header-main{
        min-height:72px;
        gap:12px;
    }
    .brand-logo{
        width:150px;
        height:56px;
    }
    .header-actions{gap:8px;}
    .site-search{
        display:none;
        position:fixed;
        left:12px;
        right:12px;
        top:90px;
        width:auto;
        max-width:none;
        height:42px;
        background:#fffaf0;
        border-color:var(--line);
        z-index:2147483200;
    }
    body.nav-open .site-search{display:flex;}
    .site-search input[type=text]{color:var(--ink);}
    .site-search input[type=text]::placeholder{color:#9b866b;}
    .nav-toggle{
        display:block;
        position:relative;
        z-index:2147483300;
    }
    .site-nav{
        display:none;
        position:fixed;
        left:0;
        right:0;
        top:0;
        bottom:0;
        width:100vw;
        height:100vh;
        overflow-y:auto;
        padding:144px 12px 28px;
        background:var(--paper);
        z-index:2147483100;
        box-shadow:none;
    }
    body.nav-open .site-nav{display:block;}
    body.nav-open .nav-inner>ul{
        display:block;
        width:100%;
        max-width:420px;
        margin:0 auto;
        background:#fffaf0;
        border:1px solid var(--line-soft);
    }
    body.nav-open .nav-inner>ul>li{
        display:block;
        width:100%;
    }
    body.nav-open .nav-inner>ul>li>a{
        display:block;
        padding:14px 16px;
        border-bottom:1px solid var(--line-soft);
        white-space:normal;
    }
    .nav-inner li ul{
        position:static;
        display:block;
        min-width:0;
        box-shadow:none;
        border:0;
        padding:0 0 8px 18px;
        background:#fbf2df;
    }
    .nav-inner li ul a{
        white-space:normal;
        padding:8px 12px;
    }
    .tools-hero{padding:30px 0 24px;}
    .tools-hero h1{font-size:32px;}
    .tools-hero p{font-size:16px;}
    .hero-stat,
    .tool-center-grid,
    .form-grid,
    .related-grid{grid-template-columns:1fr;}
    .tool-panel,
    .result-panel,
    .content-section,
    .related-tools{padding:18px;}
    .section-head{display:block;}
    .section-head p{margin-top:4px;}
    .footer-grid{grid-template-columns:1fr;}
    .footer-copy span{
        float:none;
        display:block;
        margin-top:6px;
    }
}
