/* 账户 / 登录注册 / 个人中心 */
.acct-wrap {
    padding: 60px 0 80px;
    background: #f7f6f3;
    min-height: 50vh;
}

.acct-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 38px 36px 32px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, .04);
}

.acct-title {
    margin: 0 0 8px;
    font-size: 26px;
    line-height: 1.3;
    color: #222;
    font-weight: 600;
    text-align: center;
}

.acct-sub {
    margin: 0 0 26px;
    font-size: 14px;
    line-height: 22px;
    color: #999;
    text-align: center;
}

.acct-field {
    display: block;
    margin-bottom: 16px;
}

.acct-field > span {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    color: #555;
}

.acct-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color .2s;
}

.acct-input:focus {
    border-color: var(--gp-primary, #BA8D69);
}

.acct-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
}

.acct-captcha .acct-input {
    flex: 1 1 auto;
}

.acct-captcha img {
    display: block;
    width: 116px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.acct-submit {
    display: inline-block;
    width: 100%;
    height: 46px;
    margin-top: 6px;
    font-size: 15px;
    color: #fff;
    background: var(--gp-primary, #BA8D69);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity .2s;
}

.acct-submit:hover {
    opacity: .9;
}

.acct-submit[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.acct-tip {
    display: none;
    margin: 0 0 14px;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 20px;
    color: #c0392b;
    background: #fdecea;
    border-radius: 4px;
}

.acct-tip.is-ok {
    color: #1e8e3e;
    background: #e8f7ec;
}

.acct-switch {
    margin: 20px 0 0;
    font-size: 14px;
    color: #888;
    text-align: center;
}

.acct-switch a {
    color: var(--gp-primary, #BA8D69);
}

/* 个人中心 */
.account-wrap {
    padding: 50px 0 70px;
    background: #f7f6f3;
}

.account-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.account-side {
    flex: 0 0 260px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.account-side-user {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 22px;
    border-bottom: 1px solid #f0efec;
}

.account-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    overflow: hidden;
    font-size: 22px;
    color: #fff;
    background: var(--gp-primary, #BA8D69);
    border-radius: 50%;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-side-info {
    min-width: 0;
}

.account-side-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    word-break: break-all;
}

.account-side-mail {
    margin: 0;
    font-size: 13px;
    color: #999;
    word-break: break-all;
}

.account-side-since {
    margin: 6px 0 0;
    font-size: 12px;
    color: #aaa;
}

.account-menu {
    padding: 10px 0;
}

.account-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #555;
    border-left: 3px solid transparent;
    transition: all .2s;
}

.account-menu a:hover {
    color: var(--gp-primary, #BA8D69);
    background: #faf9f7;
}

.account-menu a.active {
    color: var(--gp-primary, #BA8D69);
    font-weight: 600;
    background: #faf7f2;
    border-left-color: var(--gp-primary, #BA8D69);
}

.account-menu a.account-menu-out {
    margin-top: 6px;
    color: #999;
    border-top: 1px solid #f0efec;
}

.account-main {
    flex: 1 1 auto;
    min-width: 0;
}

.account-panel {
    padding: 26px 28px;
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.account-panel:last-child {
    margin-bottom: 0;
}

.account-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.account-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.account-panel-link {
    font-size: 13px;
    color: var(--gp-primary, #BA8D69);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.account-stat {
    padding: 20px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
}

.account-stat-num {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gp-primary, #BA8D69);
}

.account-stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: #888;
}

.account-recent {
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-recent li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f2f1ee;
}

.account-recent li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.account-recent-pic {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    object-fit: cover;
    background: #f2f2f2;
    border-radius: 4px;
}

.account-recent-info {
    flex: 1 1 auto;
    min-width: 0;
}

.account-recent-title {
    display: block;
    overflow: hidden;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.account-recent-title:hover {
    color: var(--gp-primary, #BA8D69);
}

.account-recent-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.account-recent-amount {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    color: var(--gp-primary, #BA8D69);
}

.account-empty {
    padding: 50px 0;
    font-size: 14px;
    color: #999;
    text-align: center;
}

.account-form {
    max-width: 520px;
}

.account-form .acct-submit {
    width: auto;
    min-width: 180px;
    padding: 0 34px;
}

.account-form .acct-tip {
    display: none;
}

@media (max-width: 991px) {
    .account-layout {
        display: block;
    }

    .account-side {
        margin-bottom: 20px;
    }

    .account-side-user {
        padding: 18px 20px;
    }

    .account-menu {
        display: flex;
        padding: 0;
        overflow-x: auto;
        border-top: 1px solid #f0efec;
    }

    .account-menu a {
        flex: 0 0 auto;
        padding: 12px 16px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .account-menu a.active {
        background: none;
        border-bottom-color: var(--gp-primary, #BA8D69);
    }

    .account-menu a.account-menu-out {
        margin-top: 0;
        border-top: none;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .acct-wrap {
        padding: 36px 0 50px;
    }

    .acct-card {
        margin: 0 15px;
        padding: 28px 20px 24px;
    }

    .account-wrap {
        padding: 30px 0 50px;
    }

    .account-panel {
        padding: 20px 16px;
    }

    .account-stats {
        gap: 12px;
    }

    .account-stat {
        padding: 16px 10px;
    }

    .account-stat-num {
        font-size: 22px;
    }

    .account-recent li {
        gap: 10px;
    }

    .account-recent-amount {
        font-size: 14px;
    }
}
