/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #222222; /* 深灰色背景 */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23444444' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #888888;
}

.btn-primary {
    display: inline-block;
    background-color: #333333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #555555;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #111111;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 链接样式 */
a {
    color: #dddddd;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: white;
}

a:active {
    color: white;
}

a:visited {
    color: #bbbbbb;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(17, 17, 17, 0.95);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 60px;
    height: 30px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    white-space: nowrap;
    margin: 0;
    color: #ffffff;
}

.desktop-nav {
    margin-left: auto;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav ul li {
    margin-left: 22px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .desktop-nav ul li {
        margin-left: 18px;
    }
    .logo-text {
        font-size: 1.4rem;
    }
    .desktop-nav a {
        font-size: 0.95rem;
    }
}

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1010;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}

.desktop-nav ul li a {
    color: #bbbbbb;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #888888;
    transition: width 0.3s ease;
}

.desktop-nav ul li a:hover::after,
.desktop-nav ul li a.active::after {
    width: 100%;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
    color: #ffffff;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.98);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav ul li a {
    display: block;
    color: #bbbbbb;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Banner区域样式 */
.banner {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.yinyang-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

.banner-content {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banner-text {
    flex: 1;
    padding-right: 50px;
}

.banner-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #dddddd;
    max-width: 80%;
}

.banner-images {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.banner-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 易经测算区域 */
.calculation-section {
    background-color: #1a1a1a;
}

.calculation-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.calculation-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #333333;
}

.calculation-card:hover {
    transform: translateY(-10px);
    background-color: #333333;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 易经市场区域 */
.market-section {
    background-color: #222222;
}

.market-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.market-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333333;
}

.market-card:hover {
    transform: translateY(-10px);
    background-color: #333333;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 知识产权区域 */
.ip-section {
    background-color: #1a1a1a;
}

.ip-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ip-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333333;
}

.ip-item:hover {
    transform: translateY(-10px);
    background-color: #333333;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 资源合作区域 */
.cooperation-section {
    background-color: #222222;
}

.cooperation-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.cooperation-img-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #333333;
    text-align: center;
}

.cooperation-text-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #333333;
    text-align: center;
}

.cooperation-img-card:hover,
.cooperation-text-card:hover {
    transform: translateY(-10px);
    background-color: #333333;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.cooperation-img {
    width: 200px;
    height: 100px;
    object-fit: contain;
    border-radius: 4px;
    margin: 0 auto 15px;
    background-color: #333333;
    padding: 10px;
}

/* 通用卡片样式 */
.card-icon, .ip-icon, .contact-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card-icon i, .ip-icon i, .contact-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.calculation-card h3, .market-card h3, .ip-item h3, .contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.calculation-card p, .market-card p, .ip-item p, .contact-item p {
    color: #bbbbbb;
}

.calculation-card ul {
    list-style-position: inside;
    color: #bbbbbb;
}

.calculation-card ul li {
    margin-bottom: 8px;
}

/* 联系方式区域 */
.contact-section {
    background-color: #1a1a1a;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333333;
}

.contact-item:hover {
    transform: translateY(-10px);
    background-color: #333333;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.qrcode-img {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888888;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner-text h1 {
        font-size: 2.8rem;
    }
    
    .banner-images {
        flex: 0 0 350px;
    }
    
    .cooperation-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .banner {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .banner-content {
        flex-direction: column;
    }
    
    .banner-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .banner-text p {
        max-width: 100%;
    }
    
    .banner-images {
        flex: 0 0 300px;
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .banner-text h1 {
        font-size: 2.2rem;
    }
    
    .banner-images {
        flex: 0 0 250px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cooperation-content {
        grid-template-columns: 1fr;
    }
}