/* ========================================
   账户页面样式
   ======================================== */

/* 使用主题颜色变量 */
:root {
    --account-primary: #FF6A00;
    --account-primary-dark: #E65F00;
    --account-primary-light: #FF8533;
}

/* 页面容器 */
.account-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   用户信息卡片
   ======================================== */
.user-profile-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* 背景横幅 */
.profile-cover {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f2f5;
}

.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

/* 用户信息内容区域 */
.profile-content {
    position: relative;
    padding: 0 30px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 用户头像区域 */
.profile-avatar-wrapper {
    position: relative;
    margin-top: -60px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    display: block;
}

/* 认证徽章 */
.avatar-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-verified-badge svg {
    width: 24px;
    height: 24px;
}

.avatar-verified-badge svg circle {
    fill: var(--account-primary);
}

/* 用户详细信息 */
.profile-info {
    flex: 1;
    padding-top: 20px;
}

/* 用户名和徽章 */
.profile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 20px;
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.profile-header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-username {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.profile-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.badge-level {
    background: #fff5f0;
    color: var(--account-primary);
    border: 1px solid #ffd4b3;
}

.badge-type {
    background: #f0f0f0;
    color: #595959;
    border: 1px solid #d9d9d9;
}

/* 社交图标 */
.profile-social-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Social Platform Colors */
.social-twitter {
    background: #1DA1F2;
}

.social-facebook {
    background: #1877F2;
}

.social-website {
    background: linear-gradient(135deg, #667eea 0%, #181a18 100%);
}

/* Icon Font (using simple text, can use icon font library in production) */
.social-icon i::before {
    font-style: normal;
    font-weight: 600;
}

.icon-twitter::before { content: "𝕏"; }
.icon-facebook::before { content: "f"; }
.icon-website::before { content: "🌐"; }

/* 用户简介 */
.profile-bio {
    font-size: 15px;
    color: #595959;
    line-height: 1.6;
}

/* User Badges Icons */
.profile-badges-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.badge-icon:hover {
    transform: scale(1.1);
}

/* 企业认证徽章 */
.enterprise-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.enterprise-badge-svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.enterprise-badge:hover .enterprise-badge-svg {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.55));
}

/* Pro 会员徽章 */
.pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.pro-badge-svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 6px rgba(255, 106, 0, 0.35));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pro-badge:hover .pro-badge-svg {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 4px 10px rgba(255, 106, 0, 0.55));
}

/* Premium 会员徽章 */
.premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.premium-badge-svg {
    width: 56px;
    height: 56px;
    filter: drop-shadow(0 2px 6px rgba(139, 92, 246, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.premium-badge:hover .premium-badge-svg {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.6));
}

/* 编辑资料按钮 */
.btn-edit-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--account-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 106, 0, 0.2);
}

.btn-edit-profile:hover {
    background: var(--account-primary-light);
    box-shadow: 0 4px 8px rgba(255, 106, 0, 0.3);
    transform: translateY(-1px);
}

.btn-edit-profile:active {
    background: var(--account-primary-dark);
    transform: translateY(0);
}

.btn-edit-profile svg {
    width: 18px;
    height: 18px;
}

/* 齿轮：账户设置按钮 */
.btn-account-settings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: #ffffff;
    color: #595959;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-account-settings:hover {
    color: var(--account-primary);
    border-color: var(--account-primary);
    box-shadow: 0 2px 6px rgba(255, 106, 0, 0.15);
    transform: rotate(60deg);
}

.btn-account-settings:active {
    transform: rotate(60deg) scale(0.95);
}

.btn-account-settings svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   Tabs Section
   ======================================== */
.account-tabs-section {
    margin-top: 20px;
}

.account-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

