/* ========================================
   荣润铭拓 - 高端网站建设公司
   轻奢哑光商务风格样式表
   配色：灰蓝 + 银白
======================================== */

/* CSS Reset & 基础设置 */
* {
    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.8;
    color: #3a4a5a;
    background-color: #f8f9fa;
    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;
}

/* 颜色变量 */
:root {
    --primary-gray-blue: #5a6b7c;
    --dark-gray-blue: #3a4a5a;
    --light-gray-blue: #7a8b9c;
    --silver-white: #e8ecef;
    --pure-white: #ffffff;
    --accent-gold: #c9a962;
    --text-dark: #2a3a4a;
    --text-light: #6a7a8a;
    --bg-light: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========================================
   导航栏样式
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(90, 107, 124, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(58, 74, 90, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 12px 24px;
    color: var(--silver-white);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--pure-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--pure-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端菜单 */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(58, 74, 90, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 10px;
        transition: all 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 18px 24px;
        font-size: 18px;
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   通用容器
======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-gray-blue);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gray-blue), var(--accent-gold));
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   首页 Banner
======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a3a4a 0%, #5a6b7c 50%, #7a8b9c 100%);
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(42, 58, 74, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--pure-white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 4px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 40px;
    color: var(--silver-white);
    animation: fadeInUp 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--pure-white);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.btn-secondary:hover {
    background: var(--pure-white);
    color: var(--dark-gray-blue);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   左右图文穿插错位布局
======================================== */
.feature-section {
    padding: 100px 0;
    background: var(--pure-white);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-row.reverse .feature-image {
    direction: ltr;
}

.feature-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-content {
    padding: 40px;
}

.feature-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray-blue);
    margin-bottom: 20px;
}

.feature-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 2;
}

.feature-list {
    margin-top: 24px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.feature-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-gold);
    color: var(--pure-white);
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========================================
   服务卡片
======================================== */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--pure-white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-card-img {
    height: 220px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 30px;
}

.service-card-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-gray-blue);
    margin-bottom: 12px;
}

.service-card-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-gray-blue);
    font-weight: 600;
    font-size: 14px;
}

.service-card-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-link::after {
    transform: translateX(5px);
}

/* ========================================
   关于我们
======================================== */
.about-section {
    padding: 100px 0;
    background: var(--pure-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.4s ease;
}

.about-card:hover {
    background: var(--primary-gray-blue);
    transform: translateY(-5px);
}

.about-card:hover h4,
.about-card:hover p {
    color: var(--pure-white);
}

.about-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 24px;
    border: 3px solid var(--accent-gold);
}

.about-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-gray-blue);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.about-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    transition: color 0.3s ease;
}

/* ========================================
   案例展示
======================================== */
.cases-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--pure-white) 0%, var(--bg-light) 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.case-card-img {
    height: 280px;
    overflow: hidden;
}

.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-card-img img {
    transform: scale(1.1);
}

.case-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(42, 58, 74, 0.95));
    color: var(--pure-white);
}

.case-card-overlay h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-card-overlay p {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   新闻资讯
======================================== */
.news-section {
    padding: 100px 0;
    background: var(--pure-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 24px;
}

.news-card-date {
    font-size: 14px;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.news-card-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray-blue);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-card-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary-gray-blue);
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   页脚
======================================== */
.footer {
    background: linear-gradient(135deg, #2a3a4a 0%, #3a4a5a 100%);
    color: var(--silver-white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand .logo-text {
    font-size: 22px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 2;
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.footer-contact li img {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.footer-links h5,
.footer-nav h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h5::after,
.footer-nav h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav a {
    font-size: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--accent-gold);
    padding-left: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* ========================================
   内页 Banner
======================================== */
.page-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    background: linear-gradient(135deg, #2a3a4a 0%, #5a6b7c 100%);
}

.page-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

.page-banner-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--pure-white);
}

.page-banner-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.page-banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* ========================================
   面包屑导航
======================================== */
.breadcrumb {
    background: var(--bg-light);
    padding: 20px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--primary-gray-blue);
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--accent-gold);
}

.breadcrumb-list span {
    opacity: 0.5;
}

/* ========================================
   内容页面布局
======================================== */
.content-page {
    padding: 80px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
}

.main-content {
    background: var(--pure-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--pure-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-gray-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    display: block;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 15px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--primary-gray-blue);
    color: var(--pure-white);
    padding-left: 20px;
}

/* ========================================
   新闻列表页
======================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: var(--pure-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.news-list-item:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.news-list-item-img {
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
}

.news-list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-list-item:hover .news-list-item-img img {
    transform: scale(1.1);
}

.news-list-item-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-gray-blue);
    margin-bottom: 12px;
}

.news-list-item-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.news-list-item-content p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-item-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary-gray-blue);
    font-weight: 600;
}

/* ========================================
   新闻详情页
======================================== */
.article-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--silver-white);
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-gray-blue);
    margin-bottom: 20px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 24px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* ========================================
   相关新闻
======================================== */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--silver-white);
}

.related-news h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-gray-blue);
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.related-card:hover {
    background: var(--primary-gray-blue);
}

.related-card:hover h4,
.related-card:hover p {
    color: var(--pure-white);
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray-blue);
    margin-bottom: 10px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.related-card p {
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 1200px) {
    .services-grid,
    .about-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .news-list-item {
        grid-template-columns: 200px 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .services-grid,
    .about-grid,
    .cases-grid,
    .news-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page-banner {
        height: 300px;
    }

    .page-banner-content h1 {
        font-size: 32px;
    }

    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-item-img {
        height: 200px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ========================================
   滚动动画
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   工具类
======================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}
