* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.recognition-modal-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: move;
}

.recognition-modal {
    background: #000;
    border-radius: 8px;
    border: 2px solid #3a3a3a;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    min-width: 320px;
    min-height: 240px;
}

.recognition-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(40, 40, 40, 0.9);
    border-bottom: 1px solid #3a3a3a;
    cursor: move;
}

.recognition-modal .modal-title {
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
}

.recognition-modal .modal-body {
    width: 100%;
    height: 240px;
    background: #000;
    position: relative;
}

.recognition-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.recognition-indicator {
    position: absolute;
    top: 40px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 12px;
    border-radius: 15px;
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: bold;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(20, 20, 20, 0.8);
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.logo-text span {
    color: #00ff88;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-primary {
    background: #00ff88;
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #00cc6a;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
}

.btn-secondary:hover {
    background: #3a3a3a;
}

.btn-danger {
    background: #ff4444;
    color: #fff;
}

.btn-danger:hover {
    background: #cc3333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.ad-banner {
    padding: 15px 40px;
    background: linear-gradient(90deg, #1a1a1a 0%, #252525 50%, #1a1a1a 100%);
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.ad-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed #4a4a4a;
    padding: 12px 20px;
    text-align: center;
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ad-label {
    font-size: 0.85rem;
    color: #00ff88;
    font-weight: 600;
}

.ad-text {
    font-size: 0.95rem;
    color: #ccc;
}

.ad-sub {
    font-size: 0.8rem;
    color: #888;
}

.ad-sidebar {
    margin-top: 20px;
}

.ad-sidebar .ad-container {
    text-align: left;
    padding: 16px;
}

.ad-sidebar .ad-content {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.client-entry-card {
    margin: 20px 25px 0;
    padding: 18px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12), rgba(255, 107, 157, 0.08));
}

.client-entry-badge {
    display: inline-flex;
    padding: 4px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.16);
    color: #00ff88;
    font-size: 0.75rem;
    font-weight: 700;
}

.client-entry-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #fff;
}

.client-entry-card p {
    margin-bottom: 14px;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
}

