/* ========================
   方逸扬网络 - 公共样式 (Ant Design 风格 + 背景图支持)
   ======================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: rgba(0, 0, 0, 0.85);
    line-height: 1.6;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #1890ff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #1890ff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1890ff;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

.btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

/* 英雄区域（带背景图） */
.hero {
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* 黑色遮罩，让文字更清晰 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* 内容区块 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #1f1f1f;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.65);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    padding: 32px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 22px;
    margin: 16px 0 12px;
    color: #1f1f1f;
}

.card p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 15px;
    line-height: 1.7;
}

/* 文本内容区块 */
.content-block {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.content-block p {
    font-size: 17px;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* 页脚 */
.footer {
    background: #001529 url('../images/footer-bg.jpg') no-repeat center center;
    background-size: cover;
    color: rgba(255, 255, 255, 0.85);
    padding: 60px 0 40px;
    text-align: center;
    font-size: 15px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.footer p {
    margin: 8px 0;
    line-height: 1.8;
}

.contact-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 16px;
    }

    .nav-menu {
        display: none;
    }

    .section-title {
        font-size: 28px;
    }

    .card {
        padding: 24px;
    }
}