@charset "utf-8";
/* ============================================
   🌿 日月中医 | 全局共用样式表
   ============================================
   版本: 1.0
   适用范围: ootcm.com 所有页面
   包含: 色系变量 / 重置样式 / 排版 / 组件 / 工具类 / 响应式
   ============================================ */

/* --------------------------------------------
   一、中国传统色系变量（完整版）
--------------------------------------------- */
:root {
    /* 🔴 火 · 朱砂/丹砂系 —— 品牌主色 · 生机与权威 */
    --zhu-sha: #c23b22;        /* 朱砂红 · 主色 */
    --zhu-sha-dark: #9b2e1a;   /* 朱膘深 · hover状态 */
    --zhu-sha-light: #fef7e8;  /* 丹砂暖意 · 浅色背景用 */
    --zhu-sha-soft: #f7e6df;   /* 朱砂柔雾 · 按钮/卡片背景 */
    --dan-sha: #e15b3a;        /* 丹砂 · 点缀色 */
    
    /* 🌿 木 · 竹青/黛色系 —— 生长、教育、课程 */
    --zhu-qing: #6d8f7a;       /* 竹青 · 课程/教育模块主色 */
    --yao-qing: #53837c;       /* 瑶青 · hover加深 */
    --song-yan: #2d4f47;       /* 松烟墨绿 · 深色背景/CTA */
    --bi-yu: #7e9a8f;          /* 碧玉 · 辅助点缀 */
    --zhu-qing-soft: #e8f0ec;  /* 竹青柔雾 · 浅色背景 */
    
    /* 🟤 土 · 大地/蜜黄系 —— 承载、温润、背景 */
    --mi-huang: #f0e3c9;       /* 蜜黄 · 主背景色 */
    --xiang-ya: #fef7e8;       /* 象牙白 · 卡片/白色区域 */
    --huang-ru: #f6e1c1;       /* 黄栌 · 边框/分割线 */
    --cha-rou: #c6a87f;        /* 茶肉 · 辅助文字/次要元素 */
    --tu-huang: #e8d9c5;       /* 土黄 · 备用背景 */
    
    /* 💧 水 · 月白/鸦青系 —— 智慧、沉静、留白 */
    --yue-bai: #eef2f0;        /* 月白 · 极浅背景/替代白色 */
    --ya-qing: #4c5b5c;        /* 鸦青 · 正文辅助/深度文字 */
    --shui-mo: #8fa0a0;        /* 水墨灰 · 禁用/占位文字 */
    --cang-qing: #3d5a5c;      /* 苍青 · 特殊强调 */
    
    /* ✨ 金 · 金银/砂银系 —— 点缀、证书、贵气 */
    --sha-yin: #bfb48f;        /* 砂银 · 边框/细节金属感 */
    --jin-bo: #d9c99e;         /* 金箔 · 荣誉/证书标识 */
    --liu-jin: #e6dbb5;        /* 鎏金 · 浅色金属点缀 */
    
    /* 📝 功能色 & 文字体系 */
    --text-main: #2c2821;       /* 墨黑 · 正文主色 */
    --text-muted: #6b6256;      /* 鼠尾灰 · 辅助文字 */
    --text-light: #9b9488;      /* 淡灰 · 次要信息 */
    --border-light: #e2d5c0;    /* 边框浅色 */
    --success: #2d6a4f;         /* 成功绿 */
    --warning: #e6a157;         /* 警示橙 */
    --error: #c23b22;           /* 错误红（沿用主色） */
    
    /* 🎨 阴影与动效 */
    --shadow-sm: 0 4px 12px rgba(35, 25, 18, 0.04);
    --shadow-md: 0 8px 24px rgba(35, 25, 18, 0.06);
    --shadow-lg: 0 20px 32px rgba(35, 25, 18, 0.10);
    --transition: all 0.25s ease;
	
	--primary: #be002f;
            --primary-light: #F8F1E5;
            --primary-dark: #8c1a16;
            --secondary: #D4A76A;
            --accent: #CD1318;
            --text-dark: #2c3e50;
            --text-medium: #666666;
            --text-light: #999999;
	         --text-medium: #666666;
            --text-light: #999999;
            --background: #FFFFFF;
            --background-alt: #f9O9f9;
            --border: #E2E8F0;
            --shadow: 0 4px 6px rgba(154, 31, 28, 0.05);
            --shadow-hover: 0 10px 15px rgba(154, 31, 28, 0.1);
            --radius: 8px;
}
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: "HarmonyOS Sans SC", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: var(--text-dark);
            background-color: var(--background);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        a {
            color: #333333;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        a:hover {
            color: #be002f;
            text-decoration: underline;
            text-decoration-thickness: 2px;
            text-underline-offset: 3px;
        }

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 0px; 
    text-align: center;  /* 让内部文字/图片/按钮居中（可选） */
}

