/* 主样式文件 */

/* 变量定义 */
:root {
    --primary-color: #2b7acd;
    --primary-dark: #1c5fa3;
    --primary-light: #4a94e5;
    --secondary-color: #ff6b00;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

/* 通用样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

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

.btn-login {
    color: var(--primary-color);
}

.btn-register {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-register:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.learn-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
}

.learn-more:hover {
    color: var(--primary-dark);
}

/* 头部样式 */
.header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 15px 0;
}

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

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

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
    position: relative;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    color: var(--text-color);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right .btn {
    margin-left: 15px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    margin: 2px 0;
    border-radius: 2px;
}

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

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 4px;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    margin-top: 10px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-container {
    display: flex;
    padding: 20px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.dropdown-section {
    flex: 1;
    padding: 0 15px;
    min-width: 160px;
    margin-right: 15px;
    max-width: 200px;
}

.dropdown-section:last-child {
    margin-right: 0;
}

.dropdown-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    white-space: nowrap;
}

.dropdown-section ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.dropdown-section ul li {
    margin: 5px 0;
    width: 100%;
    list-style: none;
}

.dropdown-section ul li a {
    font-size: 14px;
    font-weight: normal;
    color: var(--text-light);
    transition: var(--transition);
    padding: 8px 0;
    display: block;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
}

.dropdown-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
    border-bottom-color: var(--primary-light);
}

/* 主横幅区域 */
.hero {
    padding: 80px 0;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    width: 50%;
    padding-right: 50px;
    padding: 30px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.hero-buttons .btn {
    margin-right: 15px;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品服务区域 */
.products {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.product-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.product-card {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.product-icon {
    margin-bottom: 20px;
}

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

.product-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* 解决方案区域 */
.solutions {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 4px;
    font-weight: 500;
    color: var(--text-light);
    background-color: transparent;
    border: 1px solid var(--border-color);
}

.tab-btn.active, .tab-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-content {
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tab-pane {
    display: none;
    padding: 40px;
}

.tab-pane.active {
    display: block;
}

.solution-content {
    display: flex;
    align-items: center;
}

.solution-text {
    flex: 1;
    padding-right: 50px;
}

.solution-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.solution-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.solution-features {
    margin-bottom: 30px;
}

.solution-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.solution-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.solution-image {
    flex: 1;
}

/* 客户案例区域 */
.case-studies {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.logo-item {
    padding: 20px;
    margin: 10px;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 100px;
}

.logo-item img {
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
    object-fit: contain;
}

.logo-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.case-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.case-card {
    flex: 1;
    min-width: 300px;
    margin: 15px;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.case-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.case-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* 数据统计区域 */
.statistics {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
}

.stat-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    opacity: 0.9;
}

/* 新闻资讯区域 */
.news {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.news-cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.news-card {
    flex: 1;
    min-width: 300px;
    margin: 15px;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 14px;
    color: var(--text-lighter);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.news-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* 联系我们区域 */
.contact {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-info > p {
    margin-bottom: 30px;
    color: var(--text-light);
}

.contact-items {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
}

.contact-icon img {
    width: 40px;
    height: 40px;
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text p {
    color: var(--text-light);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-white);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* 页脚区域 */
.footer {
    background-color: #2c3e50;
    color: white;
    padding-top: 60px;
}

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

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
}

.footer-link-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-link-group h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.footer-link-group ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-link-group ul li a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-contact p a {
    color: var(--bg-white);
    text-decoration: underline;
    transition: var(--transition);
}

.footer-contact p a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    margin-top: 20px;
}

.social-link {
    margin-right: 15px;
}

.social-link img {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: var(--transition);
}

.social-link:hover img {
    opacity: 1;
}

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

.copyright {
    width: 100%;
    text-align: center;
}

.copyright p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-bottom-links a {
    margin-left: 20px;
    opacity: 0.7;
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    opacity: 1;
} 