:root {
    --primary-color: #3c979d;
    --secondary-color: #87888a;
    --white-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f7f7f7;
    --border-color: #eaeaea;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white-color);
    transition: background-color 0.3s, color 0.3s;
    -webkit-text-size-adjust: 100%;
}

/* 防止iOS设备中输入框自动放大 */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea {
    font-size: 16px; /* 至少16px以避免iOS中自动缩放 */
}

body.dark-mode {
    --white-color: #222;
    --text-color: #eee;
    --light-bg: #333;
    background-color: var(--white-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
header {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 240px;
    height: auto;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 0;
    margin: 10px 0 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    margin: 0 8px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 900;
    font-size: 1.2rem;
}

.back-to-top.visible {
    opacity: 1;
}

/* 阅读控制工具栏 */
.reading-controls {
    margin: 20px 0;
}

.read-control {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--light-bg);
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.speaker-icon {
    color: var(--primary-color);
    margin-right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s;
}

.font-theme-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 0;
}

.font-control {
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.font-btn {
    background: none;
    border: none;
    color: var(--text-color);
    margin: 0 2px;
    cursor: pointer;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 14px;
}

.font-btn:hover {
    color: var(--primary-color);
}

.font-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

/* 文章内容 */
.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-size: 1.9rem;
    margin: 0 0 15px;
    line-height: 1.3;
    color: var(--text-color);
    text-align: center;
}

.article-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.article-actions button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.4rem;
    margin: 0 15px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article-actions button .stat {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 3px;
}

.article-actions button:hover {
    transform: scale(1.2);
}

.article-summary {
    background-color: var(--light-bg);
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: font-size 0.3s;
}

.article-content {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 40px;
    transition: font-size 0.3s;
}

.article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 20px 0;
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: 8px;
}

.article-meta > div {
    margin: 0 15px 0 0;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* 在线咨询浮窗 */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1000;
    transition: all 0.3s;
}

.chat-widget.minimized {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.chat-widget.minimized .chat-header {
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.chat-widget.minimized .chat-header h3 {
    display: block;
    margin: 0;
    font-size: 1.3rem;
}

.chat-widget.minimized .chat-header h3 span {
    display: none;
}

.chat-widget.minimized .minimize-btn {
    display: none;
}

.chat-widget.minimized .chat-body,
.chat-widget.minimized .chat-input {
    display: none;
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: default;
}

.chat-header h3 {
    margin: 0;
    font-size: 1rem;
}

.chat-header h3 i {
    margin-right: 5px;
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    z-index: 10;
}

.chat-body {
    height: 250px;
    overflow-y: auto;
    padding: 15px;
    background-color: var(--white-color);
    transition: background-color 0.3s;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px;
    border-radius: 10px;
}

.chat-message.agent .message-content {
    background-color: var(--light-bg);
    color: var(--text-color);
}

.chat-message.user .message-content {
    background-color: var(--primary-color);
    color: white;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background-color: var(--white-color);
    transition: background-color 0.3s;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
    background-color: var(--white-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.chat-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
}

/* 旗下机构磁贴 */
.subsidiaries {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px 0;
}

.subsidiary-card {
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.subsidiary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.subsidiary-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
}

.subsidiary-header h3 {
    margin: 0 0 5px;
    font-size: 1.4rem;
}

.subsidiary-header p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.subsidiary-body {
    padding: 15px;
    color: var(--text-color);
}

.subsidiary-body p {
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
}

.subsidiary-body p i {
    margin-right: 10px;
    min-width: 16px;
    text-align: center;
}

/* 页脚 */
footer {
    background-color: var(--light-bg);
    padding: 20px 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 50px;
    line-height: 1.5;
    text-align: center;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    width: 30%;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.site-map {
    margin-top: 10px;
}

/* 文章标签 */
.article-tags {
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    background-color: var(--white-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--primary-color);
    transition: background-color 0.3s;
}

body.dark-mode .article-tags {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.article-tags i {
    color: var(--primary-color);
    margin-right: 8px;
}

.article-tags a {
    display: inline-block;
    margin: 5px;
    padding: 4px 12px;
    background-color: var(--light-bg);
    color: var(--secondary-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-tags a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(60, 151, 157, 0.2);
}

/* 相关文章 */
.related-articles {
    margin: 30px 0;
    padding: 20px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: background-color 0.3s, box-shadow 0.3s;
    border-top: 3px solid var(--primary-color);
}

body.dark-mode .related-articles {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.related-articles h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.related-articles h3:before {
    content: '\f02e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 0.9em;
}

.related-articles ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.related-articles li {
    margin-bottom: 12px;
    padding-left: 22px;
    position: relative;
    transition: transform 0.2s;
}

.related-articles li:before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.7rem;
}

.related-articles li:hover {
    transform: translateX(5px);
}

.related-articles a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.5;
    display: block;
}

.related-articles a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        max-width: 200px;
        margin-bottom: 15px;
    }
    
    .reading-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .read-control {
        width: 100%;
        padding: 8px 12px;
        margin-bottom: 12px;
    }
    
    .font-theme-controls {
        padding: 5px 0;
        justify-content: flex-end;
    }
    
    .font-control {
        margin-right: 3px;
    }
    
    .font-btn {
        padding: 3px 5px;
        font-size: 12px;
    }
    
    .theme-toggle {
        font-size: 1rem;
    }
    
    .article-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .subsidiary-card {
        width: 100%;
    }
    
    .chat-widget {
        position: static;
        width: 100%;
        margin: 20px 0;
        box-shadow: none;
        border: 1px solid #eee;
    }
    
    .minimize-btn {
        display: none;
    }
    
    .article-meta {
        justify-content: flex-end;
    }
    
    .article-meta > div {
        margin-bottom: 5px;
    }
    
    .article-actions {
        justify-content: flex-end;
    }
    
    .article-actions button {
        margin: 0 10px;
        font-size: 1.2rem;
        padding: 0;
    }
    
    .article-actions button .stat {
        font-size: 0.7rem;
        margin-top: 2px;
    }
    
    .article-tags {
        padding: 12px;
        margin: 15px 0;
    }
    
    .article-tags a {
        padding: 3px 10px;
        margin: 3px;
        font-size: 0.8rem;
    }
    
    .related-articles {
        padding: 15px;
        margin: 20px 0;
    }
    
    .related-articles h3 {
        font-size: 1.1rem;
    }
    
    .related-articles li {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .reading-controls {
        margin: 15px 0;
    }
    
    .read-control {
        width: 100%;
        padding: 6px 10px;
        margin-bottom: 10px;
    }
    
    .speaker-icon {
        font-size: 1rem;
    }
    
    .font-theme-controls {
        display: flex;
        justify-content: flex-end;
        padding: 3px 0;
    }
    
    .font-control {
        margin-right: 2px;
    }
    
    .font-btn {
        padding: 3px 5px;
        margin: 0 1px;
        font-size: 11px;
    }
    
    .theme-toggle {
        font-size: 0.9rem;
        margin-left: 2px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.8rem;
    }
    
    .article-meta > div {
        margin: 3px 5px;
    }
    
    .article-actions {
        justify-content: flex-end;
    }
    
    .article-actions button {
        margin: 0 8px;
        font-size: 1.2rem;
    }
    
    .article-summary {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
} 