:root {
    --primary-blue: #1890FF;
    --primary-light: #40A9FF;
    --primary-dark: #096DD9;
    --bg-gradient-start: #E8F4FD;
    --bg-gradient-end: #D4EBFF;
    --bg-card: #FFFFFF;
    --text-primary: #262626;
    --text-secondary: #595959;
    --text-tertiary: #8C8C8C;
    --border-light: #F0F0F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --success-green: #52C41A;
    --warning-orange: #FAAD14;
    --danger-red: #FF4D4F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #F5F7FA;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

.app-container {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-nav {
    width: 260px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
    box-shadow: var(--shadow-md);
}

.page-nav h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-btn {
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background: var(--bg-gradient-start);
    color: var(--primary-blue);
}

.nav-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.phone-frame {
    width: 420px;
    height: 850px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #F5F7FA;
    border-radius: 36px;
    overflow: hidden;
    position: relative;
}

.page {
    display: none;
    height: 100%;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
}

.page.active {
    display: flex;
}

.status-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-bar {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-title-center {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-bar-back {
    justify-content: flex-start;
    gap: 12px;
}

.icon-back {
    width: 22px;
    height: 22px;
    fill: var(--text-primary);
}

.page-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 70px;
}

.tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--border-light);
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-tertiary);
    transition: fill 0.25s ease;
}

.tab-icon.active {
    fill: var(--primary-blue);
}

.tab-text {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: color 0.25s ease;
}

.tab-text.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.home-page {
    background: transparent;
    padding: 0;
}

.greeting-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.icon-nav {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.hero-section {
    padding: 20px 20px 24px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.user-tabs {
    display: flex;
    gap: 8px;
}

.user-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.user-tab.active {
    background: var(--primary-blue);
    color: white;
}

.user-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.add-user-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 2px dashed var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.add-user-btn:hover {
    background: var(--bg-gradient-start);
    transform: scale(1.05);
}

.health-alert-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 77, 79, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.alert-icon-wrapper {
    width: 32px;
    height: 32px;
    background: #FFF1F0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger-red);
    font-size: 16px;
    font-weight: 700;
}

.alert-text-content {
    flex: 1;
}

.alert-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--danger-red);
    margin-bottom: 2px;
}

.alert-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
}

.health-issue-list {
    margin-top: 14px;
    padding-left: 4px;
}

.issue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FAFAFA;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.issue-item:last-child {
    margin-bottom: 0;
}

.issue-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning-orange);
    flex-shrink: 0;
}

/* 现代化虚拟人物展示区 */
.avatar-showcase {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    margin-top: 12px;
    padding: 0 4px;
    gap: 16px;
}

.avatar-container {
    width: 140px;
    height: 130px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-svg {
    width: 120px;
    height: 175px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

/* 右侧面板 */
.avatar-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 内联健康问题列表 */
.health-issue-list-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.issue-item-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFF7E6;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* 健康指标浮动卡片 */
.health-float-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-card {
    background: white;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
}

.float-card-1 {
    animation: floatIn 0.5s ease forwards;
    opacity: 0;
}

.float-card-2 {
    animation: floatIn 0.5s ease 0.15s forwards;
    opacity: 0;
}

.float-card-3 {
    animation: floatIn 0.5s ease 0.3s forwards;
    opacity: 0;
}

@keyframes floatIn {
    from { 
        transform: translateX(20px); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

.float-card-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.float-card-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.float-card-value.normal {
    color: #52C41A;
}

.float-card-value.warning {
    color: #FA8C16;
}

.character-showcase {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
}

.character-image-container {
    width: 200px;
    height: 280px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.character-svg {
    width: 180px;
    height: 260px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

.health-issue-badges {
    position: absolute;
    top: 40px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.issue-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning-orange);
}

.progress-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-md);
    margin: 0 16px 16px;
}

.progress-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-percentage {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
}

.progress-bar-container-new {
    height: 10px;
    background: #F0F0F0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill-animated {
    height: 100%;
    background: var(--primary-blue);
    border-radius: 5px;
    transition: width 0.6s ease;
}

.progress-meta-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
}

.complete-btn {
    padding: 6px 16px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.complete-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.content-tabs-row {
    display: flex;
    gap: 20px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.content-tab-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.content-tab-item.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary-blue);
}

.metrics-card-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px;
    margin: 0 16px 16px;
    box-shadow: var(--shadow-md);
}

.section-title-main {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-item-large {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
}

.metric-item-large:last-child {
    border-bottom: none;
}

.metric-name-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-value-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.metric-value-big {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.metric-unit-small {
    font-size: 13px;
    color: var(--text-tertiary);
}

.metric-status-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    background: #F6FFED;
    color: var(--success-green);
    margin-left: 8px;
}

.metric-chart-preview {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 28px;
}

.chart-bar-mini {
    width: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
    opacity: 0.7;
}

.function-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px 20px;
}

.function-card-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.function-card-new:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.function-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle-blue {
    background: #E6F7FF;
}

.icon-circle-orange {
    background: #FFF7E6;
}

.icon-circle-green {
    background: #F6FFED;
}

.icon-circle-purple {
    background: #F9F0FF;
}

.function-icon-inner {
    width: 26px;
    height: 26px;
}

.function-label-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

/* ========== 服务页面样式 (图2) ========== */
.service-page {
    background: #F5F7FA;
}

.service-hero-section {
    text-align: center;
    padding: 30px 20px 20px;
    background: transparent;
}

.service-main-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.service-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 16px 20px;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.service-nav-item {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.service-nav-item.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.service-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.service-user-tabs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: white;
}

.service-user-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #F5F5F5;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-user-tab-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.service-add-user-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px dashed #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BFBFBF;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-function-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px 16px;
    background: white;
    margin: 12px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.service-func-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 8px;
    background: #FAFAFA;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-func-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: white;
}

.service-func-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.func-icon-bg-blue {
    background: #E6F7FF;
}

.func-icon-bg-orange {
    background: #FFF7E6;
}

.func-icon-bg-green {
    background: #F6FFED;
}

.func-icon-bg-purple {
    background: #F9F0FF;
}

.service-func-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.daily-task-section {
    background: white;
    margin: 12px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.task-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
}

.task-header-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.task-calendar-toggle {
    width: 22px;
    height: 22px;
    fill: var(--text-tertiary);
    cursor: pointer;
}

.weekly-calendar-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 8px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border-light);
}

.calendar-day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 38px;
}

.calendar-day-item.active {
    background: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.calendar-day-name {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.calendar-day-item.active .calendar-day-name {
    color: rgba(255, 255, 255, 0.85);
}

.calendar-day-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-day-item.active .calendar-day-number {
    color: white;
}

.task-list-container {
    padding: 8px 0;
}

.task-item-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
    cursor: pointer;
}

.task-item-row:last-child {
    border-bottom: none;
}

.task-item-row:hover {
    background: #FAFAFA;
}

.task-info-block {
    flex: 1;
}

.task-title-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.task-desc-text {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.task-action-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: #E6F7FF;
    color: var(--primary-blue);
    white-space: nowrap;
    height: fit-content;
    margin-top: 2px;
}

.health-zone-section {
    background: white;
    margin: 12px 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px 18px;
}

.zone-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.zone-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.zone-manage-link {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.zone-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zone-tag-item {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    background: #F0F0F0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone-tag-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.zone-tag-active {
    background: var(--primary-blue) !important;
    color: white !important;
}

.health-plan-card-banner {
    background: #E6F7FF;
    margin: 0 16px 16px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.plan-info-left h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.plan-info-left p {
    font-size: 12px;
    color: var(--text-secondary);
}

.plan-status-badge {
    padding: 5px 14px;
    background: white;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

/* ========== 个人中心页面样式 (图3 & 图4) ========== */
.profile-page-new {
    background: #F5F7FA;
}

.profile-top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 52px;
}

.profile-nav-tabs {
    display: flex;
    gap: 28px;
}

.profile-nav-tab {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.profile-nav-tab.active {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 17px;
}

.profile-user-tabs-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
}

.profile-user-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-blue);
    color: white;
}

.profile-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.profile-add-btn-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px dashed #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #BFBFBF;
    font-size: 18px;
    cursor: pointer;
    background: white;
}

