html,
body {
    --header-height: 60px;
    --nav-height: 40px;
    --border-color: rgb(127, 127, 127);
    --font-color: rgb(70, 70, 70);
    margin: 0;
    height: 100%;
    color: var(--font-color);
    font-size: 12px;
}

* {
    box-sizing: border-box;
}

button,
.btn-outline,
.btn-primary,
.btn-solid,
.detail-btn,
.detail-side-btn,
.catalog-primary,
.catalog-dialog,
.catalog-close,
#menu-sub-items-popover,
#search-img-popover,
#user-center-popover,
.auth-modal-inner .auth-section,
.auth-modal-content,
.auth-modal-close {
    border-radius: 0 !important;
}

#app {
    height: 100%;
    display: flex;
    /* overflow-y: auto;  Removed to prevent double scrollbar */
    /* overflow-x: auto;  Removed to prevent double scrollbar */
    overflow: hidden; /* Ensure app doesn't scroll, only main-body */
}

#menu {
    height: 100%;
    padding-top: calc((var(--header-height) - 24px) / 2);
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    width: 60px;
    border-right: 1px solid var(--border-color);
    background-color: #fff;
}

#menu-sub-items-popover {
    position: fixed;
    top: 50%;
    left: 60px;
    background-color: rgb(242, 242, 242);
    padding: 24px 8px;
    z-index: 1000;
}

#menu-sub-items-popover .sub-menu-item {
    cursor: pointer;
    margin-bottom: 32px;
    text-align: center;
}

#menu-sub-items-popover .sub-menu-item:last-of-type {
    margin-bottom: 0;
}

#menu-sub-items-popover .sub-menu-item .icon {
    width: 26px;
    height: 26px;
}

#menu .home {
    display: inline-block;
    cursor: pointer;
    margin: 0 auto;
}

#home-sidebar-popover {
    position: fixed;
    top: 0;
    left: 60px;
    right: 0;
    /* width: 600px;  Removed fixed width */
    height: 100%;
    background-color: #fff;
    z-index: 999;
    box-shadow: 4px 0 16px rgba(0,0,0,0.1);
    transform: translateX(-120%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    overflow: hidden;
}

#home-sidebar-popover.active {
    transform: translateX(0);
}

#home-sidebar-popover .popover-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 0 24px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

#home-sidebar-popover .popover-title {
    font-size: 28px;
    font-weight: bold;
    color: #e1251b;
    letter-spacing: 1px;
    line-height: 1.2;
}

#home-sidebar-popover .popover-title-sub {
    font-size: 14px;
    color: #333;
    margin-top: 4px;
    font-weight: normal;
    letter-spacing: 0;
}

#home-sidebar-popover .close-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

#home-sidebar-popover .close-btn:hover svg {
    fill: #333;
}

#home-sidebar-popover .popover-content {
    height: calc(100% - 80px);
    overflow: hidden;
}

/* Social Icon QR Popover */
.social-icon-wrapper {
    position: relative;
    display: inline-flex;
}

.social-qr-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-icon-wrapper:hover .social-qr-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.social-qr-popover::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.social-qr-popover img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.social-qr-popover span {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

/* Carousel Transition */
.carousel-fade-enter-active, .carousel-fade-leave-active {
    transition: opacity 0.8s ease;
}
.carousel-fade-enter, .carousel-fade-leave-to {
    opacity: 0;
}


#menu .menu-item {
    cursor: pointer;
    margin-bottom: 24px;
    text-align: center;
}

#menu .menu-item .icon {
    width: 24px;
    height: 24px;
}

#menu .menu-item .text {
    text-align: center;
}

#function-right-bar {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    width: 60px;
    padding-top: calc(var(--header-height) + var(--nav-height));
    padding-bottom: var(120px);
    border-left: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    z-index: 100;
}

#function-right-bar .top-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

#function-right-bar .top-list .top-list-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#function-right-bar .top-list .top-list-item .icon {
    width: 24px;
    height: 24px;
}

#function-right-bar .bottom-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-bottom: 176px;
}

#function-right-bar .bottom-list .bottom-list-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

#function-right-bar .bottom-list .bottom-list-item .icon {
    width: 24px;
    height: 24px;
}

#main-body {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-right: 0;
}


#header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
}

#header .logo {
    transform: translateY(10%);
    /* height: var(--header-height); */
}

#header img + div {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#header-function-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-right: 138px;
}

#header-function-items .header-function-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    transition: color 0.2s;
}

#header-function-items .header-function-item:hover {
    color: rgb(192, 0, 0);
}

#header-function-items .header-function-item .icon {
    width: 24px;
    height: 24px;
}

#avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}