.client-entry-card .btn {
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.main-content {
    flex: 1;
    display: flex;
    padding: 30px 40px;
    gap: 30px;
    overflow-y: auto;
}

.section {
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.section-left {
    width: 350px;
    min-width: 350px;
}

.section-center {
    flex: 1;
    min-width: 500px;
}

.section-right {
    width: 320px;
    min-width: 320px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #2a2a2a;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.bank-selector {
    padding: 20px 25px;
    border-bottom: 1px solid #2a2a2a;
}

.selector-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 12px;
    display: block;
}

.bank-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.bank-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.bank-main {
    display: flex;
    align-items: center;
    flex: 1;
}

.bank-action-buttons {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bank-item:hover .bank-action-buttons {
    opacity: 1;
}

.bank-edit-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00ff88;
    color: #1a1a1a;
    border: none;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-edit-btn:hover {
    background: #00cc6a;
}

.bank-delete-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff4444;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-delete-btn:hover {
    background: #ff6666;
}

.bank-item:hover {
    background: #3a3a3a;
    border-color: #3a3a3a;
}

.bank-item.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.bank-icon {
    font-size: 1.1rem;
}

.bank-name {
    flex: 1;
    font-size: 0.9rem;
    color: #fff;
}

.bank-count {
    font-size: 0.75rem;
    color: #666;
    background: #1a1a1a;
    padding: 3px 8px;
    border-radius: 4px;
}

.bank-item.active .bank-count {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.bank-check {
    color: #00ff88;
    font-weight: 700;
}

.bank-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bank-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.module-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px;
    background: #1a1a1a;
    border-radius: 8px;
}

.module-tab {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-tab:hover {
    background: #2a2a2a;
    color: #fff;
}

.module-tab.active {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.tree-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.tree-item {
    padding: 10px 12px;
    background: #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
}

.tree-item:hover {
    background: #3a3a3a;
}

.tree-item.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.tree-item.parent {
    font-weight: 600;
}

.tree-item.parent:hover {
    background: #2d2d2d;
}

.tree-expand-icon {
    margin-right: 8px;
    font-size: 0.75rem;
    color: #666;
    transition: transform 0.2s ease;
}

.tree-item.expanded .tree-expand-icon {
    transform: rotate(90deg);
}

.tree-children {
    margin-left: 20px;
    display: none;
    flex-direction: column;
    gap: 4px;
}

.tree-item.expanded + .tree-children {
    display: flex;
}

.tree-child-item {
    padding: 8px 10px;
    background: #252525;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-child-item:hover {
    background: #303030;
}

.tree-child-item.active {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.tree-child-icon {
    font-size: 0.85rem;
}

.tree-child-name {
    flex: 1;
    font-size: 0.85rem;
}

.tree-child-count {
    font-size: 0.7rem;
    color: #666;
    background: #1a1a1a;
    padding: 2px 6px;
    border-radius: 3px;
}

.tree-child-item.active .tree-child-count {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.tree-child-actions {
    display: flex;
    gap: 4px;
}

.tree-child-edit-btn,
.tree-child-delete-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tree-child-item:hover .tree-child-edit-btn,
.tree-child-item:hover .tree-child-delete-btn {
    opacity: 1;
}

.tree-child-edit-btn {
    background: #00ff88;
    color: #1a1a1a;
}

.tree-child-delete-btn {
    background: #ff4444;
    color: #fff;
}

.knowledge-base {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kb-search {
    display: flex;
    gap: 8px;
}

.kb-search input {
    flex: 1;
    padding: 10px 15px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
}

.kb-search input:focus {
    outline: none;
    border-color: #00ff88;
}

.kb-tools {
    margin-bottom: 15px;
}

.kb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}

.kb-item {
    padding: 12px;
    background: #2a2a2a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.kb-item:hover {
    background: #3a3a3a;
}

.kb-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.kb-item-category {
    font-size: 0.75rem;
    color: #00ff88;
}

.kb-actions {
    display: flex;
    gap: 10px;
}

.kb-detail-category {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 15px;
}

.kb-detail-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    white-space: pre-wrap;
}

.upload-area {
    padding: 20px 25px;
    border-bottom: 1px solid #2a2a2a;
}

.upload-box {
    display: flex;
    gap: 15px;
}

.upload-btn {
    flex: 1;
    padding: 15px;
    background: #2a2a2a;
    border: 2px dashed #3a3a3a;
    border-radius: 8px;
    color: #888;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    border-color: #00ff88;
    color: #00ff88;
    background: #1a1a1a;
}

.upload-btn-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.upload-btn-text {
    font-size: 0.9rem;
}

.upload-btn-sub {
    font-size: 0.75rem;
    color: #666;
    margin-top: 5px;
}

.question-list {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px 20px;
}

.question-list::-webkit-scrollbar {
    width: 6px;
}

.question-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.question-list::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 3px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.question-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    gap: 15px;
    position: relative;
}

.question-main {
    display: flex;
    gap: 15px;
    flex: 1;
}

.question-delete-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff4444;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-item:hover .question-delete-btn {
    opacity: 1;
}

.question-delete-btn:hover {
    background: #ff6666;
}

.question-item:hover {
    background: #3a3a3a;
    transform: translateX(3px);
}

.question-item.image-type {
    flex-direction: column;
}

.question-item .q-image {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
    background: #1a1a1a;
}

.question-item .q-content {
    flex: 1;
}

.question-item .q-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.question-item .q-answer {
    font-size: 0.85rem;
    color: #00ff88;
    font-weight: 600;
}

.question-item .q-type {
    font-size: 0.75rem;
    color: #666;
    padding: 3px 8px;
    background: #1a1a1a;
    border-radius: 4px;
}

.recognition-area {
    padding: 25px;
}

.ocr-preview {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid #3a3a3a;
    cursor: pointer;
}

.preview-placeholder {
    text-align: center;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.recognition-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #00ff88;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.recognition-floating-window {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 280px;
    background: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #3a3a3a;
    overflow: hidden;
    z-index: 100;
}

.floating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
    cursor: move;
}

.floating-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
}

.floating-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.floating-close:hover {
    background: #ff4444;
    color: #fff;
}

.floating-content {
    position: relative;
    width: 100%;
    height: 180px;
    background: #000;
}

.floating-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-text {
    font-size: 1rem;
    display: block;
}

.preview-btn {
    padding: 12px 30px;
    font-size: 1rem;
}

.ocr-preview img {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
}

.manual-input textarea {
    width: 100%;
    padding: 15px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    font-family: inherit;
    min-height: 150px;
}

.manual-input textarea:focus {
    border-color: #00ff88;
}

.recognized-text {
    padding: 20px 25px;
    border-top: 1px solid #2a2a2a;
}

.text-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.text-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
}

#recognizedContent {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #fff;
    min-height: 80px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.match-result {
    padding: 20px 25px;
    border-top: 1px solid #2a2a2a;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-header span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
}

.match-score {
    background: #00ff88;
    color: #0a0a0a;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-content {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    min-height: 100px;
}

.result-placeholder {
    text-align: center;
    color: #666;
    padding: 25px;
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.result-match {
    border: 1px solid #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.result-match .match-question {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.4;
}

.result-match .match-answer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ff88;
}

.result-match .match-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.result-no-match {
    border: 1px solid #ff4444;
    background: rgba(255, 68, 68, 0.1);
    color: #ff6666;
    text-align: center;
    padding: 25px;
    border-radius: 8px;
}

.answer-display {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.answer-card {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.answer-card .answer-label {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
}

.answer-card .answer-text {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 10px;
}

.answer-card .answer-confidence {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
}

.answer-card .answer-image {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.answer-placeholder {
    text-align: center;
    color: #666;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.answer-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stats-panel {
    padding: 20px 25px;
    border-top: 1px solid #2a2a2a;
}

.stats-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a2a2a;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.stat-value.success {
    color: #00ff88;
}

.stat-value.error {
    color: #ff4444;
}

.match-results-list {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
}

.match-results-header {
    font-size: 0.85rem;
    color: #888;
    padding: 10px 0;
    border-bottom: 1px solid #3a3a3a;
    margin-bottom: 10px;
}

.match-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #1a1a1a;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #2a2a2a;
}

.match-result-item.top-match {
    background: #1a2a1a;
    border-color: #00ff88;
}

.result-rank {
    font-size: 0.85rem;
    font-weight: bold;
    color: #888;
    margin-right: 15px;
    min-width: 30px;
}

.top-match .result-rank {
    color: #00ff88;
}

.result-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
}

.result-answer {
    font-size: 0.9rem;
    color: #00ff88;
}

.result-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-question {
    font-size: 0.85rem;
    color: #aaa;
    line-height: 1.3;
}

.result-score {
    font-size: 0.9rem;
    font-weight: bold;
    color: #00ff88;
    min-width: 50px;
    text-align: right;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    width: 90%;
    max-width: 600px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #2a2a2a;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00ff88;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.login-actions .btn {
    justify-content: center;
}

.login-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #2a2a2a;
    color: #888;
    font-size: 0.9rem;
}

.link-button {
    border: none;
    background: transparent;
    color: #00ff88;
    padding: 0;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.link-button:hover {
    color: #66ffbb;
    text-decoration: underline;
}

.client-page {
    background: #0a0a0a;
}

.client-page-wrap {
    min-height: 100vh;
    padding: 24px 40px 50px;
    background:
        radial-gradient(circle at 15% 5%, rgba(0, 255, 136, 0.16), transparent 32%),
        radial-gradient(circle at 85% 0%, rgba(255, 107, 157, 0.13), transparent 30%),
        linear-gradient(180deg, #0a0a0a 0%, #161616 100%);
}

.client-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto 36px;
}

.client-page-logo {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
}

.client-page-logo span {
    color: #00ff88;
}

.client-page main {
    max-width: 1120px;
    margin: 0 auto;
}

.client-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 28px;
}

.client-hero-text,
.client-hero-panel,
.client-section {
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    background: rgba(26, 26, 26, 0.86);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.client-hero-text {
    padding: 46px;
}

.client-kicker {
    display: inline-flex;
    padding: 6px 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.14);
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 700;
}

.client-hero h1 {
    margin-bottom: 14px;
    font-size: 2.7rem;
    color: #fff;
}

.client-hero p {
    max-width: 620px;
    color: #cfcfcf;
    font-size: 1.05rem;
    line-height: 1.8;
}

.client-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.client-hero-actions a,
.client-page-header a,
.client-download-card .btn {
    text-decoration: none;
}

.client-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 30px;
}