.profile-main-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    background: transparent;
    position: relative;
}

.profile-info-column {
    flex: 1;
    padding-top: 10px;
}

.profile-name-large {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-pencil-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-tertiary);
    cursor: pointer;
}

.profile-detail-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.profile-basic-info {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.profile-bmi-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.bmi-info-icon {
    width: 14px;
    height: 14px;
    fill: var(--text-tertiary);
}

.profile-extra-line {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.male-character-container {
    width: 200px;
    height: 260px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.male-character-svg {
    width: 180px;
    height: 240px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.12));
}

.profile-quick-functions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 18px 20px;
    background: white;
    margin: 0 16px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.quick-func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-func-item:hover {
    transform: translateY(-3px);
}

.quick-func-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
}

.quick-func-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.health-archive-section {
    background: white;
    margin: 0 16px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 18px;
}

.archive-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.archive-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.archive-list-item:last-child {
    border-bottom: none;
}

.archive-list-item:hover {
    background: #FAFAFA;
    margin: 0 -18px;
    padding-left: 18px;
    padding-right: 18px;
}

.archive-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.archive-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.arrow-right-small {
    width: 18px;
    height: 18px;
    fill: var(--text-tertiary);
}

.archive-sub-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.archive-sub-card {
    background: #FAFAFA;
    border-radius: var(--radius-md);
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.archive-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    background: white;
}

.sub-card-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.sub-card-icon-blue {
    background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%);
}

.sub-card-icon-purple {
    background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%);
}

.sub-card-icon-green {
    background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%);
}

.sub-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sub-card-desc {
    font-size: 11px;
    color: var(--text-tertiary);
}

.materials-folder-section {
    background: white;
    margin: 0 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 18px;
}

.folder-empty-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #FFFBE6;
    border: 1px dashed #FFE58F;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.folder-empty-icon {
    width: 48px;
    height: 48px;
}

.folder-empty-text {
    flex: 1;
}

.folder-empty-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.folder-empty-desc {
    font-size: 12px;
    color: var(--warning-orange);
}

.upload-btn-primary {
    padding: 8px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.upload-btn-primary:hover {
    background: var(--primary-dark);
}

.bottom-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 4px;
}

.feature-tag-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.feature-check-icon {
    width: 16px;
    height: 16px;
    fill: #BFBFBF;
}

/* 上传弹窗 */
.upload-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.upload-modal-content {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 30px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F5F5F5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-tertiary);
}

.modal-support-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-file-types {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.upload-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.upload-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-option-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.upload-option-icon {
    width: 44px;
    height: 44px;
}

.upload-option-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.security-shield-icon {
    width: 16px;
    height: 16px;
    fill: var(--success-green);
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px;
    margin: 0 16px 16px;
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========== 服务页面样式（基于图2） ========== */
.service-page {
    background: linear-gradient(180deg, #E6F7FF 0%, #F5F5F5 30%);
    padding-bottom: 80px;
}

.service-hero-section {
    text-align: center;
    padding: 24px 20px 18px;
}

.service-main-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.service-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.service-nav-tabs {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 12px 20px;
    margin-bottom: 4px;
}

.service-nav-item {
    font-size: 15px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-nav-item.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.service-nav-item:hover {
    color: var(--primary-blue);
}

.service-user-tabs-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px 16px;
}

.service-user-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.service-user-tab-btn.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(24,144,255,0.35);
}

.profile-avatar-small {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890FF 0%, #40A9FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.service-add-user-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px dashed #D9D9D9;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-add-user-circle:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.service-function-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px 20px;
}

.service-func-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 8px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-func-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-func-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.func-icon-bg-blue { background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%); }
.func-icon-bg-orange { background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%); }
.func-icon-bg-green { background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%); }
.func-icon-bg-purple { background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%); }

