body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: themeShift 60s infinite linear;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px max(30px, calc((100% - 1200px) / 2));
    background-color: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #00bcd4;
}

.auth-buttons button {
    margin-left: 15px;
    padding: 8px 15px;
    background-color: #37474f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-buttons button:hover {
    background-color: #00bcd4;
}

main {
    padding-top: 100px;
    padding-bottom: 50px;
    padding-left: max(100px, calc((100% - 1400px) / 2 + 50px));
    padding-right: max(100px, calc((100% - 1400px) / 2 + 50px));
    z-index: 10;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    justify-content: center;
}

.grid-item {
    width: 300px;
    height: 160px;
    background-color: rgba(38, 50, 56, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(0, 188, 212, 0.05);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.grid-item h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #00bcd4;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0,188,212,0.2);
}

.grid-item p {
    margin: 0;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.5;
    max-width: 90%;
}

.x-mark {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background: #00bcd4;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(var(--rotation));
    z-index: 20;
}

footer {
    text-align: center;
    padding: 15px 0;
    background-color: rgba(31, 31, 31, 0.95);
    color: rgba(255,255,255,0.6);
    z-index: 100;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

footer p {
    margin: 0;
    letter-spacing: 0.5px;
}

.curve {
    top: auto;
    bottom: 30%;
    height: 200%;
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300bcd4" d="M0,256L48,234.7C96,213,192,171,288,160C384,149,480,171,576,192C672,213,768,235,864,213.3C960,192,1056,128,1152,106.7C1248,85,1344,107,1392,117.3L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    animation: wave 20s linear infinite;
    background: linear-gradient(transparent, rgba(0,188,212,0.1));
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.decor {
    position: absolute;
    font-size: var(--size);
    color: rgba(0, 188, 212, 0.15);
    opacity: var(--opacity);
    left: var(--left);
    top: var(--top);
    transform: 
        rotate(var(--rotate)) 
        translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: 
        float 8s ease-in-out infinite,
        glow 4s alternate infinite;
    font-family: Arial, sans-serif;
    filter: drop-shadow(0 1px 2px rgba(0,188,212,0.05));
}

@keyframes float {
    0%, 100% { transform: rotate(var(--rotate)) translate(-50%, -50%); }
    50% { transform: rotate(calc(var(--rotate) + 5deg)) translate(-50%, -55%); }
}

@keyframes glow {
    from { filter: drop-shadow(0 0 3px rgba(0,188,212,0.05)); }
    to { filter: drop-shadow(0 0 8px rgba(0,188,212,0.1)); }
}

.star-field {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: contrast(200%) brightness(150%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: white;
    box-shadow: 
        30vw 80vh 2px #fff,
        80vw 20vh 1px #fff,
        50vw 50vh 1px #fff;
    animation: twinkle 3s infinite, drift 60s linear infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes drift {
    0% { transform: translate(0,0); }
    100% { transform: translate(100vw,100vh); }
}

/* 新增头部星河特效 */
header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0,188,212,0.5) 50%, 
        transparent);
    animation: scanline 3s infinite linear;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 新增底部粒子特效 */
footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(transparent, rgba(0,188,212,0.1));
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10"><circle cx="5" cy="5" r="1"/><circle cx="25" cy="3" r="0.8"/><circle cx="45" cy="7" r="1.2"/><circle cx="65" cy="2" r="0.5"/><circle cx="85" cy="5" r="0.7"/></svg>');
    animation: particle-flow 20s linear infinite;
}

@keyframes particle-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 新增动态颜色主题 */
:root {
    --theme-hue: 180;
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
}

@keyframes themeShift {
    0% { --theme-hue: 180; }
    25% { --theme-hue: 240; }
    50% { --theme-hue: 300; }
    75% { --theme-hue: 120; }
    100% { --theme-hue: 180; }
}



/* 新增宇宙微波背景辐射效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, 
            rgba(0,188,212,0.01) 0%, 
            transparent 60%),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 1px,
            rgba(255,255,255,0.005) 2px,
            rgba(255,255,255,0.005) 3px
        );
    animation: cosmic-noise 20s infinite linear;
    z-index: -2;
}

@keyframes cosmic-noise {
    0% { transform: translate(0,0); }
    100% { transform: translate(100px,50px); }
}

/* 脉冲星特效 */
@keyframes pulsar {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.3; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

.pulsar-effect {
    position: fixed;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,188,212,0.2), transparent 70%);
    animation: pulsar 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* 动态星云效果 */
.nebula {
    position: fixed;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, 
            rgba(100,50,255,0.05) 0%, 
            transparent 50%),
        radial-gradient(circle at 80% 70%, 
            rgba(255,100,50,0.05) 0%, 
            transparent 50%);
    animation: nebula-drift 40s infinite linear;
    z-index: -1;
}

@keyframes nebula-drift {
    0% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(-50%,-30%) rotate(180deg); }
    100% { transform: translate(0,0) rotate(360deg); }
}