.client-status-line {
    padding: 14px 16px;
    border: 1px solid #333;
    border-radius: 12px;
    background: #202020;
    color: #ddd;
}

.client-status-line.success {
    border-color: rgba(0, 255, 136, 0.35);
    color: #00ff88;
}

.client-section {
    margin-top: 22px;
    padding: 30px;
}

.client-section h2 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.35rem;
}

.client-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.client-feature-card {
    padding: 18px;
    border: 1px solid #303030;
    border-radius: 14px;
    background: #202020;
}

.client-feature-card h3,
.client-download-card h3 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1rem;
}

.client-feature-card p,
.client-download-card p,
.client-note {
    color: #aaa;
    line-height: 1.7;
}

.client-info-list {
    display: grid;
    gap: 12px;
    color: #ccc;
    line-height: 1.7;
}

.client-info-list strong {
    color: #00ff88;
}

.client-download-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 14px;
    background: rgba(0, 255, 136, 0.08);
}

.client-download-card .btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.client-note {
    margin-top: 14px;
    font-size: 0.9rem;
}

.client-purchase-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 20px;
}

.client-plan-list {
    display: grid;
    gap: 12px;
}

.client-plan-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid #333;
    border-radius: 14px;
    background: #202020;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-plan-card:hover,
.client-plan-card.active {
    border-color: rgba(0, 255, 136, 0.55);
    background: rgba(0, 255, 136, 0.08);
}

