:root {
    --bg: radial-gradient(circle at top, #0f2027, #203a43, #2c5364);
    --card: rgba(255, 255, 255, 0.08);
    --primary: #4af2c6;
    --primary-dark: #33d1a5;
    --text: #f6fbff;
    --muted: rgba(246, 251, 255, 0.7);
    --border: rgba(255, 255, 255, 0.12);
    font-family: "Space Grotesk", "PingFang SC", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    min-height: 100vh;
    color: var(--text);
}

main {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 3rem 0 4rem;
}

.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.tagline {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    font-size: 0.95rem;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    margin: 1rem 0;
}

.hero .desc {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background: var(--primary);
    color: #0c1c23;
    box-shadow: 0 15px 35px rgba(74, 242, 198, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
}

.share-section {
    background: rgba(12, 22, 32, 0.45);
    border-radius: 36px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-head h2 {
    margin: 0;
    font-size: 2rem;
}

.count {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    color: var(--muted);
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.share-card {
    background: var(--card);
    border-radius: 28px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.share-card .meta-date {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.share-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.share-card .btn.ghost {
    border: 1px solid rgba(74, 242, 198, 0.4);
    color: var(--primary);
    background: transparent;
}

.share-card.compact {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.detail {
    background: rgba(12, 22, 32, 0.55);
    border-radius: 36px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
}

.detail .back-link {
    color: var(--muted);
    text-decoration: none;
}

.detail header h1 {
    margin-top: 0.5rem;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.detail .rich-text {
    margin: 2rem 0;
    color: var(--text);
    line-height: 1.8;
}

.detail .rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.detail .cta {
    text-align: center;
}

.empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 24px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .share-section {
        padding: 1.8rem;
    }

    .share-card {
        padding: 1.4rem;
    }
}