/* 添加在文件最下方 - H1至H6样式 */

/* 基础标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    position: relative;
}

/* H1 主标题 - 页面标题 */
h1 {
    font-size: 2.2rem;
    color: var(--zhu-sha);
    font-family: 'Noto Serif SC', serif;
    display: flex;
    align-items: center;      /* 垂直居中（flex 主轴交叉轴） */
    justify-content: center;  /* 水平居中（flex 主轴）—— 加这一行 */
    gap: 12px;
}

/* H1 伪元素装饰 */
h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--accent);
}

/* H2 副标题 */
h2 {
    font-size: 2rem;
    font-weight: 650;
    color: var(--cang-qing);
    margin-top: 2em;
    margin-bottom: 0.7em;
    padding-left: 0.5em;
    border-left: 4px solid var(--secondary);
}

/* H3 三级标题 */
h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.8em;
    margin-bottom: 0.6em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--border);
}

/* H4 四级标题 */
h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}

/* H5 五级标题 */
h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-top: 1.4em;
    margin-bottom: 0.4em;
    font-style: italic;
}

/* H6 六级标题 */
h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 1.2em;
    margin-bottom: 0.3em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 特殊容器内的标题样式调整 */
.colorcase h1,
.colorcase h2,
.colorcase h3,
.colorcase h4,
.colorcase h5,
.colorcase h6 {
    margin-top: 1em;
    margin-bottom: 0.6em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        padding-bottom: 0.4em;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.3rem;
    }
    
    h5 {
        font-size: 1.15rem;
    }
    
    h6 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
        padding-bottom: 0.3em;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.2rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    h6 {
        font-size: 0.95rem;
    }
}

/* 特殊样式变体 */
h1.primary {
    color: var(--zhu-sha);
}

h1.secondary {
    color: var(--secondary);
}

h1.accent {
    color: var(--accent);
}

/* 装饰性标题 */
h1.decorative {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.2em 0;
}

/* 边框标题 */
h2.bordered {
    padding: 0.5em;
    border: 2px solid var(--secondary);
    border-radius: var(--radius);
    background-color: var(--background-alt);
}
/* 区块间距 */
.section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-light);
}

.section:last-child {
    border-bottom: none;
}

.section-sm {
    padding: 48px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-desc {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --------------------------------------------
   三、通用组件
--------------------------------------------- */

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 48px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--zhu-sha);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--zhu-sha-dark);
    transform: translateY(-2px);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 48px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid var(--zhu-sha);
    color: var(--zhu-sha);
    background: transparent;
    font-family: 'Inter', sans-serif;
}

.btn-outline:hover {
    background: var(--zhu-sha-soft);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--zhu-sha);
    background: transparent;
    padding: 8px 20px;
}

.btn-ghost:hover {
    background: var(--zhu-sha-soft);
}

.btn-large {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 卡片 */
.card {
    background: var(--xiang-ya);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.card-icon {
    height: 160px;
    background: var(--zhu-qing);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.card-content {
    padding: 24px;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 标签 */
.tag {
    background: var(--huang-ru);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--zhu-sha-dark);
    display: inline-block;
    margin-bottom: 12px;
}

/* 面包屑 */
.breadcrumb {
    padding: 20px 0 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--zhu-sha);
}

.breadcrumb .separator {
    margin: 0 8px;
}

/* --------------------------------------------
   四、网格系统
--------------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --------------------------------------------
   五、表单组件
--------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: var(--xiang-ya);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--zhu-sha);
    box-shadow: 0 0 0 3px var(--zhu-sha-soft);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* --------------------------------------------
   六、导航栏
--------------------------------------------- */
header {
    background: rgba(254, 247, 232, 0.96);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom: 1px solid var(--border-light);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--zhu-sha);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--zhu-sha);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
}

