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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
.site-header {
    background-color: #1a365d;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: block;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.main-nav ul li {
    margin-left: 2rem;
}

.lang-selector {
    display: flex;
    align-items: center;
}

.lang-selector select {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 4px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.75rem;
    font-size: inherit;
}

.lang-selector select:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-selector select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

.lang-selector select option {
    background-color: #1a365d;
    color: white;
    padding: 0.5rem 1rem;
}

/* 英雄区域样式 */
.hero-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom, #1a365d, #2a4a7f);
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 主要内容区域 */
.main-content {
    flex: 1 0 auto;
    max-width: 81.25rem;
    margin: 0 auto;
    padding: 1rem 2rem;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

.container {
    width: 100%;
    padding: 0.5rem 0;
}

/* 表单区域样式 */
.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h2 {
    color: #1a365d;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.notification {
    background-color: #ebf8ff;
    border-left: 4px solid #4299e1;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.notification p {
    margin: 0.75rem 0;
    color: #4a5568;
    font-size: 1.05rem;
}

.notification .fas {
    color: #4299e1;
}

/* 表单元素样式 */
form {
    display: grid;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group:last-child {
    margin-bottom: 0;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    height: 3rem;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231a365d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.inline-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #1a365d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

button:hover {
    background-color: #2a4a7f;
}

input[type="submit"] {
    background-color: #1a365d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    width: auto;
    justify-self: start;
    height: 3rem;
    font-size: 1.05rem;
}

input[type="submit"]:hover {
    background-color: #2a4a7f;
}

input[type="submit"]:disabled {
    background-color: #718096;
    cursor: not-allowed;
}

.checkbox-group {
    display: grid;
    gap: 1.25rem;
    padding: 1.25rem;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.checkbox-group p {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-group label {
    margin-bottom: 0;
    min-width: 80px;
    font-size: 1.05rem;
}

/* 表单组样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.selected-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    color: #4a5568;
    font-size: 1.05rem;
    margin: 1.5rem 0;
}

.log-link {
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

.log-link a {
    color: #1a365d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.log-link a:hover {
    text-decoration: underline;
}

/* 图标样式 */
.fas {
    margin-right: 0.5rem;
    color: #1a365d;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }

    .inline-group {
        flex-direction: column;
    }

    .inline-group input,
    .inline-group button {
        width: 100%;
    }

    .checkbox-group p {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .selected-info {
        text-align: center;
    }
}

/* 页脚样式 */
.site-footer {
    background-color: #1a365d;
    color: white;
    padding: 1rem 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.site-footer a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-footer a:hover {
    border-bottom-color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-nav ul {
        gap: 1rem;
    }
}

.cf-turnstile {
    margin: 1rem 0;
    min-height: 65px;
    display: flex;
    justify-content: center;
}

.cf-turnstile iframe {
    width: 100% !important;
}

/* 公告弹窗样式 */
.announcement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.announcement-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.announcement-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    animation: announcementSlideIn 0.3s ease-out;
}

@keyframes announcementSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.announcement-title {
    margin: 0;
    color: #1a365d;
    font-size: 1.75rem;
    font-weight: 600;
}

.announcement-close {
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #a0aec0;
    cursor: pointer;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.announcement-close:hover {
    background-color: #f7fafc;
    color: #4a5568;
}

.announcement-content {
    padding: 2rem 2.5rem;
}

.announcement-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.announcement-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.announcement-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4a5568;
    white-space: pre-line;
    word-wrap: break-word;
}

.announcement-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 2rem 1.5rem;
    justify-content: flex-end;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #3182ce;
}

.btn-secondary {
    background-color: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #cbd5e0;
}

/* 导航栏中的公告按钮 */
.announcement-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.announcement-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.announcement-btn i {
    color: #ffffff;
    font-size: 1.1rem;
}

/* 备用显示 - 当Font Awesome图标不可用时显示emoji */
.announcement-btn-fallback {
    display: none;
    font-size: 1.1rem;
}

/* 当Font Awesome加载失败时，隐藏图标并显示emoji */
.announcement-btn i.fa-bullhorn::before {
    content: "\f0a1";
}

/* 如果Font Awesome样式不存在，显示备用内容 */
@supports not (font-family: "Font Awesome 6 Free") {
    .announcement-btn i {
        display: none;
    }
    .announcement-btn-fallback {
        display: inline;
    }
}

/* 当图标无法加载时的回退方案 */
.announcement-btn i:empty + .announcement-btn-fallback {
    display: inline;
}

.announcement-btn i:empty {
    display: none;
}

/* 为公告按钮添加一个小的"通知"指示器 */
.announcement-btn::after {
    content: '';
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 6px;
    height: 6px;
    background-color: #f56565;
    border-radius: 50%;
    border: 1px solid white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .announcement-modal {
        margin: 0.5rem;
        width: calc(100% - 1rem);
        max-height: calc(100vh - 1rem);
        max-width: none;
    }
    
    .announcement-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .announcement-title {
        font-size: 1.4rem;
    }
    
    .announcement-close {
        width: 2rem;
        height: 2rem;
        font-size: 1.8rem;
    }
    
    .announcement-content {
        padding: 1.5rem;
    }
    
    .announcement-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .carousel-item img {
        max-height: 250px;
    }
    
    .carousel-controls {
        padding: 0 0.5rem;
        margin-top: 0.75rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .announcement-actions {
        padding: 0.75rem 1.5rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .main-nav .announcement-btn {
        padding: 0.4rem;
        font-size: 1.1rem;
        min-width: 2.2rem;
        height: 2.2rem;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.4);
    }
    
    .main-nav .announcement-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    
    .main-nav .announcement-btn::after {
        top: 0.2rem;
        right: 0.2rem;
        width: 5px;
        height: 5px;
    }
}

/* 多图轮播样式 */
.announcement-images-carousel {
    margin-bottom: 1.5rem;
}

.carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-item {
    display: none;
    width: 100%;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
}

.carousel-btn {
    background: rgba(26, 54, 93, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(26, 54, 93, 1);
    transform: scale(1.1);
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background-color: #1a365d;
    transform: scale(1.2);
}

/* 优化公告文本显示 */
.announcement-text strong {
    color: #1a365d;
    font-weight: 600;
}

.announcement-text p {
    margin: 1rem 0;
}

.announcement-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.announcement-text li {
    margin: 0.5rem 0;
    list-style-type: none;
    position: relative;
}

.announcement-text li::before {
    content: "•";
    color: #1a365d;
    font-weight: bold;
    position: absolute;
    left: -1rem;
} 