:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #7c4dff;
    --secondary-color: #00e5ff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.15);
    --font-heading: 'Noto Serif SC', serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 120px !important;
    /* Increased space for fixed navbar */
    min-height: 100vh;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 77, 255, 0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.15), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    z-index: 1000;
    width: 0%;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    width: 100%;
    z-index: 2100;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    background: rgba(5, 5, 5, 0.85);
    position: fixed;
    top: 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 2200;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 200;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.accent {
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 3rem;
    letter-spacing: 3px;
    font-weight: 200;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
}

.primary-btn,
.secondary-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.primary-btn {
    background: white;
    color: black;
}

.secondary-btn {
    border: 1px solid var(--glass-border);
    color: white;
    backdrop-filter: blur(10px);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
    background: var(--glass-bg);
}

/* Animations */
.fade-in {
    animation: fadeInUp 1s forwards;
}

.fade-in-delay {
    animation: fadeInUp 1s 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-large {
    animation: fadeInUp 1s 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visual Orb */
.visual-element {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}

.glowing-orb {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.2;
        transform: scale(0.8);
    }

    to {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* About Section */
.about {
    padding: 100px 10%;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card.hero-card {
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.glass-card h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.item {
    text-align: left;
}

.icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.item h3 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.item p {
    opacity: 0.6;
}

footer {
    padding: 50px 10%;
    text-align: center;
    opacity: 0.4;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2150;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li:not(.auth-btn) {
        display: block;
    }

    .user-profile {
        flex-direction: column;
        gap: 1.5rem !important;
        text-align: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .visual-element {
        display: none;
    }

    /* Responsive Table to Cards */
    .responsive-table tr {
        display: block !important;
        padding: 1.5rem !important;
        background: rgba(255, 255, 255, 0.05) !important;
        margin-bottom: 2rem !important;
        /* Increased margin */
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
        overflow: visible !important;
        /* Ensure no clipping */
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table td {
        display: block !important;
        width: 100% !important;
        padding: 1rem 0 !important;
        /* Increased vertical padding */
        border: none !important;
        text-align: left !important;
        overflow: visible !important;
    }

    .responsive-table td::before {
        content: attr(data-label);
        display: block !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: var(--accent-color) !important;
        /* Use accent color for labels to distinguish */
        opacity: 0.8 !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 0.5rem !important;
    }

    .responsive-table td[data-label="内容"] {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 0.5rem !important;
        padding-top: 1.5rem !important;
    }

    .responsive-table td[data-label="内容"]>div {
        white-space: normal !important;
        /* Allow wrapping */
        word-break: break-all !important;
        opacity: 0.9 !important;
    }

    .responsive-table td[data-label="操作"] {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 1rem !important;
        padding-top: 1.5rem !important;
    }

    .responsive-table .header-actions {
        width: 100% !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .header-actions .auth-btn {
        width: 100% !important;
        padding: 1.2rem !important;
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
    }
}

/* Auth Styles */
.auth-btn a {
    background: var(--accent-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 400;
}

.auth-btn a:hover {
    box-shadow: 0 0 15px var(--accent-color);
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 3rem;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.5;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    background: none;
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    opacity: 0.5;
    font-family: var(--font-body);
}

.tab-btn.active {
    opacity: 1;
    border-bottom: 2px solid var(--accent-color);
}

.auth-form h3 {
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-weight: 300;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
}

.auth-form .primary-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

.divider {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--glass-border);
    margin: 0 1rem;
}

.wechat-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    border: 1px solid #07c160;
    background: rgba(7, 193, 96, 0.1);
    color: #07c160;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.wechat-btn:hover {
    background: #07c160;
    color: white;
}

.rich-content {
    background: #ffffff;
    color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    line-height: 1.8;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}