/* Main Content Area */
.account-main-content {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tab Navigation - 一级（主分组） */
.account-tabs-nav {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    border-bottom: 1px solid #f0f0f0;
    padding: 0 24px;
    gap: 8px;
}

/* 移除滚动条样式（不再需要） */
.account-tabs-nav::-webkit-scrollbar {
    display: none;
}

.account-main-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 22px;
    border: none;
    background: transparent;
    color: #595959;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.account-main-tab:hover {
    color: var(--account-primary);
}

.account-main-tab.active {
    color: var(--account-primary);
    border-bottom-color: var(--account-primary);
    font-weight: 600;
}

.account-main-tab svg {
    width: 18px;
    height: 18px;
}

/* 二级（子分组）容器 */
.account-sub-tabs-wrap {
    padding: 8px 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* 一级 tab 无对应二级时（如 About / Notifications），隐藏整个 wrap */
.account-sub-tabs-wrap.is-empty {
    display: none;
}

.account-sub-tabs {
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0 14px;
}

.account-sub-tabs.active {
    display: flex;
}

/* 二级 tab 按钮：pill 样式 */
.account-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border: 1px solid transparent;
    background: transparent;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.account-tab-btn:hover {
    color: var(--account-primary);
    background: #fff5f0;
}

.account-tab-btn.active {
    color: var(--account-primary);
    background: #fff5f0;
}

.account-tab-btn svg {
    width: 15px;
    height: 15px;
}

/* Tab Content */
.account-tabs-content {
    padding: 20px;
}

.account-tab-pane {
    display: none;
}

.account-tab-pane.active {
    display: block;
}

.loading-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #8c8c8c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8c8c8c;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* Post Item */
.post-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item:hover {
    background: #fafafa;
    margin: 0 -20px;
    padding: 20px;
    border-radius: 8px;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--account-primary);
}

.post-excerpt {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #8c8c8c;
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-meta svg {
    width: 14px;
    height: 14px;
}

.post-author {
    font-weight: 500;
    color: #595959;
}

.post-likes svg {
    fill: #ff4d4f;
}

/* Comment Item */
.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    margin-bottom: 8px;
    font-size: 13px;
}

.comment-on {
    color: #8c8c8c;
    margin-right: 8px;
}

.comment-post-title {
    color: var(--account-primary);
    text-decoration: none;
    font-weight: 500;
}

.comment-post-title:hover {
    text-decoration: underline;
}

.comment-text {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--account-primary);
}

.comment-meta {
    font-size: 13px;
    color: #8c8c8c;
}

