/* 认证表单样式 */
.auth-form {
    padding: 20px;
}

.auth-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 8px;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
}

.auth-banner i {
    font-size: 18px;
}

.optional-tag {
    font-size: 11px;
    background: #e8f5e9;
    color: #4caf50;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

.auth-safe-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.auth-safe-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4caf50;
}

.auth-safe-badges i {
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: #ccc;
}

.form-error {
    color: var(--accent);
    font-size: 13px;
    margin-bottom: 15px;
    min-height: 20px;
}

.btn-submit {
    width: 100%;
    height: 46px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 23px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.btn-logout {
    background: none;
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
}

.btn-logout:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* 订单页面 */
.orders-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 301;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.orders-page.active {
    transform: translateX(0);
}

.orders-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.orders-header button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.orders-header h3 {
    flex: 1;
    text-align: center;
    font-size: 17px;
}

.orders-tabs {
    display: flex;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.order-tab {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    position: relative;
    min-width: 70px;
}

.order-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.order-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.orders-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.order-card {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.order-no {
    color: var(--text-light);
}

.order-status {
    color: var(--accent);
    font-weight: 500;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 15px;
}

.order-item-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-title {
    font-size: 14px;
    margin-bottom: 4px;
}

.order-item-spec {
    font-size: 12px;
    color: var(--text-lighter);
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-top: 1px solid var(--border);
}

.order-total {
    font-size: 14px;
}

.order-total span {
    color: var(--accent);
    font-weight: 600;
    font-size: 16px;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-btn {
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
}

.order-btn.primary {
    background: var(--accent);
    color: white;
}

.order-btn.default {
    border: 1px solid var(--border);
    color: var(--text-light);
}

.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-lighter);
}

.orders-empty i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

/* 帮助中心页面 */
.help-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 301;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.help-page.active {
    transform: translateX(0);
}

.help-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.help-header button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.help-header h3 {
    flex: 1;
    text-align: center;
    font-size: 17px;
}

.help-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.help-section {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}

.help-section-title {
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.help-article {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.help-article:last-child {
    border-bottom: none;
}

.help-article-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.help-article-title i {
    color: var(--text-lighter);
    font-size: 12px;
}

.help-article-content {
    display: none;
    padding-top: 12px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    white-space: pre-line;
}

.help-article.active .help-article-content {
    display: block;
}

/* 收藏列表 */
.favorites-list {
    padding: 15px;
}

.favorite-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.favorite-item:hover {
    background: #e8e8e8;
}

.favorite-item img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.favorite-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.favorite-info p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.favorite-info span {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
}

/* 隐私政策页面 */
.privacy-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 301;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.privacy-page.active {
    transform: translateX(0);
}

.privacy-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.privacy-header button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.privacy-header h3 {
    flex: 1;
    text-align: center;
    font-size: 17px;
}

.privacy-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--white);
}

.privacy-body h4 {
    font-size: 16px;
    margin: 20px 0 10px;
    color: var(--text);
}

.privacy-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.privacy-body li {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* Header 登录按钮 */
.header-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.header-login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.header-login-btn.logged-in {
    background: #f0f0f0;
    color: var(--text);
}
.header-login-btn i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .header-login-btn span {
        display: none;
    }
    .header-login-btn {
        padding: 6px 10px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
}
