/* ============================================
   HarmonySDK.css - 静态构建 (替代 Tailwind Play CDN)
   ============================================ */

/* ===== Preflight (reset) ===== */
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}
*{margin:0;padding:0}
html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:Inter,system-ui,sans-serif}
body{margin:0;line-height:inherit}
hr{height:0;color:inherit;border-top-width:1px}
abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:1em}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-0.25em}
sup{top:-0.5em}
table{text-indent:0;border-color:inherit;border-collapse:collapse}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}
:-moz-focusring{outline:auto}
:-moz-ui-invalid{box-shadow:none}
progress{vertical-align:baseline}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}
[type=search]{-webkit-appearance:textfield;outline-offset:-2px}
::-webkit-search-decoration{-webkit-appearance:none}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
summary{display:list-item}
blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}
fieldset{margin:0;padding:0}
legend{padding:0}
menu,ol,ul{list-style:none;margin:0;padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{color:#9ca3af}
button,[role=button]{cursor:pointer}
img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
[hidden]{display:none}

/* ===== Custom Variables ===== */
:root{
    --color-primary:#1677ff;
    --color-dark:#1f2937;
    --color-light:#f3f4f6;
    --color-cyan:#8DEEEE;
}

/* ===== Base ===== */
html{font-family:Inter,system-ui,sans-serif}
body{background:#f9fafb;font-family:Inter,system-ui,sans-serif;color:#1f2937}
pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}

/* ===== Layout ===== */
.container{width:100%}
@media(min-width:640px){.container{max-width:640px}}
@media(min-width:768px){.container{max-width:768px}}
@media(min-width:1024px){.container{max-width:1024px}}
@media(min-width:1280px){.container{max-width:1280px}}
.mx-auto{margin-left:auto;margin-right:auto}
.max-w-3xl{max-width:48rem}

/* ===== Display & Flex ===== */
.flex{display:flex}
.hidden{display:none}
.grid{display:grid}
.block{display:block}
@media(min-width:768px){
    .md\:flex{display:flex}
    .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
    .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
    .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
    .md\:flex-row{flex-direction:row}
    .md\:text-xl{font-size:1.25rem;line-height:1.75rem}
}
@media(min-width:1024px){
    .lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.items-center{align-items:center}

/* ===== Gap ===== */
.gap-2{gap:0.5rem}
.gap-4{gap:1rem}
.gap-6{gap:1.5rem}
.gap-8{gap:2rem}

/* ===== Padding ===== */
.p-4{padding:1rem}
.p-6{padding:1.5rem}
.px-4{padding-left:1rem;padding-right:1rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-2{padding-top:0.5rem;padding-bottom:0.5rem}
.py-3{padding-top:0.75rem;padding-bottom:0.75rem}
.py-4{padding-top:1rem;padding-bottom:1rem}
.py-10{padding-top:2.5rem;padding-bottom:2.5rem}
.py-16{padding-top:4rem;padding-bottom:4rem}
.pt-6{padding-top:1.5rem}
.pl-6{padding-left:1.5rem}

/* ===== Margin ===== */
.mr-1{margin-right:0.25rem}
.mr-2{margin-right:0.5rem}
.mb-2{margin-bottom:0.5rem}
.mb-3{margin-bottom:0.75rem}
.mb-4{margin-bottom:1rem}
.mb-6{margin-bottom:1.5rem}
.mb-8{margin-bottom:2rem}
.mt-4{margin-top:1rem}
.mt-8{margin-top:2rem}
.mt-12{margin-top:3rem}

/* ===== Space Between ===== */
.space-y-1 > * + *{margin-top:0.25rem}
.space-y-2 > * + *{margin-top:0.5rem}
.space-y-8 > * + *{margin-top:2rem}

/* ===== Width ===== */
.w-full{width:100%}
.w-1\/3{width:33.333333%}

/* ===== Typography ===== */
.text-left{text-align:left}
.text-center{text-align:center}
.text-sm{font-size:0.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.text-\[clamp\(2rem\,5vw\,3rem\)\]{font-size:clamp(2rem,5vw,3rem)}
.font-medium{font-weight:500}
.font-bold{font-weight:700}
.leading-relaxed{line-height:1.625}
.list-disc{list-style-type:disc}
.opacity-95{opacity:0.95}

/* ===== Colors - Text ===== */
.text-white{color:#fff}
.text-primary{color:var(--color-primary)}
.text-dark{color:var(--color-dark)}
.text-cyan{color:var(--color-cyan)}
.text-gray-400{color:#9ca3af}
.text-gray-500{color:#6b7280}
.text-gray-600{color:#4b5563}
.text-gray-700{color:#374151}
.text-gray-800{color:#1f2937}

/* ===== Colors - Background ===== */
.bg-white{background-color:#fff}
.bg-gray-50{background-color:#f9fafb}
.bg-primary{background-color:var(--color-primary)}
.bg-dark{background-color:var(--color-dark)}
.bg-light{background-color:var(--color-light)}
.bg-cyan\/10{background-color:rgba(141,238,238,0.1)}
.bg-gradient-to-r{background-image:linear-gradient(to right,var(--gradient-from,var(--color-primary)),var(--gradient-to,var(--color-cyan)))}
.from-primary{--gradient-from:var(--color-primary)}
.to-cyan{--gradient-to:var(--color-cyan)}

/* ===== Borders ===== */
.border{border-width:1px}
.border-t{border-top-width:1px}
.border-white{border-color:#fff}
.border-cyan{border-color:var(--color-cyan)}
.border-gray-700{border-color:#374151}

/* ===== Rounded ===== */
.rounded-lg{border-radius:0.5rem}
.rounded-xl{border-radius:0.75rem}

/* ===== Shadow ===== */
.shadow-sm{box-shadow:0 1px 2px 0 rgba(0,0,0,0.05)}

/* ===== Divide ===== */
.divide-y > * + *{border-top-width:1px}

/* ===== Overflow ===== */
.overflow-auto{overflow:auto}
.overflow-x-auto{overflow-x:auto}

/* ===== Position ===== */
.sticky{position:sticky}
.top-0{top:0}
.z-50{z-index:50}

/* ===== Transitions ===== */
.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}
.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}

/* ===== Hover ===== */
.hover\:text-primary:hover{color:var(--color-primary)}
.hover\:text-cyan:hover{color:var(--color-cyan)}
.hover\:bg-blue-600:hover{background-color:#2563eb}
.hover\:bg-gray-100:hover{background-color:#f3f4f6}
.hover\:bg-white\/10:hover{background-color:rgba(255,255,255,0.1)}
.hover\:-translate-y-1:hover{transform:translateY(-0.25rem)}

/* ===== Custom Utilities ===== */
.text-shadow{text-shadow:0 2px 4px rgba(0,0,0,0.1)}
.card-shadow{box-shadow:0 4px 20px rgba(22,119,255,0.1)}
.code-block{background:#1e293b;color:#e2e8f0;border-radius:8px;overflow-x:auto}
.logo-img{height:60px;width:auto;max-width:100%;margin:0;display:block;margin-right:10px}

/* ===== Footer (与 index.html 一致) ===== */
footer.bg-dark{
    background:#000;
    padding:4rem 2rem;
    border-top:1px solid rgba(255,255,255,0.1);
    color:#86868b;
    font-size:0.9rem;
}
footer.bg-dark .grid{
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:3rem;
    margin-bottom:4rem;
    text-align:left;
}
footer.bg-dark h4{
    color:#fff;
    margin-bottom:1.5rem;
    font-size:0.9rem;
    font-weight:700;
}
footer.bg-dark ul a{
    display:block;
    color:#86868b;
    text-decoration:none;
    margin-bottom:0.8rem;
    transition:color 0.3s;
}
footer.bg-dark ul a:hover{
    color:#fff;
    text-decoration:underline;
}
footer.bg-dark .border-t{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:2rem;
    border-top:1px solid #1a1a1a;
    border-top-width:1px;
}
footer.bg-dark .border-t a{
    color:#86868b;
    font-size:0.8rem;
    text-decoration:none;
    transition:color 0.3s;
}
footer.bg-dark .border-t a:hover{
    color:#fff;
}
footer.bg-dark .border-t p{
    font-size:0.8rem;
}
@media(max-width:768px){
    footer.bg-dark .border-t{
        flex-direction:column;
        gap:1rem;
    }
}
