@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Zcool+KuaiLe&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff4b1f;
    --text-color: #4a5568;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

body {
    /* 莫兰迪/极光浅色系渐变 */
    background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%) !important;
    background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%) !important;
    background-size: 200% 200% !important;
    animation: gradientBG 20s ease infinite !important;
    min-height: 100vh;
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Animation Elements - 更加柔和的粒子 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cube {
    position: absolute;
    top: 80vh;
    left: 45vw;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(160, 174, 192, 0.2); /* 浅灰色边框 */
    background: rgba(255, 255, 255, 0.1); /* 极淡的填充 */
    border-radius: 4px; /* 稍微圆角 */
    transform-origin: top left;
    transform: scale(0) rotate(0deg) translate(-50%, -50%);
    animation: cube 15s ease-in forwards infinite;
    z-index: 0;
}

.cube:nth-child(2n) {
    border-color: rgba(160, 174, 192, 0.15);
}

.cube:nth-child(2) {
    animation-delay: 2s;
    left: 25vw;
    top: 40vh;
}

.cube:nth-child(3) {
    animation-delay: 4s;
    left: 75vw;
    top: 50vh;
}

.cube:nth-child(4) {
    animation-delay: 6s;
    left: 90vw;
    top: 10vh;
}

.cube:nth-child(5) {
    animation-delay: 8s;
    left: 10vw;
    top: 85vh;
}

.cube:nth-child(6) {
    animation-delay: 10s;
    left: 50vw;
    top: 10vh;
}

@keyframes cube {
    from {
        transform: scale(0) rotate(0deg) translate(-50%, -50%);
        opacity: 0.8;
    }
    to {
        transform: scale(10) rotate(960deg) translate(-50%, -50%);
        opacity: 0;
    }
}

/* Header Styling - 极简白 */
.glass-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.nav-hover {
    color: #4a5568 !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #6a11cb;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-hover:hover::after {
    width: 80%;
}

.glass-input {
    background: rgba(247, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    color: #4a5568;
    border-radius: 50px;
    padding-left: 20px;
}

.glass-input::placeholder {
    color: #a0aec0;
}

.glass-input:focus {
    background: #fff;
    border-color: #6a11cb;
    color: #2d3748;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

/* Main Container Styling */
.glass-container {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease-out;
}

/* Title Styling */
h1 {
    font-family: 'Zcool KuaiLe', 'Microsoft YaHei', cursive;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

/* Card Styling - 悬浮纸张感 */
.card {
    border: none;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(106, 17, 203, 0.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 20px;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    background: none;
    -webkit-text-fill-color: #2d3748;
    transition: color 0.3s ease;
}

.post-title:hover {
    color: #6a11cb;
    -webkit-text-fill-color: #6a11cb;
    background: none;
}

.card-body {
    padding: 25px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #718096;
}

.card-footer {
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    padding: 15px 25px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Button Styling - 优雅渐变 */
.btn-primary {
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    border: none;
    padding: 8px 24px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(118, 75, 162, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 7px 14px rgba(118, 75, 162, 0.3);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border-radius: 50px;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    font-weight: 500;
    background: transparent;
}

.btn-outline-dark:hover {
    background: #f7fafc;
    border-color: #a0aec0;
    color: #2d3748;
}

/* Detail Page Styles */
.detail-card {
    background: #ffffff;
}

.comment-input-card, .comment-item {
    background: #f8fafc;
    border: 1px solid #edf2f7;
}

.comment-item:hover {
    background: #ffffff;
    border-color: #e2e8f0;
}
