/* 全局样式 */
:root {
    --primary-color: #ffb6c1; /* 粉色主题 */
    --primary-dark: #ff8da1;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f8f8;
    --white: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    padding-bottom: 50px;
}

.user-profile {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    padding: 30px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.user-name {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.tags-container {
    width: 100%;
    display: none;
}

.tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;

}

.tags .tag {
    display: flex;
    align-items: center;
}

.tag i {
    margin-right: 3px;
    font-size: 12px;
}

.edit-profile-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
}

.edit-profile-btn p {
    color: var(--white);
    text-align: center;
    padding: 10px;
}

.user-role-container {
    position: absolute;
    top: 20px;
    right: 50px;
    z-index: 100;
}

.user-role-container p {
    font-size: 1rem;
    color: var(--white);
    text-align: center;
}

.marriage-information-container {
    padding: 20px;
    margin-top: -20px;
    background-color: white;
    border-radius: 20px 20px 0 0;
    position: relative;
    display: none;
    z-index: 1;
}

.user-relation-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 3px solid var(--primary-dark);
}

.user-relation-container::-webkit-scrollbar {
    display: none;
}

.user-relation {
    display: inline-flex;
    white-space: nowrap;
}

.relation {
    flex: 0 0 auto;
    margin: 0 10px 10px 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.relation>i {
    padding: 3px;
    border: 1px solid var(--text-light);
    border-radius: 50%;
}

.appointment-status-navigation, .matchmaker-information-navigation {
    width: 100%;
    display: none;
}

.marriage-information-container .navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5px 5px 5px;
    border-bottom: 1px solid #eee;
}

.navigation-bar .navigation-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.navigation-bar .navigation-button {
    font-size: 14px;
    color: var(--primary-dark);
}

.navigation-button .navigation-button-info {
    font-size: 14px;
    color: var(--primary-dark);
}

.navigation-button-info>i {
    font-size: 14px;
    color: var(--primary-dark);
    margin-left: 15px;
}

.click-button {
    font-size: 14px;
    color: var(--primary-dark);
}

.navigation-icon>i {
    margin-left: 5px;
}

.navigation-bar .navigation-switch {
    display: flex;
    justify-content: right;
    align-items: center;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 20px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-left: 21px;
    font-size: 12px;
    color: var(--primary-dark);
    line-height: 20px;
    background-color: #e0e0e0;
    border-radius: 16px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

input:checked + .toggle-slider {
    padding-left: 5px;
    color: white;
    background-color: var(--primary-dark);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 禁用时取消按压动画 */
input:disabled:active + .toggle-slider:before {
    width: 16px;
}

/* 点击动画 */
input:active + .toggle-slider:before {
    width: 22px;
}

input:checked:active + .toggle-slider:before {
    transform: translateX(8px);
}

/* 底部导航栏样式 */
.navigation-container {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navigation-container .bottom-nav {
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-item {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    color: #999;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.nav-item.active {
    color: var(--primary-dark); /* 选中状态颜色 */
}

.divider {
    width: 1px;
    height: 30px;
    background: #e0e0e0;
    align-self: center;
}

.login-modal {
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 898;
}

.login-modal .login-modal-content {
    width: 100%;
    height: 200px;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 899;
    overflow: hidden;
}

.login-modal-content .login-modal-header {
    width: 100%;
    height: 100px;
    margin: 0 auto;
}

.login-modal-header p {
    width: 100%;
    margin: 0 auto;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 100px;
    text-align: center;
}

.login-modal-content .login-modal-body {
    width: 100%;
    margin: 0 auto;
}

.login-modal-body .login-button {
    width: 75%;
    margin: 0 auto;
    line-height: 50px;
    font-size: 14px;
    color: white;
    text-align: center;
    background: linear-gradient(135deg, #07C160 0%, #05a850 100%);
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
}

.login-button i {
    margin-right: 8px;
}

.login-modal-body .agreement {
    width: 100%;
    margin: 0 auto;
    line-height: 50px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

.login-modal-body .agreement a {
    color: #07C160;
    text-decoration: none;
}

.login-modal-body .agreement a:hover {
    text-decoration: underline;
}

.prompt-box-container {
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
    z-index: 998;
}

.prompt-box {
    width: 85%;
    max-width: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.prompt-box-content {
    width: 100%;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(255, 141, 161, 0.25);
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.prompt-box-container.active .prompt-box-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.prompt-header {
    width: 100%;
    padding: 15px 0 5px 0;
}

.prompt-title {
    width: 100%;
    line-height: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.prompt-body {
    width: 100%;
    padding: 10px 20px 20px 20px;
}

.prompt-body p {
    width: 100%;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

.prompt-footer {
    width: 100%;
    padding: 0 15px 15px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prompt-footer .confirm-btn {
    width: 100%;
    height: 40px;
    line-height: 40px;
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 500;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #ff708a 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 141, 161, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.prompt-footer .confirm-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(255, 141, 161, 0.4);
}

.tip-box-container {
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
    z-index: 998;
}

.tip-box {
    width: 85%;
    max-width: 320px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.tip-box-content {
    width: 100%;
    border-radius: 15px;
    background-color: var(--white);
    box-shadow: 0 10px 25px rgba(255, 141, 161, 0.25);
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.tip-box-container.active .tip-box-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.tip-header {
    width: 100%;
    padding: 15px 0 5px 0;
}

.tip-title {
    width: 100%;
    line-height: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.tip-body {
    width: 100%;
    padding: 10px 20px 20px 20px;
}

.tip-body p {
    width: 100%;
    margin: 0 auto;
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.user-type-container {
    width: 100%;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 198;
}

.user-type {
    width: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    border-radius: 10px;
    z-index: 199;
}

.type-item {
    width: 100%;
    margin: 0 auto;
}

.type-title {
    width: 100%;
    line-height: 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #999;
}

.type-opt {
    width: 100%;
    margin: 0 auto;
}

.type-opt>p {
    width: 90%;
    margin: 5px 5%;
    padding: 5px 20px;
    line-height: 2rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background-color: #f9f9f9;
    text-align: center;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.type-opt>p:hover {
    background-color: #fff0f5;
    color: var(--primary-dark);
}

.type-opt>p.active {
    background-color: #ffeef2;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    font-weight: bold;
}

.type-item .tip {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-size: 0.8rem;
    color: #ff0000;
}

.save-type {
    width: 100%;
    padding: 10px;
}

.save-type p {
    line-height: 2rem;
    font-size: 1rem;
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    background-color: var(--primary-dark);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .user-profile {
        padding: 25px 15px;
    }

    .avatar-container {
        width: 80px;
        height: 80px;
    }

    .username {
        font-size: 20px;
    }
}