/* 量子纠缠效果 */
.quantum-dots {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quantum-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0,188,212,0.8);
    border-radius: 50%;
    animation: quantum-pop 2s infinite;
}

@keyframes quantum-pop {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* 弦物理效果 */
.string-theory {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 45%, rgba(0,188,212,0.03) 50%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, rgba(0,188,212,0.03) 50%, transparent 55%);
    animation: string-vibrate 0.8s infinite linear;
    opacity: 0.15;
}

@keyframes string-vibrate {
    0% { transform: translateX(-1px); }
    50% { transform: translateX(1px); }
    100% { transform: translateX(-1px); }
}

/* 量子连接线特效 */
.quantum-connections {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quantum-line {
    position: absolute;
    left: var(--x1);
    top: var(--y1);
    width: calc(var(--x2) - var(--x1));
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0,188,212,0.1) 50%, 
        transparent);
    transform-origin: left center;
    animation: quantum-connect 3s infinite;
    animation-delay: var(--delay);
}

@keyframes quantum-connect {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

/* 全息徽章效果 */
.hologram-effect {
    position: absolute;
    top: -5px;
    right: -15px;
    width: 20px;
    height: 20px;
    background: 
        radial-gradient(circle, 
            rgba(0,188,212,0.8), 
            transparent 70%);
    animation: hologram-pulse 2s infinite;
}

/* AI助手悬浮球 */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
    transition: transform 0.3s;
}

.neon-orb {
    width: 50px;
    height: 50px;
    background: rgba(0,188,212,0.2);
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(0,188,212,0.3),
        inset 0 0 10px rgba(255,255,255,0.1);
    animation: orb-float 3s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-family: var(--font-title);
    transition: transform 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(79,172,254,0.3);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79,172,254,0.5);
}

/* 原有按钮样式可能需要调整 */
.auth-buttons {
    display: flex;
    gap: 20px;
}

/* 恢复原有按钮样式 */
.auth-button {
    color: #00bcd4 !important;
    padding: 6px 18px;
    font-size: 0.95em;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-button:hover {
    background: rgba(0, 188, 212, 0.2);
    color: #00bcd4 !important;
    transform: none;
    box-shadow: none;
}

/* 磁贴基础样式 */
.grid-item {
    position: relative;
    overflow: hidden;
}

/* 装饰元素样式 */
.grid-item .decoration {
    position: absolute;
    opacity: 0.1;
    color: #00bcd4;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 0;
}

/* 装饰元素位置分布 */
.grid-item .decoration:nth-child(1) {
    font-size: calc(35px + var(--random-size-1) * 25px);
    top: calc(var(--random-top-1) * 40%);
    left: calc(var(--random-left-1) * 40%);
    transform: rotate(calc(var(--random-rotate-1) * 360deg));
}

.grid-item .decoration:nth-child(2) {
    font-size: calc(35px + var(--random-size-2) * 25px);
    top: calc(var(--random-top-2) * 40%);
    right: calc(var(--random-right-2) * 40%);
    transform: rotate(calc(var(--random-rotate-2) * 360deg));
}

.grid-item .decoration:nth-child(3) {
    font-size: calc(35px + var(--random-size-3) * 25px);
    bottom: calc(var(--random-bottom-3) * 40%);
    left: calc(var(--random-left-3) * 80%);
    transform: rotate(calc(var(--random-rotate-3) * 360deg));
}

/* 悬停效果 */
.grid-item:hover .decoration {
    opacity: 0.25;
    transform: scale(1.3) rotate(calc(var(--random-rotate) * 360deg + 15deg));
}

/* 动画效果 */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(var(--random-rotate-base)); }
    25% { transform: translate(8px, 8px) rotate(calc(var(--random-rotate-base) + 5deg)); }
    50% { transform: translate(0, 12px) rotate(var(--random-rotate-base)); }
    75% { transform: translate(-8px, 8px) rotate(calc(var(--random-rotate-base) - 5deg)); }
}

.grid-item .decoration {
    animation: float calc(5s + var(--random-duration) * 3s) infinite ease-in-out;
    animation-delay: calc(var(--random-delay) * -5s);
}

/* 拖拽相关样式 */
.grid-item.draggable {
    cursor: move;
    user-select: none;
}

.grid-item.dragging {
    opacity: 0.5;
    border: 2px dashed #666;
}

/* 敬请期待磁贴样式 */
.grid-item.coming-soon {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #333;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.grid-item.coming-soon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
} 