/* ========================================
   嘉拓科创建站有限公司 - 全局样式
   风格：潮鞋ins风 | 黑色 + 亮红 + 浅灰
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #ff3d3d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff6b6b;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 50px;
    transition: all 0.4s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    box-shadow: 0 2px 20px rgba(255, 61, 61, 0.2);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo-text span {
    color: #ff3d3d;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-menu li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccc;
    position: relative;
    padding: 8px 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff3d3d;
    transition: width 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #fff;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 移动端导航 */
@media (max-width: 992px) {
    .header {
        padding: 15px 25px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        padding: 80px 30px;
        gap: 25px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 30px rgba(255, 61, 61, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding: 60px 50px 30px;
    border-top: 1px solid rgba(255, 61, 61, 0.2);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff3d3d;
}

.footer-section p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #999;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #ff3d3d;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 40px 25px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ========================================
   通用组件
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff3d3d;
}

.section-title p {
    color: #999;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: #ff3d3d;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 3px;
    border: 2px solid #ff3d3d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: transparent;
    color: #ff3d3d;
}

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #0a0a0a;
}

/* 卡片样式 */
.card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 61, 61, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 61, 61, 0.2);
    border-color: #ff3d3d;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.card-text {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   首页 Banner
   ======================================== */
.hero-banner {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%),
                url('../images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 61, 61, 0.15) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 20px;
    animation: slideDown 1s ease;
}

.hero-content h1 span {
    color: #ff3d3d;
}

.hero-content p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 40px;
    animation: slideUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: slideUp 1s ease 0.6s both;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   核心优势板块
   ======================================== */
.features-section {
    background: #0f0f0f;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 61, 61, 0.1);
}

.feature-card:hover {
    background: #222;
    transform: translateY(-8px);
    border-color: #ff3d3d;
    box-shadow: 0 15px 35px rgba(255, 61, 61, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #ff3d3d 0%, #cc0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 35px;
    height: 35px;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
}

.feature-card p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   服务板块
   ======================================== */
.services-section {
    background: #0a0a0a;
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-item {
    display: flex;
    gap: 25px;
    padding: 35px;
    background: #1a1a1a;
    border-radius: 8px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 61, 61, 0.1);
}

.service-item:hover {
    transform: translateX(10px);
    border-color: #ff3d3d;
    background: #222;
}

.service-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff3d3d 0%, #cc0000 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 30px;
    height: 30px;
}

.service-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 12px;
}

.service-content p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .services-wrapper {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .service-icon {
        margin: 0 auto;
    }
}

/* ========================================
   案例板块
   ======================================== */
.cases-section {
    background: #0f0f0f;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.case-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, transparent 100%);
}

.case-overlay h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}

.case-overlay p {
    color: #ff3d3d;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   资讯列表板块
   ======================================== */
.news-section {
    background: #0a0a0a;
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.news-tab {
    padding: 10px 25px;
    color: #999;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.news-tab:hover,
.news-tab.active {
    color: #fff;
    border-color: #ff3d3d;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* ========================================
   内页 Banner
   ======================================== */
.page-banner {
    height: 50vh;
    min-height: 350px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%),
                url('../images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
}

.page-banner-content {
    text-align: center;
    z-index: 1;
}

.page-banner-content h1 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
}

.page-banner-content p {
    color: #ccc;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .page-banner-content h1 {
        font-size: 2rem;
    }
}

/* ========================================
   关于我们页面
   ======================================== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid #ff3d3d;
    border-radius: 8px;
    z-index: -1;
}

.about-content h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 25px;
}

.about-content p {
    color: #999;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid rgba(255, 61, 61, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    color: #ff3d3d;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

/* ========================================
   新闻列表页面
   ======================================== */
.news-list-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .news-list-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   新闻详情页面
   ======================================== */
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 61, 61, 0.2);
}

.article-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 30px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-cover {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
}

.article-content {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 25px 0;
}

.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 61, 61, 0.2);
}

.related-news h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.6rem;
    }

    .article-cover {
        height: 250px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   联系页面
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
}

.contact-info p {
    color: #999;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: #ff3d3d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon img {
    width: 22px;
    height: 22px;
}

.contact-item-text h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-item-text p {
    color: #999;
    font-size: 0.9rem;
}

.contact-form {
    background: #1a1a1a;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 61, 61, 0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 61, 61, 0.3);
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff3d3d;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}