/* 移动端导航响应 */
@media (max-width: 860px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
    }
    .nav-links.show {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
}

/* --------------------------------------------
   七、页脚
--------------------------------------------- */
.footer {
    background: #2b2620;
    color: #cfc6b5;
    padding: 56px 0 32px;
    margin-top: 40px;
}

.footer a {
    color: #cfc6b5;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--zhu-sha-light);
}

/* --------------------------------------------
   八、工具类（边距、对齐、flex）
--------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --------------------------------------------
   九、响应式断点
--------------------------------------------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 20px; }
    .section { padding: 60px 0; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .section-title { font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.6rem; }
    .container { padding: 0 16px; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    .btn { padding: 10px 20px; font-size: 0.85rem; }
    .card-icon { height: 120px; font-size: 2rem; }
    .card-content { padding: 20px; }
}

/* --------------------------------------------
   十、辅助/动画类（可选）
--------------------------------------------- */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 无障碍焦点样式 */
:focus-visible {
    outline: 2px solid var(--zhu-sha);
    outline-offset: 2px;
}

/* 隐藏/显示类 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
} 

.sticky-top { position: sticky; top: 0; }
.fixed-bottom { position: fixed; bottom: 0; left: 0; right: 0; }


.container-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    min-height: 50vh;
    /* 动态计算底部内边距 */
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
.colorcase {
	padding: 1em;
	border: 1px dashed #DDDBDB;	
	margin-top: 1em;
	margin-bottom: 1em;
}
.contd {
    padding: 30px 50px;
    line-height: 1.6;
    color: var(--shui-mo);
}

     /* 账户框架样式 */
        .account-frame-container {
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            margin: 0;
        }

        .frame-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            background: var(--background-alt);
        }

        .frame-header h2 {
            margin: 0;
            text-align: left;
            color: var(--shui-mo);
        }

        .frame-actions .btn {
            padding: 0.5rem 1rem;
            background: var(--zhu-sha);
            color: white;
            border-radius: var(--radius);
            text-decoration: none;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .frame-actions .btn:hover {
            background: var(--zhu-sha-dark);
            text-decoration: none;
        }

        .account-frame-wrapper {
            position: relative;
            width: 100%;
            height: 800px;
            overflow: hidden;
    flex: 1;
    min-height: 100vh;
        }

        .account-iframe {
            width: 100%;
            height: 100%;
            border: none;
            background: white;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .account-frame-wrapper {
    flex: 1;
    min-height: 100vh;
            }

            .frame-header {
                padding: 1rem;
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
            
            .frame-header h2 {
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .account-frame-wrapper {
    flex: 1;
    min-height: 100vh;
            }
        }
/* 添加在文件最下方 */

/* 通用内容区域列表样式 */
.content-list,
.product-details ul,
.product-details ol,
.seo-content ul,
.seo-content ol,
.contd ul,
.contd ol {
    padding-left: 0;
    margin: 0 0 1.5em 0;
    list-style-type: none;
}

.content-list li,
.product-details li,
.seo-content li,
.contd li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: var(--background);
    border-left: 3px solid var(--song-yan);
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    color: var(--shui-mo);
    font-size: 1rem;
    line-height: 1.5;
    width: 95%; /* 略加宽度 */
    max-width: 800px; /* 最大宽度限制 */
}

.content-list li:hover,
.product-details li:hover,
.seo-content li:hover,
.contd li:hover {
    background-color: var(--background-alt);
    border-left-color: var(--zhu-sha);
    box-shadow: var(--shadow-hover);
    transform: translateX(2px);
}

/* 有序列表样式 */
.content-list ol,
.product-details ol,
.seo-content ol,
.contd ol {
    list-style-type: decimal;
    padding-left: 2em;
}

.content-list ol li,
.product-details ol li,
.seo-content ol li,
.contd ol li {
    padding-left: 0.5em;
}

/* 嵌套列表 */
.content-list ul ul,
.product-details ul ul,
.seo-content ul ul,
.contd ul ul,
.content-list ol ol,
.product-details ol ol,
.seo-content ol ol,
.contd ol ol {
    margin-left: 20px;
    margin-top: 8px;
    width: 90%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-list li,
    .product-details li,
    .seo-content li,
    .contd li {
        width: 100%;
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}
ul, ol {
    list-style: none;
}



