@charset "UTF-8";
/* 全局样式重置 */
:root {
  --primary-color: #3498db;
  --secondary-color: #2980b9;
  --accent-color: #e74c3c;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --content-width: 68vw;
  --body-text-size: clamp(0.9rem, 1.1vw, 2.2rem);
  --body-line-height: 1.75;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
/*2025年6月21日16:20:48 */
body {
    margin: 0;
    padding: 0;
    padding-bottom: clamp(30px, 5vh, 90px);
    font-family: Arial, sans-serif;
    background-color: #f8fafc;
  }

/*以下为头部设置*/
.header {
      background-color: #2989d8;
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: clamp(12px, 2.5vh, 54px) clamp(20px, 3vw, 64px);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 添加阴影增强悬浮效果 */
      position: sticky; /* 关键属性 */
      top: 0; /* 固定在顶部 */
      z-index: 1000; /* 确保在其他内容之上 */
      transition: background-color 0.3s ease; /* 可选：添加过渡效果 */
    }
    .header:hover {
      background-color: #1a69a4;
    }

.logo-container {
      display: flex;
      align-items: center;
    }

    .logo {
      width: clamp(28px, 3.8vh, 65px);
      height: clamp(28px, 3.8vh, 65px);
      margin-right: clamp(6px, 0.8vw, 16px);
      transition: transform 0.3s ease;
    }
    .logo:hover {
      transform: rotate(15deg);
    }
    .logo-text {
      font-size: clamp(16px, 2.3vh, 50px);
      font-weight: bold;
    }
    .logo-text_2 {
      font-size: clamp(12px, 1.6vh, 35px);
      font-weight: bold;
      white-space: nowrap;
    }

.nav {
      margin-top: clamp(6px, 1.2vh, 26px);
    }
    .nav-list {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      flex-wrap: wrap;
    }
    .nav-item {
      margin-right: clamp(8px, 1vw, 24px);
      margin-bottom: 5px;
    }
    .nav-link {
      color: white;
      text-decoration: none;
      font-size: clamp(14px, 1.6vh, 32px);
      padding: clamp(4px, 0.8vh, 18px) clamp(8px, 1vw, 20px);
      border-radius: 4px;
      transition: all 0.3s;
      display: inline-block;
      white-space: nowrap;
    }
    .nav-link:hover {
      background-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-1px);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    .active {
      background-color: rgba(255, 255, 255, 0.2);
      font-weight: 500;
    }
/* 2025年6月21日16:23:07 ↑*/

/*2025年6月21日16:23:45 ↓*/
/* 底部样式 */
#bottom {
    background-color: #2989d8;
    color: #ccc7d5;
    font-size: clamp(10px, 1.5vh, 32px);
    padding: clamp(5px, 1.2vh, 26px) 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: background-color 0.3s ease;
}

#bottom:hover {
    background-color: #1a69a4;
}

/* 打印时取消固定定位 */
@media print {
    .header, #bottom { position: static; }
}

/* 表格 */
.submit-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: var(--content-width);
    max-width: none;
    margin: 0 auto;
    padding: clamp(16px, 1.5vw, 48px) 0;
}

.submit-form-wrapper {
    width: 100%;
    max-width: none;
    background-color: white;
    padding: clamp(16px, 2vw, 60px);
    border-radius: clamp(8px, 0.8vw, 20px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.submit-description {
    width: 100%;
    margin: 0 0 clamp(18px, 1.6vw, 40px);
    color: var(--dark-color);
    font-size: var(--body-text-size);
    line-height: var(--body-line-height);
}

.form-group {
    margin-top: clamp(12px, 1.2vw, 36px);
    margin-bottom: clamp(12px, 1.2vw, 36px);
}

.form-label {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: clamp(8px, 0.7vw, 20px);
    font-size: clamp(15px, 1.1vw, 32px);
}

input[type='text'],
input[type="email"],
textarea {
    width: 100%;
    padding: clamp(12px, 1vw, 32px) clamp(16px, 1.5vw, 44px);
    border: 2px solid #e2e8f0;
    border-radius: clamp(6px, 0.6vw, 16px);
    font-size: clamp(15px, 1.1vw, 34px);
    transition: all 0.3s ease;
    background-color: #f8fafc;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-upload-wrapper {
    position: relative;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.8vw, 24px);
}

.file-upload-label {
    display: inline-flex;
    align-items: center;
    padding: clamp(8px, 0.7vw, 22px) clamp(16px, 1.4vw, 40px);
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: clamp(5px, 0.5vw, 14px);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(52, 152, 219, 0.3);
}

.file-upload-label:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(52, 152, 219, 0.4);
}

/* 专门为文本区域设置 */
textarea {
    min-height: 50px;
    resize: vertical;
    font-family: inherit;
}

input[type="file"] {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 0;
    height: 0;
}

.selected-file {
    color: #ef4444;
    margin-top: 0.5rem;
    font-size: clamp(13px, 0.8vw, 24px);
}

.selected-file.no-file {
    color: #ef4444; /* 红色 */
    font-weight: 500;
}

.selected-file.has-file {
    color: #10b981;
    font-weight: 500;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 0.8vw, 26px) clamp(20px, 1.6vw, 48px);
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: clamp(6px, 0.6vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.35);
    position: relative;
    overflow: hidden;
}

.submit-button:hover:not(:disabled) {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.45);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 错误信息 */
.error-message {
    color: #ef4444;
    font-size: clamp(12px, 0.8vw, 24px);
    margin-top: 0.25rem;
    display: block;
}

/* 模板格式 */

.template-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.template-link:hover {
    color: var(--secondary-color);
}