.client-plan-card input {
    display: none;
}

.client-plan-head {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
}

.client-plan-name {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.client-plan-price {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.12);
    color: #00ff88;
    font-size: 1rem;
    font-weight: 800;
}

.client-plan-desc {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.6;
}

.client-request-panel {
    padding: 20px;
    border: 1px solid #303030;
    border-radius: 14px;
    background: #202020;
}

.client-login-state {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.08);
    color: #ffd166;
    line-height: 1.6;
}

.client-login-state.active {
    border-color: rgba(0, 255, 136, 0.35);
    background: rgba(0, 255, 136, 0.08);
    color: #00ff88;
}

.client-request-text {
    margin-bottom: 14px;
    color: #aaa;
    line-height: 1.7;
}

.client-request-panel textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.client-request-panel textarea:focus {
    border-color: #00ff88;
}

.client-request-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.client-request-actions .btn {
    justify-content: center;
    text-decoration: none;
}

.client-request-actions .btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.client-form-tip {
    margin-top: 12px;
    color: #888;
    font-size: 0.86rem;
    line-height: 1.6;
}

.client-order-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(0, 255, 136, 0.28);
    border-radius: 10px;
    background: rgba(0, 255, 136, 0.08);
    color: #d6ffe8;
    line-height: 1.7;
    font-size: 0.92rem;
}

.client-order-box strong {
    display: block;
    color: #00ff88;
    margin-bottom: 6px;
}

.client-download-card .btn.disabled {
    pointer-events: none;
    opacity: 0.65;
}

.image-upload-preview {
    margin-top: 10px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    text-align: center;
}

.image-upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 6px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid #2a2a2a;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 10;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #3a3a3a;
    border-top-color: #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.bank-tabs {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.bank-tab {
    padding: 8px 16px;
    background: #2a2a2a;
    border-radius: 6px;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bank-tab.active {
    background: #00ff88;
    color: #0a0a0a;
}

.bank-tab:hover:not(.active) {
    background: #3a3a3a;
    color: #fff;
}

.bank-tab .tab-count {
    margin-left: 5px;
    font-size: 0.75rem;
}

@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        overflow-y: auto;
        padding: 20px;
    }
    
    .section-left, .section-center, .section-right {
        width: 100%;
        min-width: 100%;
    }

    .client-hero {
        grid-template-columns: 1fr;
    }

    .client-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-purchase-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .client-page-wrap {
        padding: 18px 16px 34px;
    }

    .client-page-header,
    .client-hero-actions,
    .client-download-card {
        flex-direction: column;
        align-items: stretch;
    }

    .client-hero-text {
        padding: 30px 22px;
    }

    .client-hero h1 {
        font-size: 2rem;
    }

    .client-feature-grid {
        grid-template-columns: 1fr;
    }

    .client-request-actions {
        flex-direction: column;
    }
}

.suggestion-item {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    border: 1px solid #3a3a3a;
}

