/* 
 File: css/theme.css
 描述: 全局主题变量与基础组件样式，提供颜色、半径、阴影与字体变量。
 说明: 其他 CSS 文件应通过 var() 使用这些变量以保证一致性。
*/
*{
    box-sizing: border-box;
}

:root{
    --hf-bg: #f4f9ff;
    --hf-surface: #ffffff;
    --hf-surface-soft: #f8fbff;
    --hf-primary: #1f6df0;
    --hf-primary-deep: #0f4cb8;
    --hf-accent: #4bc6c0;
    --hf-text: #22314a;
    --hf-text-soft: rgba(34, 49, 74, 0.72);
    --hf-border: #c7d8f7;
    --hf-border-strong: #9cb7eb;
    --hf-danger: #f0657e;
    --hf-shadow-card: 0 12px 24px rgba(23, 69, 148, 0.08);
    --hf-shadow-hover: 0 16px 28px rgba(23, 69, 148, 0.14);
    --hf-radius-lg: 18px;
    --hf-radius-md: 14px;
    --hf-radius-sm: 10px;
    --hf-font-sans: "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --hf-font-title: "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
    --hf-font-ui: "Bahnschrift", "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}

html{
    width: 100%;
    min-height: 100%;
    font-size: 16px;
    background: radial-gradient(circle at 12% 8%, #e5f0ff 0%, #f4f9ff 42%, #f9fcff 100%);
}

body{
    margin: 0;
    color: var(--hf-text);
    font-family: var(--hf-font-sans);
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.012em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-kerning: normal;
}

input,
button,
textarea,
select{
    font: inherit;
    letter-spacing: inherit;
}

.page_shell{
    width: 100%;
    position: relative;
}

.hero_header{
    position: relative;
    overflow: hidden;
    width: 94%;
    border-radius: var(--hf-radius-lg);
    border: 1px solid var(--hf-border);
    background:
        radial-gradient(circle at 90% 20%, rgba(75, 198, 192, 0.18) 0%, rgba(75, 198, 192, 0) 45%),
        linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    box-shadow: var(--hf-shadow-card);
    padding: 1.1rem 1rem 1rem;
    animation: rise-soft 0.45s ease both;
}

.hero_header::after{
    content: "";
    position: absolute;
    right: -3.1rem;
    bottom: -4.4rem;
    width: 12.8rem;
    height: 12.8rem;
    border-radius: 50%;
    border: 2px solid rgba(31, 109, 240, 0.12);
    box-shadow:
        0 0 0 16px rgba(31, 109, 240, 0.06),
        0 0 0 34px rgba(31, 109, 240, 0.04);
    pointer-events: none;
}

.hero_badge{
    display: inline-block;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-family: var(--hf-font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    color: var(--hf-primary-deep);
    background-color: #dfeaff;
}

.hero_title{
    margin: 0.55rem 0 0;
    color: var(--hf-text);
    font-family: var(--hf-font-title);
    font-size: 1.42rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.02rem;
}

.hero_subtitle{
    margin: 0.5rem 0 0;
    color: var(--hf-text-soft);
    font-size: 0.94rem;
    line-height: 1.68;
    letter-spacing: 0.01rem;
}

.section_title{
    width: 94%;
    margin-top: 1.8rem;
    border-left: 4px solid var(--hf-primary);
    padding-left: 0.7rem;
    animation: rise-soft 0.45s ease both;
}

.section_title_main{
    margin: 0;
    color: var(--hf-text);
    font-family: var(--hf-font-title);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: 0.015rem;
}

.section_title_desc{
    margin: 0.22rem 0 0;
    color: var(--hf-text-soft);
    font-size: 0.9rem;
    line-height: 1.62;
    letter-spacing: 0.01rem;
}

@media all and (orientation : landscape){
    .page_shell{
        width: 720px;
        max-width: 720px;
    }
}

@keyframes rise-soft{
    from{
        opacity: 0;
        transform: translateY(8px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce){
    .hero_header,
    .section_title{
        animation: none;
    }
}
