:root {
    --primary-color: #8B0000;
    --secondary-color: #8B4513;
    --bg-color: #FFF8DC;
    --light-accent: #F5E8C7;
    --border-color: #D2B48C;
    --shadow-color: rgba(139, 69, 19, 0.1);
    --text-color: #5C4033;
    --highlight-color: #6A5ACD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Heiti SC", sans-serif;
    background-color: #f9f5ea;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 0;
    padding-top: 10px;
}

/* 页面头部 */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(139, 0, 0, 0.1);
}

header p {
    color: var(--secondary-color);
    font-style: italic;
    font-size: 1rem;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 25px;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-size: 1.2rem;
    text-align: center;
}

.card-body {
    padding: 20px;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* 侧边导航栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: normal;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background-color: rgba(139, 0, 0, 0.05);
    color: var(--primary-color);
}

.sidebar-menu a.active {
    background-color: rgba(139, 0, 0, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hamburger-menu {
    position: fixed;
    top: 15px !important;
    left: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* 按钮样式 */
.btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-highlight {
    background-color: var(--highlight-color);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary:hover {
    background-color: #6B0000;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

.btn-highlight:hover {
    background-color: #483D8B;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        padding-top: 5px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .announcement-bar {
        padding: 4px 0;
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .hamburger-menu {
        top: 10px !important;
    }
}

/* 返回按钮样式 */
.hamburger-menu.back-button {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger-menu.back-button span {
    position: absolute;
}

.hamburger-menu.back-button span:nth-child(1) {
    transform: rotate(-45deg) translate(0, 10px);
    width: 15px;
}

.hamburger-menu.back-button span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.back-button span:nth-child(3) {
    transform: rotate(45deg) translate(0, -10px);
    width: 15px;
}

.hamburger-menu.back-button:hover {
    background-color: var(--primary-color);
}

.hamburger-menu.back-button:hover span {
    background-color: white;
}

/* 建设中项目样式 */
.under-construction {
    opacity: 0.7;
    position: relative;
    overflow: visible !important;
    cursor: not-allowed !important;
}

.construction-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(139, 0, 0, 0.8);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 10;
}

/* 建设中提示消息 */
.construction-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    z-index: 2000;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.message-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.message-content i {
    color: #FFD700;
    font-size: 1.2rem;
}

.construction-message.fade-out {
    animation: fadeOut 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, -50%); }
    to { opacity: 0; transform: translate(-50%, -40%); }
}

/* 添加重点内容的样式 - 用于Markdown解析 */
.highlight {
    color: #d81e06;
    font-weight: bold;
    padding: 2px 4px;
    background-color: rgba(216, 30, 6, 0.08);
    border-radius: 3px;
}

/* 代码块样式 - 用于Markdown解析 */
code {
    background-color: #f5f5f5;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.9em;
}

/* 引用块样式 - 用于Markdown解析 */
blockquote {
    border-left: 4px solid #ddd;
    padding: 10px 15px;
    margin: 15px 0;
    background-color: #f9f9f9;
    color: #555;
}

/* 表格样式 - 用于Markdown解析 */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #f5f5f5;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Markdown分析结果的样式 */
.analysis-result {
    background-color: white;
    padding: 25px;
    box-shadow: none;
    position: relative;
    color: #333;
    line-height: 1.8;
    font-size: 1.05em;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 标题样式 */
.analysis-result h1 { 
    font-size: 1.8em; 
    color: #d81e06;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.analysis-result h2 { 
    font-size: 1.5em; 
    color: #d81e06;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.analysis-result h3 { 
    font-size: 1.3em; 
    color: #d81e06;
    margin-top: 20px;
    margin-bottom: 15px;
}

.analysis-result h4 {
    font-size: 1.1em; 
    color: #d81e06;
    margin-top: 15px;
    margin-bottom: 12px;
}

/* 段落样式 */
.analysis-result p {
    margin-bottom: 15px;
    margin-top: 15px;
}

/* 第一个段落样式优化 */
.analysis-result > p:first-of-type {
    margin-top: 0;
}

/* 列表样式 */
.analysis-result ul, 
.analysis-result ol {
    margin-bottom: 20px;
    margin-top: 15px;
    padding-left: 25px;
}

.analysis-result li {
    margin-bottom: 8px;
}

/* 强调文本样式 */
.analysis-result strong {
    color: #222;
    font-weight: bold;
}

.analysis-result em {
    color: #555;
    font-style: italic;
}

/* 链接样式 */
.analysis-result a {
    color: #d81e06;
    text-decoration: none;
}

.analysis-result a:hover {
    text-decoration: underline;
}

/* 添加动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.analysis-result h4, .key-point-card, .fortune-rating {
    animation: fadeIn 0.5s ease-out forwards;
}

/* 添加ICP备案样式 */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.85em;
}

.footer a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #333;
    text-decoration: underline;
} 