/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

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

a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
}

a:hover {
    color: #004499;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    background-color: #004499;
    color: #fff;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    padding: 5px 0;
}

.logo a:hover .logo-text {
    color: #e74c3c;
}

.logo img.real-logo {
    height: 40px;
    transition: all 0.3s ease;
    margin-right: 0;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e74c3c;
    margin-left: 4px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

header.scrolled .logo-text {
    font-size: 1.2rem;
}

header.scrolled .logo img.real-logo {
    height: 35px;
}

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

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

nav ul li a {
    color: #333;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: #0066cc;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 防止下拉菜单显示下划线 */
nav ul li.dropdown a.dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    position: static;
    background-color: transparent;
    transition: none;
}

nav ul li.dropdown a.dropdown-toggle:hover::after {
    width: 0;
    border-top: 4px solid #0066cc;
}

/* 防止下拉菜单显示下划线 */
.no-underline::after {
    display: none !important;
}

/* 英雄区域样式 */
.hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 200px 0 120px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .btn {
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 关于我们区域样式 */
.about {
    background-color: #f8f9fa;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img {
    height: 120px;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
}

/* 我们的特色区域样式 */
.our-features {
    background-color: #fff;
}

.feature-box {
    padding: 30px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

/* 联系我们区域样式 */
.contact {
    background-color: #f8f9fa;
    text-align: center;
}

.contact-info {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

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

.footer-links a {
    color: #fff;
    margin-left: 20px;
}

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

/* Cookie通知样式 */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-notice p:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}

.cookie-buttons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.cookie-buttons button {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-buttons button:hover {
    background-color: #004499;
}

.cookie-buttons a {
    color: #fff;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    nav ul {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 90%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 180px;
    padding: 8px 0;
    margin: 5px 0 0;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    clear: both;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: all 0.25s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #0066cc;
    border-left: 3px solid #0066cc;
    padding-left: 20px;
}

.dropdown:hover .dropdown-menu {
    display: block;
} 
