:root {
    --primary-color: #00b4d8;
    --secondary-color: #0077b6;
    --accent-color: #7209b7;
    --background-color: #0a192f;
    --card-bg-color: rgba(16, 33, 65, 0.8);
    --text-color: #e0fbfc;
    --text-secondary: #90e0ef;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(114, 9, 183, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(0, 180, 216, 0.1) 0%, transparent 20%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(224, 251, 252, 0.1);
    position: relative;
}

.logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
    position: relative;
    z-index: 1;
    text-align: center;
}

.logo-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.admin-login {
    position: absolute;
    top: 0;
    right: 0;
}

.admin-login button {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-login button:hover {
    background-color: rgba(0, 180, 216, 0.1);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

/* Header Actions */
.header-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
}

.header-actions button {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.header-actions button:hover {
    background-color: rgba(0, 180, 216, 0.1);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

#helpStationBtn {
    border-color: var(--accent-color);
}

#helpStationBtn:hover {
    background-color: rgba(114, 9, 183, 0.1);
    box-shadow: 0 0 10px rgba(114, 9, 183, 0.3);
}

/* UP急救站模态框样式 */
.help-station {
    text-align: center;
    max-width: 500px;
}

.help-station h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(114, 9, 183, 0.3);
}

#helpStationContent {
    padding: 20px;
    background: rgba(16, 33, 65, 0.5);
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(114, 9, 183, 0.2);
}

#helpStationContent p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.help-contact {
    font-size: 1.2rem !important;
    color: var(--primary-color);
    margin: 20px 0 !important;
}

.help-contact strong {
    color: var(--success-color);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.help-note {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.95rem !important;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover, .category-btn.active {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 119, 182, 0.5);
}

/* Links Container */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.link-card {
    background-color: var(--card-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.link-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.link-url {
    color: var(--primary-color);
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
    word-break: break-all;
    transition: color 0.3s ease;
}

.link-url:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.link-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.link-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-credential {
    color: var(--primary-color);
}

.link-credential i {
    font-size: 0.9rem;
}

.link-category {
    background-color: rgba(114, 9, 183, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.link-views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.link-views i {
    color: var(--primary-color);
}

.link-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

/* Loading Animation */
.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    padding: 40px 0;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: pulse 1.5s infinite ease-in-out;
}

.circle:nth-child(2) {
    animation-delay: 0.2s;
    background-color: var(--secondary-color);
}

.circle:nth-child(3) {
    animation-delay: 0.4s;
    background-color: var(--accent-color);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Footer Styles */
footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(224, 251, 252, 0.1);
}

.slogan-showcase {
    margin-bottom: 30px;
}

.slogan-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: relative;
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(16, 33, 65, 0.8), rgba(20, 40, 80, 0.8));
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
    border: 1px solid rgba(0, 180, 216, 0.2);
    max-width: 90%;
    position: relative;
}

.slogan-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    border-radius: 12px;
    opacity: 0.5;
    animation: borderGlow 3s infinite alternate;
}

@keyframes borderGlow {
    0% {
        opacity: 0.3;
        filter: blur(3px);
    }
    100% {
        opacity: 0.7;
        filter: blur(5px);
    }
}

.slogan-text {
    text-align: center;
    padding: 20px;
    width: 100%;
    position: relative;
}

.slogan-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(114, 9, 183, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 180, 216, 0.1) 0%, transparent 50%);
    z-index: 0;
}

#current-slogan {
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
    position: relative;
    z-index: 1;
    display: inline-block;
    animation: textPulse 3s infinite alternate;
    letter-spacing: 1px;
}

@keyframes textPulse {
    0% {
        text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(114, 9, 183, 0.5);
    }
}

/* 保存成功的视觉反馈 */
@keyframes saveSuccess {
    0% {
        box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(6, 214, 160, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
    }
}

.slogan-container.save-success {
    animation: saveSuccess 1s ease;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* 管理员操作按钮样式 */
.admin-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.btn-admin {
    background-color: var(--card-bg-color);
    color: var(--text-color);
    border: 1px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-admin:hover {
    background-color: rgba(0, 180, 216, 0.1);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.btn-admin i {
    font-size: 1rem;
}

/* 文案编辑模态框样式 */
#sloganForm textarea,
#helpStationForm textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    background-color: var(--card-bg-color);
    border: 1px solid var(--primary-color);
    color: var(--text-color);
    font-size: 1rem;
    resize: vertical;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#helpStationForm textarea[rows="1"] {
    resize: none;
    height: 45px;
    overflow: hidden;
}

#sloganForm textarea:focus,
#helpStationForm textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid var(--primary-color);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.8rem;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--danger-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(224, 251, 252, 0.3);
    background-color: rgba(10, 25, 47, 0.8);
    color: var(--text-color);
    font-size: 1rem;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-secondary);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(224, 251, 252, 0.1);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #d64161;
    box-shadow: 0 0 15px rgba(239, 71, 111, 0.5);
}

/* Admin Panel Styles */
.admin-panel {
    max-width: 800px;
}

.admin-links-container {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(224, 251, 252, 0.1);
}

.admin-link-info {
    flex: 1;
}

.admin-link-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.admin-link-url {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
}

.admin-link-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--text-secondary);
}

.admin-link-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 添加凭证信息的特殊样式 */
.admin-link-meta span:last-child {
    color: var(--primary-color);
    background-color: rgba(0, 180, 216, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.admin-link-actions {
    display: flex;
    gap: 10px;
}

.admin-link-actions button {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.admin-link-actions button:hover {
    color: var(--primary-color);
}

.admin-link-actions button.delete-btn:hover {
    color: var(--danger-color);
}

.hidden-link {
    opacity: 0.5;
}

/* Confirm Link Modal */
.confirm-link {
    text-align: center;
    padding: 30px;
}

.confirm-link h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.confirm-link p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.5;
}

#credentialSection {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 180, 216, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

#credentialSection .form-group {
    margin-top: 15px;
}

#userCredential {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(224, 251, 252, 0.3);
    background-color: rgba(10, 25, 47, 0.8);
    color: var(--text-color);
    font-size: 1rem;
    text-align: center;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.confirm-actions button {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 1rem;
}

/* 确认按钮禁用状态的样式 */
.confirm-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--text-secondary);
}

.confirm-actions button:disabled:hover {
    background-color: var(--text-secondary);
    box-shadow: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.8rem;
    }
    
    .links-container {
        grid-template-columns: 1fr;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
}

/* Animations and Effects */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 180, 216, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 180, 216, 0.6);
    }
}

/* Particle animation for tech theme */
@keyframes particle {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y));
        opacity: 0;
    }
} 