    <style>
/* 添加在cal1.css文件的底部 */
/* 主内容容器 */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 使子元素水平居中 */
    padding: 20px;
    width: 100%;
}

/* 计算器包装容器 */
.calculator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 950px; /* 可以调整这个最大宽度 */
    width: 100%;
}

/* 计算器本身保持原有宽度 */
.calculator {
    width: 340px;
    /* 其他原有样式保持不变 */
}

/* 说明区域 - 宽度更大 */
.calculator-description {
    width: 100%;
    max-width: 900px; /* 比计算器宽的宽度 */
    margin-top: 30px;
    padding: 25px;
    background: #fffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    font-size: 15px;
    line-height: 1.6;
}

/* 标题样式 */
.calculator-description h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

/* 列表样式 */
.calculator-description ul {
    padding-left: 20px;
    margin: 15px 0;
}

/* 响应式调整 */
@media (max-width: 950px) {
    .calculator-description {
        max-width: 100%;
        padding: 15px;
    }
}

        * {
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        /* 重置布局结构 */
        body {
            margin: 0;
            padding: 0;
            background: #f0f2f5;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }
        
        /* Header容器 */
        .header-container {
            width: 100%;
        }
        
        /* 主内容区 */
        .main-content {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        /* 计算器样式保持不变 */
        .calculator {
            width: 340px;
            background: #ffffff;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .display-container {
            padding: 20px;
            background: #2c3e50;
            color: white;
            text-align: right;
        }
        
        .input-display {
            font-size: 18px;
            min-height: 24px;
            color: rgba(255, 255, 255, 0.7);
            word-wrap: break-word;
        }
        .result-display {
            font-size: 32px;
            font-weight: bold;
            margin-top: 10px;
            word-wrap: break-word;
        }
        .buttons {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            padding: 15px;
        }
        button {
            height: 60px;
            font-size: 18px;
            border: none;
            border-radius: 8px;
            background: #f8f9fa;
            cursor: pointer;
            transition: all 0.2s;
        }
        button:hover {
            background: #e9ecef;
        }
        button:active {
            transform: scale(0.95);
        }
        .function {
            background: #e3f2fd;
            color: #1976d2;
        }
        .operator {
            background: #fff3e0;
            color: #fb8c00;
        }
        .equals {
            background: #c8e6c9;
            color: #388e3c;
            grid-column: span 2;
        }
        .special {
            background: #f3e5f5;
            color: #8e24aa;
        }
        .clear {
            background: #ffebee;
            color: #d32f2f;
        }
        
        /* Footer容器 */
        .footer-container {
            width: 100%;
        }
    </style>