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

:root {
    --primary-red: #E63946;
    --accent-coral: #F4A261;
    --deep-navy: #1D3557;
    --soft-navy: #457B9D;
    --bg-light: #F1FAEE;
    --text-dark: #1D3557;
    --text-muted: #457B9D;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: var(--text-dark);
    min-height: 100vh;
    padding-bottom: 80px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(244, 162, 97, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.navbar {
    background: rgba(15, 32, 39, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(230, 57, 70, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav {
    display: none;
    gap: 2rem;
    align-items: center;
}

.desktop-nav a {
    color: var(--bg-light);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary-red);
}

.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-red);
}

.desktop-nav .btn {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 32, 39, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    border-top: 1px solid var(--primary-red);
    z-index: 1000;
}

.mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem;
}

.mobile-nav .nav-item .icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.mobile-nav .nav-item .label {
    font-size: 0.75rem;
}

.mobile-nav .nav-item:hover,
.mobile-nav .nav-item.active {
    color: var(--primary-red);
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(230,57,70,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--bg-light);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-red);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.btn-block {
    width: 100%;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-box {
    background: rgba(241, 250, 238, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-red);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5364;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(230, 57, 70, 0.2);
    border-radius: 10px;
    color: #1D3557;
    font-size: 1rem;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: rgba(255, 255, 255, 1);
}

.form-group select option {
    background: #ffffff;
    color: #1D3557;
    padding: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-link {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

.search-filters {
    background: rgba(241, 250, 238, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-red);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5364;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 8px;
    color: #1D3557;
    margin-right: 0.5rem;
    font-weight: 500;
}

.user-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.user-grid .user-card {
    flex: 0 0 280px;
}

.user-card {
    background: rgba(241, 250, 238, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(230, 57, 70, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    color: #1D3557;
}

.user-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-red);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.3);
}

.user-card h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.user-card p {
    color: #2c5364;
    margin: 0.25rem 0;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .desktop-nav {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .auth-box {
        padding: 3rem;
    }

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

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
    }

    .container {
        padding: 1rem;
    }

    .search-filters {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .filter-group {
        margin-bottom: 0.75rem;
    }

    .filter-group input,
    .filter-group select {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-group div[style*="display:flex"] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-group div[style*="display:flex"] input {
        flex: 1;
        min-width: 0;
    }

    .filter-group div[style*="display:flex"] span {
        flex-shrink: 0;
    }

    .profile-container {
        padding: 1rem;
    }

    #mainProfileSection {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    #mainProfileSection > div[style*="flex-shrink"] {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #mainProfileSection img[style*="width:150px"] {
        width: 120px !important;
        height: 120px !important;
    }

    #mainProfileSection button[style*="width:150px"] {
        width: 100% !important;
        max-width: 200px;
    }

    #lifePhotosGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    #lifePhotosGrid img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }
}
