/* 個人中心頁面樣式 */

/* 主容器 */
.mine-main {
    background: var(--primary-bg-color);
    min-height: 100vh;
    padding-bottom: 60px;
}

.mine-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 0;
}

/* 頭部用戶信息區 */
.mine-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1410 15%, #3d2f0f 30%, #5a4419 45%, #3d2f0f 60%, #1a1410 85%, #0a0a0a 100%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 25px;
    box-shadow: 0 0 8px var(--primary-shadow-color);
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

/* .mine-header::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, 
        #b8860b 0%, 
        #daa520 15%,
        #ffd700 30%, 
        #ffed4e 50%, 
        #ffd700 70%, 
        #daa520 85%, 
        #b8860b 100%);
    border-radius: 16px;
    z-index: -1;
    animation: borderGlow 2.5s ease-in-out infinite;
} */

.mine-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 60%, transparent 100%);
    animation: shine 4s ease-in-out infinite;
}

@keyframes borderGlow {

    0%,
    100% {
        opacity: 0.8;
        filter: brightness(1) saturate(1.2);
    }

    50% {
        opacity: 1;
        filter: brightness(1.4) saturate(1.5);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 200%;
    }
}

.user-avatar {
    position: relative;
    z-index: 1;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    background-color: var(--primary-color);
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.user-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.user-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.user-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--white-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.25) 100%);
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

.edit-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.35) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.edit-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(77%) sepia(85%) saturate(1500%) hue-rotate(360deg) brightness(105%) contrast(103%);
}

.user-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.stat-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.stat-info img {
    width: 24px;
    height: 24px;
}

.stat-info img.stat-vip-icon {
    width: 32px;
    height: 32px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--white-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.stat-divider {
    display: none;
}

.user-stats-btn {
    width: 100px;
    padding: 8px 0;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700 !important;
    border: 1px solid #ffd700;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-stats-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    color: #ffd700 !important;
    border: 1px solid #ffd700 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.sn-mine-sign-action {
    width: 100%;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    position: relative;
    z-index: 1;
}

/* 游客提示：绑定邮箱以免清缓存丢资产，红色醒目，置于「去簽到」左侧。参考 womansite */
.sn-mine-guest-warn {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #ff5252;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.sn-mine-sign-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid #ffd700;
    border-radius: 6px;
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700 !important;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.18);
}

.sn-mine-sign-btn:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: #ffd700;
    color: #ffd700 !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 未登錄狀態樣式 */
.mine-header-unlogin {
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(120deg, var(--primary-light-color-2), var(--primary-light-color));
}

.mine-header-unlogin:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.mine-header-unlogin .user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unlogin-text {
    flex: 1;
}

.unlogin-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-333);
    text-shadow: none;
    margin-bottom: 8px;
}

.unlogin-desc {
    font-size: 14px;
    color: var(--color-666);
    margin: 0;
}

