* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f9fafb;
    color: #1f2937;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

a.logo {
    text-decoration: none;
    cursor: pointer;
}

a.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: #4b5563;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 20px 0 24px;
}

.breadcrumb a {
    text-decoration: none;
    color: #2563eb;
}

.footer-note {
    text-align: center;
    padding: 30px 0;
    color: #6b7280;
    font-size: 0.85rem;
    border-top: 1px solid #e5e7eb;
}

.policy-card,
.contact-card {
    background: white;
    border-radius: 32px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

.policy-card h1,
.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.policy-card p,
.contact-sub,
.ticket-info p,
.card p,
.method-detail,
.third-party p {
    color: #4b5563;
}

.policy-card p {
    margin-bottom: 12px;
}

.policy-card ul,
.policy-card ol {
    margin: 12px 0 12px 24px;
}

.policy-card li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links {
        justify-content: center;
    }
    .auth-buttons {
        justify-content: center;
    }
}

/* 用户菜单通用样式 */
.user-menu {
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* 与后台 admin .avatar-sm、/gesp-detail 一致 */
.user-menu .avatar-sm {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    user-select: none;
}

.dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7;
    width: 180px;
    overflow: hidden;
    z-index: 100;
    display: none;
}

.dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item:first-child {
    border-bottom: 1px solid #edf2f7;
}
