body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
    max-width: 100vw;
}

/* 页面宽度控制 */
.container {
    max-width: 1200px !important;
}

/* 针对大屏幕进一步限制宽度 */
@media (min-width: 1400px) {
    .container {
        max-width: 1100px !important;
    }
}

/* 主要内容区域宽度优化 - 更温和的限制 */
main .container {
    max-width: 1100px !important;
}

/* Hero区域标题宽度控制 */
#hero h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* 图表容器宽度优化 */
.bi-chart-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 数据表格宽度控制 */
.overflow-x-auto table {
    max-width: 900px;
    margin: 0 auto;
}

/* 精确的宽度控制 - 使用自定义类 */
.content-width {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 针对大屏幕的进一步优化 */
@media (min-width: 1400px) {
    .content-width {
        max-width: 1100px;
    }
}

/* 为3列网格提供更宽的空间 */
.content-width-wide {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .content-width-wide {
        max-width: 1200px;
    }
}

.chart-container {
    position: relative;
    margin: auto;
    height: 40vh;
    width: 100%;
    max-width: 500px;
}

.bi-chart-container {
     position: relative;
     width: 100%;
     height: 500px; /* Adjusted height for better visibility */
}

.kpi-card h3 {
    transition: color 0.3s ease;
}

.kpi-card:hover h3 {
    color: #1e40af; /* Deeper blue on hover */
}

.smooth-scroll {
    scroll-behavior: smooth;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .chart-container {
        height: 30vh;
    }
    
    .bi-chart-container {
        height: 400px;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 3rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* 卡片悬停效果增强 */
.shadow-md {
    transition: all 0.3s ease;
}

.shadow-md:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 按钮样式优化 */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* 渐变背景优化 */
.bg-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 文字渐变效果 */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 数据卡片特殊样式 */
.data-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.data-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 表格样式优化 */
table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

table thead tr {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

table tbody tr:hover {
    background-color: #e0f2fe;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* 图标动画 */
.icon-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* 波纹点击效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 按钮容器相对定位 */
button, .bg-blue-600 {
    position: relative;
    overflow: hidden;
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* 增强的卡片阴影效果 */
.enhanced-shadow {
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(59, 130, 246, 0.05);
}

.enhanced-shadow:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* 数据高亮效果 */
.highlight-number {
    position: relative;
    display: inline-block;
}

.highlight-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.highlight-number:hover::after {
    transform: scaleX(1);
}

/* 移动端优化 */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .text-4xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
        line-height: 1;
    }
    
    .grid {
        gap: 1rem;
    }
    
    .p-8 {
        padding: 1.5rem;
    }
}

/* 平板端优化 */
@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .content-width {
        max-width: 100%;
    }
    
    .content-width-wide {
        max-width: 100%;
    }
}

/* 加载动画 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* 焦点状态优化 */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .shadow-md,
    .shadow-lg,
    .shadow-xl {
        box-shadow: none !important;
        border: 1px solid #e5e7eb !important;
    }
}/* 
密码验证界面样式 */
#priceVerification {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

#pricePassword {
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

#pricePassword:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

#pricePassword.border-red-500 {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 价格显示动画 */
#priceAmount, #unitPrice {
    transition: all 0.5s ease;
}

/* 锁定图标动画 */
.lock-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 验证成功动画 */
.price-reveal {
    animation: priceReveal 0.8s ease-out;
}

@keyframes priceReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 错误消息样式 */
#errorMessage {
    animation: fadeInUp 0.3s ease-out;
}

/* 响应式优化 */
@media (max-width: 640px) {
    #priceVerification {
        margin: 0 1rem;
        padding: 2rem 1.5rem;
    }
    
    #pricePassword {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 联系弹窗样式 */
#contactModal {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
    z-index: 9999 !important;
}

#contactModal > div {
    animation: slideInUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 微信号复制按钮动画 */
#contactModal button {
    transition: all 0.3s ease;
}

#contactModal button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 联系信息卡片样式 */
#contactModal .bg-white {
    transition: all 0.2s ease;
}

#contactModal .bg-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 关闭按钮样式 */
#contactModal .absolute {
    transition: all 0.2s ease;
}

#contactModal .absolute:hover {
    transform: rotate(90deg);
    background-color: #f3f4f6;
    border-radius: 50%;
}

/* 星号价格样式 */
.price-masked {
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    color: #e5e7eb;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}