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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #2d3748;
    background: #f7f8fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

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

/* --- 导航栏 --- */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: #4b5563;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #6366f1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Hero Banner --- */
.hero {
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
    color: #fff;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 18px;
    opacity: 0.92;
    max-width: 620px;
    margin: 0 auto 36px;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    background: #fff;
    color: #6366f1;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

/* --- 通用板块 --- */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #1e293b;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #06b6d4);
    margin: 16px auto 0;
    border-radius: 4px;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-top: -35px;
    margin-bottom: 50px;
}

/* --- 关于我们 --- */
.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #1e293b;
}

.about-text p {
    color: #475569;
    font-size: 16px;
    margin-bottom: 12px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}

.about-image:hover {
    transform: translateY(-6px);
}

.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

/* --- 服务卡片 --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.12);
    border-color: #e0e7ff;
}

.service-icon {
    font-size: 44px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #6366f1;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    font-size: 15px;
}

/* --- 新闻板块 --- */
.news-section {
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.news-img {
    height: 210px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
}

.news-card:hover .news-img img {
    transform: scale(1.08);
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: #6366f1;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    gap: 10px;
}

/* --- 文章详情页 --- */
.article-page {
    padding-top: 50px;
    padding-bottom: 60px;
    min-height: 60vh;
    flex: 1;
}

.article-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
    font-size: 30px;
    color: #1e293b;
    margin-bottom: 10px;
}

.article-meta {
    color: #94a3b8;
    font-size: 14px;
}

.article-body {
    font-size: 16px;
    line-height: 1.9;
    color: #334155;
    max-width: 800px;
    margin: 0 auto;
}

.article-body p {
    margin-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    color: #6366f1;
    font-weight: 600;
    cursor: pointer;
    transition: gap 0.3s ease;
}

.back-btn:hover {
    gap: 10px;
}

/* --- 联系我们页 --- */
.contact-section {
    padding: 90px 0;
    flex: 1;
}

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

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1e293b;
}

.contact-info p {
    color: #475569;
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-info .info-item span:first-child {
    font-size: 20px;
    color: #6366f1;
}

.contact-form {
    background: #fff;
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 24px;
    color: #1e293b;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f9fafb;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* --- 页脚 --- */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #f8fafc;
    margin-bottom: 20px;
    font-size: 17px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-col ul li a {
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #a5b4fc;
}

.copyright {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    font-size: 14px;
    text-align: center;
    color: #64748b;
}





.floating-cta {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(86vw, 380px);
  min-height: 64px;
  padding: 0 28px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg,#ff6a00,#d21f2b) padding-box,
              conic-gradient(from 0deg,#ff6a00,#ffd166,#ffffff,#d21f2b,#ff6a00) border-box;
  color: #fff !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.95),0 18px 44px rgba(0,0,0,.45);
  animation: tk-cta-pulse 2.4s ease-in-out infinite;
  transition: transform .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.floating-cta::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(255,209,102,.8);
  pointer-events: none;
  animation: tk-cta-ripple 2.4s ease-out infinite;
}
.floating-cta:hover::after {
  animation: none;
  opacity: 0;
}
.floating-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.floating-cta__icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  flex: 0 0 auto;
}
.floating-cta__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes tk-cta-pulse {
  0%,100% {
    transform: translate(-50%,-50%) scale(1);
    box-shadow: 0 0 0 3px rgba(255,255,255,.95),0 0 0 3px rgba(255,106,0,.55),0 18px 44px rgba(0,0,0,.45);
  }
  50% {
    transform: translate(-50%,-50%) scale(1.045);
    box-shadow: 0 0 0 3px rgba(255,255,255,.98),0 0 0 18px rgba(255,106,0,0),0 22px 52px rgba(0,0,0,.5);
  }
}
@keyframes tk-cta-ripple {
  0% {
    opacity: .7;
    transform: scale(.98);
  }
  70% {
    opacity: .25;
    transform: scale(1.12);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}
@media (max-width:720px) {
  .floating-cta {
    width: min(86vw,340px);
    min-height: 56px;
    padding: 0 20px;
    gap: 8px;
    font-size: 19px;
  }
  .floating-cta__icon {
    width: 25px;
    height: 25px;
  }
  .floating-cta__text {
    white-space: nowrap;
    line-height: 1.2;
  }
}























/* --- 响应式 --- */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .nav-links {
        display: none;
    }

    .about-content {
        gap: 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .contact-form {
        padding: 24px;
    }
}