* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 配置提示页面 */
.config-prompt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.config-prompt h1 {
    font-size: 2.8em;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    letter-spacing: -1px;
}

.config-prompt a {
    color: #fff;
    text-decoration: underline;
    font-size: 1.2em;
}

/* 登录/注册/配置容器 */
.login-container,
.signup-container,
.config-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box,
.signup-box,
.config-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 500px;
    width: 100%;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-box:hover,
.signup-box:hover,
.config-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-box h2,
.signup-box h2,
.config-box h2 {
    margin-bottom: 35px;
    text-align: center;
    font-size: 2.2em;
    font-weight: 600;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    opacity: 0.9;
}

.form-group label .example {
    font-size: 0.85em;
    opacity: 0.7;
    font-weight: normal;
    font-style: italic;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:invalid {
    border-color: rgba(255, 107, 107, 0.5);
}

.form-group input:valid {
    border-color: rgba(81, 207, 102, 0.5);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(77, 171, 247, 0.6);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(77, 171, 247, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.8) 0%, rgba(77, 171, 247, 0.6) 100%);
    border: 1px solid rgba(77, 171, 247, 0.4);
    border-radius: 12px;
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, rgba(77, 171, 247, 1) 0%, rgba(77, 171, 247, 0.8) 100%);
    box-shadow: 0 6px 20px rgba(77, 171, 247, 0.5);
    transform: translateY(-2px);
    border-color: rgba(77, 171, 247, 0.6);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(77, 171, 247, 0.4);
}

.error {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid rgba(255, 107, 107, 0.4);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #ff6b6b;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.success {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.15) 0%, rgba(81, 207, 102, 0.1) 100%);
    border: 1px solid rgba(81, 207, 102, 0.4);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #51cf66;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(81, 207, 102, 0.2);
}

.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    color: #ffc107;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.hint {
    margin-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9em;
}

/* 后台管理页面 */
.admin-container {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 2.5em;
}

.admin-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-settings {
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.2) 0%, rgba(77, 171, 247, 0.15) 100%);
    border: 1px solid rgba(77, 171, 247, 0.4);
    border-radius: 10px;
    color: #4dabf7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(77, 171, 247, 0.2);
}

.btn-settings:hover {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.3) 0%, rgba(77, 171, 247, 0.25) 100%);
    box-shadow: 0 4px 16px rgba(77, 171, 247, 0.4);
    transform: translateY(-2px);
    border-color: rgba(77, 171, 247, 0.6);
}

.logout-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.15) 100%);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 10px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.logout-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 107, 107, 0.25) 100%);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 107, 107, 0.6);
}

.admin-content h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-table thead {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.2) 0%, rgba(77, 171, 247, 0.1) 100%);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    font-weight: bold;
}

.admin-table tbody tr {
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: rgba(77, 171, 247, 0.1);
    transform: scale(1.01);
}

.admin-table a {
    color: #4dabf7;
    text-decoration: none;
}

.admin-table a:hover {
    text-decoration: underline;
}

/* 配置表单 */
.settings-form {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.settings-form .form-group {
    margin-bottom: 25px;
}

.settings-form .form-group input[type="date"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 1em;
}

.settings-form .form-group input[type="date"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button[type="submit"] {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-actions button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-cancel {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* 看板页面 */
.board-container {
    padding: 40px 20px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}


.board-header {
    margin-bottom: 50px;
}

.board-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
    width: 100%;
}

.board-header h1 {
    font-size: 2.2em;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.5px;
}

.activity-time {
    font-size: 1em;
    opacity: 0.8;
    margin: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.board-actions {
    display: flex;
    gap: 20px;
    flex: 0 0 auto;
}

.btn-signup,
.btn-admin {
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.8) 0%, rgba(77, 171, 247, 0.6) 100%);
    border: 1px solid rgba(77, 171, 247, 0.4);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-signup::before,
.btn-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-signup:hover::before,
.btn-admin:hover::before {
    left: 100%;
}

.btn-signup:hover,
.btn-admin:hover {
    background: linear-gradient(135deg, rgba(77, 171, 247, 1) 0%, rgba(77, 171, 247, 0.8) 100%);
    box-shadow: 0 6px 20px rgba(77, 171, 247, 0.5);
    transform: translateY(-2px);
    border-color: rgba(77, 171, 247, 0.6);
}

/* 项目网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(var(--projects-per-row), 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 项目卡片 */
.project-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(77, 171, 247, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(77, 171, 247, 0.4);
    box-shadow: 0 8px 32px rgba(77, 171, 247, 0.3),
                0 0 0 1px rgba(77, 171, 247, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
}

.project-card:hover::before {
    opacity: 1;
}

/* 状态指示器 */
.card-status {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    bottom: 20px;
    left: 20px;
    box-shadow: 0 0 12px currentColor, 
                0 0 24px currentColor,
                inset 0 0 8px rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.card-status.online {
    background: #51cf66;
    color: #51cf66;
}

.card-status.offline {
    background: #ff6b6b;
    color: #ff6b6b;
}

.card-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.project-card:hover .card-cover {
    transform: scale(1.05);
}

.card-content h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.card-author {
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 15px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.2) 0%, rgba(77, 171, 247, 0.1) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid rgba(77, 171, 247, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, rgba(77, 171, 247, 0.3) 0%, rgba(77, 171, 247, 0.2) 100%);
    border-color: rgba(77, 171, 247, 0.5);
    transform: translateY(-1px);
}

/* 空白项目卡片 */
.project-card-empty {
    opacity: 0.25;
    pointer-events: none;
    border-style: dashed;
}

.project-card-empty .card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.empty-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.empty-placeholder p {
    font-size: 1.1em;
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .board-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .board-header h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .activity-time {
        margin-bottom: 15px;
    }
    
    .admin-container {
        padding: 20px;
    }
    
    .admin-table {
        font-size: 0.9em;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
    
    .form-group label .example {
        display: block;
        margin-top: 3px;
    }
}

