* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #FFFFFF;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.header {
    background-color: #0F52BA;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 30px;
}

.product-manual {
    position: relative;
    margin-left: 20px;
}

.manual-btn {
    background-color: #FF6B00;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.manual-btn:hover {
    background-color: #E55A00;
}

.manual-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    margin-top: 5px;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.manual-dropdown.show {
    display: block;
}

.manual-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.manual-dropdown a:hover {
    background-color: #f5f5f5;
}

.logo {
    cursor: pointer;
}

.logo h1 {
    font-size: 1.9rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.logo p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-top: 4px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.nav ul li a:hover {
    border-bottom-color: white;
}

/* 智能客服导航按钮样式 */
.ai-assistant-nav {
    margin-right: 20px;
}

.ai-nav-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 智能客服挂件样式 */
.ai-chat-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0F52BA, #1E88E5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.ai-chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(15, 82, 186, 0.4);
}

.ai-chat-float-btn img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* 物业功能样式 */
.feature-section {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.feature-section h3 {
    color: #0F52BA;
    margin-bottom: 15px;
    font-size: 24px;
}

.feature-section p {
    color: #666;
    margin-bottom: 20px;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.property-card {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.property-card h4 {
    color: #0F52BA;
    margin-bottom: 10px;
    font-size: 18px;
}

.property-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.property-card .btn {
    background-color: #0F52BA;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.property-card .btn:hover {
    background-color: #0a3d8a;
}

.main {
    flex: 1;
    padding: 40px 0 60px;
}

.section-title {
    font-size: 2.2rem;
    color: #0F52BA;
    margin: 40px 0 20px;
    border-left: 6px solid #0F52BA;
    padding-left: 20px;
    font-weight: 600;
    position: relative;
    animation: fadeInLeft 0.6s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }

.card {
    background: #FFFFFF;
    border: 1px solid #eaeef2;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0,20,50,0.03);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 82, 186, 0.1);
    border-color: #0F52BA;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #0F52BA, #1E88E5);
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 82, 186, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.footer {
    background-color: #0F52BA;
    color: rgba(255,255,255,0.9);
    padding: 30px 0 20px;
    margin-top: 20px;
    border-top: 4px solid #0b3e8a;
}

.footer .container {
    text-align: center;
}

.footer .icp {
    margin-top: 15px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
}

.footer .icp span {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
}

/* 文章列表样式 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: #FFFFFF;
    border: 1px solid #eaeef2;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,20,50,0.03);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 82, 186, 0.1);
}

/* 图片悬停效果 */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

.article-title {
    font-size: 1.3rem;
    color: #0F52BA;
    margin-bottom: 10px;
    font-weight: 600;
}

.article-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-indent: 2em;
}

.article-content p {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #0F52BA;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #0F52BA;
    border-radius: 5px;
    transition: all 0.2s;
}

.back-link:hover {
    background-color: #0F52BA;
    color: white;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 后台管理样式 */
.sidebar {
    width: 250px;
    background-color: #0F52BA;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
}

.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 20px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

/* 消息提示样式 */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 加载状态样式 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(15, 82, 186, 0.1);
    border-radius: 50%;
    border-top-color: #0F52BA;
    animation: spin 1s ease-in-out infinite;
}

/* 欢迎界面样式 */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F52BA, #1E88E5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: welcomeFadeIn 0.5s ease-out;
}

@keyframes welcomeFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.welcome-content {
    text-align: center;
    color: white;
    max-width: 600px;
    padding: 60px 40px;
}

.welcome-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: logoBounce 1s ease-out;
}

@keyframes logoBounce {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: textSlideUp 0.8s ease-out 0.3s both;
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: textSlideUp 0.8s ease-out 0.5s both;
}

.welcome-button {
    background: white;
    color: #0F52BA;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: textSlideUp 0.8s ease-out 0.7s both;
}

.welcome-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.welcome-button:active {
    transform: translateY(0);
}

/* 行业规范文档样式 */
.guifan-document {
    background: white;
    border: 1px solid #eaeef2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.guifan-document:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 82, 186, 0.15);
}

.guifan-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guifan-content {
    padding: 25px;
}

.guifan-title {
    font-size: 1.4rem;
    color: #0F52BA;
    font-weight: 600;
    margin-bottom: 15px;
}

.guifan-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.guifan-read-more {
    color: #0F52BA;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.guifan-read-more:hover {
    color: #1E88E5;
}

.guifan-read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.guifan-read-more:hover::after {
    transform: translateX(5px);
}

/* 状态标签样式 */
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.top {
    background-color: #d4edda;
    color: #155724;
}

.status.normal {
    background-color: #e9ecef;
    color: #495057;
}

/* 智能客服聊天窗口样式 */
.ai-chat-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ai-chat-header {
    background: linear-gradient(135deg, #0F52BA, #1E88E5);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.ai-chat-header .chat-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-header .chat-title img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.ai-chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #F8FAFC;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.ai {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, #0F52BA, #1E88E5);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.ai .message-bubble {
    background: white;
    color: #333;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.ai-chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.95rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
}

.ai-chat-input:focus {
    outline: none;
    border-color: #0F52BA;
    box-shadow: 0 0 0 3px rgba(15, 82, 186, 0.1);
}

.ai-chat-send {
    background: linear-gradient(135deg, #0F52BA, #1E88E5);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
}

.ai-chat-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(15, 82, 186, 0.3);
}

.ai-chat-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 筛选按钮样式 */
.filter-btn {
    margin: 0 5px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    border-color: #0F52BA;
    color: #0F52BA;
}

.filter-btn.active {
    background: #0F52BA;
    color: white;
    border-color: #0F52BA;
}

/* 响应式设计 */
@media (max-width: 800px) {
    .header .container { 
        flex-direction: column; 
        text-align: center; 
        padding: 10px 20px;
    }
    .nav ul { 
        margin-top: 15px; 
        gap: 15px; 
        flex-wrap: wrap; 
        justify-content: center; 
    }
    .nav ul li a {
        font-size: 1rem;
        padding: 4px 0;
    }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .ai-assistant-nav {
        margin-right: 0;
        margin-top: 10px;
    }
    .ai-nav-btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .ai-chat-container {
        width: 90%;
        height: 450px;
        bottom: 20px;
        right: 5%;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin: 30px 0 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .main {
        padding: 30px 0 40px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.6rem;
    }
    
    .nav ul {
        gap: 10px;
    }
    
    .nav ul li a {
        font-size: 0.9rem;
    }
    
    .ai-nav-btn {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .ai-chat-container {
        width: 95%;
        height: 400px;
        bottom: 15px;
        right: 2.5%;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin: 25px 0 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
    }
}