/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 删除问卷页面样式 */
.confirm-delete-survey-page {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 60px - 80px);
    flex: 1;
}

.delete-survey-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.delete-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.delete-icon {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 3rem;
}

.delete-header {
    text-align: center;
    padding: 25px 30px 20px;
    background: #fff;
}

.delete-header h2 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.survey-title {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    padding: 8px 16px;
    background: #fdf2f2;
    border-radius: 8px;
    display: inline-block;
}

.delete-warning {
    padding: 0 30px 25px;
    background: #fff;
}

.warning-content h4 {
    color: #e74c3c;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-content p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.deletion-items {
    background: #fcf8f8;
    border: 1px solid #fadbd8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #e74c3c;
}

.item:last-child {
    margin-bottom: 0;
}

.item i {
    color: #e74c3c;
    font-size: 1.2rem;
    min-width: 24px;
    text-align: center;
}

.item span {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.final-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #856404;
}

.final-warning i {
    font-size: 1.1rem;
}

.delete-actions {
    background: #f8f9fa;
    padding: 25px 30px;
    border-top: 1px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    color: white;
    padding: 14px 28px;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

/* 响应式设计 - 删除问卷页面 */
@media (max-width: 768px) {
    .confirm-delete-survey-page {
        padding: 20px 0;
    }
    
    .delete-icon {
        padding: 20px 0;
        font-size: 2.5rem;
    }
    
    .delete-header h2 {
        font-size: 1.5rem;
    }
    
    .survey-title {
        font-size: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .deletion-items {
        padding: 15px;
    }
    
    .item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.delete-icon {
    animation: pulse 2s infinite;
}

/* Flash消息样式 */
.flash-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 图标字体样式 */
@font-face {
    font-family: 'exam-icons';
    src: url('data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZAAA0AAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlTNAAABbAAAABwAAAAca8vGTk9TLzIAAAGIAAAARAAAAFZF7GjRY21hcAAAAfQAAACsAAABYnDdBINjdnQgAAACrAAAAAQAAAAEACICkmZwZ20AAAKwAAABsQAAAmVTtC+nZ2FzcAAABOQAAAAIAAAACAAAABBnbHlmAAAE7AAABKoAAAVsalIqGGhlYWQAAAtcAAAALwAAADYP0h+yaGhlYQAAC5QAAAAcAAAAJApEBFZobXR4AAALtAAAAA4AAAAUC9QAAGxvY2EAAAvEAAAACAAAAAgArwLmbWF4cAAAC8gAAAAfAAAAIAEVAF5uYW1lAAAL6AAAAT4AAAKOczb+WXBvc3QAAAxgAAAAQQAAAFdMekZUeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMYwOEDv7/J/r/HyjGBsQMDAwVDAoMOxgNGI8wXmBaxviASYJJjSmFKZNpFdMKpjvMDOxgNgsDAxcDB4MggwSDAIMsgxyDIoMagyGDCYMtgxeDE4MPQyhDGEMMQwpDNkMRQxlDOUMTQytDO8MshnmMCxmXMW5gPMR4hvEG4xPGF0xvmD6wcLAIsCixWLK4sASxRLGksRSwtLGsYrnA8o7VhNWBNYQtji2drYptBdsWthvsQuwO7DHsOewN7HPYD3AocPhxFHAscNzkVOBM4izhbOI8wPmOS4PLhyuO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LGVQ6NT58ImVA5NDF9MmRS5dDk9KmQKZVDU9OnQ6ZVDs1Mnw2ZUTk0O30uZE7l0Nz0+ZB5lUML0xdCFlUOLU5fCllSObQ8fTlkWeXQyvSVkFWVQ2vTV0PWVA6tT18PWVc5tDF9I2RT5dDW9K2QbZVD29O3Q3ZUDu1O3wm5q3Lo3vS9kPsqhwaZHoQ8VDk0xPQo5JHKoWGmxyFPSB0anf4c8kzl0PPpLyEvVA69nP4a8krl0OvpbyFvVA69nf4e8k7l0PvpHyEfVA59nP4Z8knl0OfpryHfVA59n/4R8lPl0K/pPyF/VQ79mf4b8k/l0L/p/yH/agAA') format('woff');
}

.icon-user::before,
.icon-lock::before,
.icon-email::before,
.icon-google::before,
.icon-github::before {
    font-family: 'exam-icons';
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-user::before { content: "👤"; }
.icon-lock::before { content: "🔒"; }
.icon-email::before { content: "📧"; }
.icon-google::before { content: "G"; }
.icon-github::before { content: "GH"; }

/* 顶部固定菜单栏 - 固定高度置顶 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #2c3e50;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
    display: block;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: #34495e;
}

/* 下拉菜单样式 */
.navbar .dropdown .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c3e50 !important;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    list-style: none;
    margin: 8px 0 0 0;
    padding: 8px 0;
    z-index: 1001;
}

.navbar .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar .dropdown-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.navbar .dropdown-menu a {
    padding: 12px 20px;
    color: white !important;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    text-align: left;
    font-weight: 500;
}

.navbar .dropdown-menu a:hover {
    background-color: #34495e !important;
}

/* 中间内容区域 */
.content {
    flex: 1;
    margin-top: 60px; /* 为固定头部留出空间 */
    padding: 40px 0;
    min-height: calc(100vh - 60px - 80px); /* 减去头部和底部高度 */
}

/* 英雄区域 */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: 10px;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-secondary {
    background-color: #2ecc71;
    color: white;
    border: 2px solid #2ecc71;
}

.btn-secondary:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

/* 功能卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 底部版权信息 */
.footer {
    height: 80px;
    background: #34495e;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer p {
    text-align: center;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }
    
    .nav-menu ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #34495e;
        margin-top: 8px;
        border-radius: 0;
        min-width: auto;
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* 回答问卷页面样式 */
.take-survey-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.survey-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.survey-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.survey-info {
    color: #6c757d;
    font-size: 0.9rem;
}

.question-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.question-number {
    font-weight: bold;
    color: #495057;
    font-size: 1.1rem;
}

.question-type-badge {
    font-size: 0.8rem;
    padding: 0.25em 0.4em;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    color: #495057;
}

.required-star {
    color: #dc3545;
    margin-left: 4px;
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #212529;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
    display: block;
}

/* 单选题和多选题选项样式 */
.option-item {
    margin-bottom: 8px;
}

.option-item:last-child {
    margin-bottom: 0;
}

.option-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.option-letter {
    font-weight: bold;
    min-width: 24px;
    color: #495057;
}

/* 填空题样式 */
.fill-blank-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

/* 手写签名样式 */
.signature-container {
    margin-top: 10px;
}

.signature-canvas {
    border: 1px solid #ced4da;
    background: white;
    cursor: crosshair;
    width: 100%;
    height: 200px; /* 默认高度，可根据需要调整 */
}

.signature-actions {
    margin-top: 10px;
}

/* 提交按钮样式 */
.submit-button {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #0056b3;
}

/* 回答问卷页面响应式设计 */
@media (max-width: 768px) {
    .take-survey-page {
        padding: 15px 10px;
    }
    
    .survey-header h2 {
        font-size: 1.5rem;
    }
    
    .question-card {
        padding: 15px;
    }
    
    .submit-button {
        width: 100%;
        max-width: 200px;
    }
}

/* 姓名输入区域美化样式 */
.respondent-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.respondent-info .form-group {
    margin-bottom: 0;
}

.respondent-info label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-left: 4px;
    position: relative;
}

.respondent-info label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.respondent-info .form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
    border: 2px solid #ced4da;
    border-radius: 8px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.respondent-info .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.respondent-info .form-control::placeholder {
    color: #999;
    font-style: italic;
}

/* 响应式适配 */
@media (max-width: 576px) {
    .respondent-info {
        padding: 20px;
    }
    
    .respondent-info label {
        font-size: 1rem;
    }
    
    .respondent-info .form-control {
        padding: 12px 14px;
        font-size: 1rem;
    }
}
