/* ========== 基础样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.header {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-icon { font-size: 24px; }

.search-box {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255,255,255,0.95);
    color: #333;
    outline: none;
}

.search-box input::placeholder { color: #999; }

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.header-actions { margin-left: auto; }

/* ========== 首页横幅 ========== */
.hero {
    text-align: center;
    padding: 48px 0 32px;
}

.hero h1 {
    font-size: 36px;
    color: #1a73e8;
    margin-bottom: 12px;
}

.hero p {
    font-size: 16px;
    color: #666;
}

/* ========== 行业卡片网格 ========== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.industry-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e8eaed;
    position: relative;
    overflow: hidden;
}

.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,115,232,0.15);
    border-color: #1a73e8;
}

.industry-card .card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.industry-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.industry-card .card-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.industry-card .card-tags {
    margin-top: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #e8f0fe;
    color: #1a73e8;
}

/* ========== 详情页 ========== */
.btn-back {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 15px;
    cursor: pointer;
    padding: 16px 0;
    font-weight: 500;
}

.btn-back:hover { text-decoration: underline; }

.detail-header {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 20px;
    border: 1px solid #e8eaed;
}

.detail-header .detail-icon { font-size: 48px; margin-bottom: 12px; }

.detail-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
}

.detail-header .detail-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
}

.detail-header .detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== Tab导航 ========== */
.tab-nav {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    border: 1px solid #e8eaed;
    border-bottom: none;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-btn:hover { color: #1a73e8; background: #f8f9fa; }

.tab-btn.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
    font-weight: 600;
}

/* ========== Tab内容区 ========== */
.tab-content {
    background: #fff;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e8eaed;
    border-top: none;
    padding: 32px;
    min-height: 400px;
}

/* ========== 内容模块样式 ========== */

/* 业务特点 */
.feature-list {
    display: grid;
    gap: 16px;
}

.feature-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #1a73e8;
}

.feature-item h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 业财流程表格 */
.process-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.process-table th {
    background: #1a73e8;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

.process-table th:first-child { border-radius: 8px 0 0 0; }
.process-table th:last-child { border-radius: 0 8px 0 0; }

.process-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: top;
}

.process-table tr:hover td { background: #f8f9fa; }

/* 管控要点卡片 */
.control-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.control-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 12px rgba(26,115,232,0.1);
}

