* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

/* 百度白皮书5.0 字体规范 - 适合老人阅读 */
body {
    font-size: 18px;
    line-height: 1.8;
}
p, li, span {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}
.text-sm {
    font-size: 16px !important;
}
.text-xs {
    font-size: 14px !important;
}
h1 {
    font-size: 32px;
    line-height: 1.4;
}
h2 {
    font-size: 26px;
    line-height: 1.4;
}
h3 {
    font-size: 22px;
    line-height: 1.4;
}
h4 {
    font-size: 20px;
    line-height: 1.4;
}

/* 颜色规范 */
.primary-blue {
    color: #1E88E5;
}
.bg-primary-blue {
    background-color: #1E88E5;
}
.border-primary-blue {
    border-color: #1E88E5;
}
.bg-light-blue {
    background-color: #E3F2FD;
}
.text-primary-green {
    color: #43A047;
}
.bg-primary-green {
    background-color: #43A047;
}
.text-primary {
    color: #2e7d32;
}
.bg-primary {
    background-color: #2e7d32;
}
.bg-light {
    background-color: #e8f5e9;
}

/* 行高限制 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* 按钮样式优化 */
.btn-primary {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1.4;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}
.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* 输入框样式 - 适合老人 */
input, select, textarea {
    font-size: 18px !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    border: 2px solid #e0e0e0 !important;
    transition: all 0.3s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1E88E5 !important;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}
label {
    font-size: 16px !important;
}

/* 百度白皮书5.0 加载优化 */
img {
    max-width: 100%;
    height: auto;
}

/* 移动端字体优化 - 更大更清晰 */
@media (max-width: 768px) {
    body {
        font-size: 17px;
        line-height: 1.8;
    }
    p, li, span {
        font-size: 16px;
        line-height: 1.8;
    }
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 20px;
    }
    h4 {
        font-size: 18px;
    }
    input, select, textarea {
        font-size: 17px !important;
        padding: 14px 16px !important;
    }
    .text-sm {
        font-size: 15px !important;
    }
    .text-xs {
        font-size: 14px !important;
    }
}

/* 保证可点击区域足够大 */
a, button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 间距优化 */
section {
    padding: 24px 0;
}
@media (max-width: 768px) {
    section {
        padding: 20px 0;
    }
}

/* 百度白皮书5.0：服务承诺区域 - 白色文字 */
.bg-primary-blue.text-white {
    color: white !important;
}
.bg-primary-blue.text-white svg {
    color: white !important;
    fill: none;
    stroke: white;
}
.bg-primary-blue.text-white span {
    color: white !important;
}

/* 立即购买按钮 - 白色文字 */
.bg-gradient-to-r.from-green-500.to-green-600.text-white,
.bg-gradient-to-r.from-green-600.to-green-700.text-white {
    color: white !important;
}
.bg-gradient-to-r.from-green-500.to-green-600.text-white svg,
.bg-gradient-to-r.from-green-600.to-green-700.text-white svg {
    color: white !important;
    fill: none;
    stroke: white;
}
.bg-gradient-to-r.from-green-500.to-green-600.text-white span,
.bg-gradient-to-r.from-green-600.to-green-700.text-white span {
    color: white !important;
}

/* 标签和按钮文字加粗 - 适合老人 */
.font-medium {
    font-weight: 600;
}
.font-semibold {
    font-weight: 600;
}
.font-bold {
    font-weight: 700;
}

/* 百度白皮书5.0：Header背景渐变 - 简洁导航 */
#main-header,
header#main-header {
    background: linear-gradient(to right, #f9fafb, #eff6ff) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 产品分类区域背景 */
section.py-8 {
    background-color: #f9fafb;
}

/* ========== 移动端Header优化 ========== */
#mobile-header {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 100%);
}

#mobile-header .bg-gradient-to-r {
    background-image: linear-gradient(to right, #1E88E5, #2563eb);
}

#mobile-header .bg-white {
    background-color: #ffffff;
}

/* 移动端菜单动画 */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

#mobile-menu.hidden {
    display: none;
}

/* 移动端菜单项 */
#mobile-menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

#mobile-menu a:hover {
    background-color: #f3f4f6;
}

#mobile-menu a.bg-blue-50 {
    background-color: #eff6ff;
}

/* 移动端服务承诺网格 */
#mobile-menu .grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

/* 汉堡菜单按钮 */
#menu-toggle {
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

#menu-toggle:hover {
    background-color: #f3f4f6;
}

#menu-toggle:active {
    background-color: #e5e7eb;
}

/* 移动端文字截断 */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 移动端flex优化 */
.flex-shrink-0 {
    flex-shrink: 0;
}

.overflow-hidden {
    overflow: hidden;
}

/* 移动端阴影 */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 移动端响应式服务承诺 */
@media (max-width: 768px) {
    #mobile-header .bg-gradient-to-r {
        padding: 8px 16px;
    }
    
    #mobile-header .space-x-4 > * + * {
        margin-left: 16px;
    }
    
    #mobile-header .text-xs {
        font-size: 12px;
    }
}

/* ========== 产品页专用样式 ========== */
.text-primary { color: #2e7d32; }
.bg-primary { background-color: #2e7d32; }
.border-primary { border-color: #2e7d32; }
.bg-light { background-color: #e8f5e9; }
.btn-primary {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1b5e20 0%, #003300 100%);
}
.package-selected {
    border-color: #2e7d32 !important;
    background-color: #e8f5e9;
}
