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

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    min-height: 100vh;
}

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

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
}

/* ===== 固定导航条 - 强制始终显示 ===== */
.nav-bar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    height: auto;
    /* 强制导航条始终显示 */
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    transition: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-bar .nav-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
}

.nav-bar .nav-links::-webkit-scrollbar {
    height: 3px;
    background: transparent;
}
.nav-bar .nav-links::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.3);
    border-radius: 10px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-block;
}

.nav-links a:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.nav-links a.active {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.main-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.quick-nav {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.quick-nav h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.quick-nav ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-nav ul li {
    list-style-type: none;
}

.quick-nav ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.quick-nav ul li a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

.article-list-section {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.article-list-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.article-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.article-list a {
    display: inline-block;
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.article-list a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.load-more-container {
    text-align: center;
    margin: 20px 0 10px;
}

.load-more-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.4);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.article-count-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

.xml-map-link {
    background: #27ae60;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.xml-map-link:hover {
    background: #2ecc71;
    transform: translateY(-2px);
}

.xml-map-link i {
    font-style: normal;
    font-size: 16px;
}

.footer {
    background: white;
    color: #666;
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    padding: 0 10px;
    border-right: 1px solid #ddd;
    line-height: 1;
    cursor: pointer;
}

.footer-links a:last-child {
    border-right: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: #333;
    margin-bottom: 20px;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-top: 30px;
}

h2[id] {
    scroll-margin-top: 100px;
}

p {
    margin-bottom: 15px;
}

ul, ol {
    margin: 15px 0 15px 0;
    padding-left: 0;
    list-style: none;
}

li {
    margin-bottom: 5px;
    list-style-type: none;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

th {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 10px;
    font-weight: 500;
}

td {
    padding: 8px;
    border: 1px solid #ddd;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    margin: 20px 0;
    transition: transform 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    background: #e8f0fe;
    color: #3498db;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 5px;
}

.call-button {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 12px 25px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
    margin-top: 10px;
}

.call-button:hover {
    opacity: 0.9;
}

.page-indicator {
    text-align: center;
    margin: 20px 0;
    font-size: 16px;
    color: #666;
}

.page-indicator span {
    background: #3498db;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.section-content {
    scroll-margin-top: 20px;
}

.contact-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"] {
    height: 40px;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.contact-info {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.office-address {
    background: #f0f4f8;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.case-item {
    background: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #3498db;
    border-radius: 0 5px 5px 0;
}

.news-item {
    background: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-left: 4px solid #27ae60;
    border-radius: 0 5px 5px 0;
}

.news-item small {
    color: #999;
    display: block;
    margin-top: 5px;
}

.query-box {
    background: #f0f8ff;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

/* ===== 悬浮按钮 - 强制始终显示 ===== */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 60px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 40px);
    /* 强制按钮始终显示 */
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
    transition: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: env(safe-area-inset-bottom, 0);
}

.floating-cta a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    white-space: nowrap;
}

.floating-cta a:hover {
    opacity: 0.95;
}

.floating-cta:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* ===== 移动端响应式样式 ===== */
@media (max-width: 768px) {
    .container {
        margin-top: 70px;
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .quick-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    table {
        font-size: 12px;
    }
    
    .nav-bar .nav-links {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .nav-links a {
        font-size: 15px;
        padding: 4px 8px;
    }
    
    /* 移动端悬浮按钮 - 强制始终显示 */
    .floating-cta {
        bottom: 15px;
        right: 15px;
        max-width: calc(100% - 30px);
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }
    
    .footer {
        padding: 20px;
    }
    
    .footer-links {
        gap: 10px;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .container {
        margin-top: 65px;
        padding: 12px;
    }
    
    .nav-bar .nav-links {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 4px 6px;
    }
    
    .floating-cta {
        bottom: 80px;
        right: 80px;
        max-width: calc(100% - 20px);
        transform: translateY(0) !important;
        -webkit-transform: translateY(0) !important;
    }
    
    .floating-cta a {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .floating-cta a span {
        display: inline-block;
    }
}

/* ===== 移除所有列表点号 ===== */
ul, ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

li {
    list-style-type: none;
}

.quick-nav ul,
.quick-nav li,
.article-list,
.article-list li,
.footer-links,
.footer-links li,
.nav-links,
.nav-links li {
    list-style: none;
    list-style-type: none;
}

ul.styled-list {
    list-style-type: disc;
    padding-left: 20px;
}

/* ===== 图片自适应样式 ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* 关于我们页面图片样式 */
.about-us img,
.header img,
.profile-image,
.team-image,
.company-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 我们的服务页面图片样式 */
.services img,
.service-image,
.service-card img,
.service-icon {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.service-card img:hover {
    transform: scale(1.02);
}

/* 案例研究页面图片样式 */
.case-study img,
.case-image,
.case-study-image,
.case-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 新闻与更新页面图片样式 */
.news-updates img,
.news-image,
.news-item img,
.article-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 联系我们页面图片样式 */
.contact-us img,
.contact-image,
.office-image,
.map-image,
.contact-icon {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 图文混排样式 */
.image-left {
    float: left;
    max-width: 50%;
    margin: 0 20px 20px 0;
}

.image-right {
    float: right;
    max-width: 50%;
    margin: 0 0 20px 20px;
}

.image-center {
    display: block;
    max-width: 80%;
    margin: 20px auto;
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin: 0;
}

/* 团队头像样式 */
.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 10px auto;
}

/* 合作伙伴logo样式 */
.partner-logo {
    max-width: 150px;
    height: auto;
    margin: 10px;
    display: inline-block;
}

/* 图标样式 */
.icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 5px;
    display: inline-block;
}

/* ===== 移动端响应式图片样式 ===== */
@media (max-width: 768px) {
    img {
        margin: 10px auto;
    }
    
    .image-left,
    .image-right {
        float: none;
        max-width: 100%;
        margin: 15px 0;
    }
    
    .image-center {
        max-width: 100%;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-grid img {
        height: 200px;
    }
    
    .team-avatar {
        width: 120px;
        height: 120px;
    }
    
    .partner-logo {
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .image-grid img {
        height: 180px;
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
    }
    
    .partner-logo {
        max-width: 100px;
    }
    
    .icon-image {
        width: 30px;
        height: 30px;
    }
}

/* ===== 确保图片在卡片内容中不溢出 ===== */
.service-card,
.case-item,
.news-item,
.office-address,
.contact-info {
    overflow: hidden;
}

.service-card img,
.case-item img,
.news-item img {
    width: 100%;
    object-fit: cover;
}

/* ===== 背景图片样式 ===== */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
}

/* ===== 图片加载失败时的样式 ===== */
img::before {
    content: "图片加载失败";
    display: block;
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

/* ===== 图片文字说明样式 ===== */
.image-caption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
    font-style: italic;
}