html,body,div,span,h1,h2,h3,h4,h5,h6,p,a,img,ul,ol,li,form,label,input,textarea,button{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
*{box-sizing:border-box}
ul,ol{list-style:none}
a{text-decoration:none}
img{max-width:100%;height:auto;display:block}

:root{
    --bg: #ffffff;
    --bg-soft: #f5f6f7;
    --primary: #596164;
    --primary-light: #868f96;
    --primary-dark: #4a5256;
    --text: #1a2b3c;
    --text-muted: #5c6f82;
    --border: rgba(89, 97, 100, 0.25);
    --shadow: 0 4px 20px rgba(89, 97, 100, 0.12);
    --gradient: linear-gradient(135deg, #868f96 0%, #596164 100%);
}

body{
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.wrap{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.site-header.scrolled{ box-shadow: var(--shadow); }
.site-logo{
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.nav-right-edge{
    position: fixed;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 12px;
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--border);
    border-left: none;
    border-radius: 0 16px 16px 0;
    box-shadow: -4px 0 20px rgba(89, 97, 100, 0.08);
}
.nav-right-edge a{
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nav-right-edge a:hover{
    background: rgba(89, 97, 100, 0.1);
    color: var(--primary);
}
.nav-right-edge a.active{ background: var(--gradient); color: #fff; }
.header-cta{
    display: flex;
    gap: 10px;
}
.header-cta a{
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.header-cta .btn-fill{
    background: var(--gradient);
    color: #fff;
}
.header-cta .btn-fill:hover{ transform: translateY(-1px); box-shadow: 0 6px 16px rgba(89, 97, 100, 0.25); }
.header-cta .btn-outline{
    color: var(--primary);
    border: 1px solid var(--border);
}
.header-cta .btn-outline:hover{ background: rgba(89, 97, 100, 0.08); }

.nav-toggle{
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
}
.nav-toggle span{ display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: 0.25s; }
@media (max-width: 1024px){
    .nav-right-edge{
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 20px 20px 0 0;
        border: 1px solid var(--border);
        border-bottom: none;
        padding: 12px 16px;
        gap: 8px;
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .nav-right-edge.open{ max-height: 400px; }
    .nav-right-edge a{ padding: 10px 12px; font-size: 13px; }
    .nav-toggle{ display: flex; }
}
@media (max-width: 600px){
    .header-cta .btn-outline{ display: none; }
}

.main{ padding-top: 64px; min-height: 100vh; padding-right: 140px; }
@media (max-width: 1024px){ .main{ padding-right: 0; padding-bottom: 80px; } }

.hero-split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 55vh;
    align-items: center;
    background: var(--bg-soft);
}
.hero-split .hero-text{
    padding: 60px 48px 60px 24px;
}
.hero-split h1{
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-split h1 span{ background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-split .hero-desc{ font-size: 17px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.hero-split .hero-btns{ display: flex; gap: 14px; flex-wrap: wrap; }
.hero-split .hero-btns a{
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-split .btn-pri{ background: var(--gradient); color: #fff; border: none; }
.hero-split .btn-pri:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(89, 97, 100, 0.25); }
.hero-split .btn-sec{ background: var(--bg); color: var(--primary); border: 2px solid var(--border); }
.hero-split .btn-sec:hover{ border-color: var(--primary); background: rgba(89, 97, 100, 0.06); }
.hero-split .hero-img{
    min-height: 50vh;
    padding: 40px 24px 40px 20px;
}
.hero-split .hero-img img{   object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
@media (max-width: 900px){
    .hero-split{ grid-template-columns: 1fr; }
    .hero-split .hero-text{ padding: 40px 24px; }
    .hero-split .hero-img{ min-height: 320px; padding: 0 24px 40px; }
}

.section{ padding: 72px 24px; }
.section-head{ text-align: center; margin-bottom: 48px; }
.section-head .tag{ display: inline-block; padding: 6px 16px; background: rgba(89, 97, 100, 0.12); color: var(--primary); font-size: 13px; font-weight: 600; border-radius: 20px; margin-bottom: 14px; }
.section-head h2{ font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.section-head p{ font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.card{
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover{ box-shadow: var(--shadow); border-color: rgba(89, 97, 100, 0.4); }
.card .ico{ width: 52px; height: 52px; border-radius: 14px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 20px; }
.card h3{ font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.card p{ font-size: 15px; color: var(--text-muted); line-height: 1.65; }

.alt-section{ padding: 64px 24px; background: var(--bg-soft); }
.alt-block{
    max-width: 1200px;
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.alt-block:last-child{ margin-bottom: 0; }
.alt-block.reverse .alt-img{ order: 2; }
.alt-block .alt-img img{ width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.alt-block .alt-text h2{ font-size: 28px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.alt-block .alt-text p{ font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 14px; }
.alt-block .alt-text a{ color: var(--primary); font-weight: 600; }
@media (max-width: 800px){
    .alt-block,
    .alt-block.reverse{ grid-template-columns: 1fr; }
    .alt-block .alt-img{ order: 0; }
}

.page-hero{
    padding: 100px 24px 48px;
    background: var(--gradient);
    text-align: center;
}
.page-hero .title-en{ font-size: 13px; color: rgba(255,255,255,0.9); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.page-hero .title-cn{ font-size: 36px; font-weight: 700; color: #fff; }
.page-body{ padding: 48px 24px 80px; background: var(--bg); }
.page-body .content-narrow{ max-width: 720px; margin: 0 auto; }
.page-body .article-content p{ font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.page-body .article-content h3{ font-size: 18px; color: var(--primary); margin: 28px 0 12px; font-weight: 600; }
.page-body .article-content .article-image{ max-width: 100%; margin: 28px auto; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.page-body .article-content .article-image img{ width: 100%; }
.page-body .article-content ul{ margin: 0 0 20px 1.2em; padding: 0; }
.page-body .article-content li{ font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 8px; }

.form-group{ margin-bottom: 24px; }
.form-group label{ display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.form-group input,
.form-group textarea{
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus{ outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(89, 97, 100, 0.15); }
.form-group textarea{ min-height: 140px; resize: vertical; }
.form-submit{ margin-top: 28px; }
.form-submit .btn{
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--gradient);
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.form-submit .btn:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(89, 97, 100, 0.25); }

.footer{
    background: var(--primary);
    color: #fff;
    padding: 0;
    margin-top: 80px;
}
.footer-row{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 32px;
    gap: 0;
}
.footer-cell{
    flex: 1;
    min-width: 160px;
    max-width: 260px;
    padding: 0 28px;
    border-right: 1px solid rgba(255,255,255,0.2);
}
.footer-cell:first-child{ padding-left: 0; }
.footer-cell:last-child{ border-right: none; padding-right: 0; }
.footer-cell h3{
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 16px;
    opacity: 0.95;
}
.footer-cell a,
.footer-cell p{ font-size: 14px; color: rgba(255,255,255,0.85); line-height: 2; display: block; }
.footer-cell a:hover{ color: #fff; }
.footer-friendlinks .footer-links{ max-height: 180px; overflow: hidden; transition: max-height 0.4s ease; }
.footer-friendlinks.is-expanded .footer-links{ max-height: 2000px; }
.friendlinks-toggle{
    margin-top: 10px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--primary-light);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.friendlinks-toggle:hover{ background: rgba(255,255,255,0.18); color: #fff; }
.footer-bottom{
    text-align: center;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.footer-bottom a{ color: rgba(255,255,255,0.9); }
.footer-bottom a:hover{ color: #fff; }
.footer-bottom span{ margin: 0 8px; }
@media (max-width: 900px){
    .footer-row{ flex-direction: column; align-items: stretch; }
    .footer-cell{ max-width: none; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 20px 0; }
    .footer-cell:last-child{ border-bottom: none; }
}
