:root {
    --primary-blue: #1a4b8c;
    --secondary-blue: #2c6bc0;
    --dark-bg: #222;
    --light-bg: #f8f9fa;
    --accent-yellow: #ffc107;
    --white: #ffffff;
    --gray: #314f69;
    --secondary-gray: #a9b4bd;
    --light-gray: #e9ecef;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-bg);
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部通栏 */
.top-banner {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
}

.logo {
    position: absolute;
    left: 260px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 1px;
}

.subtitle {
    text-align: center;
    background-color: var(--white);
    color: #333;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

/* 导航栏 */
.navbar {
    background-color: var(--dark-bg);
    color: var(--accent-yellow);
    padding: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.nav-links li:hover {
    background-color: #333;
}

.nav-links a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a.active {
    color: var(--white);
    background-color: var(--primary-blue);
}

.nav-links a:hover {
    color: var(--white);
}

/* 工具展示区 */
.tools-section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-blue);
    font-size: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 4px;
    background-color: var(--accent-yellow);
}

.tools-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    width: 100%;
    max-width: 1200px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 20px;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tool-title-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-icon img {
    width: 60px;
    height: 60px;
}

.tool-title {
    font-size: 24px;
    color: var(--primary-blue);
    margin: 0;
}

.tool-description {
    color: var(--gray);
    margin-bottom: 0;
    padding: 0 10px;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: var(--secondary-blue);
}

.download-btn i {
    margin-left: 8px;
}
/* 基本按钮样式 */
.btn {
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
}

.btn:hover {
    background-color: #45a049;
}
.floating-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    
    /* 淡入淡出相关属性 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.floating-content {
    text-align: center;
}

#closeBtn {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #fac907;
    color: black;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#closeBtn:hover {
    background-color: #f7d85c;
}

/* 页脚 */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 20px 0 10px;
}

.footer-content {
    text-align: center;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.copyright {
    text-align: center;
    font-size: 14px;
    color: var(--secondary-gray);
    padding-top: 10px;
    border-top: 1px solid #444;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .company-name {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tool-title-container {
        width: 100%;
        justify-content: space-between;
    }
    
    .download-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}
