/* 全站通用样式 - style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #2a7de1;
    transition: color 0.3s ease;
}

a:hover {
    color: #1a5cb5;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =================== 网格布局与容器 =================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.main-content {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

.sidebar {
    width: 100%;
    max-width: 340px;
}

@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        max-width: 100%;
    }
}

/* =================== 按钮样式 =================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #2a7de1;
    color: white;
    border-color: #2a7de1;
}

.btn-primary:hover {
    background-color: #1a5cb5;
    border-color: #1a5cb5;
    color: white;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border-color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
    color: #333;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* =================== 表单元素 =================== */
.form-group {
    margin-bottom: 16px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2a7de1;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4 6 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =================== 站点头部 =================== */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

.logo {
    margin-right: 40px;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-right: 24px;
}

.main-nav a {
    color: #444;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2a7de1;
    transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .main-nav, .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .main-nav.active ul {
        flex-direction: column;
    }
    
    .main-nav.active li {
        margin-right: 0;
        margin-bottom: 16px;
    }
}

/* =================== 页面横幅 =================== */
.page-banner {
    background-color: #2a7de1;
    color: white;
    padding: 60px 0;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

/* =================== 侧边栏小部件 =================== */
.sidebar-widget {
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

/* CTA小部件 */
.cta-widget {
    background-color: #192638;
    color: white;
}

.cta-widget .widget-title {
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.cta-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: white;
}

/* =================== 页脚 =================== */
.site-footer {
    background-color: #192638;
    color: #c0c0c0;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo img {
    height: 36px;
    margin-bottom: 16px;
}

.footer-desc {
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #c0c0c0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-info li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.contact-info li i {
    margin-right: 12px;
    color: #2a7de1;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #c0c0c0;
}

.footer-legal a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* =================== 浮动元素 =================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: #2a7de1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.floating-share {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 99;
}

.share-toggle {
    width: 44px;
    height: 44px;
    background-color: #2a7de1;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.share-buttons {
    position: absolute;
    bottom: 60px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.floating-share.active .share-buttons {
    opacity: 1;
    visibility: visible;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.share-btn.wechat {
    background-color: #07C160;
}

.share-btn.weibo {
    background-color: #E6162D;
}

.share-btn.linkedin {
    background-color: #0A66C2;
}

.share-btn.twitter {
    background-color: #1DA1F2;
}

.floating-demo {
    position: fixed;
    right: 30px;
    bottom: 90px;
    z-index: 99;
}

/* =================== 阅读进度条 =================== */
.reading-progress-container {
    position: fixed;
    top: 0;
    z-index: 1001;
    width: 100%;
    height: 4px;
    background: transparent;
}

.reading-progress-bar {
    height: 4px;
    background: #2a7de1;
    width: 0%;
}

/* =================== 通讯订阅 =================== */
.newsletter-section {
    padding: 60px 0;
    background-color: #f5f8fc;
}

.newsletter-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 40px;
    display: flex;
    align-items: center;
}

.newsletter-content {
    flex: 1;
    padding-right: 40px;
}

.newsletter-content h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #192638;
}

.newsletter-form {
    flex: 1;
}

.newsletter-form form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
}

@media (max-width: 768px) {
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        padding-right: 0;
        padding-bottom: 24px;
    }
    
    .newsletter-form form {
        flex-direction: column;
    }
}

/* =================== 图标字体 =================== */
[class^="icon-"] {
    font-family: 'FontAwesome';
    font-style: normal;
}

.icon-calendar:before {
    content: "\f073";
}

.icon-user:before {
    content: "\f007";
}

.icon-folder:before {
    content: "\f07b";
}

.icon-comment:before {
    content: "\f075";
}

.icon-arrow-up:before {
    content: "\f062";
}

.icon-share:before {
    content: "\f064";
}

.icon-wechat:before {
    content: "\f1d7";
}

.icon-weibo:before {
    content: "\f18a";
}

.icon-linkedin:before {
    content: "\f0e1";
}

.icon-twitter:before {
    content: "\f099";
}

.icon-location:before {
    content: "\f3c5";
}

.icon-phone:before {
    content: "\f095";
}

.icon-email:before {
    content: "\f0e0";
} 

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #1a2a6c, #2a5298, #4389A2);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 32px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.hero {
    background: url('https://source.unsplash.com/random/1600x800/?marketing,technology') center/cover no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 600px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #1a2a6c;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #4389A2;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a2a6c;
}

.about {
    background-color: #f9f9f9;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a2a6c;
}

.about-text p {
    margin-bottom: 15px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 50px;
}

.stat-item h4 {
    font-size: 36px;
    color: #4389A2;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 16px;
    color: #666;
}

.cta {
    background: linear-gradient(135deg, #1a2a6c, #2a5298, #4389A2);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta h3 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    background-color: #1a2a6c;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #4389A2;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #ccc;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    nav ul {
        margin-top: 20px;
    }

    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}