@import url('https://fonts.loli.net/css2?family=Ma+Shan+Zheng&family=ZCOOL+KuaiLe&display=swap');

:root {
    --primary-color: #3B82F6;
    --primary-blue: #3B82F6;
    --primary-blue-light: #DBEAFE;
    --primary-blue-dark: #1D4ED8;
    --bg-white: #FFFFFF;
    --bg-gray: #F8FAFC;
    --bg-gray-light: #F1F5F9;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    --highlight-blue: #EFF6FF;
    --error-color: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'ZCOOL KuaiLe', 'Ma Shan Zheng', STKaiti, 'KaiTi', '楷体', SimSun, 'Microsoft YaHei', '微软雅黑', sans-serif;
    background: var(--bg-gray);
    min-height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1E293B 0%, #0F172A 100%);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    box-shadow: 
        inset -5px 0 20px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sidebar.collapsed {
    width: 0;
    background: transparent;
    border-right: none;
    box-shadow: none;
    overflow: visible;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-menu,
.sidebar.collapsed .user-info {
    display: none;
}

.sidebar.collapsed .sidebar-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-top: none;
    flex: 1;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
}

.sidebar.collapsed .collapse-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(221, 227, 236, 0.5);
    border-color: rgba(221, 227, 246, 0.7);
    border-radius: 100%;
    transition: background 0.2s ease;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    font-weight: bold;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 1px solid var(--primary-blue-light);
}

.logo-text {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-menu {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #CBD5E1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'ZCOOL KuaiLe', serif;
    font-size: 18px;
}

.menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary-blue-light);
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border-color: var(--primary-blue);
    color: var(--primary-blue-light);
}

