﻿﻿/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
}

body {
    overflow-x: hidden;
    /* 为固定顶部导航预留空间，防止内容被遮挡 */
    padding-top: 80px; /* 与 .navbar height 保持一致 */
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

/* 段落样式 */
p {
    margin-bottom: 1rem;
}

/* 链接样式 */
a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2c5282;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(49, 130, 206, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(100, 116, 139, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(100, 116, 139, 0.4);
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(26, 54, 93, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.navbar.scrolled .navbar-container {
    padding: 15px 20px;
    height: 70px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    box-sizing: border-box;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar-logo img {
    filter: brightness(1.4);
    transition: filter 0.3s ease;
}

.navbar-logo:hover {
    color: #90cdf4;
}

.navbar-logo:hover img {
    filter: brightness(1.5);
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin-left: 30px;
}

.navbar-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: white;
    border-bottom-color: #63b3ed;
}

/* 响应式导航栏 */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}


/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3182ce 0%, #2c5282 100%);
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.footer-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3182ce;
    font-weight: bold;
}

.footer-section ul li a {
    color: #cbd5e1;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3182ce;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        margin: 12px 0;
    }

    .navbar-menu a {
        color: rgba(255, 255, 255, 0.9);
        border-bottom: none;
        padding: 10px 20px;
    }

    .navbar-menu a:hover {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }

    .navbar-toggle {
        display: block;
        color: white;
        font-size: 1.5rem;
        background: none;
        border: none;
        cursor: pointer;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
}