.suggestion-content {
    margin-bottom: 15px;
}

.suggestion-question {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.suggestion-answer {
    font-size: 0.85rem;
    color: #00ff88;
    font-weight: 600;
    margin-bottom: 5px;
}

.suggestion-time {
    font-size: 0.75rem;
    color: #666;
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bank-select {
    flex: 1;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.bank-select:focus {
    border-color: #00ff88;
}

/* 放大logo文字 */
.logo-text {
    font-size: 1.6rem;
}

.logo-text span {
    font-size: 2rem;
}

/* 支持站长按钮 */
.support-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 100%);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.5);
}

/* 支持站长弹窗 */
.support-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.support-modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid #3a3a3a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.support-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.support-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.support-modal-close:hover {
    background: #2a2a2a;
    color: #fff;
}

.support-modal-body {
    padding: 25px;
}

.support-intro {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-option:hover {
    border-color: #ff6b9d;
    background: #2a2a2a;
    transform: translateX(5px);
}

.support-option-icon {
    font-size: 2rem;
}

.support-option-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.donate-options {
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.donate-title {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 15px;
}

.donate-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.donate-amount {
    padding: 15px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donate-amount:hover {
    border-color: #00ff88;
    background: #2a2a2a;
}

.custom-amount-input {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.custom-amount-input input {
    flex: 1;
    padding: 12px 15px;
    background: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.custom-amount-input input:focus {
    border-color: #00ff88;
}

.custom-amount-input button {
    padding: 12px 20px;
    background: #00ff88;
    border: none;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-amount-input button:hover {
    background: #00cc6a;
}

.donate-result {
    margin-top: 20px;
    padding: 20px;
    background: #1a2a1a;
    border: 1px solid #00ff88;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.donate-result .result-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.donate-result .result-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ff88;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.knowledge-card {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #3a3a3a;
}

.knowledge-card:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-3px);
}

.knowledge-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.knowledge-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.knowledge-desc {
    font-size: 0.8rem;
    color: #888;
}

.calculator-box {
    margin: 0 20px;
    padding: 25px;
    background: #2a2a2a;
    border-radius: 10px;
}

.calculator-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.calc-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.calc-row label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
    min-width: 100px;
}

.calc-row input {
    flex: 1;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
}

.calc-row input:focus {
    outline: none;
    border-color: #00ff88;
}

.calc-row select {
    flex: 1;
    padding: 10px 15px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.calc-row select:focus {
    outline: none;
    border-color: #00ff88;
}

.calc-row span {
    color: #888;
    font-size: 0.9rem;
}

.calc-result {
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid #00ff88;
}

.calc-result p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 8px;
    line-height: 1.5;
}

.calc-result p:last-child {
    margin-bottom: 0;
}

.fix-info {
    margin-top: 15px;
    padding: 12px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 8px;
    border-left: 3px solid #00ff88;
}

.fix-info p {
    color: #888;
    font-size: 0.85rem;
    margin: 3px 0;
}

.fix-detail, .fix-targets {
    margin-top: 10px;
}

.fix-detail p, .fix-targets p {
    font-size: 0.9rem;
}

.inbox-btn {
    position: relative;
}

.unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.inbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.inbox-modal-content {
    background: #1a1a1a;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    border: 2px solid #3a3a3a;
}

.inbox-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #3a3a3a;
}

.inbox-modal-header h3 {
    color: #fff;
    font-size: 1.2rem;
}

.inbox-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.inbox-modal-close:hover {
    color: #fff;
}

.inbox-modal-body {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inbox-item {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #3a3a3a;
}

.inbox-item:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.05);
}

.inbox-item.unread {
    border-left: 3px solid #00ff88;
}

.inbox-item-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 5px;
}

.inbox-item-meta {
    font-size: 0.8rem;
    color: #888;
}

.inbox-empty {
    text-align: center;
    color: #888;
    padding: 40px;
}

.inbox-detail {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
}

.inbox-detail-header {
    margin-bottom: 15px;
}

.inbox-detail-title {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
}

.inbox-detail-meta {
    font-size: 0.85rem;
    color: #888;
}

.inbox-detail-content {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.inbox-detail-image {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.inbox-back-btn {
    background: #3a3a3a;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.inbox-back-btn:hover {
    background: #4a4a4a;
}

