.m-content {
    padding: 16px;
    padding-bottom: 150px; /* 容纳 footer + disclaimer + 浏览器底部工具栏安全距离 */
    padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
}

/* Banner区 */
.m-banner {
    background: linear-gradient(135deg, #1a0a05 0%, #3D1408 100%);
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.m-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(200,169,110,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.m-banner-tag {
    color: #E8D5A3;
    font-size: 0.8rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
}
.m-banner h1 {
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #C8A96E;
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}
.m-banner p {
    color: rgba(200,169,110,0.6);
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 16px;
}
.m-banner-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.m-banner-btn {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.m-banner-btn-primary {
    background: #C8A96E;
    color: #1a0a05;
    font-weight: 500;
}
.m-banner-btn-primary:hover {
    background: #E8D5A3;
    color: #1a0a05;
}
.m-banner-btn-outline {
    background: transparent;
    color: #C8A96E;
    border: 1px solid #C8A96E;
}
.m-banner-btn-outline:hover {
    background: rgba(200,169,110,0.1);
}

/* 快捷功能区 */
.m-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    align-items: start;
}
.m-quick-item {
    background: #FFFDF9;
    border: 1px solid rgba(232,213,163,0.4);
    border-radius: 12px;
    padding: 6px 4px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
}
.m-quick-item:hover {
    border-color: #8B1A1A;
    box-shadow: 0 2px 10px rgba(139,26,26,0.15);
}
.m-quick-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #8B1A1A, #A52A2A);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin: 0 auto 4px;
    position: relative;
}
.m-quick-item span {
    font-size: 0.72rem;
    color: #555;
    line-height: 1.2;
}

/* 区块标题 */
.m-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.m-section-title h3 {
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #8B1A1A;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.m-section-title h3::before {
    content: '';
    width: 3px;
    height: 18px;
    background: #C8A96E;
    border-radius: 2px;
}
.m-section-title a {
    color: rgba(200,169,110,0.6);
    font-size: 0.8rem;
    text-decoration: none;
}

/* 文章列表 */
.m-article-list {
    margin-bottom: 20px;
}
.m-article-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #FFFDF9;
    border: 1px solid rgba(232,213,163,0.4);
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.m-article-item:hover {
    border-color: #8B1A1A;
}
.m-article-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(232,213,163,0.4);
    flex-shrink: 0;
}
.m-article-info {
    flex: 1;
    min-width: 0;
}
.m-article-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.m-article-meta {
    font-size: 0.75rem;
    color: #999;
}
.m-article-arrow {
    color: #C8A96E;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* 体质测评入口 */
.m-tizhi {
    background: linear-gradient(135deg, #1a5a3a 0%, #2d7a4a 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}
.m-tizhi h4 {
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #E8D5A3;
    margin-bottom: 8px;
}
.m-tizhi p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 12px;
}
.m-tizhi-btn {
    display: inline-block;
    background: #C8A96E;
    color: #1a0a05;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
}

/* 会员卡片 */
.m-member-card {
    background: linear-gradient(135deg, #1a0a05 0%, #3D1408 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    color: #E8D5A3;
}
.m-member-card h4 {
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #C8A96E;
    margin-bottom: 8px;
}
.m-member-card p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 12px;
}
.m-member-price {
    font-size: 1.8rem;
    font-weight: 400;
    color: #C8A96E;
}
.m-member-price small {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
}
.m-member-btn {
    display: block;
    background: #C8A96E;
    color: #1a0a05;
    padding: 12px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 12px;
}


/* 用户中心样式 */
.m-welcome {
    background: linear-gradient(135deg, #1a0a05 0%, #3D1408 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    color: #E8D5A3;
}
.m-welcome-title {
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #C8A96E;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.m-welcome-sub {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 统计卡片 */
.m-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.m-stat, .m-stat-link {
    background: #FFFDF9;
    border: 1px solid rgba(232,213,163,0.4);
    border-radius: 10px;
    padding: 16px 8px;
    text-align: center;
}
.m-stat-link {
    display: block;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
.m-stat-link:active {
    background: #FFF5E6;
}
}
.m-stat-num {
    font-size: 1.5rem;
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #8B1A1A;
    margin-bottom: 4px;
}
.m-stat-num.green { color: #2E7D32; }
.m-stat-num.gold { color: #C8A96E; }
.m-stat-label {
    font-size: 0.75rem;
    color: rgba(200,169,110,0.6);
}

/* 快捷菜单 */
.m-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.m-menu-item {
    background: #FFFDF9;
    border: 1px solid rgba(232,213,163,0.4);
    border-radius: 10px;
    padding: 14px 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}
.m-menu-item:hover {
    border-color: #8B1A1A;
}
.m-menu-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8B1A1A, #A52A2A);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin: 0 auto 8px;
}
.m-menu-item span {
    font-size: 0.78rem;
    color: #555;
}

/* 卡片区块 */
.m-card {
    background: #FFFDF9;
    border: 1px solid rgba(232,213,163,0.4);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.m-card-title {
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #1a0a05;
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.m-card-title i { color: #8B1A1A; }
.m-card-link {
    font-size: 0.8rem;
    color: #8B1A1A;
    text-decoration: none;
    margin-left: auto;
}

/* 档案预览 */
.m-case-info {
    background: #FDF8F0;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
    color: #666;
}
.m-case-tag {
    display: inline-block;
    background: #8B1A1A;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

/* 预约列表 */
.m-apt-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(232,213,163,0.4);
}
.m-apt-item:last-child { border-bottom: none; }
.m-apt-date {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}
.m-apt-time {
    font-size: 0.75rem;
    color: #999;
}
.m-apt-status {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
}
.m-apt-status.pending { background: #FFF3E0; color: #E65100; }
.m-apt-status.confirmed { background: #E8F5E9; color: #2E7D32; }
.m-apt-status.completed { background: #E3F2FD; color: #1565C0; }
.m-apt-status.cancelled { background: #FFEBEE; color: #C62828; }

/* 无数据状态 */
.m-empty {
    text-align: center;
    padding: 30px;
    color: rgba(200,169,110,0.6);
}
.m-empty i {
    font-size: 2.5rem;
    color: rgba(232,213,163,0.4);
    margin-bottom: 12px;
}
.m-empty p { margin-bottom: 12px; }

/* 底部固定版权 */
.m-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid rgba(232,213,163,0.4);
    text-align: center;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.m-footer-main {
    width: 100%;
    padding: 7px 16px;
    box-sizing: border-box;
}
.m-footer-name {
    font-family: 'Noto Serif SC', serif, 'Songti SC', 'SimSun';
    color: #8B1A1A;
    font-size: 0.85rem;
    margin-bottom: 0;
}
.m-footer-copy {
    font-size: 0.7rem;
    color: #999;
}
.m-footer-switch {
    display: inline-block;
    margin-top: 3px;
    font-size: 0.7rem;
    color: #999;
    text-decoration: none;
}

/* 中医养生时钟V2 */
.m-clock-v2 {
    background: #FFFDF9;
    border-radius: 16px;
    padding: 20px 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(139, 26, 26, 0.08);
}
.m-clock-v2-body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.m-clock-v2-left {
    flex-shrink: 0;
    text-align: center;
    min-width: 80px;
}
.m-clock-v2-name {
    font-family: 'Noto Serif SC', serif, 'SimSun';
    font-size: 2.8rem;
    font-weight: 400;
    color: #8B1A1A;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: 4px;
}
.m-clock-v2-meridian {
    display: inline-block;
    background: #8B1A1A;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
.m-clock-v2-center {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-top: 2px;
    transform: translateX(2px);
}
.m-clock-v2-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #FFFDF9;
    border: 2px solid #8B1A1A;
    position: relative;
    box-shadow: 0 2px 8px rgba(139, 26, 26, 0.1);
}
/* 时钟四向标记点 */
.m-clock-v2-mark-top,
.m-clock-v2-mark-right,
.m-clock-v2-mark-bottom,
.m-clock-v2-mark-left {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    z-index: 1;
}
.m-clock-v2-mark-top {
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: #DC143C;
}
.m-clock-v2-mark-right {
    top: 50%;
    right: 3px;
    transform: translateY(-50%);
    background: #E0C78C;
}
.m-clock-v2-mark-bottom {
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
}
.m-clock-v2-mark-left {
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    background: #3CB371;
}
.m-clock-v2-hour {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #333;
    transform-origin: bottom center;
    transform: translate(-50%, -100%);
    border-radius: 1px;
    z-index: 2;
}
.m-clock-v2-minute {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5px;
    height: 26px;
    background: #8B1A1A;
    transform-origin: bottom center;
    transform: translate(-50%, -100%);
    z-index: 3;
}
.m-clock-v2-second {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 28px;
    background: #C8A96E;
    transform-origin: bottom center;
    transform: translate(-50%, -100%);
    z-index: 4;
}
.m-clock-v2-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #D4A017;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}
.m-clock-v2-right {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
}
.m-clock-v2-tip {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}
.m-clock-v2-bottom {
    padding-top: 12px;
}
.m-clock-v2-time-labels {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.75rem;
    margin-bottom: 6px;
    margin-top: -21px;
}
.m-clock-v2-progress {
    height: 6px;
    background: rgba(139, 26, 26, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
    margin-top: -2px;
}
.m-clock-v2-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #8B1A1A 0%, #C8A96E 100%);
    border-radius: 3px;
    transition: width 1s ease;
}
.m-clock-v2-next {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}
.m-clock-v2-next-label {
    color: #666;
    margin-right: 6px;
}
.m-clock-v2-next-name {
    color: #8B1A1A;
    font-size: 0.9rem;
    margin-right: 4px;
}
.m-clock-v2-next-time {
    color: #999;
    margin-right: 8px;
}
.m-clock-v2-next-desc {
    color: #333;
}
@media (max-width: 360px) {
    .m-clock-v2-name { font-size: 2.2rem; }
    .m-clock-v2-center { width: 70px; height: 70px; }
    .m-clock-v2-hour { height: 18px; }
    .m-clock-v2-minute { height: 22px; }
    .m-clock-v2-second { height: 24px; }
}
.m-disclaimer {
    margin: 3px 0;
    text-align: center;
    font-size: 0.68rem;
    line-height: 1.6;
    color: #999;
    padding: 0;
}