.service-func-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 每日任务模块 */
.daily-task-section {
    margin: 0 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.task-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.task-header-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.task-calendar-toggle {
    width: 22px;
    height: 22px;
    fill: var(--text-tertiary);
    cursor: pointer;
}

/* 日历条 */
.weekly-calendar-strip {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.calendar-day-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 10px;
    border-radius: 8px;
}

.calendar-day-item:hover {
    background: #F5F5F5;
}

.calendar-day-item.active {
    background: var(--primary-blue);
}

.calendar-day-item.active .calendar-day-name,
.calendar-day-item.active .calendar-day-number {
    color: white;
}

.calendar-day-name {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.calendar-day-number {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 700;
}

/* 任务列表 */
.task-list-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.task-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.task-info-block {
    flex: 1;
}

.task-title-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.task-desc-text {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.task-action-badge {
    padding: 5px 12px;
    background: #E6F7FF;
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-action-badge:hover {
    transform: scale(1.05);
}

/* 健康专区 */
.health-zone-section {
    margin: 0 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.zone-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.zone-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.zone-manage-link {
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
}

.zone-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.zone-tag-item {
    padding: 7px 16px;
    background: #F5F5F5;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone-tag-item:hover {
    background: #E6F7FF;
    color: var(--primary-blue);
}

.zone-tag-active {
    background: var(--primary-blue) !important;
    color: white !important;
}

/* 健康计划卡片 */
.health-plan-card-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    color: white;
}

.plan-info-left h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.plan-info-left p {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.5;
}

.plan-status-badge {
    padding: 5px 12px;
    background: rgba(255,255,255,0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* 返回导航栏 */
.nav-bar-back {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.nav-title-center {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== 个人中心页面样式（基于图3和图4） ========== */
.profile-page-new {
    background: linear-gradient(180deg, #E6F7FF 0%, #F5F5F5 25%);
    padding-bottom: 80px;
}

.profile-user-selector {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 16px;
}

.profile-user-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-user-tab.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(24,144,255,0.35);
}

.profile-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890FF 0%, #40A9FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.profile-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px dashed #D9D9D9;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-add-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* 主区域：用户信息 + 3D角色 */
.profile-main-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 10px 16px 24px;
    position: relative;
}

.profile-info-left {
    flex: 1;
    padding-top: 8px;
}

.profile-name-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.profile-gender-age-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.profile-detail-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.profile-bmi-row {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.profile-bmi-value {
    font-size: 15px;
    color: var(--text-secondary);
}

/* 男性3D角色容器 */
.male-character-container {
    width: 200px;
    height: 260px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.male-character-svg {
    width: 180px;
    height: 240px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
}

/* 快捷功能栏 */
.quick-function-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px 20px;
    background: white;
    margin: 0 16px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.quick-func-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.quick-func-item:hover {
    transform: translateY(-2px);
    background: #F5F5F5;
}

.quick-func-icon {
    width: 40px;
    height: 40px;
}

.quick-func-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 健康档案模块 */
.health-record-module {
    margin: 0 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.module-title-main {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.record-entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-entry-card:hover {
    opacity: 0.7;
}

.record-title-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 三列网格 */
.three-column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.mini-card-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-card-history:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: white;
}

.history-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-blue { background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%); }
.history-purple { background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%); }
.history-green { background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%); }

.history-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.history-card-desc {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.4;
}

/* 资料夹模块 */
.document-folder-module {
    margin: 0 16px 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.folder-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 0 24px;
}

.empty-folder-icon-group {
    display: flex;
    align-items: flex-end;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state-message {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.upload-doc-button {
    padding: 10px 28px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24,144,255,0.35);
}

.upload-doc-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(24,144,255,0.45);
}

.folder-feature-tags {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.feature-tag-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ========== 健康档案详情页样式（page19 - 7大数据分类） ========== */
.health-archive-page {
    background: #F5F5F5;
    padding-bottom: 80px;
}

/* 分类模块通用样式 */
.archive-category-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.category-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.category-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-icon-blue { background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%); }
.cat-icon-red { background: linear-gradient(135deg, #FFF1F0 0%, #FFCCC7 100%); }
.cat-icon-purple { background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%); }
.cat-icon-green { background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%); }
.cat-icon-cyan { background: linear-gradient(135deg, #E6FFFB 0%, #B5F5EC 100%); }
.cat-icon-orange { background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%); }
.cat-icon-teal { background: linear-gradient(135deg, #E6FFFB 0%, #87E8DE 100%); }

.category-title-text {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.edit-category-btn,
.add-indicator-btn,
.add-category-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--primary-blue);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-category-btn:hover,
.add-indicator-btn:hover,
.add-category-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
}

.update-time-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ====== 分类1：体型数据 ====== */
.data-grid-three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.data-item-card {
    background: #FAFAFA;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.data-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.data-label-small {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.data-value-large {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.data-unit-tiny {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.data-status-normal {
    display: inline-block;
    padding: 3px 10px;
    background: #F6FFED;
    color: #52C41A;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.data-status-warning {
    display: inline-block;
    padding: 3px 10px;
    background: #FFF7E6;
    color: #FA8C16;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

/* BMI卡片 */
.bmi-display-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #E6F7FF 0%, #F0F5FF 100%);
    border-radius: var(--radius-md);
}

.bmi-left-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bmi-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.bmi-number-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
}

.bmi-category {
    font-size: 13px;
    font-weight: 600;
    color: #FA8C16;
}

.bmi-chart-right {
    flex: 1;
    margin-left: 24px;
}

.bmi-scale-bar {
    height: 8px;
    background: #E8E8E8;
    border-radius: 4px;
    position: relative;
    display: flex;
    overflow: hidden;
    margin-bottom: 6px;
}

.bmi-zone {
    flex: 1;
    transition: all 0.3s ease;
}

.bmi-zone-underweight { background: #91D5FF; }
.bmi-zone-normal { background: #95DE64; }
.bmi-zone-overweight { background: #FFD666; }
.bmi-zone-obese { background: #FFA39E; }

.bmi-indicator-dot {
    width: 12px;
    height: 12px;
    background: var(--primary-blue);
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(24,144,255,0.4);
    z-index: 2;
}

.bmi-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-tertiary);
}

/* ====== 分类2：生命体征 ====== */
.vital-signs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.vital-sign-card {
    background: #FAFAFA;
    border-radius: var(--radius-md);
    padding: 14px;
    transition: all 0.3s ease;
}

.vital-sign-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.vital-highlight {
    grid-column: span 2;
    background: linear-gradient(135deg, #FFF1F0 0%, #FFFFFF 100%);
    border: 1.5px solid #FFCCC7;
}

.vital-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.vital-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.vital-badge {
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.vital-badge.normal {
    background: #F6FFED;
    color: #52C41A;
}

.vital-badge.abnormal {
    background: #FFF1F0;
    color: #FF4D4F;
}

.vital-main-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.vital-unit {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}

.vital-unit-full {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* 迷你图表 */
.vital-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 10px;
}

.chart-bar-mini {
    flex: 1;
    background: linear-gradient(180deg, #FF7875 0%, #FF4D4F 100%);
    border-radius: 2px 2px 0 0;
    min-height: 20%;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.chart-bar-mini:hover {
    opacity: 1;
    transform: scaleY(1.05);
}

/* ====== 分类3：关注指标 ====== */
.indicator-tags-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.indicator-tag-group {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
}

.indicator-tag-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.indicator-group-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.indicator-items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.indicator-chip {
    padding: 7px 14px;
    background: #F5F5F5;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.indicator-chip:hover {
    background: #E6F7FF;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
}

.indicator-chip.warning-state {
    background: #FFF7E6;
    color: #FA8C16;
    border-color: #FFD591;
}

.indicator-chip.indicator-add-new {
    background: transparent;
    color: var(--text-tertiary);
    border: 1.5px dashed #D9D9D9;
}

.indicator-chip.indicator-add-new:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* ====== 分类4：运动数据 ====== */
.exercise-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exercise-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.exercise-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.exercise-primary {
    background: linear-gradient(135deg, #F6FFED 0%, #FFFFFF 100%);
    border: 1.5px solid #B7EB8F;
}

.exercise-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ex-bg-green { background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%); }
.ex-bg-orange { background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%); }

.exercise-data-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exercise-value-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.exercise-unit-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.exercise-compare-text {
    font-size: 12px;
    color: #52C41A;
    font-weight: 600;
}

/* ====== 分类5：睡眠数据 ====== */
.sleep-detail-card {
    background: linear-gradient(180deg, #E6FFFB 0%, #FFFFFF 100%);
    border-radius: var(--radius-md);
    padding: 18px;
}

.sleep-main-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.sleep-duration-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sleep-hours-big {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.sleep-minutes-small {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.sleep-quality-label {
    font-size: 13px;
    color: #13C2C2;
    font-weight: 600;
}

.sleep-score-circle {
    position: relative;
    text-align: center;
}

.score-label-text {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: -4px;
}

/* 睡眠阶段条 */
.sleep-phases-bar {
    display: flex;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.phase-segment {
    transition: all 0.3s ease;
    cursor: pointer;
}

.phase-segment:hover {
    filter: brightness(1.1);
}

.phase-deep { background: #1890FF; }
.phase-light { background: #69C0FF; }
.phase-rem { background: #722ED1; }
.phase-awake { background: #E8E8E8; }

.sleep-phase-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-deep { background: #1890FF; }
.dot-light { background: #69C0FF; }
.dot-rem { background: #722ED1; }
.dot-awake { background: #D9D9D9; }

/* ====== 分类6：就医资料 ====== */
.medical-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.doc-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.doc-folder-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.doc-folder-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon-red { background: linear-gradient(135deg, #FFF1F0 0%, #FFCCC7 100%); }
.doc-icon-blue { background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%); }
.doc-icon-green { background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%); }
.doc-icon-purple { background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%); }

.doc-folder-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.doc-count-badge {
    padding: 3px 10px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

/* ====== 分类7：健康信息 ====== */
.health-history-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-entry-card-expandable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-entry-card-expandable:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.history-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon-lg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hist-icon-blue { background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%); }
.hist-icon-purple { background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%); }
.hist-icon-green { background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%); }

.history-text-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-title-md {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.history-desc-sm {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========== 优化后的用药提醒页面样式（page3） ========== */
.medication-page-new {
    background: #F5F5F5;
    padding-bottom: 80px;
}

/* 今日概览统计卡片 */
.med-overview-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.med-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.med-overview-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.med-date-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.med-completion-rate {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.med-progress-circle-lg {
    position: relative;
}

.med-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    padding: 14px;
}

.stat-item-med {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.med-icon-green { background: #F6FFED; }
.med-icon-orange { background: #FFF7E6; }
.med-icon-red { background: #FFF1F0; }

.stat-text-group {
    display: flex;
    flex-direction: column;
}

.stat-number-big {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-label-small {
    font-size: 11px;
    color: var(--text-secondary);
}

/* 智能提醒卡片 - 倒计时 */
.smart-reminder-card {
    position: relative;
    background: #FFF7E6;
    border: 1px solid #FFD591;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-bottom: 14px;
}

.reminder-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reminder-main-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-title-text {
    font-size: 14px;
    font-weight: 700;
    color: #D46B08;
}

.countdown-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.countdown-hours,
.countdown-minutes,
.countdown-seconds {
    font-size: 28px;
    font-weight: 800;
    color: #FA8C16;
    font-variant-numeric: tabular-nums;
}

.countdown-sep {
    font-size: 22px;
    font-weight: 600;
    color: #D9D9D9;
}

.next-med-name {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.take-now-btn {
    padding: 10px 20px;
    background: #FA8C16;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.take-now-btn:hover {
    background: #D46B08;
}

.take-now-btn:active {
    background: #D46B08;
}

/* 用药时间线列表 */
.medication-timeline-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.section-header-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title-bold {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all-link {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
}

.time-period-block {
    margin-bottom: 20px;
}

.time-period-block:last-child {
    margin-bottom: 0;
}

.period-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #F5F5F5;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.period-time-badge.period-active {
    background: #FFF1F0;
    color: #CF1322;
}

.current-badge {
    padding: 2px 8px;
    background: #FF4D4F;
    color: white;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

/* 增强的药物卡片 */
.med-card-enhanced {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    border: 1px solid transparent;
}

.med-card-enhanced:hover {
    background: #F5F5F5;
}

.med-card-done {
    opacity: 0.85;
}

.med-card-current {
    background: #FFF7E6;
    border-color: #FFD591;
}

.med-card-upcoming {
    opacity: 0.75;
}

.med-card-left-side {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.med-pill-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-color-blue { background: #E6F7FF; }
.pill-color-orange { background: #FFF7E6; }
.pill-color-purple { background: #F9F0FF; }

.med-details-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.med-name-row-enhanced {
    display: flex;
    align-items: center;
    gap: 8px;
}

.med-name-bold {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.med-status-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge-done {
    background: #F6FFED;
    color: #52C41A;
}

.status-badge-pending {
    background: #FFF7E6;
    color: #FA8C16;
}

.status-badge-upcoming {
    background: #F0F0F0;
    color: #8C8C8C;
}

.med-specs-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.med-dose-text {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.med-divider-dot {
    color: #D9D9D9;
    font-size: 8px;
}

.med-instruction-text {
    font-size: 13px;
    color: var(--text-tertiary);
}

.med-taken-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #52C41A;
    font-weight: 500;
}

.med-remaining-count {
    font-size: 12px;
    color: var(--text-tertiary);
}

.med-remaining-count strong {
    color: var(--primary-blue);
    font-weight: 700;
}

.icon-chevron-right-gray {
    width: 18px;
    height: 18px;
    fill: #BFBFBF;
    flex-shrink: 0;
    margin-left: 8px;
}

/* 操作按钮组 */
.med-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
}

.btn-snooze,
.btn-take-medication {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.btn-snooze {
    background: #F5F5F5;
    color: var(--text-secondary);
}

.btn-snooze:hover {
    background: #E8E8E8;
}

.btn-take-medication {
    background: #52C41A;
    color: white;
}

.btn-take-medication:hover {
    background: #389E0D;
}

/* 用药建议卡片 */
.med-advice-card {
    display: flex;
    gap: 16px;
    padding: 18px;
    background: #E6F7FF;
    border: 1px solid #91D5FF;
    border-radius: var(--radius-md);
}

.advice-icon-section {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 4px;
}

.advice-content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advice-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.advice-description {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.advice-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.advice-tag {
    padding: 5px 12px;
    background: white;
    border: 1px solid #BAE7FF;
    border-radius: 4px;
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 500;
}

/* ========== 首页嵌入式用药提醒模块 - 专业医疗风格 ========== */
.home-medication-module {
    background: #FFFFFF;
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-medication-module:hover {
    border-color: #D9D9D9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 头部区域 */
.home-med-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.home-med-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-med-main-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.home-med-badge-pending {
    padding: 2px 8px;
    background: #FFF7E6;
    color: #D46B08;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.home-med-progress-mini {
    display: flex;
    align-items: center;
    gap: 6px;
}

.med-completed-count {
    font-size: 14px;
    font-weight: 600;
    color: #52C41A;
}

.mini-progress-ring {
    position: relative;
    width: 32px;
    height: 32px;
}

/* 当前药物卡片 */
.home-med-current-drug {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: #FAFAFA;
    border-radius: 8px;
    margin-bottom: 12px;
}

.current-drug-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-drug-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-time-label {
    font-size: 13px;
    font-weight: 600;
    color: #FA8C16;
}

.current-status-label {
    font-size: 11px;
    color: var(--text-tertiary);
    background: #F5F5F5;
    padding: 2px 6px;
    border-radius: 3px;
}

.current-drug-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.current-drug-specs {
    font-size: 12px;
    color: var(--text-secondary);
}

.quick-take-btn {
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 12px;
}

.quick-take-btn:hover {
    background: #096DD9;
}

.quick-take-btn:active {
    background: #0050B3;
}

/* 药物列表预览 */
.home-med-list-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.med-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid #F0F0F0;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.med-item-row:hover {
    background: #FAFAFA;
}

.med-item-done {
    opacity: 0.85;
}

.med-item-current {
    background: #FFFBF0;
    border-color: #FFE7BA;
}

.med-item-upcoming {
    opacity: 0.65;
}

.med-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.done-icon {
    background: #F6FFED;
}

.pending-icon {
    background: #FFF7E6;
}

.upcoming-icon {
    background: #F5F5F5;
}

.med-item-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.med-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.med-item-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
    margin-left: 8px;
}

/* 底部提示 */
.home-med-footer-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid #F5F5F5;
}

.home-med-footer-hint span {
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 500;
}

.trend-chart-svg {
    width: 100%;
    height: auto;
}

.chart-x-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.todo-item:hover {
    background: var(--bg-gradient-start);
}

.todo-indicator {
    width: 4px;
    height: 40px;
    border-radius: 2px;
}

.todo-indicator.pending {
    background: var(--warning-orange);
}

.todo-indicator.done {
    background: var(--success-green);
}

.todo-content {
    flex: 1;
}

.todo-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.todo-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.icon-bell {
    width: 18px;
    height: 18px;
    fill: var(--primary-blue);
    cursor: pointer;
    transition: transform 0.25s ease;
}

.icon-bell:hover {
    transform: scale(1.15);
}

.profile-page {
    background: #F5F7FA;
    padding: 0;
}

.profile-hero {
    padding: 24px 20px 40px;
    position: relative;
}

.profile-character-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.profile-character-image {
    width: 160px;
    height: 220px;
}

.profile-info-panel {
    flex: 1;
    padding-left: 16px;
}

.profile-name-display {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-pencil-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-tertiary);
    cursor: pointer;
}

.profile-detail-line {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.profile-detail-value {
    font-weight: 700;
    color: var(--text-primary);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 12px;
    margin: 0 16px 20px;
    box-shadow: var(--shadow-md);
}

.action-button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: var(--radius-sm);
}

.action-button-item:hover {
    background: var(--bg-gradient-start);
}

.action-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon-svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.action-label-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-card {
    background: white;
    border-radius: var(--radius-lg);
    margin: 0 16px 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
}

.section-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-arrow {
    width: 18px;
    height: 18px;
    fill: var(--text-tertiary);
}

.section-body {
    padding: 16px 18px;
}

.history-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.history-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: #FAFAFA;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.history-type-card:hover {
    background: var(--bg-gradient-start);
    transform: translateY(-2px);
}

.type-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.type-icon-blue {
    background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%);
    color: var(--primary-blue);
}

.type-icon-purple {
    background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%);
    color: #722ED1;
}

.type-icon-green {
    background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%);
    color: var(--success-green);
}

.type-label-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.type-desc-text {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
}

.document-upload-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #FFFBE6;
    border: 2px dashed var(--warning-orange);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s ease;
}

.document-upload-area:hover {
    background: #FFF7E6;
    border-color: #FFA940;
}

.upload-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upload-document-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.upload-text-group {
    flex: 1;
}

.upload-main-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.upload-sub-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

.upload-action-btn {
    padding: 8px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.upload-action-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.feature-tags-row {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    background: #FAFAFA;
    flex-wrap: wrap;
}

.feature-tag-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.tag-check-icon {
    width: 14px;
    height: 14px;
    fill: var(--success-green);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content-sheet {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content-sheet {
    transform: translateY(0);
}

.modal-handle-bar {
    width: 40px;
    height: 4px;
    background: #E8E8E8;
    border-radius: 2px;
    margin: 0 auto 20px;
}

.modal-title-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.modal-subtitle-text {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: 24px;
}

.upload-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.upload-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    background: #FAFAFA;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
}

.upload-option-card:hover {
    background: var(--bg-gradient-start);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.option-icon-large {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.option-icon-purple {
    background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%);
}

.option-icon-blue {
    background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%);
}

.option-icon-orange {
    background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%);
}

.option-icon-green {
    background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%);
}

.option-label-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.security-note-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.security-icon-small {
    width: 14px;
    height: 14px;
    fill: var(--text-tertiary);
}

.close-modal-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F5F5F5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: var(--text-tertiary);
    transition: all 0.25s ease;
}

.close-modal-btn:hover {
    background: #E8E8E8;
    transform: rotate(90deg);
}

.library-page,
.knowledge-page,
.faq-page,
.monitor-page,
.medication-page,
.alert-page,
.prescription-page,
.report-page,
.article-detail-page,
.message-page,
.chat-page,
.feedback-page,
.settings-page {
    background: #F5F7FA;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 130px;
}

.library-tabs,
.knowledge-tabs {
    display: flex;
    gap: 0;
    background: white;
    padding: 0 16px;
    margin: 0 0 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.lib-tab,
.know-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.lib-tab.active,
.know-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.search-box-wrapper {
    position: relative;
    margin: 16px 16px 16px;
}

.search-input-full {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input-full:focus {
    border-color: var(--primary-blue);
}

.icon-search {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-tertiary);
}

.article-list-knowledge {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
}

.article-item-knowledge {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.article-item-knowledge:hover {
    background: #F5F5F5;
}

.article-icon-knowledge {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.type-article {
    background: #E6F7FF;
}

.type-hot {
    background: #FFF7E6;
}

.article-body-knowledge {
    flex: 1;
}

.article-title-knowledge {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.article-desc-knowledge {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.article-meta-knowledge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.input-card {
    padding: 20px;
}

/* ========== 居家健康监测 - 全新优化设计 ========== */

/* 今日测量概览卡片 */
.monitor-overview-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.monitor-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.monitor-overview-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.monitor-date-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.monitor-measure-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.monitor-latest-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.latest-label {
    font-size: 11px;
    color: var(--text-tertiary);
}

.latest-value-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.2;
}

.latest-unit {
    font-size: 12px;
    color: var(--text-secondary);
}

.monitor-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    padding: 14px;
}

.monitor-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monitor-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-green-bg { background: #F6FFED; }
.icon-orange-bg { background: #FFF7E6; }
.icon-red-bg { background: #FFF1F0; }

.monitor-stat-info {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 快捷测量入口 */
.quick-measure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.quick-measure-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-measure-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.quick-measure-item.active {
    border-color: var(--primary-blue);
    background: #E6F7FF;
}

.quick-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.blood-pressure-icon { background: #E6F7FF; }
.blood-sugar-icon { background: #FFF7E6; }
.heart-rate-icon { background: #FFF0F6; }
.weight-icon { background: #F9F0FF; }

.quick-measure-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.quick-measure-hint {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* 增强的数据输入区域 */
.input-card-enhanced {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.input-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.input-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.type-tabs-new {
    display: flex;
    gap: 6px;
    background: #F5F5F5;
    padding: 3px;
    border-radius: var(--radius-sm);
}

.type-tab-new {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-tab-new.active {
    background: white;
    color: var(--primary-blue);
    box-shadow: var(--shadow-xs);
}

.measure-input-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group-enhanced label,
.input-row.single > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.input-with-unit {
    position: relative;
    display: flex;
    align-items: center;
}

.text-input-enhanced {
    width: 100%;
    padding: 12px 60px 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
}

.text-input-enhanced:focus {
    border-color: var(--primary-blue);
}

.unit-badge {
    position: absolute;
    right: 14px;
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.full-width {
    width: 100%;
}

.input-with-icon-new {
    position: relative;
}

.icon-calendar-new {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: var(--text-tertiary);
}

.textarea-enhanced {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.textarea-enhanced:focus {
    border-color: var(--primary-blue);
}

.save-record-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.save-record-btn:hover {
    background: #0E6DB8;
}

/* 增强的趋势图表 */
.trend-card-enhanced {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.card-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-title-new {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.period-toggle-new {
    display: flex;
    gap: 4px;
    background: #F5F5F5;
    padding: 3px;
    border-radius: var(--radius-sm);
}

.period-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.period-btn.active {
    background: white;
    color: var(--primary-blue);
}

.trend-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.trend-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label-sm {
    font-size: 11px;
    color: var(--text-tertiary);
}

.stat-value-sm {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.warning-color {
    color: #FA8C16;
}

.normal-color {
    color: #52C41A;
}

.trend-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-light);
}

.chart-area-new {
    margin-bottom: 12px;
}

.trend-chart-svg-new {
    width: 100%;
    height: auto;
}

.chart-x-axis-new {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 12px;
}

.chart-x-axis-new span {
    font-size: 11px;
    color: var(--text-tertiary);
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.blue { background: #1890FF; }
.legend-dot.orange { background: #FAAD14; }

/* 增强的历史记录 */
.history-card-enhanced {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.view-all-link-new {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 500;
    cursor: pointer;
}

.history-list-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.history-item-new:hover {
    background: #F5F5F5;
}

.history-left-section {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.history-date-badge {
    width: 52px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.today-badge { background: var(--primary-blue); }
.normal-badge { background: #8C8C8C; }
.warning-badge { background: #FA8C16; }

.badge-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.badge-month {
    font-size: 11px;
    opacity: 0.9;
}

.history-detail-section {
    flex: 1;
}

.history-main-values {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.value-systolic,
.value-diastolic {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.warning-text {
    color: #FA8C16;
}

.value-separator {
    font-size: 18px;
    color: var(--text-tertiary);
}

.value-unit {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-time-tag {
    font-size: 12px;
    color: var(--text-tertiary);
}

.history-status-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.tag-normal {
    background: #F6FFED;
    color: #52C41A;
}

.tag-warning {
    background: #FFF7E6;
    color: #FA8C16;
}

.history-right-actions {
    display: flex;
    gap: 8px;
}

.action-icon-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn:hover {
    border-color: var(--primary-blue);
}

.delete-btn:hover {
    border-color: #FF4D4F;
}

.type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.type-tab {
    padding: 8px 20px;
    background: #F5F5F5;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.type-tab.active {
    background: var(--primary-blue);
    color: white;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.input-row.single {
    grid-template-columns: 1fr;
}

.input-group label,
.input-row.single > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.text-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.text-input:focus {
    border-color: var(--primary-blue);
}

.unit {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-left: 6px;
}

.textarea-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    font-family: inherit;
}

.primary-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.primary-button:hover {
    background: #0E6DB8;
}

.period-toggle {
    display: flex;
    gap: 4px;
    background: #F5F5F5;
    padding: 3px;
    border-radius: var(--radius-sm);
}

.period {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.period.active {
    background: white;
    color: var(--primary-blue);
}

.history-card {
    max-height: 320px;
    overflow-y: auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
}

.history-date-box {
    width: 52px;
    height: 56px;
    background: var(--primary-blue);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.history-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.history-month {
    font-size: 11px;
    opacity: 0.9;
}

.history-data {
    flex: 1;
}

.history-values {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 2px;
}

.systolic,
.diastolic {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.systolic.warning,
.diastolic.warning {
    color: var(--danger-red);
}

.separator {
    font-size: 16px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.unit-small {
    font-size: 12px;
    color: var(--text-tertiary);
}

.history-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.history-status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.history-status-badge.normal {
    background: #F6FFED;
    color: var(--success-green);
}

.history-status-badge.warning {
    background: #FFF7E6;
    color: var(--warning-orange);
}

.progress-card {
    padding: 20px;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.icon-calendar-lg {
    width: 24px;
    height: 24px;
    fill: var(--primary-blue);
}

.progress-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-bar-container {
    height: 12px;
    background: #E8E8E8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-green) 0%, #73D13D 100%);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.progress-count {
    color: var(--success-green);
    font-weight: 700;
}

.remaining-alert {
    color: var(--warning-orange);
    font-weight: 600;
}

.medication-list {
    padding: 0 16px;
}

.medication-section {
    margin-bottom: 20px;
}

.time-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%);
    border-radius: var(--radius-md);
}

.icon-clock {
    width: 18px;
    height: 18px;
    fill: var(--primary-blue);
}

.section-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
}

.medication-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
}

.medication-item.highlight {
    border: 2px solid var(--warning-orange);
    background: #FFFBF0;
}

.med-info {
    flex: 1;
}

.med-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.med-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.med-dose {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
}

.med-instruction {
    font-size: 12px;
    color: var(--text-secondary);
}

.med-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.med-status.done {
    color: var(--success-green);
}

.med-status.pending {
    color: var(--warning-orange);
}

.icon-check-circle {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 居家监测页面额外样式优化 */
.monitor-page {
    padding: 16px;
}

.monitor-page .card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* 输入组增强样式 */
.input-group-enhanced {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 响应式优化 */
@media (max-width: 375px) {
    .quick-measure-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .monitor-stats-grid {
        gap: 8px;
        padding: 10px;
    }
    
    .latest-value-text {
        font-size: 24px;
    }
}

.score-card-large {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin: 16px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.4);
}

.score-label {
    font-size: 15px;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 12px;
}

.score-display {
    margin-bottom: 16px;
}

.score-number {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
}

.score-suffix {
    font-size: 24px;
    font-weight: 700;
    margin-left: 4px;
}

.score-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.star {
    width: 24px;
    height: 24px;
}

.star.filled {
    fill: #FFD666;
}

.star.empty {
    fill: rgba(255, 255, 255, 0.3);
}

.score-level {
    font-size: 16px;
    font-weight: 700;
    margin-left: 8px;
}

.alert-list {
    padding: 0 16px;
}

.alert-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.alert-indicator {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}

.danger-bg {
    background: var(--danger-red);
}

.warning-bg {
    background: var(--warning-orange);
}

.alert-content {
    flex: 1;
}

.alert-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.alert-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.alert-tag {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.tag-danger {
    background: #FFF1F0;
    color: var(--danger-red);
}

.tag-warning {
    background: #FFF7E6;
    color: var(--warning-orange);
}

.alert-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.alert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-tertiary);
}

.icon-arrow-right-sm {
    width: 16px;
    height: 16px;
    fill: var(--text-tertiary);
}

/* ========== 知识库页面 - 现代化科普风格 ========== */

.knowledge-page {
    padding: 0 16px 80px;
}

.knowledge-category-section {
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.category-item:hover,
.category-item:active {
    background: #FAFAFA;
    border-color: #E8E8E8;
}

.category-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat-heart {
    background: #FFE4E1;
}

.cat-heart svg {
    fill: #FF6B81;
}

.cat-sugar {
    background: #E6F7FF;
}

.cat-sugar svg {
    fill: #1890FF;
}

.cat-food {
    background: #FFF7E6;
}

.cat-food svg {
    fill: #FA8C16;
}

.cat-exercise {
    background: #F6FFED;
}

.cat-exercise svg {
    fill: #52C41A;
}

.category-name-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.knowledge-section {
    margin-bottom: 20px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.see-more-link {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
}

.article-card-modern {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.article-card-modern:hover {
    background: #FAFAFA;
}

.article-cover-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.cover-health {
    background: #E6F7FF;
}

.cover-sugar {
    background: #FFF0F0;
}

.article-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.article-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-cat-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.tag-cardio {
    background: #FFE4E1;
    color: #FF6B81;
}

.tag-diabetes {
    background: #E6F7FF;
    color: #1890FF;
}

.read-time-badge {
    font-size: 11px;
    color: var(--text-tertiary);
}

.article-title-bold {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.article-summary-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.article-list-simple {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.simple-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.simple-article-item:hover {
    background: #FAFAFA;
}

.simple-article-left {
    flex: 1;
}

.simple-article-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px 0;
}

.simple-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-tag-allergy,
.meta-tag-bone,
.meta-tag-sleep {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.meta-tag-allergy {
    background: #FFF7E6;
    color: #FA8C16;
}

.meta-tag-bone {
    background: #F6FFED;
    color: #52C41A;
}

.meta-tag-sleep {
    background: #F9F0FF;
    color: #722ED1;
}

.meta-date {
    font-size: 12px;
    color: var(--text-tertiary);
}

.topic-recommendation-section {
    margin-bottom: 20px;
}

.topic-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.topic-scroll-container::-webkit-scrollbar {
    height: 3px;
}

.topic-scroll-container::-webkit-scrollbar-thumb {
    background: #D9D9D9;
    border-radius: 2px;
}

.topic-card-item {
    min-width: 140px;
    height: 90px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.topic-heart {
    background: #FFE4E1;
}

.topic-sugar {
    background: #E6F7FF;
}

.topic-nutrition {
    background: #FFF7E6;
}

.topic-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.topic-name-large {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.topic-count-small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== 常见问题页面 - 现代化FAQ风格 ========== */

.faq-page-modern {
    padding: 0 16px 80px;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.faq-search-section {
    position: relative;
    margin-top: 16px;
    margin-bottom: 20px;
}

.faq-search-input {
    width: 100%;
    padding: 14px 48px 14px 18px;
    border: 1.5px solid #E8E8E8;
    border-radius: var(--radius-lg);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.faq-search-input:focus {
    border-color: var(--primary-blue);
}

.faq-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    fill: #BFBFBF;
}

.hot-questions-section {
    margin-bottom: 24px;
}

.hot-question-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 14px;
}

.hot-question-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.hot-question-item:hover,
.hot-question-item:active {
    background: #FAFAFA;
}

.hot-q-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.hot-q-badge.hot {
    background: #FFF1F0;
    color: #FF4D4F;
}

.hot-q-badge.new {
    background: #E6F7FF;
    color: #1890FF;
}

.hot-q-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

.faq-categories-modern {
    margin-bottom: 24px;
}

.category-card-faq {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
}

.category-card-faq:hover,
.category-card-faq:active {
    background: #FAFAFA;
    border-color: #E8E8E8;
}

.cat-icon-large {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-icon-large svg {
    width: 26px;
    height: 26px;
}

.cat-account {
    background: #E6F7FF;
}

.cat-account svg {
    fill: #1890FF;
}

.cat-monitor {
    background: #F6FFED;
}

.cat-monitor svg {
    fill: #52C41A;
}

.cat-medicine {
    background: #FFF7E6;
}

.cat-medicine svg {
    fill: #FA8C16;
}

.cat-notification {
    background: #F9F0FF;
}

.cat-notification svg {
    fill: #722ED1;
}

.cat-other {
    background: #FFF0F0;
}

.cat-other svg {
    fill: #FF4D4F;
}

.cat-info-content {
    flex: 1;
}

.cat-title-bold {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.cat-desc-text {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.4;
}

.cat-right-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cat-count-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #F5F5F5;
    padding: 4px 10px;
    border-radius: 10px;
}

.contact-support-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: #E6F7FF;
    border-radius: var(--radius-md);
    margin-top: 8px;
}

.support-icon-wrapper {
    width: 46px;
    height: 46px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: #1890FF;
}

.support-text-group {
    flex: 1;
}

.support-title-main {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.support-desc-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.contact-customer-btn {
    padding: 10px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.contact-customer-btn:hover {
    opacity: 0.9;
}

/* ========== 风险预警页面 - 现代化优化样式 ========== */

.alert-page {
    padding: 16px;
    padding-bottom: 80px;
}

/* 健康评分概览卡片 */
.health-score-overview-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.score-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.score-info-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-date-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.score-update-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

.score-main-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.score-number-modern {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.score-unit-modern {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

.score-status-bar-wrapper {
    margin-bottom: 18px;
}

.score-progress-track {
    height: 8px;
    background: #E8E8E8;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.score-progress-fill {
    height: 100%;
    background: var(--primary-blue);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.score-level-indicators {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
}

.level-marker {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.level-marker.active {
    color: var(--primary-blue);
    font-weight: 700;
}

.score-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: #FAFAFA;
    border-radius: var(--radius-sm);
    padding: 14px;
}

.score-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
}

.normal-value {
    color: #52C41A;
}

.warning-value {
    color: #FA8C16;
}

.danger-value {
    color: #FF4D4F;
}

/* 预警统计概览 */
.alert-stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.alert-stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.alert-stat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-red-circle { background: #FFF1F0; }
.icon-orange-circle { background: #FFF7E6; }
.icon-green-circle { background: #F6FFED; }

.alert-stat-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-count-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-count-desc {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-danger-card .stat-count-num { color: #FF4D4F; }
.stat-warning-card .stat-count-num { color: #FA8C16; }
.stat-normal-card .stat-count-num { color: #52C41A; }

/* 预警列表标题 */
.alert-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.alert-list-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all-alerts {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 500;
    cursor: pointer;
}

/* 现代化预警列表 */
.alert-list-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.alert-card-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.alert-card-item:hover {
    box-shadow: var(--shadow-md);
}

.alert-danger-item {
    border-left: 3px solid #FF4D4F;
}

.alert-warning-item {
    border-left: 3px solid #FA8C16;
}

.alert-card-left {
    display: flex;
    gap: 12px;
    flex: 1;
    align-items: flex-start;
}

.alert-type-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.danger-badge { background: #FF4D4F; }
.warning-badge { background: #FA8C16; }

.alert-content-main {
    flex: 1;
    min-width: 0;
}

.alert-title-row-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    gap: 8px;
}

.alert-title-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.alert-severity-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.severity-danger {
    background: #FFF1F0;
    color: #FF4D4F;
}

.severity-warning {
    background: #FFF7E6;
    color: #FA8C16;
}

.alert-description-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.alert-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-time-stamp {
    font-size: 12px;
    color: var(--text-tertiary);
}

.alert-source-tag {
    font-size: 11px;
    color: var(--primary-blue);
    background: #E6F7FF;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.alert-card-right {
    flex-shrink: 0;
}

.alert-action-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-action {
    background: var(--primary-blue);
    color: white;
}

.primary-action:hover {
    background: #0E6DB8;
}

.secondary-action {
    background: #F5F5F5;
    color: var(--text-secondary);
}

.secondary-action:hover {
    background: #E8E8E8;
}

/* 快捷操作区域 */
.quick-actions-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-action-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-blue-light { background: #E6F7FF; }
.bg-green-light { background: #F6FFED; }
.bg-orange-light { background: #FFF7E6; }

.action-label-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-list-page {
    padding: 0 16px;
}

.faq-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.faq-category-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.faq-left-side {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-icon-svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-blue);
}

.faq-category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-right-side {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-count-num {
    font-size: 13px;
    color: var(--text-tertiary);
}

.article-detail-header-card {
    background: white;
    padding: 24px 20px;
    margin: 0 0 16px;
    border-radius: 0;
    box-sizing: border-box;
}

.detail-article-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.detail-article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.article-body-content {
    background: white;
    padding: 20px;
    margin: 0 16px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: hidden;
    box-sizing: border-box;
}

.content-paragraph {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-subheading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0 10px;
}

.bottom-action-bar-fixed {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.action-button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.action-icon {
    width: 22px;
    height: 22px;
    fill: var(--text-tertiary);
}

.action-button-item span {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-profile-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    padding: 32px 24px;
    text-align: center;
    color: white;
    position: relative;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    color: var(--primary-blue);
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.user-name-large {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.user-phone-large {
    font-size: 14px;
    opacity: 0.9;
}

.icon-edit-profile {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    fill: white;
    cursor: pointer;
}

.menu-list-profile {
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0 16px 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.menu-item-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s ease;
}

.menu-item-profile:last-child {
    border-bottom: none;
}

.menu-item-profile:hover {
    background: var(--bg-gradient-start);
}

.menu-left-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon-profile {
    width: 22px;
    height: 22px;
    fill: var(--primary-blue);
}

.menu-text-profile {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.menu-right-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-count {
    background: var(--danger-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.message-list-page {
    padding: 0 16px;
}

.message-item-page {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.25s ease;
}

.unread-border {
    border-left: 3px solid var(--primary-blue);
}

.message-icon-page {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.danger-color {
    background: #FFF1F0;
    color: var(--danger-red);
}

.warning-color {
    background: #FFF7E6;
    color: var(--warning-orange);
}

.info-color {
    background: #E6F7FF;
    color: var(--primary-blue);
}

.success-color {
    background: #F6FFED;
    color: var(--success-green);
}

.message-icon-page svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.message-content-page {
    flex: 1;
}

.message-title-page {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.message-desc-page {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.message-bottom-page {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.message-time-page {
    color: var(--text-tertiary);
}

.unread-badge {
    background: var(--primary-blue);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.read-badge {
    color: var(--text-tertiary);
}

.filter-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-blue);
    cursor: pointer;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 120px);
    padding: 16px;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.bot-message .message-bubble {
    background: white;
    color: var(--text-primary);
    border-top-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.user-message .message-bubble {
    background: var(--primary-blue);
    color: white;
    border-top-right-radius: 4px;
}

.chat-time {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 8px 0;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid var(--border-light);
}

.chat-input-field {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.send-button-chat {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.send-button-chat svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.feedback-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.feedback-type-item {
    padding: 10px;
    text-align: center;
    background: #F0F0F0;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.feedback-type-item.active {
    background: var(--primary-blue);
    color: white;
}

.feedback-textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    outline: none;
    font-family: inherit;
    margin-bottom: 16px;
}

.upload-area-feedback {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.upload-area-feedback:hover {
    border-color: var(--primary-blue);
    background: var(--bg-gradient-start);
}

.icon-upload {
    width: 40px;
    height: 40px;
    fill: var(--text-tertiary);
    margin-bottom: 8px;
}

.upload-area-feedback span {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-info-row {
    margin-bottom: 16px;
}

.contact-info-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.text-input-full {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}

.full-width-btn {
    border-radius: var(--radius-md);
}

.settings-page {
    padding: 16px;
}

.settings-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.settings-group {
    background: white;
    border-radius: var(--radius-lg);
    padding: 4px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.settings-group-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 12px 0 8px;
}

.setting-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.25s ease;
}

.setting-item-row:last-child {
    border-bottom: none;
}

.setting-item-row:hover {
    background: #FAFAFA;
}

.setting-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.setting-icon-wrap svg {
    width: 20px;
    height: 20px;
}

.notification-icon {
    background: #E6F7FF;
    color: var(--primary-blue);
}

.setting-left {
    flex: 1;
}

.setting-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.setting-desc {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.toggle-switch {
    width: 50px;
    height: 28px;
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.toggle-switch.on {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.35);
}

.toggle-switch.off {
    background: #E5E7EB;
}

.toggle-knob {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-switch.on .toggle-knob {
    transform: translateX(22px);
}

.about-page-content {
    padding: 24px 20px;
    text-align: center;
}

.app-logo-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 800;
}

.app-name-large {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.app-version-text {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
}

.about-info-list {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.about-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.about-info-item:last-child {
    border-bottom: none;
}

.about-info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.copyright-text {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .app-container {
        flex-direction: column;
    }

    .page-nav {
        width: 100%;
        position: static;
        order: 2;
    }

    .phone-frame {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* ========== 文章详情页 - 现代化自然风格 ========== */
.article-detail-page {
    background: #FAFBFC !important;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 140px;
}

.article-cover-section {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, #E8EDF5 0%, #F5F7FA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -40px;
    overflow: hidden;
}

.article-cover-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.06) 0%, transparent 50%);
}

.cover-icon-wrapper {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.cover-icon-large {
    width: 40px;
    height: 40px;
    fill: #6366F1;
}

.article-main-card {
    background: white;
    margin: 0 16px 24px;
    border-radius: 12px;
    padding: 24px 20px 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.article-title-modern {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.4;
    margin-bottom: 18px;
    letter-spacing: -0.2px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.author-info-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar-small {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.author-details-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.publish-time-text {
    font-size: 12px;
    color: #9CA3AF;
}

.read-count-badge {
    font-size: 12px;
    color: #6B7280;
    background: #F9FAFB;
    padding: 5px 12px;
    border-radius: 14px;
    border: 1px solid #E5E7EB;
}

.article-tags-row {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.tag-item-article {
    font-size: 12px;
    color: #6366F1;
    background: #EEF2FF;
    padding: 5px 13px;
    border-radius: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-item-article:hover {
    background: #E0E7FF;
}

.article-body-modern {
    color: #4B5563;
    line-height: 1.85;
    font-size: 15.5px;
}

.body-paragraph-modern {
    margin-bottom: 20px;
    text-align: justify;
    color: #374151;
}

.section-heading-modern {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    margin: 30px 0 16px;
    padding-left: 14px;
    border-left: 3.5px solid #6366F1;
    line-height: 1.4;
}

.highlight-box-modern {
    background: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 100%);
    padding: 18px 20px;
    border-radius: 10px;
    margin: 22px 0;
    border-left: 4px solid #6366F1;
    position: relative;
}

.highlight-text-modern {
    font-size: 14.5px;
    color: #4B5563;
    line-height: 1.75;
    font-style: normal;
}

.bottom-action-bar-fixed {
    position: absolute;
    bottom: 64px;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--border-light);
    z-index: 99;
}

.action-button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 16px;
    transition: all 0.25s ease;
}

.action-button-item:hover {
    transform: scale(1.05);
}

.action-button-item span {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.action-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-tertiary);
    transition: fill 0.25s ease;
}

.action-button-item:hover .action-icon,
.action-button-item:hover span {
    fill: var(--primary);
    color: var(--primary);
}

/* ========== 关于我们页面 - 现代化设计 ========== */
.about-page-modern {
    background: #F8FAFC !important;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 20px;
}

.about-hero-section {
    padding: 24px 20px 32px;
    background: linear-gradient(180deg, #EEF2FF 0%, #F8FAFC 100%);
}

.about-brand-card {
    text-align: center;
}

.brand-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.brand-logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
    position: relative;
    z-index: 2;
}

.brand-glow-effect {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    border-radius: 22px;
    filter: blur(12px);
    z-index: 1;
}

.brand-app-name {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 20px;
}

.version-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.version-label {
    font-size: 13px;
    color: #9CA3AF;
}

.version-number {
    font-size: 14px;
    font-weight: 600;
    color: #6366F1;
}

.about-section-block {
    padding: 0 16px;
    margin-bottom: 28px;
}

.section-title-modern {
    font-size: 17px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 14px;
    padding-left: 2px;
}

.info-list-modern {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.info-item-modern {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #F3F4F6;
    transition: all 0.25s ease;
    cursor: pointer;
}

.info-item-modern:last-child {
    border-bottom: none;
}

.info-item-modern:hover {
    background: #FAFBFC;
}

.info-item-modern:active {
    transform: scale(0.98);
}

.info-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.info-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.info-icon-blue {
    background: #EEF2FF;
    color: #6366F1;
}

.info-icon-purple {
    background: #F5F3FF;
    color: #8B5CF6;
}

.info-icon-green {
    background: #ECFDF5;
    color: #059669;
}

.info-icon-orange {
    background: #FFF7ED;
    color: #EA580C;
}

.info-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-title-text {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

.info-subtitle-text {
    font-size: 12.5px;
    color: #9CA3AF;
}

.update-status-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 8px;
}

.up-to-date {
    background: #ECFDF5;
    color: #059669;
}

.about-contact-block {
    padding: 0 16px;
    margin-bottom: 28px;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-item-card {
    background: white;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.contact-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.contact-icon-circle svg {
    width: 22px;
    height: 22px;
}

.contact-icon-phone {
    background: #DBEAFE;
    color: #2563EB;
}

.contact-icon-email {
    background: #FCE7F3;
    color: #DB2777;
}

.contact-info-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-label {
    font-size: 12px;
    color: #9CA3AF;
}

.contact-value {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.copyright-footer-modern {
    text-align: center;
    padding: 28px 20px 20px;
}

.copyright-main-text {
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.copyright-sub-text {
    font-size: 11.5px;
    color: #D1D5DB;
}


/* ========== 系统设置页面 - 现代化设计 ========== */
.settings-page-modern {
    background: #F8FAFC !important;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    padding-bottom: 30px;
}

.settings-user-card {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    margin: 16px;
    padding: 24px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.user-avatar-large-settings {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-info-settings {
    flex: 1;
}

.user-name-settings {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 3px;
}

.user-id-settings {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

.edit-profile-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.edit-profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.settings-section-modern {
    padding: 0 16px;
    margin-bottom: 24px;
}

.settings-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #6B7280;
    margin-bottom: 10px;
    padding-left: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-group-modern {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.setting-row-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    border-bottom: 1px solid #F9FAFB;
    transition: all 0.25s ease;
}

.setting-row-modern:last-child {
    border-bottom: none;
}

.setting-row-modern.clickable-row {
    cursor: pointer;
}

.setting-row-modern.clickable-row:hover {
    background: #FAFBFC;
}

.setting-left-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.setting-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setting-icon-circle svg {
    width: 19px;
    height: 19px;
}

.icon-blue { background: #EEF2FF; color: #6366F1; }
.icon-orange { background: #FFF7ED; color: #EA580C; }
.icon-green { background: #ECFDF5; color: #059669; }
.icon-purple { background: #F5F3FF; color: #8B5CF6; }
.icon-red { background: #FEF2F2; color: #DC2626; }
.icon-indigo { background: #EEF2FF; color: #4F46E5; }
.icon-yellow { background: #FEFCE8; color: #CA8A04; }
.icon-teal { background: #F0FDFA; color: #0D9488; }
.icon-pink { background: #FDF2F8; color: #BE185D; }

.setting-text-col {
    flex: 1;
    min-width: 0;
}

.setting-name-modern {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
}

.setting-desc-modern {
    display: block;
    font-size: 12.5px;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle-switch-modern {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 27px;
    flex-shrink: 0;
}

.toggle-switch-modern input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E7EB;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 27px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 21px;
    width: 21px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

input:checked + .toggle-slider:before {
    transform: translateX(21px);
}

.current-value-badge {
    font-size: 12.5px;
    font-weight: 500;
    color: #6B7280;
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 12px;
    margin-right: 6px;
}

.storage-card-modern {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.storage-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.storage-title-text {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.storage-size-text {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 500;
}

.progress-bar-modern {
    width: 100%;
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
}

.progress-fill-modern {
    height: 100%;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.storage-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.storage-item-stat {
    text-align: center;
    padding: 12px 8px;
    background: #F9FAFB;
    border-radius: 10px;
}

.stat-label {
    display: block;
    font-size: 11.5px;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.clear-cache-btn {
    width: 100%;
    background: #F3F4F6;
    border: none;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.clear-cache-btn:hover {
    background: #E5E7EB;
    color: #374151;
}

.app-version-card-modern {
    background: white;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.version-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-logo-mini {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.version-details-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-name-ver {
    font-size: 15px;
    font-weight: 700;
    color: #1F2937;
}

.ver-number-text {
    font-size: 12.5px;
    color: #9CA3AF;
}

.check-update-btn-modern {
    background: #EEF2FF;
    border: none;
    color: #6366F1;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.check-update-btn-modern:hover {
    background: #E0E7FF;
}

.logout-btn-modern {
    width: calc(100% - 32px);
    margin: 0 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    font-size: 15px;
    font-weight: 600;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.logout-btn-modern:hover {
    background: #FEE2E2;
    border-color: #FCA5A5;
}

.logout-icon-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}