#search-img-popover.unified-search-popover {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    min-height: 220px;
    background-color: #f5f5f5; /* Match search bar */
    z-index: 2000;
    padding: 8px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    align-content: flex-start;
    flex-wrap: nowrap;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px; /* Round bottom corners only */
    transform: none;
    margin-top: 0;
}

#search-img-popover.unified-search-popover::after {
    background-color: #fff; /* White content area */
}

/* Hide the original ::before if it exists */
#search-img-popover::before {
    display: none;
}

/* Add ::after for the dashed box (细虚线、圆角) */
#search-img-popover::after {
    content: "";
    position: absolute;
    top: 36px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px dashed #dcdcdc;
    background-color: #fff;
    border-radius: 8px;
    z-index: -1;
}

#search-img-popover .close-btn {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    width: 24px;
    height: 24px;
    text-align: center;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

#search-img-popover .close-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

#search-img-popover .main {
    background-color: transparent;
    border: none;
    margin: 0;
    flex: 0 0 auto;
    align-self: stretch;
    padding: 44px 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#search-img-popover .main:hover {
    background-color: transparent;
    border: none;
}

#search-img-popover .main .upload-btn {
    cursor: pointer;
    border-radius: 4px;
    background-color: #cc0000;
    color: white;
    padding: 10px 32px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: bold;
}

#search-img-popover .main .upload-tip {
    margin: 10px 0 14px;
    color: #999;
    font-size: 12px;
}

#search-img-popover .main .upload-input {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px;
    box-sizing: border-box;
}

#search-img-popover .main input {
    border: none;
    border-radius: 0;
    padding: 0 16px;
    flex: 1;
    height: 36px;
    font-size: 14px;
    background: transparent;
    outline: none;
}

#search-img-popover .main input:focus {
    outline: none;
    border: none;
}

#search-img-popover .main .search-btn {
    cursor: pointer;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 0 24px;
    border-radius: 4px;
    height: 36px;
    line-height: 36px;
    padding-top: 0;
    padding-bottom: 0;
    color: #333;
    font-size: 13px;
    margin-left: 8px;
    transition: all 0.2s;
}

#search-img-popover .main .search-btn:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

#nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-right: 24px;
    flex-shrink: 0;
}

#nav-search-range {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
}

#nav-search-range .btn {
    padding: 8px 12px;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
}

#nav-search-range .btn.active {
    background-color: rgb(192, 0, 0);
    color: #fff;
}

#nav-search-input {
    flex: 1;
    padding: 0 12px;
    border-right: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    align-items: center;
}

#nav-search-input .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
#nav-search-input .icon:last-of-type {
    cursor: pointer;
}

#nav-search-input input {
    flex: 1;
    border: none;
    margin: 0 12px;
    background-color: transparent;
}

#nav-search-input input:focus {
    outline: none;
}

#nav .nav-function {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 24px;
}

#nav .nav-function .btn {
    cursor: pointer;
}

#nav .nav-function .btn:hover {
    color: rgb(192, 0, 0);
}

#water-fall {
    /* flex: 1; overflow-y: auto; removed to let #main-body scroll */
    padding: 12px 8px;
    padding-right: 8px;
}
#water-fall .water-fall-item {
    display: block;
    overflow: visible;
    border-radius: 8px;
    box-sizing: border-box;
}

#water-fall .water-fall-item-img {
    border-radius: 8px;
    display: block;
    width: 100%;
    height: auto;
}

#water-fall img {
    /* width: 180px; */
    border-radius: 8px;
}

#water-fall .water-fall-item-desc-user img,
#water-fall .water-fall-item-desc-collection img {
    border-radius: 0;
}

#water-fall .alink.img-inner-box {
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
}

#water-fall .water-fall-item-desc {
    text-align: center;
    color: var(--font-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: 180px; */
}

#water-fall .water-fall-item-desc-user,
#water-fall .water-fall-item-desc-collection {
    font-size: 12px;
    color: var(--font-color);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

#water-fall .water-fall-item-desc-user img,
#water-fall .water-fall-item-desc-collection img {
    width: 14px;
    height: 14px;
}

#water-fall .water-fall-item-desc-collection img {
    border-radius: 0;
}

#water-fall .water-fall-item-desc .water-fall-item-collection-text {
    font-size: 14px;
    color: var(--font-color);
}

/* 个人中心弹窗样式 */
#user-center-popover {
    position: fixed;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    width: 280px;
    border-radius: 8px;
    padding: 14px;
    max-height: 80vh;
    overflow-y: auto;
    /* Default position off-screen or hidden, will be positioned by JS */
    top: -9999px;
    left: -9999px;
}

/* 已登录状态样式 */
.user-popover-logged-in {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-info-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.user-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.merchant-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgb(192, 0, 0);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 2px;
}

