/* ========================================
   国颐达网络科技有限公司官网样式
   ======================================== */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* 颜色变量 */
:root {
    --primary-color: #1E88E5;
    --primary-dark: #0D47A1;
    --accent-color: #FF6F00;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #E0E0E0;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用区块 */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.bg-light {
    background-color: var(--bg-light);
}

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

/* ========================================
   导航栏
   ======================================== */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-slogan {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.8;
}

/* ========================================
   按钮样式
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 136, 229, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ========================================
   公司简介预览
   ======================================== */
.about-preview .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-preview .about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* ========================================
   服务项目预览
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

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

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========================================
   技术优势
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
}

.advantage-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 10px;
}

.advantage-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.advantage-item p {
    color: var(--text-gray);
}

/* ========================================
   联系我们预览
   ======================================== */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    text-align: center;
    padding: 20px;
}

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

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

/* ========================================
   页脚
   ======================================== */
.site-footer {
    background-color: var(--primary-dark);
    color: #ffffff;
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.company-info p,
.contact-info p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.7;
}

.separator {
    margin: 0 10px;
}

/* ========================================
   页面标题
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    text-align: center;
    color: #ffffff;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   关于我们页面
   ======================================== */
.about-intro .about-content {
    max-width: 800px;
    margin: 0 auto 50px;
}

.about-intro .about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: justify;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-gray);
}

/* 发展历程 */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 75px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-date {
    min-width: 150px;
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
    padding-top: 5px;
}

.timeline-content {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.timeline-content p {
    color: var(--text-gray);
}

/* 企业文化 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.culture-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.culture-item:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.culture-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.culture-icon svg {
    width: 100%;
    height: 100%;
}

.culture-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.culture-item p {
    color: var(--text-gray);
}

/* 资质证书 */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.certificate-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.certificate-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.certificate-item p {
    color: var(--text-gray);
}

/* ========================================
   服务项目页面
   ======================================== */
.service-detail {
    margin-bottom: 60px;
    padding: 40px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.service-icon-large svg {
    width: 100%;
    height: 100%;
}

.service-detail h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.service-desc {
    text-align: center;
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-features {
    max-width: 600px;
    margin: 0 auto;
}

.service-features h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-features ul {
    list-style: none;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 25px;
}

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

/* 服务流程 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-step p {
    color: var(--text-gray);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ========================================
   新闻动态页面
   ======================================== */
.news-grid {
    display: grid;
    gap: 30px;
}

.news-item {
    display: flex;
    gap: 30px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.news-date {
    min-width: 100px;
    text-align: center;
    padding: 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 10px;
}

.news-date .day {
    display: block;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* ========================================
   联系我们页面
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

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

.contact-info-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* 联系表单 */
.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
}

/* 公司信息 */
.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-item {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.info-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-gray);
}
