/* 
 * 尧图网站设计 - 复古民国风样式
 * 配色：墨黑 #1a1a1a, 米黄 #f5f0e6, 暗红 #8b3a3a
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    background-color: #f5f0e6;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #8b3a3a;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 主容器 - 斜切非对称布局 */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* 左侧内容区 - 斜切设计 */
.left-content {
    flex: 1;
    padding: 40px 60px;
    background: linear-gradient(135deg, #f5f0e6 0%, #ebe5d6 100%);
    position: relative;
    overflow-y: auto;
}

.left-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg-pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* 右侧固定导航 */
.right-nav {
    width: 280px;
    background-color: #1a1a1a;
    color: #f5f0e6;
    padding: 40px 30px;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.right-nav .logo {
    font-size: 28px;
    font-weight: bold;
    color: #f5f0e6;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #8b3a3a;
    letter-spacing: 2px;
}

.right-nav ul {
    list-style: none;
}

.right-nav li {
    margin-bottom: 15px;
}

.right-nav a {
    display: block;
    padding: 12px 20px;
    color: #f5f0e6;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 16px;
}

.right-nav a:hover,
.right-nav a.active {
    background-color: rgba(139, 58, 58, 0.3);
    border-left-color: #8b3a3a;
    padding-left: 25px;
}

/* 汉堡菜单 - 移动端 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 5px 0;
    transition: 0.3s;
}

/* Banner 区域 */
.banner {
    position: relative;
    height: 500px;
    background-color: #1a1a1a;
    overflow: hidden;
    margin-bottom: 50px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #f5f0e6;
    z-index: 10;
}

.banner-title {
    font-size: 48px;
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: fadeInUp 1s ease;
}

.banner-subtitle {
    font-size: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

/* 核心优势板块 */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #d4c9b8;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #8b3a3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f0e6;
    font-size: 32px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* 快速入口 */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.quick-link {
    background: linear-gradient(135deg, #8b3a3a 0%, #6b2a2a 100%);
    color: #f5f0e6;
    padding: 25px;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.quick-link:hover {
    transform: scale(1.05);
}

.quick-link h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.quick-link p {
    font-size: 13px;
    opacity: 0.9;
}

/* 资讯列表 */
.news-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 4px solid #8b3a3a;
    color: #1a1a1a;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.news-card {
    background-color: #fff;
    border: 1px solid #d4c9b8;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.news-meta {
    font-size: 12px;
    color: #8b3a3a;
}

/* 页脚 */
.footer {
    background-color: #1a1a1a;
    color: #f5f0e6;
    padding: 40px 60px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #8b3a3a;
}

.footer-section p,
.footer-section a {
    font-size: 14px;
    color: #ccc;
    line-height: 2;
}

.footer-section a:hover {
    color: #f5f0e6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 13px;
    color: #888;
}

.icp-info {
    margin-top: 10px;
    font-size: 12px;
}

.icp-info a {
    color: #888;
    transition: color 0.3s ease;
}

.icp-info a:hover {
    color: #f5f0e6;
}

/* 通用页面头部 */
.page-header {
    background-color: #1a1a1a;
    color: #f5f0e6;
    padding: 60px;
    margin: -40px -60px 40px -60px;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.8;
}

/* 内容卡片 */
.content-card {
    background-color: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #d4c9b8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-card h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #8b3a3a;
    padding-bottom: 15px;
    border-bottom: 2px solid #f5f0e6;
}

.content-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* 案例展示 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background-color: #fff;
    border: 1px solid #d4c9b8;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: scale(1.03);
}

.case-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.case-info p {
    font-size: 14px;
    color: #666;
}

/* 工具列表 */
.tool-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.tool-item {
    background-color: #fff;
    padding: 25px;
    border-left: 4px solid #8b3a3a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tool-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.tool-item p {
    font-size: 14px;
    color: #666;
}

/* 团队介绍 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border: 1px solid #d4c9b8;
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 3px solid #8b3a3a;
}

.team-member h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 14px;
    color: #8b3a3a;
}

/* 留言表单 */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d4c9b8;
    background-color: #faf8f3;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b3a3a;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #8b3a3a;
    color: #f5f0e6;
    padding: 15px 40px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #6b2a2a;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .right-nav {
        position: fixed;
        width: 100%;
        height: auto;
        top: auto;
        bottom: 0;
        padding: 20px;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .right-nav.active {
        transform: translateY(0);
    }

    .right-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .right-nav li {
        margin: 5px 10px;
    }

    .hamburger {
        display: flex;
    }

    .left-content {
        padding: 80px 30px 100px 30px;
    }

    .banner {
        height: 350px;
    }

    .banner-title {
        font-size: 32px;
    }

    .features,
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features,
    .case-grid,
    .news-grid,
    .tool-list {
        grid-template-columns: 1fr;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .page-header {
        padding: 40px 20px;
        margin: -30px -20px 30px -20px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .left-content {
        padding: 70px 20px 80px 20px;
    }

    .footer {
        padding: 30px 20px;
    }
}
