/* 基础样式 */
:root {
    --primary-color: #598dd3;
    --secondary-color: #98b54c;
    --accent-color: #f3c642;
    --accent-color-2: #e08d2e;
    --accent-color-3: #d44232;
    --text-color: #333;
    --text-light: #666;
    --background-color: #fff;
    --background-light: #f5f5f5;
    --border-color: #ddd;
    --border-radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #4a7ab8;
}

.hidden {
    display: none !important;
}

/* 开屏动画 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.6s ease-out;
}

.color-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.color-block {
    position: absolute;
    width: 20%;
    height: 100%;
    transform: translateX(100vw);
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
}

.color-block.red { background: #d44232; }
.color-block.orange { background: #e08d2e; }
.color-block.yellow { background: #f3c642; }
.color-block.green { background: #98b54c; }
.color-block.blue { background: #598dd3; }

.color-block.active {
    transform: translateX(0);
}

/* 设置每个彩色块的初始位置和z-index */
.color-block:nth-child(1) { left: 0; z-index: 1; }
.color-block:nth-child(2) { left: 20%; z-index: 2; }
.color-block:nth-child(3) { left: 40%; z-index: 3; }
.color-block:nth-child(4) { left: 60%; z-index: 4; }
.color-block:nth-child(5) { left: 80%; z-index: 5; }

.splash-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.splash-text.active {
    opacity: 1;
}

.splash-title {
    font-size: 5rem;
    font-weight: bold;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.text-container {
    overflow: hidden;
}

/* 主内容 */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

.logo-corner {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.logo-corner img {
    height: 60px;
    width: auto;
}

/* 倒计时 */
.countdown-container {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: center;
}

.countdown-title {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.countdown {
    display: flex;
    gap: 8px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    width: 40px;
    height: 40px;
    background-color: var(--background-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
}

.countdown-label {
    font-size: 0.8rem;
    margin-top: 4px;
}

/* 内容容器 */
.content-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 首页 */
.home-screen {
    text-align: center;
}

.logo-main {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

.logo-main img {
    max-width: 1080px;
    max-height: 180px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.deadline-notice {
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn svg {
    margin-right: 6px;
}

.btn-primary {
    background-color:#000000;
    color: white;
}

.btn-primary:hover {
    background-color: #4a7ab8;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--background-light);
}

.btn-text {
    background-color: transparent;
    color: var(--text-light);
    padding: 5px 10px;
}

.btn-text:hover {
    color: var(--text-color);
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9rem;
}

/* 卡片 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 150%;
    max-width: 600px;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

/* 表单 */
.form-section {
    margin-bottom: 30px;
}

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

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(89, 141, 211, 0.2);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input[type="radio"] {
    margin-right: 5px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 作品上传 */
.works-preview {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    min-height: 80px;
}

.works-preview.empty {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 0;
}

.upload-placeholder {
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
}

.upload-icon {
    margin-bottom: 10px;
}

.work-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
}

.work-thumbnail.active {
    border-color: var(--primary-color);
}

.work-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-work {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.current-work-details {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
}

.work-preview {
    margin-bottom: 15px;
    text-align: center;
}

.work-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
}

/* 成功消息 */
.success-message {
    text-align: center;
    padding: 40px;
}

.success-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* 页脚 */
.footer {
    padding: 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: none;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: black;
    color: white;
    max-width: 800px;
    margin: 30px auto;
    border-radius: var(--border-radius);
    position: relative;
    padding: 30px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.modal-body {
    margin-top: 20px;
}

.modal-body section {
    margin-bottom: 25px;
}

.modal-body h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.modal-body ul, 
.modal-body ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.modal-body li {
    margin-bottom: 5px;
}

/* 警告框 */
.alert {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .splash-title { font-size: 2rem; }
    
    .logo-corner img {
        height: 40px;
    }
    
    .countdown-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .card {
        max-width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
    }
    .logo-main img {
        max-width: 100%;
        max-height: 250px;
    }
    .logo-main {
        margin-top: 24px;
        margin-bottom: 24px;
    }
}

.homepage-countdown {
    margin-bottom: 32px;
    text-align: center;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    z-index: 1;
}
.homepage-countdown .countdown-title {
    font-size: 2.0rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}
.homepage-countdown .countdown {
    justify-content: center;
    gap: 16px;
}
.homepage-countdown .countdown-number {
    font-size: 2rem;
    width: 56px;
    height: 56px;
}
.countdown-number, .countdown-title {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .homepage-countdown .countdown-number {
        font-size: 1.2rem;
        width: 36px;
        height: 36px;
    }
    .homepage-countdown {
        margin-bottom: 18px;
    }
}