/* About Content */
.about-content h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.about-content p {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.about-meta p {
    margin-bottom: 12px;
}

.about-meta strong {
    color: #1a1a1a;
    margin-right: 8px;
}

.about-link {
    color: var(--account-primary);
    text-decoration: none;
    word-break: break-all;
}

.about-link:hover {
    text-decoration: underline;
}

/* ========================================
   Sidebar
   ======================================== */
.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 85px;
    align-self: flex-start;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* User Stats Card - 新设计 */
.user-stats-card {
    background: linear-gradient(135deg, var(--account-primary) 0%, var(--account-primary-dark) 100%);
    color: #ffffff;
    padding: 0;
    overflow: hidden;
}

/* 等级信息卡片 */
.level-card {
    padding: 20px;
    background: linear-gradient(135deg, var(--account-primary) 0%, var(--account-primary-dark) 100%);
    position: relative;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.current-level-badge {
    background: rgba(255, 193, 7, 0.9);
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.member-days {
    font-size: 14px;
    opacity: 0.95;
}

.level-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.level-text {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.level-icon {
    flex-shrink: 0;
}

.level-progress {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

/* 积分显示 */
.points-display {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.points-icon {
    font-size: 20px;
    line-height: 1;
}

.points-label {
    font-size: 14px;
    opacity: 0.9;
    flex: 1;
}

.points-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* 统计数据行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    padding: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 0 10px;
}

.stat-item:not(:last-child) {
    border-right: 1px solid #f0f0f0;
}

.stat-label {
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}

/* 操作按钮 */
.action-buttons {
    padding: 16px 20px 20px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-check-in,
.btn-daily-tasks {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-check-in {
    background: transparent;
    color: var(--account-primary);
    border: 2px solid var(--account-primary);
}

.btn-check-in:hover {
    background: var(--account-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.btn-daily-tasks {
    background: transparent;
    color: var(--account-primary);
    border: 2px solid var(--account-primary);
}

.btn-daily-tasks:hover {
    background: var(--account-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* Hot Topics Card */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.card-tabs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.card-tab {
    padding: 5px 14px;
    border: none;
    background: transparent;
    color: #8c8c8c;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hot-topics-card .card-header {
    gap: 12px;
}

.hot-topics-card .card-header h3 {
    flex: 0 1 auto;
    min-width: 0;
}

.card-tab:hover {
    color: var(--account-primary);
    background: #fff5f0;
}

.card-tab.active {
    color: var(--account-primary);
    background: #ffe8db;
}

.hot-topics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-topics-empty {
    padding: 24px 12px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}

.hot-topic-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hot-topic-item:hover {
    background: #f5f5f5;
}

.hot-topic-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.hot-topic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
}

.hot-topic-content {
    flex: 1;
    min-width: 0;
}

.hot-topic-content h4 {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.hot-topic-content h4 a {
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-topic-content h4 a:hover {
    color: var(--account-primary);
}

.hot-topic-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8c8c8c;
}

.hot-badge {
    padding: 2px 8px;
    background: #ff4d4f;
    color: #ffffff;
    border-radius: 3px;
    font-size: 11px;
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   编辑资料模态框
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-container {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #8c8c8c;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* 封面编辑区域 */
.edit-cover-section {
    position: relative;
    margin-bottom: 24px;
}

.edit-cover-preview {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f2f5;
    border-radius: 8px;
    overflow: hidden;
}

.btn-upload-cover {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-upload-cover:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 头像编辑 */
.edit-avatar-wrapper {
    position: absolute;
    bottom: -50px;
    left: 24px;
}

.edit-avatar-preview {
    position: relative;
}

.edit-avatar-preview img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    display: block;
}

.btn-change-avatar {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--account-primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.btn-change-avatar:hover {
    background: var(--account-primary-light);
    transform: translateX(-50%) translateY(-1px);
}

/* 表单字段 */
.edit-form-fields {
    margin-top: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1a1a;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--account-primary-light);
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.1);
}

.form-control::placeholder {
    color: #bfbfbf;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.social-inputs {
    display: grid;
    gap: 10px;
}

/* 隐私设置 */
.privacy-settings-group {
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.privacy-hint {
    margin: 0 0 12px;
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.5;
}

.privacy-options {
    display: grid;
    gap: 10px;
}

.privacy-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.privacy-option:hover {
    border-color: var(--account-primary-light);
    background: #fffaf5;
}

.privacy-option input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--account-primary);
    cursor: pointer;
}

.privacy-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.privacy-option-text strong {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
}

.privacy-option-desc {
    font-size: 12px;
    color: #8c8c8c;
}

/* 模态框底部 */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.btn-save-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 32px;
    background: var(--account-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(255, 106, 0, 0.2);
}

.btn-save-profile:hover:not(:disabled) {
    background: var(--account-primary-light);
    box-shadow: 0 4px 8px rgba(255, 106, 0, 0.3);
    transform: translateY(-1px);
}

.btn-save-profile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .account-page-container {
        padding: 10px;
    }
    
    .account-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        order: -1;
        position: static;
    }
    
    .account-tabs-nav {
        padding: 0 12px;
        gap: 4px;
    }

    .account-main-tab {
        padding: 13px 16px;
        font-size: 15px;
        gap: 6px;
    }

    .account-main-tab svg {
        width: 16px;
        height: 16px;
    }

    .account-sub-tabs-wrap {
        padding: 6px 12px 0;
    }

    .account-sub-tabs {
        gap: 8px;
        padding: 8px 0 12px;
    }

    .account-tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .account-tabs-content {
        padding: 16px;
    }
    
    .modal-container {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .edit-cover-preview {
        height: 150px;
    }
    
    .edit-avatar-wrapper {
        left: 20px;
        bottom: -40px;
    }
    
    .edit-avatar-preview img {
        width: 80px;
        height: 80px;
    }
    
    .edit-form-fields {
        margin-top: 50px;
    }
    
    .profile-cover {
        height: 150px;
    }
    
    .profile-content {
        flex-direction: column;
        padding: 0 20px 20px;
    }
    
    .profile-avatar-wrapper {
        margin-top: -50px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar-verified-badge {
        width: 28px;
        height: 28px;
    }
    
    .avatar-verified-badge svg {
        width: 20px;
        height: 20px;
    }
    
    .profile-info {
        padding-top: 10px;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .profile-header-right {
        width: 100%;
    }
    
    .btn-edit-profile {
        width: 100%;
        justify-content: center;
    }
    
    .profile-username {
        font-size: 20px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    /* 用户统计卡片响应式 */
    .level-text {
        font-size: 36px;
    }
    
    .level-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .stats-row {
        padding: 16px 0;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .profile-cover {
        height: 120px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-username {
        font-size: 18px;
    }
    
    .profile-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* 我的品牌样式 */
.my-brands-container {
    max-width: 100%;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.brand-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.brand-card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.brand-card-content {
    padding: 20px;
}

.brand-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.brand-card-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6b7280;
}

.brand-votes {
    font-weight: 600;
    color: #FF6A00;
}

.brand-card-actions {
    display: flex;
    gap: 10px;
}

.btn-view-brand,
.btn-edit-brand {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view-brand {
    background: #f3f4f6;
    color: #374151;
}

.btn-view-brand:hover {
    background: #e5e7eb;
}

.btn-edit-brand {
    background: #FF6A00;
    color: white;
}

.btn-edit-brand:hover {
    background: #E55D00;
}

/* 认领申请列表 */
.my-claims-list {
    margin-top: 40px;
}

.my-claims-list h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1f2937;
}

.claim-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 15px;
}

.claim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.claim-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.claim-status {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.claim-status.pending {
    background: #FFF7E6;
    color: #FA8C16;
}

.claim-status.approved {
    background: #F0FDF4;
    color: #10B981;
}

.claim-status.rejected {
    background: #FEF2F2;
    color: #EF4444;
}

.claim-card-meta {
    font-size: 14px;
    color: #6b7280;
}

.claim-reject-reason {
    margin-top: 12px;
    padding: 12px;
    background: #FEF2F2;
    border-left: 3px solid #EF4444;
    border-radius: 4px;
    font-size: 14px;
    color: #EF4444;
}

/* ========================================
   Notification Toast
   ======================================== */

.account-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.account-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.account-notification svg {
    flex-shrink: 0;
}

.account-notification span {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

/* Success notification */
.account-notification.notification-success {
    border-left: 4px solid #10b981;
}

.account-notification.notification-success svg {
    color: #10b981;
}

/* Error notification */
.account-notification.notification-error {
    border-left: 4px solid #ef4444;
}

.account-notification.notification-error svg {
    color: #ef4444;
}

/* Info notification */
.account-notification.notification-info {
    border-left: 4px solid #3b82f6;
}

.account-notification.notification-info svg {
    color: #3b82f6;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .account-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .btn-check-in,
    .btn-daily-tasks {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ========================================
   Followers List Styles
   ======================================== */

.follower-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.follower-item:last-child {
    border-bottom: none;
}

.follower-item:hover {
    background: #fafafa;
    margin: 0 -20px;
    padding: 16px 20px;
    border-radius: 8px;
}

.follower-avatar {
    flex-shrink: 0;
}

.follower-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.follower-info {
    flex: 1;
    min-width: 0;
}

.follower-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.follower-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.follower-name:hover {
    color: var(--account-primary);
}

.follower-level {
    padding: 2px 8px;
    background: #fff5f0;
    color: var(--account-primary);
    border: 1px solid #ffd4b3;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.follower-bio {
    font-size: 13px;
    color: #8c8c8c;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follower-actions {
    flex-shrink: 0;
}

.btn-follow-user {
    padding: 8px 20px;
    border: 2px solid var(--account-primary);
    background: transparent;
    color: var(--account-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-follow-user:hover {
    background: var(--account-primary);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.btn-follow-user.following {
    background: var(--account-primary);
    color: #ffffff;
}

.btn-follow-user.following:hover {
    background: #dc3545;
    border-color: #dc3545;
}

@media (max-width: 768px) {
    .follower-item {
        padding: 12px 0;
    }
    
    .follower-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .follower-name {
        font-size: 14px;
    }
    
    .follower-bio {
        font-size: 12px;
    }
    
    .btn-follow-user {
        padding: 6px 16px;
        font-size: 13px;
    }
}


/* ========================================
   System Notifications 样式
   ======================================== */

/* 二级标签导航 */
.notification-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.notification-sub-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-sub-tab:hover {
    color: #FF6A00;
    background: #fff5f0;
}

.notification-sub-tab.active {
    color: #FF6A00;
    background: #fff5f0;
    /* font-weight: 600; */
}

/* 通知列表 */
.system-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item-card {
    position: relative;
    display: flex;
    gap: 15px;
    padding: 16px;
    background: #fafafa;
    /* border: 1px solid #e5e7eb; */
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notification-item-card:hover {
    background: #ffffff;
    border-color: #FF6A00;
    /* box-shadow: 0 2px 12px rgba(255, 106, 0, 0.08); */
    /* transform: translateY(-1px); */
}

.notification-avatar {
    flex-shrink: 0;
}

.notification-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    margin-bottom: 8px;
}

.notification-text strong {
    font-weight: 600;
    color: #111827;
}

.notification-link {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 500;
}

.notification-link:hover {
    text-decoration: underline;
}

.notification-excerpt {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 12px;
    background: #ffffff;
    border-left: 3px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.notification-actions {
    margin: 10px 0 8px 0;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.notification-time svg {
    width: 14px;
    height: 14px;
    stroke: #9ca3af;
}

.btn-view-profile {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #FF6A00;
    background: #ffffff;
    border: 1px solid #FF6A00;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-profile:hover {
    background: #FF6A00;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .notification-sub-tabs {
        gap: 6px;
        margin-bottom: 16px;
    }
    
    .notification-sub-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .notification-item-card {
        padding: 12px;
        gap: 12px;
    }
    
    .notification-avatar img {
        width: 38px;
        height: 38px;
    }
    
    .notification-text {
        font-size: 13px;
    }
    
    .notification-excerpt {
        font-size: 12px;
        padding: 10px;
    }
}

/* ========================================
   官方通知特殊样式
   ======================================== */

/* 官方通知卡片 */
.notification-system {
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    border-left: 4px solid #FF6A00 !important;
}

.notification-system .notification-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-system .system-icon {
    font-size: 20px;
    line-height: 1;
}

.notification-system .notification-excerpt {
    background: rgba(255, 106, 0, 0.05);
    padding: 12px;
    border-radius: 6px;
    margin: 8px 0;
}

.btn-notification-action {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    background: #FF6A00;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-notification-action:hover {
    background: #E65F00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

/* 不同类型的官方通知图标颜色 */
.notification-system[data-notification-type="announcement"] {
    border-left-color: #3b82f6;
}

.notification-system[data-notification-type="activity"] {
    border-left-color: #10b981;
}

.notification-system[data-notification-type="warning"] {
    border-left-color: #f59e0b;
}

.notification-system[data-notification-type="policy"] {
    border-left-color: #6366f1;
}

.notification-system[data-notification-type="achievement"] {
    border-left-color: #f59e0b;
}


/* ========================================
   我的订阅标签页样式
   ======================================== */

.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.subscription-item {
    border-bottom: 1px solid #f0f0f0;
}

.subscription-item:last-child {
    border-bottom: none;
}

/* 整个订阅项作为链接 */
.subscription-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
}

.subscription-link:hover {
    background-color: #fafafa;
    padding-left: 12px;
    padding-right: 12px;
    margin-left: -12px;
    margin-right: -12px;
    border-radius: 8px;
}

/* 分类图标 */
.subscription-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8533 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.2);
    transition: all 0.3s ease;
}

.subscription-link:hover .subscription-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.subscription-icon svg {
    stroke: #ffffff;
}

/* 分类内容 */
.subscription-content {
    flex: 1;
    min-width: 0;
}

.subscription-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    transition: color 0.2s ease;
}

.subscription-link:hover .subscription-title {
    color: #FF6A00;
}

.subscription-description {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.subscription-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #999;
}

.subscription-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.subscription-meta .meta-item svg {
    flex-shrink: 0;
    stroke: #999;
}

/* 右侧箭头 */
.subscription-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.subscription-arrow svg {
    stroke: #666;
}

.subscription-link:hover .subscription-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.subscription-link:hover .subscription-arrow svg {
    stroke: #FF6A00;
}

/* 空状态样式 */
.subscriptions-list .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.subscriptions-list .empty-state svg {
    stroke: #d0d0d0;
    margin-bottom: 16px;
}

.subscriptions-list .empty-state p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #999;
}

.btn-browse-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #FF6A00 0%, #FF8533 100%);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.btn-browse-categories:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .subscription-link {
        gap: 12px;
    }
    
    .subscription-icon {
        width: 48px;
        height: 48px;
    }
    
    .subscription-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .subscription-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .subscription-arrow {
        width: 24px;
        height: 24px;
    }
    
    .subscription-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .subscription-link {
        padding: 16px 0;
    }
    
    .subscription-title {
        font-size: 15px;
    }
    
    .subscription-description {
        font-size: 13px;
    }
    
    .subscription-meta {
        font-size: 12px;
    }
}

/* ========================================
   Account Settings Modal
   ======================================== */

.modal-container.modal-container-narrow {
    max-width: 480px;
}

.settings-section {
    padding: 4px 0;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.settings-section-desc {
    font-size: 13px;
    color: #8c8c8c;
    margin: 0 0 16px;
    line-height: 1.6;
}

/* 密码输入 + 小眼睛 */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form-control {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.password-toggle:hover {
    color: var(--account-primary);
    background: rgba(255, 106, 0, 0.06);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* 强度条 */
.password-strength {
    margin-top: 8px;
}

.password-strength .strength-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.password-strength .strength-bar {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    transition: background 0.2s;
}

.password-strength .strength-text {
    font-size: 12px;
    color: #8c8c8c;
}

/* level: 0 空 / 1 弱 / 2 中 / 3 强 / 4 很强 */
.password-strength[data-level="1"] .strength-bar:nth-child(-n+1) { background: #ef4444; }
.password-strength[data-level="1"] .strength-text { color: #ef4444; }

.password-strength[data-level="2"] .strength-bar:nth-child(-n+2) { background: #f59e0b; }
.password-strength[data-level="2"] .strength-text { color: #f59e0b; }

.password-strength[data-level="3"] .strength-bar:nth-child(-n+3) { background: #10b981; }
.password-strength[data-level="3"] .strength-text { color: #10b981; }

.password-strength[data-level="4"] .strength-bar { background: #059669; }
.password-strength[data-level="4"] .strength-text { color: #059669; font-weight: 600; }

/* 「同时注销其他设备」checkbox 行 */
.settings-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #1a1a1a;
}

.settings-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--account-primary);
    cursor: pointer;
}

/* 表单底部：忘记密码链接 + 提交按钮 */
.settings-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
}

.forgot-password-link {
    font-size: 13px;
    color: var(--account-primary);
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .settings-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .settings-form-footer .btn-save-profile {
        width: 100%;
        justify-content: center;
    }
    
    .forgot-password-link {
        text-align: center;
    }
}

/* ================================================
 * Inquiries Tab（商家询盘收件箱）
 * ================================================ */

/* Tab 按钮上的小红点角标 */
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.tab-badge-unread {
    background: #ef4444;
    box-shadow: 0 0 0 2px #fff;
}

/* 顶部筛选条 */
.inquiries-container {
    max-width: 100%;
}

.inquiries-header {
    margin-bottom: 16px;
}

.inquiries-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.inquiry-filter-btn {
    padding: 8px 14px;
    background: #f8f9fa;
    border: 1px solid #f0f0f0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inquiry-filter-btn:hover {
    background: #fff;
    border-color: #FFE5D6;
    color: #FF6A00;
}

.inquiry-filter-btn.is-active {
    background: #FF6A00;
    border-color: #FF6A00;
    color: #fff;
}

.iq-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 11px;
    font-weight: 600;
}

.inquiry-filter-btn.is-active .iq-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 询盘列表 */
.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inquiry-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    border-radius: 10px;
    padding: 16px 20px;
    transition: box-shadow 0.2s;
}

.inquiry-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.inquiry-card.inquiry-status-new {
    border-left-color: #FF6A00;
    background: #fffbf7;
}

.inquiry-card.inquiry-status-replied {
    border-left-color: #10b981;
}

.inquiry-card.inquiry-status-archived {
    opacity: 0.7;
}

.inquiry-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.inquiry-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.inquiry-status-badge.inquiry-status-new {
    background: #FF6A00;
    color: #fff;
}

.inquiry-status-badge.inquiry-status-read {
    background: #e5e7eb;
    color: #4b5563;
}

.inquiry-status-badge.inquiry-status-replied {
    background: #dcfce7;
    color: #10b981;
}

.inquiry-status-badge.inquiry-status-archived {
    background: #f3f4f6;
    color: #9ca3af;
}

.inquiry-time {
    font-size: 12px;
    color: #999;
}

.inquiry-target {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #f0f0f0;
}

.inquiry-target a {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 500;
}

.inquiry-target a:hover {
    text-decoration: underline;
}

.inquiry-body {
    margin-bottom: 14px;
}

.inquiry-from {
    font-size: 15px;
    color: #1f2937;
    margin-bottom: 4px;
}

.inquiry-company {
    color: #9ca3af;
    font-size: 13px;
    font-weight: normal;
}

.inquiry-contact {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

.inquiry-contact a {
    color: #FF6A00;
    text-decoration: none;
}

.inquiry-contact a:hover {
    text-decoration: underline;
}

.inquiry-message {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    background: #f9fafb;
    padding: 12px 14px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.inquiry-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-inquiry-action,
.btn-iq-primary,
.btn-iq-secondary,
.btn-iq-ghost {
    padding: 7px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-iq-primary {
    background: #FF6A00;
    color: #fff;
    border-color: #FF6A00;
}

.btn-iq-primary:hover {
    background: #E65F00;
}

.btn-iq-secondary {
    background: #fff;
    color: #FF6A00;
    border-color: #FFE5D6;
}

.btn-iq-secondary:hover {
    background: #FFF5EE;
}

.btn-iq-ghost {
    background: transparent;
    color: #6b7280;
    border-color: #e5e7eb;
}

.btn-iq-ghost:hover {
    background: #f9fafb;
    color: #374151;
}

.btn-inquiry-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 640px) {
    .inquiry-card {
        padding: 14px 16px;
    }
    .inquiry-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .inquiry-actions {
        gap: 6px;
    }
    .btn-inquiry-action,
    .btn-iq-primary,
    .btn-iq-secondary,
    .btn-iq-ghost {
        flex: 1;
        justify-content: center;
    }
}