.user-name-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 15px;
    font-weight: bold;
    color: #000;
}

.edit-icon {
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    color: #999;
    line-height: 1;
}

.edit-icon:hover {
    opacity: 1;
    color: rgb(192, 0, 0);
}

.user-id-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.user-vip-badge {
    background: linear-gradient(135deg, #FFD700, #FDB931);
    color: #5C3A21;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(253, 185, 49, 0.3);
    border: none;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.user-id {
    color: #999;
}

.copy-id {
    color: rgb(70, 126, 166);
    cursor: pointer;
}

.copy-id:hover {
    text-decoration: underline;
}

.vip-banner {
    background: linear-gradient(135deg, #e6f7ff, #f9f0ff);
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.vip-title {
    font-size: 13px;
    font-weight: bold;
    color: rgb(70, 126, 166);
}

.vip-expire {
    font-size: 12px;
    color: #666;
}

.user-counters {
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.counter-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0 8px;
    font-size: 14px;
    color: #666;
}

.counter-item:hover {
    color: rgb(192, 0, 0);
}

.counter-divider {
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
}

.arrow {
    color: #999;
    font-size: 18px;
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.user-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.user-menu .menu-item:hover {
    color: rgb(192, 0, 0);
}

.menu-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.menu-icon.checkin-icon {
    color: rgb(192, 0, 0);
    font-weight: bold;
}

.menu-text {
    flex: 1;
}

.menu-value {
    font-size: 12px;
    color: #999;
    margin-right: 8px;
}

.user-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.action-item:hover {
    color: rgb(192, 0, 0);
}

.action-icon {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

/* 未登录状态样式 */
.user-popover-not-logged-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px;
}

.not-logged-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.not-logged-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
}

.not-logged-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.not-logged-actions .login-btn,
.not-logged-actions .register-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.not-logged-actions .login-btn {
    background-color: rgb(192, 0, 0);
    color: white;
}

.not-logged-actions .login-btn:hover {
    background-color: rgb(160, 0, 0);
}

.not-logged-actions .register-btn {
    background-color: transparent;
    color: rgb(70, 126, 166);
    border: 1px solid rgb(70, 126, 166);
}

.not-logged-actions .register-btn:hover {
    background-color: rgb(70, 126, 166);
    color: white;
}

/* 登录注册弹窗样式 */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal-content {
    position: relative;
    max-width: 1160px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.auth-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.auth-modal-close:hover {
    background: #fff;
    color: #d60000;
}

.auth-modal-inner {
    width: 100%;
}

.auth-modal-inner .auth-section {
    display: flex;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.auth-visual {
    flex: 1;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.15) 70%, transparent 100%);
    z-index: 0;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center right, rgba(0, 0, 0, 0.2) 0%, transparent 60%);
    z-index: 0;
}

.auth-visual-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 40px;
    color: #fff;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-visual-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.auth-visual-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.auth-panel {
    width: 420px;
    padding: 32px 40px 36px;
    box-sizing: border-box;
}

.auth-tabs {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-tab {
    padding: 0 8px 14px;
    margin-right: 32px;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    color: #333;
    transition: color 0.2s;
}

.auth-tab:hover {
    color: #d60000;
}

.auth-tab.active {
    color: #d60000;
    font-weight: 600;
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #d60000;
}

.auth-form-group {
    margin-bottom: 16px;
}

.auth-input {
    width: 100%;
    height: 42px;
    border-radius: 3px;
    border: 1px solid #ddd;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: #d60000;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
    color: #777;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.auth-link {
    color: #d60000;
    cursor: pointer;
    font-size: 12px;
}

.auth-primary-btn {
    width: 100%;
    height: 44px;
    border-radius: 3px;
    border: none;
    background: #d60000;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-primary-btn:hover {
    background: #b50000;
}

.auth-primary-btn:active {
    background: #a00000;
}

.auth-agreement {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.auth-agreement span {
    flex: 1;
}

.auth-agreement a {
    color: #d60000;
}

.auth-social {
    margin-top: 20px;
    text-align: center;
}

.auth-social-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.auth-social-list {
    display: inline-flex;
    gap: 18px;
}

.auth-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-social-icon:hover {
    background: #e0e0e0;
}

.auth-social-icon img {
    width: 20px;
    height: 20px;
}

.auth-switch-tip {
    margin-top: 14px;
    font-size: 12px;
    text-align: right;
    color: #666;
}

.auth-switch-tip a {
    color: #d60000;
    cursor: pointer;
}

.auth-sms-row {
    display: flex;
    gap: 10px;
}

.auth-sms-row .auth-input {
    flex: 1;
}

.auth-sms-btn {
    width: 120px;
    height: 42px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background: #fafafa;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.auth-sms-btn:hover {
    background: #f0f0f0;
}

.auth-sms-btn:active {
    background: #e0e0e0;
}

.auth-message {
    display: none !important;
}

@media (max-width: 1024px) {
    .auth-modal-content {
        max-width: 100%;
    }

    .auth-modal-inner .auth-section {
        flex-direction: column;
    }

    .auth-panel {
        width: 100%;
    }

    .auth-visual {
        min-height: 260px;
    }
}

/* Header功能弹窗样式 */
#header-function-popover {
    position: fixed;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    /* width set dynamically by JS */
    border-radius: 8px;
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
}

.function-popover-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.function-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.function-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.function-card.card-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.function-card.card-orange {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.function-card.card-pink {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.function-card.card-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.function-card-content {
    flex: 1;
    z-index: 1;
}

.function-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.function-card-subtitle {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.function-card-graphic {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.qr-code-placeholder {
    width: 38px;
    height: 38px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.gift-icon {
    font-size: 30px;
}

.search-icon {
    font-size: 30px;
}

.rings-icon {
    width: 38px;
    height: 38px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
}

.ring-1 {
    width: 18px;
    height: 18px;
    border-color: #2196f3;
    top: 10px;
    left: 10px;
}

.ring-2 {
    width: 25px;
    height: 25px;
    border-color: #1976d2;
    top: 6.5px;
    left: 6.5px;
}

.ring-3 {
    width: 32px;
    height: 32px;
    border-color: #0d47a1;
    top: 3px;
    left: 3px;
}

/* Global Toast Notification */
.global-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10003;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    min-width: 200px;
    justify-content: center;
}

.global-toast.success {
    border-left: 4px solid #52c41a;
    color: #52c41a;
}

.global-toast.error {
    border-left: 4px solid #ff4d4f;
    color: #ff4d4f;
}

.global-toast.info {
    border-left: 4px solid #1890ff;
    color: #1890ff;
}

.toast-fade-enter-active,
.toast-fade-leave-active {
    transition: all 0.3s ease;
}

.toast-fade-enter,
.toast-fade-leave-to {
    opacity: 0;
    transform: translate(-50%, -20px);
}

.header-content-card:hover { background: #f5f5f5 !important; }

/* Waterfall hover elements */
.water-fall-img-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.water-fall-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, transparent 60px);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.water-fall-img-wrapper:hover .water-fall-hover-overlay {
    opacity: 1;
    pointer-events: auto;
}

.hover-btn-folder {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(240, 235, 230, 0.95);
    border-radius: 16px;
    padding: 0 12px;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.hover-btn-folder:hover {
    background: rgba(255, 255, 255, 1);
}

.hover-actions-right {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.hover-btn-action {
    background: rgba(240, 235, 230, 0.95);
    border-radius: 20px;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: width 0.3s ease, background 0.2s;
    box-sizing: border-box;
}

.hover-btn-action:hover {
    width: 76px;
    background: rgba(255, 255, 255, 1);
}

.hover-btn-action .action-text {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    opacity: 0;
    width: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hover-btn-action:hover .action-text {
    opacity: 1;
    width: 28px;
    margin-right: 4px;
}

.hover-btn-action svg {
    flex-shrink: 0;
}

/* Collection Modal */
.collection-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-modal-content {
    width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.collection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.collection-modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.collection-modal-close {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collection-modal-body {
    padding: 16px 0;
    max-height: 300px;
    overflow-y: auto;
}

.collection-group {
    margin-bottom: 8px;
}

.collection-group-title {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.collection-group-title .group-arrow {
    margin-right: 8px;
    transition: transform 0.2s;
}

.collection-group-title .group-arrow.expanded {
    transform: rotate(90deg);
}

.collection-group-list {
    padding: 4px 0;
}

.collection-item {
    padding: 8px 20px 8px 40px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.collection-item:hover {
    background: #f5f5f5;
}

.collection-item.active {
    background: #f5f5f5;
    color: #333;
    font-weight: 500;
}

.collection-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.collection-new-folder {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.collection-new-folder:hover {
    color: #333;
}

.collection-new-folder-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.collection-new-folder-input input {
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
}

.collection-new-folder-input .confirm-btn,
.collection-new-folder-input .cancel-btn {
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.collection-new-folder-input .confirm-btn:hover {
    color: #333;
}

.collection-modal-actions {
    display: flex;
    gap: 12px;
}

.collection-btn-cancel {
    padding: 6px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.collection-btn-confirm {
    padding: 6px 16px;
    border: none;
    background: #333;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.collection-btn-confirm:hover {
    background: #000;
}
