/* 全局变量与根字体设置 */
:root {
    --primary-pink: #ffb7c5;
    --deep-pink: #ff69b4;
    --soft-lavender: #e6e6fa;
    --bg-color: #fff0f5;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #5c4033;
    --radius-lg: 2rem;
    --radius-sm: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 动漫梦幻背景光晕 */
.anime-bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
/*    background: radial-gradient(circle at 20% 30%, rgba(255, 183, 197, 0.4) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(230, 230, 250, 0.5) 0%, transparent 60%);
*/
    z-index: -1;
}

.app-container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 1.5rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 0.5rem 1.5rem rgba(255, 105, 180, 0.15);
    backdrop-filter: blur(0.5rem);
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--deep-pink);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--deep-pink);
}

/* 主内容视图 */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.view-section {
    display: none;
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(0.625rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* 首页卡片 */
.hero-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 0.75rem 2rem rgba(255, 183, 197, 0.3);
    backdrop-filter: blur(0.5rem);
    max-width: 45rem;
    margin: 0 auto;
}

.hero-card h1 {
    font-size: 2rem;
    color: var(--deep-pink);
    margin-bottom: 1rem;
}

.hero-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 萌系按钮 */
.cute-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 2rem;
    cursor: pointer;
    box-shadow: 0 0.4rem 1rem rgba(255, 105, 180, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cute-btn:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.6rem 1.2rem rgba(255, 105, 180, 0.6);
}

/* 注册子页面样式 */
.reg-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 35rem;
    margin: 0 auto;
    box-shadow: 0 0.75rem 2rem rgba(255, 183, 197, 0.3);
}

.reg-card h2 {
    color: var(--deep-pink);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--primary-pink);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
    border-color: var(--deep-pink);
}

.tip-text {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.3rem;
}

#reg-result {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #888;
}

/* 手机端自适应适配 */
@media (max-width: 48rem) {
    .app-container {
        padding: 0.8rem;
    }
    .hero-card {
        padding: 1.5rem 1rem;
    }
    .hero-card h1 {
        font-size: 1.5rem;
    }
    .navbar {
        padding: 0.8rem 1rem;
    }
}