/* 每日簽到區域 */
.mine-signin-section {
    width: 80%;
    margin: 0 auto;
    /* margin-top: 15px; */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signin-calendar-inline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.signin-calendar-inline .signin-day {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.signin-calendar-inline .signin-day.signed {
    background: linear-gradient(135deg, var(--primary-light-color) 0%, var(--primary-light-color-2) 100%);
}

.signin-calendar-inline .signin-day.missed {
    background: rgba(255, 255, 255, 0.05);
}

.signin-calendar-inline .signin-day.today {
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.signin-calendar-inline .day-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}


.signin-calendar-inline .signin-day.signed .day-name {
    color: var(--color-333);
    font-weight: bold;
}

.signin-calendar-inline .signin-day.today .day-name {
    color: var(--white-color);
    font-weight: bold;
}

.signin-calendar-inline .day-icon {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signin-calendar-inline .day-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.signin-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.signin-reward-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.signin-btn-inline {
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    color: var(--white-color);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.signin-btn-inline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.signin-btn-inline:disabled,
.signin-btn-inline[disabled] {
    background: #999;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}

.signin-btn-inline:disabled:hover,
.signin-btn-inline[disabled]:hover {
    background: #999;
    transform: none;
    box-shadow: none;
}

/* 中部四個主要入口 */
.mine-main-entries {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.entry-item {
    background: var(--white-color);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.entry-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light-color-2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.entry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.entry-item:hover::before {
    opacity: 1;
}

.entry-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.entry-item:hover .entry-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.entry-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.entry-text {
    font-size: 16px;
    color: var(--color-333);
    font-weight: 500;
    transition: color 0.3s ease;
}

.entry-item:hover .entry-text {
    color: var(--primary-color);
}

/* 快捷入口 */
.mine-quick-entries {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-entry-card {
    background: linear-gradient(135deg, var(--white-color) 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light-color-2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-entry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.quick-entry-card:hover::before {
    opacity: 1;
}

.quick-entry-icon {
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%); */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-entry-card:hover .quick-entry-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.quick-entry-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.quick-entry-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1;
}

.quick-entry-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-333);
    transition: color 0.3s ease;
}

.quick-entry-card:hover .quick-entry-title {
    color: var(--primary-color);
}

.quick-entry-desc {
    font-size: 13px;
    color: var(--color-666);
}

/* 下部二級入口列表 */
.mine-sub-entries {
    margin-top: 25px;
    background: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sub-entry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}



.sub-entry-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sub-entry-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sub-entry-icon img {
    width: 24px;
    height: 24px;
}

.sub-entry-item:hover .sub-entry-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}



.sub-entry-left span {
    font-size: 16px;
    color: var(--color-333);
    font-weight: 400;
    transition: color 0.3s ease;
}

.sub-entry-item:hover .sub-entry-left span {
    color: var(--primary-color);
}

.sub-entry-arrow {
    width: 16px;
    height: 16px;
    opacity: 0.3;
}

/* 移動端響應式 */
@media screen and (max-width: 1080px) {
    .mine-main {
        min-height: 100vh;
        padding-bottom: 80px;
    }

    .mine-container {
        padding: 15px 12px;
    }

    .mine-header {
        padding: 15px;
        gap: 12px;
    }

    .user-avatar img {
        width: 70px;
        height: 70px;
    }

    .user-name-row {
        margin-bottom: 10px;
    }

    .user-name {
        line-height: 1.2;
        font-size: 20px;
    }

    .edit-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .edit-btn img {
        width: 18px;
        height: 18px;
    }

    .user-stats {
        flex-direction: column;
        gap: 8px;
    }

    .stat-item {
        gap: 10px;
    }

    .stat-info {
        gap: 4px;
    }

    .stat-info img {
        width: 22px;
        height: 22px;
    }

    .stat-info img.stat-vip-icon {
        width: 28px;
        height: 28px;
    }

    .stat-label {
        font-size: 13px;
    }

    .stat-value {
        font-size: 13px;
    }

    /* 未登錄狀態移動端 */
    .unlogin-title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .unlogin-desc {
        font-size: 13px;
    }

    .stat-divider {
        display: none;
    }

    .user-stats-btn {
        width: 85px;
        padding: 6px 0;
        font-size: 13px;
    }

    /* 移動端簽到區域 */
    .mine-signin-section {
        /* margin-top: 12px; */
        width: 100%;
        gap: 12px;
    }

    .signin-calendar-inline {
        gap: 5px;
    }

    .signin-calendar-inline .signin-day {
        padding: 8px 4px;
        gap: 5px;
        border-radius: 6px;
    }

    .signin-calendar-inline .day-name {
        font-size: 11px;
    }

    .signin-calendar-inline .day-icon {
        width: 22px;
        height: 22px;
    }

    .signin-action {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .signin-reward-text {
        font-size: 13px;
        flex: 1;
    }

    .signin-btn-inline {
        padding: 6px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .mine-main-entries {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        margin-top: 15px;
    }

    .entry-item {
        padding: 15px 8px;
        gap: 8px;
    }

    .entry-icon {
        width: 45px;
        height: 45px;
    }

    .entry-icon img {
        width: 24px;
        height: 24px;
    }

    .entry-text {
        font-size: 12px;
    }

    .mine-quick-entries {
        margin-top: 15px;
        gap: 10px;
    }

    .quick-entry-card {
        padding: 12px;
        gap: 10px;
    }

    .quick-entry-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .quick-entry-icon img {
        width: 40px;
        height: 40px;
    }

    .quick-entry-info {
        gap: 3px;
        flex: 1;
        min-width: 0;
    }

    .quick-entry-title {
        font-size: 13px;
    }

    .quick-entry-desc {
        font-size: 11px;
    }

    .mine-sub-entries {
        margin-top: 15px;
    }

    .sub-entry-item {
        padding: 15px;
    }

    .sub-entry-icon {
        width: 28px;
        height: 28px;
        border-radius: 5px;
    }

    .sub-entry-icon img {
        width: 20px;
        height: 20px;
    }

    .sub-entry-left span {
        font-size: 14px;
    }

    .sub-entry-arrow {
        width: 14px;
        height: 14px;
    }

    /* 禁用移動端的 hover 效果 */
    .entry-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .entry-item:hover::before {
        opacity: 0;
    }

    .entry-item:hover .entry-icon {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .entry-item:hover .entry-text {
        color: var(--color-333);
    }

    .sub-entry-item:hover .sub-entry-icon {
        transform: none;
        box-shadow: none;
    }

    .sub-entry-item:hover .sub-entry-left span {
        color: var(--color-333);
    }
}

/* 編輯資料彈層 */
.modal-content {
    position: relative;
    background: var(--white-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    top: 20%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-333);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: transparent;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #999;
    transition: background 0.3s ease;
}

.modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-close:hover {
    transform: rotate(90deg);
    background: #f5f5f5;
}

.modal-close:hover::before,
.modal-close:hover::after {
    background: var(--color-333);
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-333);
    margin-bottom: 12px;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.change-avatar-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.change-avatar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.avatar-library {
    margin-top: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 12px;
    max-height: 280px;
    overflow-y: auto;
}

.avatar-library::-webkit-scrollbar {
    width: 6px;
}

.avatar-library::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.avatar-library::-webkit-scrollbar-thumb {
    background: var(--primary-light-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.avatar-library::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.avatar-option {
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-option:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d0d0d0 0%, #a0a0a0 100%);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-333);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #eee;
}

.modal-footer button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-cancel {
    background: #f5f5f5;
    color: var(--color-666);
}

.btn-cancel:hover {
    background: #e8e8e8;
}

.btn-save {
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    color: var(--white-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 移動端響應式 */
@media screen and (max-width: 1080px) {
    .modal-content {
        width: 95%;
        top: 15%;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h3 {
        font-size: 18px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }

    .modal-close::before,
    .modal-close::after {
        width: 16px;
    }

    .modal-body {
        padding: 20px;
    }

    .avatar-section {
        gap: 15px;
    }

    .current-avatar {
        width: 70px;
        height: 70px;
    }

    .change-avatar-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .avatar-library {
        max-height: 220px;
    }

    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .modal-footer {
        padding: 15px 20px;
        gap: 12px;
    }

    .modal-footer button {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* 每日任務彈層 */
.tasks-box {
    position: relative;
    background: var(--white-color);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    top: 20%;
    padding: 40px 30px 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.tasks-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-333);
    text-align: center;
    margin-bottom: 25px;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.task-item:hover {
    background: #f0f0f0;
}

.task-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-333);
}

.task-desc {
    font-size: 13px;
    color: var(--color-666);
    line-height: 1.4;
}

.task-reward {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-reward img {
    width: 18px;
    height: 18px;
}

.task-reward img.svip-icon {
    width: 24px;
    height: 24px;
}

.task-reward span {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
}

.task-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.task-progress {
    font-size: 14px;
    color: var(--color-666);
    font-weight: 500;
}

.task-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color-2) 0%, var(--primary-color) 100%);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 移動端任務彈層 */
@media screen and (max-width: 1080px) {
    .tasks-box {
        width: 95%;
        top: 10%;
        padding: 35px 15px 25px;
        max-height: 85vh;
    }

    .tasks-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .tasks-list {
        gap: 12px;
    }

    .task-item {
        padding: 12px;
        gap: 10px;
    }

    .task-left {
        gap: 5px;
    }

    .task-name {
        font-size: 14px;
    }

    .task-desc {
        font-size: 12px;
    }

    .task-reward img {
        width: 16px;
        height: 16px;
    }

    .task-reward img.svip-icon {
        width: 22px;
        height: 22px;
    }

    .task-reward span {
        font-size: 13px;
    }

    .task-right {
        gap: 8px;
    }

    .task-progress {
        font-size: 12px;
    }

    .task-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 金幣消費記錄彈層 */
.records-box {
    position: relative;
    background: var(--white-color);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    top: 20%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.records-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-333);
    text-align: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.record-item {
    background: #f8f8f8;
    border-radius: 10px;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.record-item:hover {
    background: #f0f0f0;
}

.record-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.record-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-333);
}

.record-time {
    font-size: 12px;
    color: var(--color-999);
}

.record-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-right span {
    font-size: 16px;
    font-weight: bold;
}

.record-right.income span {
    color: #4CAF50;
}

.record-right.expense span {
    color: #f44336;
}

.record-right img {
    width: 20px;
    height: 20px;
}

/* 移動端消費記錄彈層 */
@media screen and (max-width: 1080px) {
    .records-box {
        width: 95%;
        top: 10%;
        max-height: 85vh;
    }

    .records-title {
        font-size: 20px;
        padding: 20px 15px 15px;
    }

    .records-list {
        gap: 10px;
        padding: 15px 15px 25px;
    }

    .record-item {
        padding: 12px 15px;
    }

    .record-name {
        font-size: 14px;
    }

    .record-time {
        font-size: 11px;
    }

    .record-right span {
        font-size: 15px;
    }

    .record-right img {
        width: 18px;
        height: 18px;
    }
}

/* 自動購買彈層 */
.autopurchase-box {
    position: relative;
    background: var(--white-color);
    border-radius: 16px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    top: 10%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.autopurchase-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-333);
    text-align: center;
    padding: 25px 30px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.autopurchase-list {
    padding: 25px 30px 30px;
    overflow-y: auto;
    flex: 1;
}

.cancel-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    background: #f5f5f5;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.cancel-checkbox:hover {
    background: #ebebeb;
}

.cancel-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.cancel-checkbox input[type="checkbox"]+span {
    display: flex;
    align-items: center;
}

.cancel-checkbox input[type="checkbox"]+span::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.3s ease;
    background: var(--white-color);
    flex-shrink: 0;
}

.cancel-checkbox input[type="checkbox"]:checked+span::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 15px;
    background-position: center;
    background-repeat: no-repeat;
}

.cancel-checkbox:hover input[type="checkbox"]+span::before {
    border-color: var(--primary-color);
}

.cancel-checkbox span {
    font-size: 14px;
    color: var(--color-333);
    transition: color 0.3s ease;
    line-height: 1.4;
}

.cancel-checkbox input[type="checkbox"]:checked+span {
    color: var(--primary-color);
    font-weight: 500;
}

/* 移動端自動購買彈層 */
@media screen and (max-width: 1080px) {
    .autopurchase-box {
        width: 95%;
        top: 5%;
        max-height: 90vh;
    }

    .autopurchase-title {
        font-size: 20px;
        padding: 20px 15px 15px;
    }

    .autopurchase-list {
        padding: 15px 15px 25px;
    }

    .autopurchase-item .listInfoBox {
        padding: 8px 0 6px;
    }

    .itemAuthor {
        font-size: 11px;
        margin-top: 4px;
    }

    .cancel-checkbox {
        padding: 8px 10px;
        gap: 6px;
    }

    .cancel-checkbox input[type="checkbox"]+span::before {
        width: 22px;
        height: 22px;
        margin-right: 8px;
        background-size: 16px;
    }

    .cancel-checkbox span {
        font-size: 12px;
    }
}

/* ============================================================ */
/* 賬號安全提示卡（綁定 Email / 設定密碼 / 綁定 Facebook）             */
/* 參考 ABSite 的提示樣式，配合 HX 主題暖色調                          */
/* ============================================================ */
.account-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin: 14px 0 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: var(--font-color-1, #333);
}

.account-alert + .account-alert {
    margin-top: 10px;
}

.account-alert-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.account-alert-icon.facebook {
    background: #1877F2;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}

.account-alert-icon.line {
    background: #06c755;
    font-family: Arial, sans-serif;
    font-weight: 800;
}

.account-alert-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.account-alert-copy strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--font-color-1, #333);
}

.account-alert-copy span {
    font-size: 12px;
    color: var(--font-color-2, #888);
    line-height: 1.5;
}

.account-alert-btn {
    flex-shrink: 0;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color, #f59e0b);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity 0.15s;
}

.account-alert-btn:hover {
    opacity: 0.88;
}

.account-alert-facebook .account-alert-btn {
    background: #1877F2;
}

.account-alert-line .account-alert-btn {
    background: #06c755;
}

/* Email 绑定卡：绿色主题（区别于 FB/LINE 的橙色提示），强调「绑邮箱保资产」的推荐操作。参考 womansite */
.account-alert-email {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(22, 163, 74, 0.06));
    border-color: #86efac;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
}

.account-alert-email .account-alert-icon {
    background: #22c55e;
}

.account-alert-email .account-alert-copy strong {
    color: #15803d;
}

.account-alert-email .account-alert-btn {
    background: #22c55e;
}

/* Facebook / LINE 两张绑定卡并排一行（紧凑短标题，避免半宽下文字被截断）。参考 womansite */
.account-alert-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.account-alert-row .account-alert {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    gap: 8px;
}

.account-alert-row .account-alert-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
}

.account-alert-row .account-alert-copy strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-alert-row .account-alert-btn {
    padding: 6px 12px;
    font-size: 12px;
}

@media (max-width: 1080px) {
    .account-alert {
        padding: 12px 14px;
        gap: 10px;
        border-radius: 10px;
    }

    /* H5：FB/LINE 并排卡进一步缩小间距与字号，保证「綁定 Facebook / LINE」完整显示 */
    .account-alert-row {
        gap: 8px;
    }
    .account-alert-row .account-alert {
        padding: 8px 9px;
        gap: 6px;
    }
    .account-alert-row .account-alert-copy strong {
        font-size: 12px;
    }
    .account-alert-row .account-alert-btn {
        padding: 5px 8px;
        font-size: 11.5px;
    }
    .account-alert-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .account-alert-copy strong {
        font-size: 13px;
    }
    .account-alert-copy span {
        font-size: 11px;
    }
    .account-alert-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 綁定 Email / 設定密碼 彈窗的提示文字（沿用 .accountBox 容器） */
.account-modal-note {
    margin: 0 0 12px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--font-color-2, #888);
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

/* 抽獎活動入口（在 .mine-sub-entries 下） */
.sub-entry-icon--surprise {
    background: linear-gradient(135deg, #ffb380 0%, #ff6b35 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 10px;
}
.sub-entry-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a5c, #ff5a2d);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    align-self: center;
}
