* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --orange: #ff6600;
    --orange-gradient: linear-gradient(135deg, #ff8a00 0%, #ff6600 100%);
    --bg: #f5f5f5;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --text-light: #aaaaaa;
    --border: #e5e5e5;
    --border-light: #f0f0f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --danger: #e4393c;
    --success: #4caf50;
    --warning: #ff9800;
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.5;
}

#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg);
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 65px;
}

.page.active {
    display: block;
}

.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.page-header h1 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.page-subtitle {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 1px;
}

.home-header {
    position: relative;
    background: var(--primary-gradient);
    padding-bottom: 16px;
    overflow: hidden;
}

.home-header-bg {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.home-header-content {
    position: relative;
    z-index: 1;
}

.home-header-top {
    display: flex;
    align-items: center;
    padding: 16px 16px 12px;
    gap: 12px;
}

.home-logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.home-title {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.home-publish-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.home-publish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.home-publish-btn:active {
    transform: scale(0.96);
}

.home-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    border-radius: 12px;
    transition: all 0.2s;
}

.home-search-bar:focus-within {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.home-search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.home-search-bar input::placeholder {
    color: var(--text-muted);
}

.home-content {
    padding-top: 0;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px 12px;
}

.home-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.home-section-tip {
    font-size: 12px;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.page-content {
    padding: 12px;
}

.btn-back {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.25);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn-back::before {
    content: '';
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.95);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    border-radius: 50%;
    transition: all 0.25s;
}
.btn-back:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.btn-back:active {
    transform: scale(0.92);
    background: rgba(255,255,255,0.1);
}
.btn-back:active::before {
    background: rgba(255,255,255,0.7);
}

.btn-add {
    background: rgba(255,255,255,0.95);
    border: none;
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-add:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-add:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    color: var(--text);
    transition: all 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: none;
    line-height: 1.6;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row input {
    flex: 1;
}

.btn-code {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

.btn-code:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.15);
}

.btn-code:disabled {
    background: #f5f5f5;
    color: var(--text-light);
    border-color: #e0e0e0;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-code:active:not(:disabled) {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(0.97);
}

.btn-primary {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: scale(0.98) translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.publish-fixed-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    z-index: 100;
}

.demand-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.demand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.demand-card:active {
    transform: scale(0.98) translateY(0);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.card-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 8px;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:active img {
    transform: scale(1.08);
}

.card-time {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-time::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-light);
    border-radius: 50%;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-item {
    background: white;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
}

.message-item:active {
    transform: scale(0.99);
    box-shadow: var(--shadow);
}

.message-avatar {
    width: 46px;
    height: 46px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.message-info {
    flex: 1;
    min-width: 0;
}

.message-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.message-last {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
}

#page-chat.active {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

#page-chat .page-content {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.chat-content {
    padding: 0;
    padding-bottom: 60px;
    overflow-y: auto;
    flex: 1;
}

.chat-messages {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
}

.chat-message {
    display: flex;
    gap: 8px;
    max-width: 75%;
}

.chat-message.self {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.other {
    align-self: flex-start;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-content {
    display: flex;
    flex-direction: column;
}

.chat-name {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message.self .chat-bubble {
    background: var(--primary-gradient);
    color: white;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.chat-message.other .chat-bubble {
    background: white;
    color: var(--text);
    border-top-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.chat-message.self .chat-time {
    text-align: right;
}

.chat-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: white;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--border);
    z-index: 100;
}

.chat-input-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-full);
    font-size: 14px;
    background: #f8f8f8;
}

.chat-input-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.btn-send {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-send:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.btn-send:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.btn-plus {
    background: rgba(0,0,0,0.05);
    border: none;
    font-size: 26px;
    color: #666;
    cursor: pointer;
    padding: 6px 8px;
    line-height: 1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 300;
    border-radius: 8px;
}

.btn-plus:hover {
    background: rgba(0,0,0,0.08);
    color: #333;
}

.btn-plus:active {
    transform: scale(0.92);
    background: rgba(0,0,0,0.1);
}

.plus-panel {
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    background: #f8f8f8;
    border-top: 1px solid #e8e8e8;
    padding: 16px;
    z-index: 101;
}

.emoji-picker {
    position: absolute;
    bottom: 52px;
    left: 0;
    right: 0;
    background: #f8f8f8;
    border-top: 1px solid #e8e8e8;
    padding: 8px 8px 12px;
    z-index: 101;
    max-height: 320px;
    overflow-y: auto;
}

.plus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.plus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 0;
    border-radius: 8px;
    transition: background 0.15s;
}

.plus-item:active {
    background: #e8e8e8;
}

.plus-item-icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.plus-item-label {
    font-size: 11px;
    color: #666;
}

.plus-panel-inline {
    background: #f8f8f8;
    border-top: 1px solid #e8e8e8;
    padding: 16px;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding: 6px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
    user-select: none;
}

.emoji-item:active {
    background: #e0e0e0;
}

.picker-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 8px 4px 6px;
}

.picker-list {
    max-height: 200px;
    overflow-y: auto;
}

.picker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.picker-item:active {
    background: #e8e8e8;
}

.picker-item-cover {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.picker-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.picker-item-info {
    flex: 1;
    min-width: 0;
}

.picker-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picker-item-desc {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.chat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    max-width: 220px;
    transition: box-shadow 0.15s;
}

.chat-card:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chat-card-cover {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    overflow: hidden;
}

.chat-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-card-image-only .chat-card-cover {
    aspect-ratio: 1;
}

.chat-card-info {
    flex: 1;
    padding: 8px 10px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-card-label {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-card-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-card-desc {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.chat-card-tags {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.chat-card-tags span {
    font-size: 10px;
    padding: 1px 6px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #666;
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    border-top: 1px solid var(--border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.tab {
    flex: 1;
    padding: 6px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tab:active {
    transform: scale(0.92);
    transition: transform 0.1s;
}

.tab .unread-badge {
    top: 2px;
    right: 50%;
    margin-right: -18px;
}

.tab.active {
    color: var(--primary);
}

.tab.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}

.tab-icon {
    font-size: 22px;
    margin-bottom: 1px;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.tab.active .tab-icon {
    transform: scale(1.15) translateY(-1px);
}

.tab:active .tab-icon {
    transform: scale(0.85);
}

.tab-text {
    font-size: 10px;
    font-weight: 500;
}

.profile-header {
    background: var(--primary-gradient);
    color: white;
    padding: 36px 20px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: -12px -12px -12px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.avatar {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    position: relative;
    z-index: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
}

.user-phone {
    font-size: 13px;
    opacity: 0.9;
}

.profile-menu {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.profile-header-new {
    background: var(--primary-gradient);
    padding: 0 0 20px;
    position: relative;
    overflow: hidden;
}

.profile-bg-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.profile-top-bar {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-user-card {
    display: flex;
    align-items: center;
    padding: 20px 20px 24px;
    position: relative;
}

.profile-avatar-new {
    position: relative;
    margin-right: 16px;
}

.profile-info-new {
    flex: 1;
}

.profile-name-new {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.profile-phone-new {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.profile-edit-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-edit-icon:hover {
    background: rgba(255,255,255,0.25);
}

.profile-edit-icon:active {
    transform: scale(0.92);
}

.profile-stats-new {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    margin: 0 16px;
    border-radius: 12px;
    padding: 14px 0;
    backdrop-filter: blur(10px);
}

.profile-stat-item-new {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.profile-stat-item-new:active {
    transform: scale(0.95);
}

.profile-stat-num-new {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.profile-stat-label-new {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

.profile-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
}

.profile-menu-section {
    padding: 16px;
}

.profile-menu-card-new {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.profile-menu-item-new {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.profile-menu-item-new:not(:last-child) {
    border-bottom: 1px solid #f5f5f5;
}

.profile-menu-item-new:active {
    background: #fafafa;
}

.profile-menu-icon-new {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.profile-menu-text-new {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.profile-menu-extra {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 8px;
}

.profile-menu-arrow-new {
    color: #ccc;
    flex-shrink: 0;
}

.profile-logout-new {
    width: 100%;
    padding: 15px;
    background: white;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.profile-logout-new:hover {
    background: #fff5f5;
    color: #ff4d4f;
}

.profile-logout-new:active {
    transform: scale(0.98);
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.profile-menu-group {
    margin: 16px;
}

.profile-menu-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-left: 4px;
}

.profile-menu-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:active {
    background: var(--bg);
}

.profile-menu-icon {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.profile-menu-item span:nth-child(2) {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.profile-menu-badge {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 8px;
}

.profile-menu-arrow {
    font-size: 20px;
    color: var(--text-light);
}

.profile-logout-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 8px 16px 24px;
    padding: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.profile-logout-btn:hover {
    background: #fff5f5;
    border-color: #ffccc7;
    color: #ff4d4f;
}

.profile-logout-btn:active {
    transform: scale(0.98);
}

.menu-item {
    padding: 15px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background 0.15s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #fafafa;
}

.menu-item span:first-child {
    font-size: 14px;
    font-weight: 500;
}

.menu-item span:last-child {
    color: var(--text-light);
    font-size: 14px;
}

.task-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.task-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.task-tab.active {
    background: var(--primary-gradient);
    color: white;
}

.task-item {
    background: white;
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
}

.task-item:active {
    box-shadow: var(--shadow);
}

.task-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(80, 80, 80, 0.15) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.task-info {
    flex: 1;
    min-width: 0;
}

.task-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.task-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.task-action {
    flex-shrink: 0;
}

.task-btn {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.task-btn.pending {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.task-btn.pending:active {
    transform: scale(0.95);
}

.task-btn.completed {
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary);
}

.task-btn.claimed {
    background: #f5f5f5;
    color: var(--text-light);
}

.task-points {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 2px;
}

.task-item-login .task-info {
    max-width: 100%;
}

.task-item-login {
    background: linear-gradient(135deg, white 0%, rgba(80, 80, 80, 0.03) 100%);
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.streak-calendar {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 0;
}

.streak-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.streak-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f0f0f0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s;
}

.streak-day.done .streak-dot {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.streak-day.today .streak-dot {
    background: white;
    color: var(--warning);
    border: 2px solid var(--warning);
    animation: pulse 1.5s infinite;
}

.streak-pts {
    font-size: 9px;
    color: var(--text-light);
    font-weight: 500;
}

.streak-day.done .streak-pts {
    color: var(--primary);
    font-weight: 600;
}

.streak-day:last-child .streak-dot {
    background: linear-gradient(135deg, #ff9800 0%, #e4393c 100%);
    color: white;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.35);
}

.streak-day:last-child .streak-pts {
    color: var(--primary);
    font-weight: 700;
}

.streak-info {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.78);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.empty-tip {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
    font-size: 14px;
}

.load-more-tip {
    text-align: center;
    color: var(--primary);
    padding: 16px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.load-more-tip:hover {
    opacity: 0.8;
}

.load-more-tip:active {
    transform: scale(0.98);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.login-modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 88%;
    max-width: 340px;
    overflow: hidden;
    animation: slideUp 0.25s ease;
    box-shadow: var(--shadow-lg);
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(24px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal .modal-header-bar {
    background: var(--primary-gradient);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-modal .modal-header-bar h2 {
    font-size: 17px;
    font-weight: 600;
}

.modal-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.modal-close-btn:active {
    transform: scale(0.9);
    background: rgba(255,255,255,0.3);
}

.modal-box {
    background: white;
    border-radius: var(--radius-lg);
    width: 88%;
    max-width: 340px;
    overflow: hidden;
    animation: slideUp 0.25s ease;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 16px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    padding: 9px 18px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-cancel:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.btn-cancel:active {
    transform: scale(0.97);
    background: #e8e8e8;
}

.btn-primary {
    padding: 9px 18px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 13px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.login-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.login-modal .modal-form {
    padding: 20px 20px 24px;
}

.login-modal .form-group {
    margin-bottom: 12px;
}

.login-modal .form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f8f8;
    transition: all 0.2s;
}

.login-modal .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.login-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 12px;
}

.upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.02);
}

.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.upload-icon {
    font-size: 32px;
    color: var(--text-light);
}

.upload-text {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}

.preview-item {
    position: relative;
    width: 76px;
    height: 76px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.add-more {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.detail-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-avatar {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.detail-username {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.btn-chat {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-chat:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.btn-chat:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.btn-delete {
    background: linear-gradient(135deg, var(--danger) 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(211, 47, 47, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-delete:hover {
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
    transform: translateY(-1px);
}

.btn-delete:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.25);
}

.detail-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 14px;
}

.detail-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-image-item {
    width: 100%;
    cursor: pointer;
}

.detail-image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: all 0.2s;
}

.detail-image-item:active img {
    transform: scale(0.99);
}

.detail-actions {
    margin-top: 18px;
}

.btn-password {
    width: 100%;
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 13px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.btn-password:hover {
    background: rgba(102, 126, 234, 0.03);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.btn-password:active {
    background: rgba(102, 126, 234, 0.08);
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

.btn-contact {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

.btn-contact:hover {
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.35);
    transform: translateY(-1px);
}

.btn-contact:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    cursor: pointer;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    overflow: hidden;
    border: 3px solid rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-hint {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    cursor: pointer;
}

.image-overlay img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.chat-header-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
}

.chat-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demand-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media screen and (max-width: 375px) {
    .page-content {
        padding: 10px;
    }
}

@media screen and (min-width: 750px) {
    #app {
        box-shadow: 0 0 40px rgba(0,0,0,0.08);
    }
}

.unread-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    background: var(--danger);
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    z-index: 10;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-unread-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    background: var(--danger);
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(255,255,255,0.4);
    z-index: 10;
}

.ent-search-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0);
    z-index: 2000;
    visibility: hidden;
    transition: all 0.3s;
}

.ent-search-drawer.open {
    background: rgba(0,0,0,0.5);
    visibility: visible;
}

.ent-search-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ent-search-drawer.open .ent-search-panel {
    transform: translateX(0);
}

.ent-search-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.ent-search-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.ent-search-close {
    width: 28px;
    height: 28px;
    background: var(--bg);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.ent-search-close:active {
    background: #e0e0e0;
}

.ent-search-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.ent-search-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.ent-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.ent-search-input {
    width: 100%;
    padding: 11px 14px 11px 38px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg);
    transition: all 0.2s;
}

.ent-search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.ent-search-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.ent-search-confirm {
    width: 100%;
    padding: 12px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.ent-search-confirm:active {
    transform: scale(0.98);
}

.enterprise-search {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-full);
    font-size: 14px;
    background: white;
    box-shadow: var(--shadow-sm);
}

.enterprise-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.enterprise-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.enterprise-search-wrap::before {
    content: '棣冩敵';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

.enterprise-tag-filters {
    margin-bottom: 12px;
}

.tag-group {
    margin-bottom: 8px;
}

.tag-group-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.tag-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    background: #f8f8f8;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tag-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.tag-filter-btn:active {
    transform: scale(0.96);
}

.tag-filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.enterprise-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s;
    cursor: pointer;
}

.enterprise-card:active {
    transform: scale(0.99);
    box-shadow: var(--shadow);
}

.enterprise-card-certified {
    border: 1.5px solid rgba(34, 197, 94, 0.3);
}

.enterprise-card-cover-wrap {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.enterprise-card-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.enterprise-card-cert-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
    z-index: 1;
}

.enterprise-card-cover-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 140px;
    font-size: 48px;
    color: white;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.enterprise-card-body {
    padding: 10px 12px;
}

.enterprise-card .enterprise-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.enterprise-card .enterprise-address {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.enterprise-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.enterprise-card-tag {
    font-size: 10px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.07);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.12);
    line-height: 1.4;
}

.enterprise-card .enterprise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.enterprise-card .enterprise-tag {
    font-size: 11px;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.enterprise-card .enterprise-tag-active {
    background: var(--primary);
    color: white;
}

.product-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.15s;
}

.product-card:active {
    transform: scale(0.97);
}

.product-card-cover {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-cert {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 4px rgba(34, 197, 94, 0.35);
}
.product-card-pin {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    background: linear-gradient(135deg, #faad14, #d48806);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: 0 1px 4px rgba(250, 173, 20, 0.35);
}

.product-card-desc {
    padding: 4px 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    max-height: 36px;
    overflow: hidden;
    word-break: break-all;
}

.product-card-info {
    padding: 8px 10px;
}

.product-card-info .product-card-ent-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-card-ent-name {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.ent-detail-banner {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    cursor: pointer;
}
.ent-detail-img-item {
    width: calc(100% - 32px);
    margin: 0 16px 8px;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.ent-detail-img-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s;
}
.ent-detail-img-item:active img {
    transform: scale(1.02);
}

.ent-detail-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ent-detail-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
}

.ent-detail-img-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}

.ent-detail-banner-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.ent-detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 10px;
    margin-bottom: 8px;
    scroll-behavior: smooth;
}

.ent-detail-thumbs::-webkit-scrollbar {
    display: none;
}

.ent-detail-thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.ent-detail-thumb:active {
    transform: scale(0.95);
}

.ent-detail-thumb-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.ent-detail-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin: 0 16px 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ent-detail-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.ent-detail-address svg {
    flex-shrink: 0;
    color: var(--primary);
}

.ent-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ent-detail-tag {
    font-size: 12px;
    color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.ent-detail-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ent-detail-desc {
    font-size: 15px;
    color: #333;
    line-height: 1.9;
    white-space: pre-wrap;
    font-weight: 500;
}

.ent-detail-video {
    width: 100%;
    border-radius: 14px;
    max-height: 300px;
    margin: 0 16px;
    width: calc(100% - 32px);
}

.ent-detail-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ent-detail-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.ent-detail-user-avatar-text {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.ent-detail-user-info {
    flex: 1;
    min-width: 0;
}

.ent-detail-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.ent-detail-user-phone {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.ent-detail-chat-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99,102,241,0.3);
    transition: all 0.15s;
}

.ent-detail-chat-btn:active {
    transform: scale(0.96);
}

.ent-detail-edit-wrap {
    margin-top: 6px;
}

.ent-detail-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.ent-detail-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ent-detail-section-row .ent-detail-section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ent-detail-more-btn {
    background: none;
    border: 1.5px solid #6366f1;
    color: #6366f1;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.15s;
    line-height: 1;
    vertical-align: middle;
}

.ent-detail-more-btn:active {
    background: #6366f1;
    color: white;
}

.ent-more-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ent-more-group-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ent-more-tag-item {
    padding: 7px 16px;
    background: #fff;
    color: #6366f1;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(99,102,241,0.15);
    box-shadow: 0 1px 4px rgba(99,102,241,0.08);
    transition: all 0.15s;
}
.ent-more-tag-item:active {
    transform: scale(0.96);
    background: rgba(99,102,241,0.06);
}

.ent-more-empty {
    color: #bbb;
    font-size: 14px;
    padding: 40px 0;
    text-align: center;
}

.ent-viewer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.ent-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.ent-viewer-close:active {
    background: rgba(255,255,255,0.3);
}

.ent-viewer-img-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.ent-viewer-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s;
}

.ent-viewer-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 14px;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.ent-viewer-prev,
.ent-viewer-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.2s;
}

.ent-viewer-prev {
    left: 12px;
}

.ent-viewer-next {
    right: 12px;
}

.ent-viewer-prev:active,
.ent-viewer-next:active {
    background: rgba(255,255,255,0.3);
}

.product-list-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.product-list-item.item-on {
    border-left-color: #52c41a;
}
.product-list-item.item-off {
    border-left-color: #ff4d4f;
    opacity: 0.75;
}
.product-list-item:active {
    background: #f9f9f9;
}
.product-list-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-list-img span {
    font-size: 28px;
}
.product-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.product-list-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-list-status {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
    font-weight: 500;
}
.status-on {
    background: #52c41a;
    color: #fff;
}
.status-off {
    background: #ff4d4f;
    color: #fff;
}
.product-list-meta {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-list-time {
    font-size: 11px;
    color: #bbb;
}
.product-list-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    justify-content: center;
}
.product-list-btn {
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
}
.product-list-btn:active {
    background: #fff0f0;
}
.product-list-btn-off {
    border-color: #ff4d4f;
    color: #fff;
    background: #ff4d4f;
}
.product-list-btn-off:active {
    background: #cf1322;
}
.product-list-btn-on {
    border-color: #52c41a;
    color: #fff;
    background: #52c41a;
}
.product-list-btn-on:active {
    background: #389e0d;
}
.product-list-btn-sort {
    border-color: #d9d9d9;
    color: #666;
    background: #fafafa;
    padding: 4px 8px;
    font-size: 11px;
    min-width: 28px;
    text-align: center;
}
.product-list-btn-sort:active {
    background: #f0f0f0;
}
.product-list-btn-sort:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mp-img-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}
.mp-pin-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 12px;
    background: rgba(255,255,255,0.85);
    border-radius: 6px;
    padding: 1px 4px;
    backdrop-filter: blur(4px);
}
.mp-status-on {
    background: #e6f7e6;
    color: #389e0d;
}
.mp-status-off {
    background: #fff1f0;
    color: #cf1322;
}
.mp-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mp-grid-card {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: box-shadow 0.2s;
    border-left: 3px solid transparent;
}
.mp-grid-card.card-on {
    border-left-color: #52c41a;
}
.mp-grid-card.card-off {
    border-left-color: #d9d9d9;
    opacity: 0.8;
}
.mp-grid-card:active {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.mp-grid-cover {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}
.mp-grid-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mp-img-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 5px;
}
.mp-pin-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 12px;
    background: rgba(255,255,255,0.85);
    border-radius: 5px;
    padding: 1px 4px;
}
.mp-grid-info {
    flex: 1;
    min-width: 0;
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mp-grid-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}
.mp-grid-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}
.mp-grid-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.15s;
    border: 1.5px solid transparent;
}
.mp-grid-status:active {
    transform: scale(0.95);
}
.mp-status-on {
    background: #f6ffed;
    color: #389e0d;
    border-color: #b7eb8f;
}
.mp-status-off {
    background: #fff1f0;
    color: #cf1322;
    border-color: #ffa39e;
}
.mp-grid-status:active {
    transform: scale(0.95);
}
.mp-grid-meta {
    font-size: 11px;
    color: #bbb;
    margin-top: 2px;
}
.mp-grid-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    gap: 4px;
}
.mp-actions-left, .mp-actions-right {
    display: flex;
    gap: 4px;
}
.mp-act-btn {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #fafafa;
    color: #555;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.mp-act-btn:active {
    background: #f0f0f0;
    transform: scale(0.96);
}
.mp-act-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.mp-act-pin {
    border-color: #faad14;
    color: #d48806;
    background: #fffbe6;
}
.mp-act-unpin {
    border-color: #e8e8e8;
    color: #999;
}
.mp-act-mass {
    border-color: #b7ebff;
    color: #1890ff;
    background: #f0f7ff;
}
.mp-act-edit {
    border-color: #d0d0ff;
    color: #6366f1;
    background: #f0f0ff;
}
.mp-act-del {
    border-color: #ffccc7;
    color: #cf1322;
}
.product-list-btn-pin {
    border-color: #faad14;
    color: #faad14;
    background: #fffbe6;
}
.product-list-btn-pin:active {
    background: #fff1b8;
}
.product-list-btn-unpin {
    border-color: #d9d9d9;
    color: #999;
    background: #fafafa;
}
.product-list-btn-unpin:active {
    background: #f0f0f0;
}
.product-list-btn-del {
    border-color: #999;
    color: #999;
}
.product-list-btn-del:active {
    background: #f5f5f5;
}
.my-prod-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.my-prod-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.my-prod-filter-btn:active {
    opacity: 0.8;
}

.product-detail-fullscreen {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-fullscreen-img {
    width: 100%;
    display: block;
    object-fit: contain;
}
.product-detail-swipe-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 12px;
    pointer-events: none;
}

.product-img-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.15s;
}
.product-img-arrow:active {
    background: rgba(255,255,255,0.6);
}
.product-img-arrow-left {
    left: 10px;
}
.product-img-arrow-right {
    right: 10px;
}

.product-detail-desc {
    padding: 16px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    font-size: 15px;
    margin-bottom: 8px;
}
.product-detail-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
}
.product-detail-tag-group {
    margin-bottom: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.product-detail-tag-item {
    padding: 5px 12px;
    background: #f5f5f5;
    border-radius: 14px;
    font-size: 13px;
    color: #888;
}
.product-detail-tag-group-name {
    font-size: 13px;
    font-weight: 500;
    color: #999;
    margin-right: 6px;
    white-space: nowrap;
}
.product-detail-tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.product-detail-time {
    padding: 0 16px 16px;
    text-align: right;
    color: #aaa;
    font-size: 12px;
}
#page-product-detail .page-content {
    padding: 0;
}
.product-detail-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.product-detail-follow-btn {
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    transition: all .2s;
}
.product-detail-follow-btn.followed {
    background: var(--primary);
    color: #fff;
}

/* 娴间椒绗熼崥宥囧缂傛牞绶い鍨壉瀵?*/
.ent-edit-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ent-edit-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.ent-tags-box {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px;
    background: #fafafa;
    min-height: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    transition: all 0.2s;
}

.ent-tags-box:active {
    background: #f5f5f5;
    border-color: var(--primary);
}

.ent-tags-placeholder {
    color: #999;
    font-size: 13px;
}

.ent-upload-box {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.ent-upload-box:active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.03);
}

.ent-upload-icon {
    font-size: 32px;
    color: #ccc;
    margin-bottom: 8px;
}

.ent-upload-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.ent-upload-hint {
    font-size: 12px;
    color: #999;
}

.ent-image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ent-video-preview {
    margin-top: 12px;
}

.ent-edit-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 100;
}

.ent-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.ent-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.ent-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ent-video-item {
    position: relative;
    display: inline-block;
    max-width: 200px;
}

.ent-video-item video {
    width: 100%;
    border-radius: 8px;
}

/* 娴间椒绗熼弽鍥╊劮闁瀚ㄦい鍨壉瀵?*/
.ent-tag-done-btn {
    font-size: 14px;
    width: auto;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.ent-tag-done-btn:active {
    background: rgba(255,255,255,0.3);
}

.ent-tag-select-tip {
    font-size: 13px;
    color: #666;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(102, 126, 234, 0.03));
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary);
}

.ent-tag-group-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ent-tag-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.ent-tag-group-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ent-tag-option {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #555;
    transition: all 0.2s;
    user-select: none;
}

.ent-tag-option:active {
    transform: scale(0.96);
}

.ent-tag-option.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ent-tag-empty {
    text-align: center;
    color: #999;
    padding: 60px 20px;
    font-size: 14px;
}

.ent-tag-select-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.ent-tag-select-count {
    font-size: 14px;
    color: #666;
}

.ent-tag-select-count span {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
}

.ent-tag-selected-item {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
}

.following-toolbar {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: white;
}

.following-search-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #f5f5f5;
    border-radius: 8px;
}

.following-search-wrap input {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    font-size: 14px;
    outline: none;
    color: var(--text);
}

.following-search-wrap input::placeholder {
    color: #bbb;
}

.following-manage-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 14px;
    background: white;
    color: var(--primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.following-manage-btn:active {
    background: rgba(102, 126, 234, 0.08);
}

.following-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.following-empty-text {
    margin-top: 12px;
    font-size: 15px;
    color: #999;
    font-weight: 500;
}

.following-empty-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #ccc;
}

.following-category {
    margin-bottom: 4px;
}

.following-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    background: white;
    margin: 0 16px;
    border-radius: 8px;
    transition: background 0.15s;
}

.following-category-header:active {
    background: #f9f9f9;
}

.following-category-arrow {
    font-size: 11px;
    color: #bbb;
    transition: transform 0.2s;
    display: inline-block;
}

.following-category-arrow.expanded {
    transform: rotate(90deg);
}

.following-category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}

.following-category-count {
    font-size: 12px;
    color: var(--text-muted);
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.following-category-list {
    background: white;
    margin: 6px 16px 0;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.following-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.following-item:active {
    background: #f9f9f9;
}

.following-item + .following-item {
    border-top: 1px solid #f5f5f5;
}

.following-item-avatar {
    flex-shrink: 0;
}

.following-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.following-avatar-text {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.following-item-info {
    flex: 1;
    min-width: 0;
}

.following-item-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.following-item-original {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.following-cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.following-cat-tag {
    font-size: 11px;
    padding: 2px 6px;
    background: rgba(102, 126, 234, 0.08);
    color: var(--primary);
    border-radius: 4px;
}

.following-item-action {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s;
}

.following-item-action:active {
    background: #f0f0f0;
    color: #999;
}

.cat-manage-add-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.cat-manage-add-bar input {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

.cat-manage-add-bar input:focus {
    border-color: var(--primary);
}

.cat-manage-add-bar button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cat-manage-add-bar button:active {
    transform: scale(0.97);
}

.cat-manage-list {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.cat-manage-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.cat-manage-empty-text {
    margin-top: 12px;
    font-size: 15px;
    color: #999;
    font-weight: 500;
}

.cat-manage-empty-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #ccc;
    text-align: center;
    line-height: 1.5;
}

.cat-manage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.cat-manage-item:active {
    background: #f9f9f9;
}

.cat-manage-item + .cat-manage-item {
    border-top: 1px solid #f5f5f5;
}

.cat-manage-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cat-manage-item-info {
    flex: 1;
    min-width: 0;
}

.cat-manage-item-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.cat-manage-item-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cat-manage-item-delete {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: none;
    color: #999;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.cat-manage-item-delete:active {
    background: #fff1f0;
    color: #ef4444;
    border-color: #fecaca;
}

/* ===== 閻劍鍩涙稉顏冩眽娑撳銆?===== */
.up-hero {
    background: linear-gradient(160deg, #6366f1 0%, #8b5cf6 40%, #d946ef 100%);
    padding: 52px 20px 36px;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin: 0 -12px;
    text-align: center;
}
.up-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
}
.up-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.up-hero-inner {
    position: relative;
    z-index: 1;
}
.up-hero-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.up-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.up-avatar-fallback {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.up-info {
    flex: 1;
    min-width: 0;
}
.up-name {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.up-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    padding: 2px 10px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 10px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}
.up-enterprise-link {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}
.up-enterprise-link:active {
    opacity: 0.6;
}
.up-no-enterprise {
    font-size: 13px;
    opacity: 0.5;
    margin-top: 6px;
}
.up-signature {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.6;
    padding: 12px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(2px);
    position: relative;
    text-align: left;
}
.up-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    padding: 18px 0;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    margin-top: 20px;
}
.up-stat-item {
    cursor: pointer;
    transition: transform 0.15s;
}
.up-stat-item:active {
    transform: scale(0.95);
}
.up-stat-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}
.up-stat-label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}
.up-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.12);
    margin: 4px 0;
}
.up-actions {
    padding: 20px 20px 8px;
    display: flex;
    gap: 10px;
}
.up-btn-primary {
    flex: 1;
    padding: 14px 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 6px 20px rgba(99,102,241,0.35);
    transition: all 0.2s;
}
.up-btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(99,102,241,0.4);
}
.up-btn-outline {
    flex: 1;
    padding: 14px 0;
    background: #fff;
    color: #6366f1;
    border: 1.5px solid rgba(99,102,241,0.3);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.up-btn-outline:active {
    transform: scale(0.97);
    background: rgba(99,102,241,0.04);
}
.up-btn-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.2s;
}
.up-btn-icon:active {
    transform: scale(0.95);
    background: #f8f8f8;
}
.up-btn-block {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: #fff;
    border: 2px solid rgba(239,68,68,0.2);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(239,68,68,0.08);
    transition: all 0.2s;
}
.up-btn-block:active {
    transform: scale(0.93);
    background: #fff5f5;
}
.up-btn-block-active {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: 2px solid rgba(239,68,68,0.5);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(239,68,68,0.3);
    transition: all 0.2s;
}
.up-btn-block-active:active {
    transform: scale(0.93);
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}
.up-tabs {
    margin: 16px 20px 0;
    background: #f0f0f3;
    border-radius: 14px;
    padding: 4px;
    display: flex;
}
.up-tab {
    flex: 1;
    padding: 11px 0;
    border: none;
    background: transparent;
    color: #999;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.up-tab.active {
    background: #fff;
    color: #6366f1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.up-tab-content {
    padding: 14px 0 20px;
}
.up-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 20px;
}
.up-product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
}
.up-product-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.up-product-cover {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.up-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.up-product-card:active .up-product-cover img {
    transform: scale(1.03);
}
.up-product-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.up-product-desc {
    padding: 12px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    min-height: 38px;
}
.up-demand-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    margin: 0 20px 10px;
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}
.up-demand-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.up-demand-cover {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.up-demand-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.up-demand-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.up-demand-desc {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
}
.up-demand-time {
    font-size: 12px;
    color: #aaa;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}
.up-empty {
    text-align: center;
    padding: 56px 0;
}
.up-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0f0f3, #e8e8ec);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.up-empty-text {
    font-size: 14px;
    color: #bbb;
}
#page-user-profile .page-content {
    overflow: hidden;
}
#page-enterprise-detail .page-content {
    padding: 0;
    background: #f5f5f5;
}

/* ========== PC端 ========== */
@media screen and (min-width: 768px) {
    #app { max-width: 430px; margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,0.08); min-height: 100vh; background: var(--bg); }
    .page-header { position: sticky; top: 0; z-index: 50; }
}
.confirm-dialog {
    width: 85%;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 20px;
    text-align: center;
    animation: slideUp 0.25s ease;
}
.confirm-title {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}
.confirm-msg {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
}
.confirm-btns {
    display: flex;
    gap: 10px;
}
.confirm-cancel {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.confirm-cancel:active {
    background: #f5f5f5;
}
.confirm-ok {
    flex: 1;
    padding: 11px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.confirm-ok:active {
    opacity: 0.85;
}
.mass-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}

.mass-product-item:active {
    background: #f5f5f5;
}

.mass-product-item.selected {
    background: #f0f5ff;
    border-left-color: var(--primary);
}

.mass-product-cover {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mass-product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mass-send-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.25s ease;
    z-index: 2001;
}

@media screen and (min-width: 768px) {
    .mass-send-dialog {
        position: relative;
        border-radius: 16px;
        max-width: 400px;
        width: 92%;
        margin: 0 auto;
        max-height: 70vh;
    }
}

.mass-send-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mass-send-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mass-send-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.mass-send-close:active {
    background: #e8e8e8;
    transform: scale(0.95);
}

.mass-send-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 16px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 10px;
    flex-shrink: 0;
}

.mass-send-search input {
    flex: 1;
    border: none;
    background: none;
    font-size: 14px;
    outline: none;
    color: #333;
}

.mass-send-search input::placeholder {
    color: #bbb;
}

.mass-send-select-all {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mass-send-select-all label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.mass-send-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 200px;
    max-height: 50vh;
}

.mass-send-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}

.mass-send-user-item:active {
    background: #f5f5f5;
}

.mass-send-user-item.selected {
    background: #f0f5ff;
    border-left-color: var(--primary);
}

.mass-send-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.mass-send-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mass-send-user-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mass-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}

.mass-check.checked {
    border-color: var(--primary);
    background: var(--primary);
}

.mass-check.checked::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
}

.mass-send-footer {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mass-send-cancel {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

.mass-send-cancel:active {
    background: #f5f5f5;
}

.mass-send-confirm {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.mass-send-confirm:active {
    opacity: 0.85;
}

.mass-send-confirm:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 12px;
    color: #999;
    font-size: 14px;
}

@keyframes certPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(99,102,241,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(99,102,241,0.08); }
}

