:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
    --accent-cyan: #06b6d4;
    --accent-purple: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Grid */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

/* Particle Canvas */
#bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
header {
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
}

.hero-nav {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    gap: 12px;
}

.hero-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.42);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.92rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-nav a:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.55);
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.slogan {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 99px;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(6, 182, 212, 0.5);
    color: white;
}

/* Gallery Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Glass Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    group: card;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(6, 182, 212, 0.2);
}

.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.placeholder-icon {
    font-size: 3rem;
    color: #475569;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-purple);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    transition: color 0.3s ease;
}

.card:hover .card-footer {
    color: var(--accent-cyan);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.card:hover .arrow-icon {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    main { grid-template-columns: 1fr; }
}
