:root {
    --primary-dark: #1a1a2e;
    --primary-light: #16213e;
    --accent-gold: #c8a971;
    --accent-red: #9d3b3b;
    --text-light: #f1f1f1;
    --text-gray: #b1b1b1;
    --card-bg: #222235;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(to bottom, var(--primary-dark), var(--primary-light));
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-welcome {
    color: var(--accent-gold);
    margin-right: 15px;
    font-weight: 500;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-gold);
    text-decoration: none;
}

.logo-icon {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.auth-buttons {
    display: flex;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
}

.btn-login {
    color: var(--text-light);
    margin-right: 15px;
}

.btn-register {
    background-color: var(--accent-gold);
    color: var(--primary-dark);
}

.btn-register:hover {
    background-color: #d6ba88;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #b34a4a;
    transform: translateY(-2px);
}

/* 页面标题 */
.page-header {
    text-align: center;
    padding: 60px 0 40px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* 内容区域 */
.guide-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 60px;
}

.main-content {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.sidebar {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    align-self: start;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.subsection-title {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: var(--accent-gold);
}

.content-card {
    margin-bottom: 30px;
}

.content-card p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.content-card ul, .content-card ol {
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--text-gray);
}

.content-card li {
    margin-bottom: 8px;
}

.highlight {
    background-color: rgba(200, 169, 113, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.warning {
    background-color: rgba(157, 59, 59, 0.1);
    border-left: 4px solid var(--accent-red);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

/* 表格样式 */
.points-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.points-table th, .points-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.points-table th {
    background-color: rgba(200, 169, 113, 0.1);
    color: var(--accent-gold);
}

.points-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 流程图样式 */
.flowchart {
    margin: 40px 0;
    position: relative;
}

.flow-step {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    flex-grow: 1;
}

.step-content h4 {
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.step-arrow {
    position: absolute;
    left: 25px;
    bottom: -20px;
    font-size: 1.5rem;
    color: var(--accent-gold);
}

/* 侧边栏样式 */
.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 15px;
}

.quick-links a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: var(--accent-gold);
}

.quick-links i {
    margin-right: 10px;
    color: var(--accent-gold);
}

.contact-box {
    background-color: rgba(200, 169, 113, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-box h3 {
    margin-bottom: 15px;
    color: var(--accent-gold);
}

/* 响应式设计 */
@media (max-width: 900px) {
    .guide-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }

    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0 10px 10px;
    }

    .auth-buttons {
        margin-top: 20px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
}

/* 导航栏用户头像样式 */
.user-profile-nav {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.user-profile-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 20px;
}

/* 添加点击反馈 */
.user-profile-link:active {
    transform: scale(0.95);
}

.user-profile-link:hover {
    background-color: rgba(200, 169, 113, 0.1);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.user-profile-link:hover .user-name-nav {
    color: var(--text-light);
}

.user-profile-link:hover .user-avatar-nav {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(200, 169, 113, 0.5);
}

.user-avatar-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 8px;
    border: 2px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.nav-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-nav {
    font-weight: 500;
    color: var(--accent-gold);
    transition: color 0.3s;
}