<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>KaTeX示例</title>
    <link rel="icon" href="/static/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="/static/katex/katex.min.css">
    <script defer src="/static/katex/katex.min.js"></script>
    <script defer src="/static/katex/contrib/auto-render.min.js"></script>
    <script src="/static/js/html2pdf.bundle.min.js"></script>
    <link rel="stylesheet" href="/static/css/style.css">
</head>

<body>

    <div class="content-container">
        <div class="formula">
            <h3 onclick="toggleFormula(this)">转化风速：▶</h3>
            <div class="content" style="display: none;">
                $U_{10} = U_a \times \left(\frac{10}{a}\right)^n$
                <ul>
                    <li class="parameter"><strong>$U_{10}$</strong>：转化风速，单位为米每秒（m/s）</li>
                    <li class="parameter"><strong>$U_a$</strong>：实际测点风速，单位为米每秒（m/s）</li>
                    <li class="parameter"><strong>$n$</strong>：风廓系数</li>
                    <li class="parameter"><strong>$a$</strong>：实际测点高度，单位为米（m）</li>
                </ul>
            </div>
        </div>

        <div class="formula">
            <h3 onclick="toggleFormula(this)">太阳高度角计算公式：▶</h3>
            <div class="content" style="display: none;">
              <p>$h_0=\arcsin[\sin\phi\sin\sigma+\cos\phi\cos\sigma\cos(15t+\lambda-300+E_Q/4)]$</p>
              
              <p>参数说明：</p>
              <ul>
                  <li class="parameter"><strong>$h_0$</strong>：太阳高度角，单位为度（°）</li>
                  <li class="parameter"><strong>$\phi$</strong>：当地地理纬度，单位为度（°）</li>
                  <li class="parameter"><strong>$\lambda$</strong>：当地地理经度，单位为度（°）</li>
                  <li class="parameter"><strong>$t$</strong>：观测时的北京时间，单位为小时（h）</li>
                  <li class="parameter"><strong>$\sigma$</strong>：太阳倾角，单位为度（°）</li>
                  <li class="parameter"><strong>$E_Q$</strong>：时差，单位为小时（min）</li>
              </ul>
            </div>
        </div>
        
        <div class="formula">
          <h3 onclick="toggleFormula(this)">日角计算公式：▶</h3>
          <div class="content" style="display: none;">
            <p>$\theta=\frac{2 \pi \times (N+△N-N_0)}{365.2422}$</p>
            
            <p>参数说明：</p>
            <ul>
                <li class="parameter"><strong>$\theta$</strong>：日角，单位：弧度</li>
                <li class="parameter"><strong>$365.2422$</strong>：平均回归年，单位：天</li>
                <li class="parameter"><strong>$N$</strong>：积日，单位：天；范围：0～365</li>
                <li class="parameter"><strong>$\triangle N$</strong>：积日订正值，单位：天</li>
                <li class="parameter"><strong>$N_0$</strong>：年份相关的积日订正值，单位：天</li>
            </ul>
          </div>
        </div>

        <div class="formula">
          <h3 onclick="toggleFormula(this)">太阳倾角计算公式：▶</h3>
          <div class="content" style="display: none;">
            <p>$\sigma=0.3723+23.2567 \sin \theta+0.1149 \sin 2\theta−0.1712 \sin 3\theta-0.7580 \cos \theta+0.3656 \cos2\theta+0.0201 \cos3\theta$</p>
            
            <p>参数说明：</p>
            <ul>
                <li class="parameter"><strong>$\sigma$</strong>：太阳倾角, 单位：角度</li>
                <li class="parameter"><strong>$\theta$</strong>：算法如上, 单位：弧度</li>
            </ul>
          </div>
        </div>

        <div>
            <div id="detailsContainer" style="margin-top: 20px; display: none;">
                <h2>详细信息</h2>
                <div id="detailsTable">
                    <!-- 详细信息将在这里显示 -->
                </div>
                
                <button id="downloadBtn">下载PDF</button>
            </div>
        </div>
    </div>

    <div class="notification" id="notification"></div>

    <script src="/static/js/afterbody.js"></script>

    <footer>
        <p class="version">版本号: </p>
    </footer>
</body>

</html>
