<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>获奖证书</title>
    <style>
        @page {
            size: A4 landscape;
            margin: 0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: "SimSun", "STSong", serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .certificate {
            width: 297mm;
            height: 210mm;
            background: white;
            padding: 40mm;
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
            position: relative;
            border: 15px solid #d4af37;
            border-radius: 10px;
        }

        .certificate::before {
            content: '';
            position: absolute;
            top: 25mm;
            left: 25mm;
            right: 25mm;
            bottom: 25mm;
            border: 3px solid #d4af37;
            border-radius: 5px;
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
        }

        .title {
            font-size: 48px;
            font-weight: bold;
            color: #d4af37;
            letter-spacing: 10px;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        }

        .subtitle {
            font-size: 20px;
            color: #666;
            letter-spacing: 3px;
        }

        .content {
            margin: 40px 0;
            line-height: 2.5;
            font-size: 24px;
            text-align: center;
            color: #333;
        }

        .content .name {
            font-size: 36px;
            font-weight: bold;
            color: #d4af37;
            border-bottom: 2px solid #d4af37;
            padding: 0 20px;
            margin: 0 10px;
            display: inline-block;
        }

        .content .project {
            font-size: 28px;
            font-weight: bold;
            color: #333;
            margin: 0 10px;
        }

        .content .medal {
            font-size: 32px;
            font-weight: bold;
            color: #c41e3a;
            margin: 0 10px;
        }

        .medal.gold {
            color: #ffd700;
            text-shadow: 2px 2px 4px rgba(255, 215, 0, 0.5);
        }

        .medal.silver {
            color: #c0c0c0;
            text-shadow: 2px 2px 4px rgba(192, 192, 192, 0.5);
        }

        .medal.bronze {
            color: #cd7f32;
            text-shadow: 2px 2px 4px rgba(205, 127, 50, 0.5);
        }

        .footer {
            margin-top: 50px;
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            font-size: 18px;
            color: #666;
        }

        .organization {
            text-align: left;
        }

        .date {
            text-align: right;
        }

        .seal {
            width: 120px;
            height: 120px;
            border: 3px solid #d4af37;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 20px auto;
            font-size: 14px;
            color: #d4af37;
            font-weight: bold;
            transform: rotate(-15deg);
        }

        @media print {
            body {
                background: white;
                padding: 0;
            }

            .certificate {
                box-shadow: none;
                page-break-after: always;
            }
        }
    </style>
</head>
<body>
<div class="certificate">
    <div class="header">
        <div class="title">荣誉证书</div>
        <div class="subtitle">CERTIFICATE OF HONOR</div>
    </div>

    <div class="content">
        <p>兹证明</p>
        <p style="margin: 20px 0;">
            <span class="name">${playerName}</span>
        </p>
        <p>
            在 <strong>${competitionName}</strong> 比赛中
        </p>
        <p style="margin: 20px 0;">
            参加 <span class="project">${projectName}</span> 项目
        </p>
        <p>
            获得 <span class="medal ${medalClass}">${medalName}</span>
        </p>
        <p style="margin-top: 30px; font-size: 20px;">
            特发此证，以资鼓励
        </p>
    </div>

    <div class="footer">
        <div class="organization">
            <p>颁发单位：${organization}</p>
        </div>
        <div class="date">
            <p>颁发日期：${issueDate}</p>
        </div>
    </div>
</div>
</body>
</html>