.control-card h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.badge-profit { background: #e6f4ea; color: #137333; }
.badge-tax { background: #fce8e6; color: #c5221f; }
.badge-accounting { background: #e8f0fe; color: #1a73e8; }

.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.control-field {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
}

.control-field .field-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

.control-field .field-value {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* 会计分录表格 */
.accounting-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.accounting-table th {
    background: #f8f9fa;
    color: #333;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 2px solid #e8eaed;
}

.accounting-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    vertical-align: top;
}

.accounting-table tr:hover td { background: #f8f9fa; }

.entry-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px;
    font-family: "Courier New", monospace;
    font-size: 13px;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
}

/* ========== 搜索无结果 ========== */
.no-result {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 16px;
}

/* ========== 页脚 ========== */
.footer {
    background: #1a73e8;
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    margin-top: 40px;
}

/* ========== 用户认证按钮 ========== */
.btn-login {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-1px);
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.btn-user {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-user:hover {
    background: rgba(255,255,255,0.35);
}

.user-avatar {
    font-size: 16px;
}

.user-name {
    font-weight: 500;
}

.user-arrow {
    font-size: 10px;
    opacity: 0.7;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    overflow: hidden;
    display: none;
    z-index: 200;
    animation: fadeIn 0.2s ease;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f5f7fa;
}

.dropdown-item.disabled {
    color: #666;
    cursor: default;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

/* ========== AI 助手页面 ========== */
.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.ai-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-model-badge {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.btn-ai-settings,
.btn-ai-clear {
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-ai-settings:hover,
.btn-ai-clear:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* 对话容器 */
.ai-chat-container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8eaed;
    min-height: 420px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.ai-chat-container::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-container::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 3px;
}

/* 欢迎界面 */
.ai-welcome {
    text-align: center;
    padding: 60px 20px;
}

.ai-welcome-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.ai-welcome h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
}

.ai-welcome p {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}

/* 消息区 */
.ai-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    display: flex;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message.user {
    flex-direction: row-reverse;
}

.ai-message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.ai-message.assistant .ai-message-avatar {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.ai-message.user .ai-message-avatar {
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
}

.ai-message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.7;
    word-wrap: break-word;
    position: relative;
}

.ai-message.assistant .ai-message-bubble {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-top-left-radius: 4px;
    color: #333;
}

.ai-message.user .ai-message-bubble {
    background: linear-gradient(135deg, #1a73e8, #1565c0);
    color: #fff;
    border-top-right-radius: 4px;
}

.ai-message-time {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    padding: 0 4px;
}

.ai-message.user .ai-message-time {
    text-align: right;
}

/* 流式输出光标 */
.streaming-cursor::after {
    content: '▍';
    animation: blink 1s step-end infinite;
    color: #8b5cf6;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* 打字中指示器 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b5cf6;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* 快捷操作栏 */
.ai-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.quick-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.25s;
    white-space: nowrap;
}

.quick-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: #f8f6ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.12);
}

/* 输入区域 */
.ai-input-area {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    background: #fff;
    border-radius: 14px;
    border: 2px solid #e8eaed;
    padding: 10px 14px;
    transition: border-color 0.3s;
}

.ai-input-area:focus-within {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.ai-input-area textarea {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    max-height: 120px;
    padding: 4px 0;
}

.ai-input-area textarea::placeholder {
    color: #bbb;
}

.btn-ai-send {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-ai-send:hover {
    background: linear-gradient(135deg, #9b6cf7, #7c3aed);
    transform: scale(1.05);
}

.btn-ai-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-ai-send .send-icon {
    transition: transform 0.3s;
}

.btn-ai-send:hover .send-icon {
    transform: translateX(2px);
}

/* ========== 弹窗通用 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.industry-preview-modal {
    max-width: 680px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e8eaed;
}

.modal-header h3 {
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e8eaed;
}

/* 表单元素 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.form-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    line-height: 1.5;
}

.form-hint a {
    color: #1a73e8;
    text-decoration: none;
}

.form-hint a:hover {
    text-decoration: underline;
}

/* 弹窗按钮 */
.btn-cancel {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #f5f5f5;
}

.btn-save {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-save:hover {
    background: linear-gradient(135deg, #9b6cf7, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* 行业预览 */
.industry-preview-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.industry-preview-summary .preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.industry-preview-summary .preview-icon {
    font-size: 36px;
}

.industry-preview-summary .preview-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.industry-preview-summary .preview-desc {
    font-size: 13px;
    color: #888;
}

.preview-section {
    margin-bottom: 14px;
}

.preview-section h5 {
    font-size: 13px;
    color: #8b5cf6;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-section .preview-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 10px 14px;
    border-radius: 8px;
}

/* 错误提示 */
.ai-error {
    background: #fff0f0;
    border: 1px solid #ffd4d4;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 8px 0;
    font-size: 13px;
    color: #c5221f;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-error-icon {
    font-size: 18px;
    flex-shrink: 0;
}

/* 代码块 */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 14px 18px;
    border-radius: 10px;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
    margin: 8px 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.inline-code {
    background: #f0f0f0;
    color: #c5221f;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 13px;
}

/* 无 API Key 引导 */
.ai-no-key {
    text-align: center;
    padding: 30px;
}

.ai-no-key .key-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.ai-no-key h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.ai-no-key p {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

/* AI 消息中的 markdown 表格 */
.ai-message-bubble table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 13px;
}

.ai-message-bubble th,
.ai-message-bubble td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
}

.ai-message-bubble th {
    background: #f8f9fa;
    font-weight: 600;
}

/* 消息气泡内的链接 */
.ai-message-bubble a {
    color: #1a73e8;
    text-decoration: underline;
}

/* 消息气泡内的列表 */
.ai-message-bubble ul,
.ai-message-bubble ol {
    padding-left: 20px;
    margin: 6px 0;
}

.ai-message-bubble li {
    margin-bottom: 4px;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
    .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
    .hero h1 { font-size: 24px; }
    .tab-btn { font-size: 12px; padding: 10px 12px; }
    .control-grid { grid-template-columns: 1fr; }
    .tab-content { padding: 20px; }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    .member-gate { padding: 30px 20px; }
    .member-gate h2 { font-size: 20px; }
}

/* ========== 认证弹窗 ========== */
.auth-modal {
    max-width: 420px;
}

.auth-tabs {
    display: flex;
    gap: 0;
}

.auth-tab {
    padding: 10px 24px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.auth-tab:hover {
    color: #1a73e8;
}

.auth-tab.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-error {
    background: #fce8e6;
    color: #c5221f;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.btn-auth-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    margin-top: 4px;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #2b7ff0, #1565c0);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(26, 115, 232, 0.4);
}

.btn-auth-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========== 会员引导页 ========== */
.member-gate {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    max-width: 560px;
    margin: 40px auto;
    border: 1px solid #e8eaed;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.member-gate-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.member-gate h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.member-gate-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 30px;
}

.member-benefits {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.member-benefits h4 {
    font-size: 16px;
    color: #1a73e8;
    margin-bottom: 14px;
}

.member-benefits ul {
    list-style: none;
    padding: 0;
}

.member-benefits li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #eee;
}

.member-benefits li:last-child {
    border-bottom: none;
}

.member-gate-contact {
    font-size: 14px;
    color: #1a73e8;
    font-weight: 500;
}

/* ========== 卡片上的锁定图标 ========== */
.card-lock {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 16px;
    opacity: 0.6;
}

/* ========== 参考利润表 ========== */
.profit-statement-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.profit-statement-table th {
    background: #1a73e8;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.profit-statement-table th:first-child { border-radius: 8px 0 0 0; }
.profit-statement-table th:last-child { border-radius: 0 8px 0 0; }

.profit-statement-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e8eaed;
    vertical-align: middle;
}

.profit-statement-table tbody tr:hover { background: #f5f8ff; }

/* 层级1 - 大项（加粗、底色） */
.profit-statement-table .ps-level1 {
    background: #e8f0fe;
    font-weight: 700;
    font-size: 14px;
}

.profit-statement-table .ps-level1 td {
    border-bottom: 1.5px solid #c4d7f2;
}

/* 层级2 - 明细项 */
.profit-statement-table .ps-level2 {
    font-size: 13px;
}

.profit-statement-table .ps-level2 td:first-child {
    padding-left: 36px;
    color: #555;
}

/* 净利润行 - 高亮 */
.profit-statement-table .ps-net-profit {
    background: linear-gradient(90deg, #e6f4ea 0%, #f0faf3 100%);
    font-weight: 700;
    font-size: 15px;
    border-top: 2px solid #34a853;
}

.profit-statement-table .ps-net-profit td {
    color: #137333;
    padding-top: 14px;
    padding-bottom: 14px;
}

/* 负数列 */
.profit-statement-table .ps-negative td.ps-amount,
.profit-statement-table .ps-negative td.ps-percent {
    color: #c5221f;
}

/* 金额列 - 右对齐 */
.ps-amount {
    text-align: right;
    font-family: "SF Mono", "Consolas", "Menlo", monospace;
    color: #333;
}

/* 百分比列 - 右对齐 */
.ps-percent {
    text-align: right;
    font-family: "SF Mono", "Consolas", "Menlo", monospace;
    font-weight: 600;
    color: #1a73e8;
}

.profit-statement-table .ps-level1 .ps-percent { color: #0d47a1; }
.profit-statement-table .ps-net-profit .ps-percent { color: #137333; }

/* 图例 */
.ps-legend {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 12px;
    color: #888;
}

.ps-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ps-legend-bar {
    display: inline-block;
    width: 20px;
    height: 4px;
    border-radius: 2px;
}

.level1-bar { background: #e8f0fe; border: 1px solid #c4d7f2; }
.level2-bar { background: #fff; border: 1px solid #e8eaed; }
.net-bar { background: #e6f4ea; border: 1px solid #34a853; }