.menu-icon {
    font-size: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 5px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.collapse-btn {
    width: 100%;
    padding: 12px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapse-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: var(--primary-blue);
}

.collapse-icon {
    font-size: 24px;
    color: var(--primary-blue-light);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.sidebar.collapsed .collapse-icon {
    transform: rotate(180deg);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    border: 2px solid var(--primary-blue-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: white;
    font-size: 16px;
    font-family: 'ZCOOL KuaiLe', serif;
}

.user-status {
    color: #4CAF50;
    font-size: 12px;
    margin-top: 2px;
}

.user-status.not-logged {
    color: #94A3B8;
}

/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-gray);
    overflow-y: auto;
    height: 100vh;
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: var(--bg-gray-light);
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

/* 聊天头部 */
.chat-header {
    padding: 25px 30px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-action-btn:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

.chat-action-btn svg {
    width: 18px;
    height: 18px;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    font-weight: bold;
    box-shadow: 
        0 4px 15px rgba(59, 130, 246, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 1px solid var(--primary-blue-light);
}

.chat-title h1 {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 30px;
    color: var(--text-primary);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(76, 175, 80, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(76, 175, 80, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
}

.chat-status:hover {
    background: rgba(76, 175, 80, 0.25);
    border-color: #4CAF50;
    transform: scale(1.02);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-arrow {
    font-size: 14px;
    color: #4CAF50;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-status:hover .status-arrow {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-status span {
    color: #2E7D32;
    font-size: 14px;
    font-family: 'ZCOOL KuaiLe', serif;
}

/* 聊天消息区 */
.chat-messages {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.scroll-decoration {
    display: none;
}

.welcome-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 60px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    position: relative;
}

.welcome-content::before {
    display: none;
}

.avatar-lg {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    border: none;
}

.welcome-content h2 {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 26px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.welcome-content p {
    font-family: 'ZCOOL KuaiLe', serif;
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 消息气泡样式 */
.message-wrapper {
    display: flex;
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-wrapper.user {
    justify-content: flex-end;
}

.message-wrapper.bot {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 20px;
    position: relative;
}

.user .message-bubble {
    background: var(--primary-blue);
    color: white;
    border-top-right-radius: 4px;
}

.bot .message-bubble {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}





.message-content {
    font-family: 'ZCOOL KuaiLe', serif;
    font-size: 16px;
    line-height: 1.6;
}

.user .message-content {
    color: white;
}

.bot .message-content {
    color: var(--text-primary);
}

.message-content h1,
.message-content h2,
.message-content h3 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: var(--text-primary);
}

.message-content h1 { font-size: 24px; }
.message-content h2 { font-size: 20px; }
.message-content h3 { font-size: 18px; }

.message-content p {
    margin: 8px 0;
    line-height: 1.8;
}

.message-content ul,
.message-content ol {
    margin: 12px 0;
    padding-left: 24px;
}

.message-content li {
    margin: 6px 0;
    line-height: 1.6;
}

.message-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.message-content em {
    font-style: italic;
}

.message-content code {
    background: var(--bg-gray-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    color: #EF4444;
}

.message-content pre {
    background: #1E293B;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.message-content pre code {
    background: transparent;
    padding: 0;
    color: #E2E8F0;
    font-size: 14px;
    line-height: 1.6;
}

.message-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.message-content a:hover {
    text-decoration: underline;
}

.message-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 12px 0;
    display: block;
}

.message-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    overflow-x: auto;
    display: block;
}

.message-content th,
.message-content td {
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    text-align: left;
}

.message-content th {
    background: var(--bg-gray-light);
    font-weight: 600;
    color: var(--text-primary);
}

.message-content tr:nth-child(even) {
    background: var(--bg-gray-light);
}

.message-content tr:hover {
    background: var(--highlight-blue);
}

/* 输入区域 */
.chat-input-area {
    padding: 20px 30px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    position: relative;
}

.char-counter {
    position: absolute;
    right: 100px;
    bottom: -20px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'ZCOOL KuaiLe', serif;
}

.char-counter.warning {
    color: #F59E0B;
}

.char-counter.limit {
    color: #EF4444;
}

#messageInput {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: 'ZCOOL KuaiLe', serif;
    font-size: 16px;
    resize: none;
    background: var(--bg-gray-light);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
    min-height: 50px;
    max-height: 200px;
}

#messageInput:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
    background: var(--bg-white);
}

#messageInput::placeholder {
    color: var(--text-muted);
}

.send-btn {
    padding: 14px 28px;
    background: var(--primary-blue);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.send-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.send-icon {
    font-size: 16px;
    font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
}

/* 打字指示器 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    max-width: 200px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
    }
    
    .logo-text, .menu-text, .user-details {
        display: none;
    }
    
    .logo {
        justify-content: center;
    }
    
    .menu-item {
        justify-content: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .chat-header {
        padding: 15px 20px;
    }
    
    .chat-title h1 {
        font-size: 22px;
    }
    
    .title-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-input-area {
        padding: 15px 20px;
    }
}

/* 视图切换 */
.view {
    display: none;
    flex: 1;
    flex-direction: column;
}

.view.active {
    display: flex;
}

/* 设置界面样式 */
.settings-container {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.settings-title {
    font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 32px;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 15px;
}

.settings-subtitle {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.master-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.master-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.master-card:hover::before {
    left: 100%;
}

.master-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

.master-card.zhixian-glow:hover {
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
}

.master-card.xuanji-glow:hover {
    box-shadow: 0 15px 35px rgba(74, 144, 217, 0.4), 0 0 40px rgba(74, 144, 217, 0.2);
}

.master-card.shensuan-glow:hover {
    box-shadow: 0 15px 35px rgba(196, 30, 58, 0.4), 0 0 40px rgba(196, 30, 58, 0.2);
}

.master-card.selected {
    border-color: var(--primary-blue);
    background: var(--highlight-blue);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.master-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: bold;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.master-card h3 {
    font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.master-desc {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.master-skill {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 13px;
    color: var(--primary-blue);
    background: var(--primary-blue-light);
    padding: 6px 14px;
    border-radius: 16px;
    display: inline-block;
}

.master-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: white;
    transition: all 0.2s ease;
}

.master-card.selected .master-indicator {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* 设置界面响应式 */
@media (max-width: 900px) {
    .masters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .masters-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-container {
        padding: 20px;
    }
    
    .settings-title {
        font-size: 28px;
    }
}

/* 个人档案界面 */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

.profile-container::-webkit-scrollbar {
    display: none;
}

.bazi-view {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-sizing: border-box;
}

.bazi-view.hidden {
    display: none;
}

.bazi-form {
    margin-top: 25px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-group label {
    font-size: 14px;
    color: #3D2314;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group select {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
}

.form-group select:hover {
    border-color: var(--primary-blue);
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.bazi-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
}

.bazi-submit:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* 八字报告样式 */
.report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.report-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.report-badge {
    color: var(--primary-blue);
    font-size: 24px;
}

.report-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.birth-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.birth-info-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
}

.birth-info-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.birth-info-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.birth-info-detail {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.bazi-display-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-gray-light);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.bazi-display-bar span {
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--text-primary);
    font-weight: 500;
}



.four-pillar-table-container {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 32px;
}

.four-pillar-table {
    width: 100%;
    border-collapse: collapse;
}

.four-pillar-table th {
    background: var(--bg-gray);
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.four-pillar-table th:first-child {
    text-align: left;
    padding-left: 24px;
}

.pillar-day {
    background: var(--highlight-blue);
}

.pillar-tag {
    display: inline-block;
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 500;
}

.four-pillar-table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.four-pillar-table tr:last-child td {
    border-bottom: none;
}

.four-pillar-table td:first-child {
    text-align: left;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 13px;
}

.four-pillar-table tr td.pillar-day {
    background: var(--highlight-blue);
}

.row-label {
    color: var(--text-secondary);
    font-size: 13px;
}

.god-tag {
    display: inline-block;
    background: var(--bg-gray-light);
    color: var(--text-secondary);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin: 2px;
}

.god-tag.important {
    background: var(--highlight-blue);
    color: var(--primary-blue);
}

.report-analysis {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.report-analysis p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* 区块样式 */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.signal-section {
    margin-bottom: 32px;
}

.signal-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.signal-section-title::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-blue);
}

/* 五行能量样式 */
.wuxing-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.wuxing-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wuxing-bar-label {
    width: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.wuxing-bar-track {
    flex: 1;
    height: 8px;
    background: var(--bg-gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.wuxing-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.wuxing-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: wuxingShimmer 2s infinite;
}

.wuxing-bar-fill.animate {
    width: var(--target-width);
}

@keyframes wuxingShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.wuxing-wood { 
    background: linear-gradient(90deg, #16A34A, #22C55E);
}
.wuxing-fire { 
    background: linear-gradient(90deg, #DC2626, #EF4444);
}
.wuxing-earth { 
    background: linear-gradient(90deg, #D97706, #F59E0B);
}
.wuxing-metal { 
    background: linear-gradient(90deg, #64748B, #94A3B8);
}
.wuxing-water { 
    background: linear-gradient(90deg, #1D4ED8, #3B82F6);
}

.wuxing-bar-value {
    width: 40px;
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
}

.wuxing-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 32px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    background: radial-gradient(circle, #ebeef3 50%, #e8edf5 98%);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1), inset 0 0 30px rgba(59, 130, 246, 0.05);
}

.wuxing-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -40px;
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3);
    transform-origin: center center;
    animation: wuxingRotate 20s linear infinite, wuxingBreath 3s ease-in-out infinite;
    overflow: hidden;
}

.wuxing-circle-center::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: wuxingShimmer 2s linear infinite;
}

@keyframes wuxingRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wuxingBreath {
    0%, 100% { 
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% { 
        opacity: 1;
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

@keyframes wuxingShimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.wuxing-circle-item {
    position: absolute;
    font-size: 12px;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.wuxing-circle-item:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.wuxing-circle-wood { top: 10%; left: 50%; transform: translateX(-50%); background: rgba(34, 197, 94, 0.15); border-color: rgba(34, 197, 94, 0.4); color: #22C55E; }
.wuxing-circle-fire { top: 35%; right: 5%; background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.4); color: #EF4444; }
.wuxing-circle-earth { bottom: 15%; right: 15%; background: rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.4); color: #F59E0B; }
.wuxing-circle-metal { bottom: 15%; left: 15%; background: rgba(148, 163, 184, 0.15); border-color: rgba(148, 163, 184, 0.4); color: #94A3B8; }
.wuxing-circle-water { top: 35%; left: 5%; background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.4); color: #3B82F6; }

.wuxing-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.wuxing-detail-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.wuxing-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.wuxing-detail-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.wuxing-card-wood .wuxing-detail-icon { background: #22C55E; }
.wuxing-card-fire .wuxing-detail-icon { background: #EF4444; }
.wuxing-card-earth .wuxing-detail-icon { background: #F59E0B; }
.wuxing-card-metal .wuxing-detail-icon { background: #94A3B8; }
.wuxing-card-water .wuxing-detail-icon { background: #3B82F6; }

.wuxing-detail-percent {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.wuxing-detail-tag {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.wuxing-tag-dominant { background: #FEF3C7; color: #D97706; }
.wuxing-tag-support { background: #FEE2E2; color: #DC2626; }
.wuxing-tag-weak { background: #DBEAFE; color: #2563EB; }
.wuxing-tag-minor { background: #F1F5F9; color: #64748B; }
.wuxing-tag-deficient { background: #DBEAFE; color: #2563EB; }

.wuxing-detail-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* 信号列表 */
.signal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signal-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.signal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.signal-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.signal-location {
    font-size: 12px;
    color: var(--text-muted);
}

.signal-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.signal-tag-penalty { background: #FEE2E2; color: #DC2626; }
.signal-tag-break { background: #FEE2E2; color: #DC2626; }
.signal-tag-medium { background: #F1F5F9; color: #64748B; }
.signal-tag-weak { background: #F1F5F9; color: #64748B; }
.signal-tag-active { background: #D1FAE5; color: #059669; }

.signal-desc {
    font-size: 14px;
    color: var(--text-primary);
    margin: 4px 0;
}

.signal-detail {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* 神煞网格 */
.gods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.god-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gray-light);
    border-radius: 8px;
    padding: 12px 16px;
}

.god-item.god-gold { border: 1px solid #FCD34D; background: #FFFBEB; }
.god-item.god-red { border: 1px solid #FCA5A5; background: #FEF2F2; }
.god-item.god-green { border: 1px solid #86EFAC; background: #F0FDF4; }
.god-item.god-gray { border: 1px solid var(--border-color); background: var(--bg-white); }

.god-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.god-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.god-gold .god-type { color: #D97706; background: #FEF3C7; border-color: #FCD34D; }
.god-red .god-type { color: #DC2626; background: #FEE2E2; border-color: #FCA5A5; }
.god-green .god-type { color: #059669; background: #D1FAE5; border-color: #86EFAC; }

.god-location {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.signal-combo-text {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    background: var(--bg-gray);
    border-radius: 8px;
}

/* 大运样式 */
.dashun-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.dashun-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.dashun-period {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 8px;
}

.dashun-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.dashun-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 500;
}

.dashun-current {
    background: var(--highlight-blue);
    color: var(--primary-blue);
}

.dashun-age {
    font-size: 13px;
    color: var(--primary-blue);
    margin-left: 8px;
}

.dashun-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 8px 0 0 0;
}

/* 流年样式 */
.liunian-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.liunian-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-blue);
}

.liunian-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.liunian-year {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.liunian-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.liunian-active {
    background: #FEE2E2;
    color: #DC2626;
}

.liunian-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.liunian-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 12px 0;
}

.liunian-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.liunian-tag-item {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-gray-light);
    color: var(--text-secondary);
    border-radius: 4px;
}

.liunian-interaction {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.liunian-forces {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.force-tag {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.force-help { color: #059669; }
.force-obstacle { color: #DC2626; }
.force-change { color: var(--text-secondary); }

/* 核心格局样式 */
.pattern-main {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.pattern-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: inline-block;
    margin-right: 12px;
}

.pattern-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.pattern-tag-primary {
    background: #D1FAE5;
    color: #059669;
}

.pattern-analysis p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 20px 0;
}

.pattern-advice {
    margin-top: 24px;
}

.advice-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.pattern-advice p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

/* 主题信号 */
.theme-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.theme-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-blue);
}

.theme-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.theme-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
}

.theme-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.theme-tag-good { background: #D1FAE5; color: #059669; }
.theme-tag-medium { background: #FEF3C7; color: #D97706; }
.theme-tag-low { background: #FEE2E2; color: #DC2626; }

.theme-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-detail-tag {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-gray-light);
    color: var(--text-secondary);
    border-radius: 4px;
}

.theme-detail-tag-highlight {
    background: #FEE2E2;
    color: #DC2626;
}

.theme-detail-tag-warning {
    background: #FEF3C7;
    color: #D97706;
}

/* 个人档案响应式 */
@media (max-width: 700px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bg-gray-light);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-gray);
    border-radius: 8px;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-gray-light);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

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

.form-group label {
    display: block;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 15px;
    background: var(--bg-white);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* 短信验证码行 */
.verify-code-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.verify-code-row input {
    flex: 1;
    width: auto;
}

.send-code-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    white-space: nowrap;
    background: var(--bg-white);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 14px;
    color: var(--primary-blue);
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-code-btn:hover:not(:disabled) {
    background: var(--primary-blue);
    color: white;
}

.send-code-btn:disabled {
    border-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    background: var(--bg-gray-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-gray-light);
    border-top: 1px solid var(--border-color);
}

.modal-footer .hint {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

/* 成功弹窗样式 */
.success-content {
    text-align: center;
    padding: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #388E3C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
}

.success-content h3 {
    font-family: 'Ma Shan Zheng', 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-content p {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* 用户信息按钮样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    width: 100%;
}



/* 登录注册表单样式 */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 16px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 500;
}

.auth-tab:hover {
    color: var(--primary-blue);
}

.auth-form {
    display: block;
}

.auth-form.hidden {
    display: none;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.remember-me label {
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0 !important;
    font-weight: normal !important;
}

/* 退出登录弹窗样式 */
.logout-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.logout-actions .submit-btn {
    flex: 1;
}

.logout-actions .cancel-btn {
    background: var(--bg-gray-light);
    color: var(--text-secondary);
}

.logout-actions .cancel-btn:hover {
    background: var(--bg-gray);
}

.logout-actions .logout-btn {
    background: #EF4444;
    color: white;
}

.logout-actions .logout-btn:hover {
    background: #DC2626;
}

/* 宠物界面样式 */
.pet-container {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

#petView {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.visual-novel-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

/* 专家号界面样式 */
.expert-container {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.expert-docs {
    margin: 30px 0;
}

.doc-checkbox {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.doc-checkbox:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.doc-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 16px;
    accent-color: var(--primary-color);
}

.doc-label {
    font-size: 16px;
    color: var(--text-primary);
}

.expert-question {
    margin: 30px 0;
}

.expert-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.expert-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.expert-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.expert-input::placeholder {
    color: var(--text-muted);
}

.expert-result {
    margin-top: 30px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-copy-btn {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--primary-blue);
    background: transparent;
    border: 1px solid var(--primary-blue);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-copy-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.result-content {
    padding: 24px;
    min-height: 150px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.result-content h1,
.result-content h2,
.result-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.result-content h1 { font-size: 20px; }
.result-content h2 { font-size: 18px; }
.result-content h3 { font-size: 16px; }

.result-content p {
    margin-bottom: 12px;
}

.result-content ul,
.result-content ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

.result-content li {
    margin-bottom: 6px;
}

.result-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
    margin: 0;
}

.image-search-section {
    margin-top: 30px;
}

.image-search-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.image-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.image-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.image-search-input::placeholder {
    color: var(--text-muted);
}

.image-search-btn {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: white;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-search-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
} 

.image-search-btn:active {
    transform: translateY(0);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 50px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    min-height: 150px;
}

.image-grid-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    margin: 0;
}




.image-modal-overlay {
    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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    max-width: 95%;
    max-height: 90%;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal-overlay.active .image-modal-content {
    transform: scale(1);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pet-info {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.pet-info h3 {
    font-family: 'Ma Shan Zheng', serif;
    font-size: 28px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.pet-info p {
    font-family: 'ZCOOL KuaiLe', serif;
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .pet-container {
        padding: 20px;
    }
    
    .pet-viewer {
        height: 350px;
    }
}

/* 站点备案号 */
.site-footer {
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: #888;
    background: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.site-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--primary-blue);
}

/* Toast 通知 */
.toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 14px 28px;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
    font-family: 'ZCOOL KuaiLe', STKaiti, 'KaiTi', '楷体', serif;
    font-size: 15px;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.toast-notification.toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}