/* 基础样式与重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0cf;
    --secondary: #7024f8;
    --dark: #0a1128;
    --darker: #050a1d;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #00ff9d;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background-color: rgba(5, 10, 29, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 204, 255, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.btn-signup {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: white !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s;
    background-color: var(--light);
}

/* 英雄区域样式 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 60px;
    background: linear-gradient(to bottom, var(--darker), var(--dark));
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 204, 255, 0.15), transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(112, 36, 248, 0.15), transparent 25%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #a0aec0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 204, 255, 0.3);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(0, 204, 255, 0.1);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.mining-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.bitcoin, .ethereum, .server {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 2rem;
    animation: float 3s infinite ease-in-out;
}

.bitcoin {
    background: linear-gradient(45deg, #f7931a, #f2a900);
    color: white;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.ethereum {
    background: linear-gradient(45deg, #8c8c8c, #6f6f6f);
    color: white;
    bottom: 40px;
    left: 30px;
    animation-delay: 0.5s;
}

.server {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    bottom: 40px;
    right: 30px;
    animation-delay: 1s;
}

.connection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed rgba(0, 204, 255, 0.5);
    border-radius: 50%;
    animation: rotate 20s infinite linear;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 统计区域样式 */
.stats {
    background: linear-gradient(to right, var(--dark), var(--darker));
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    flex: 1;
    min-width: 200px;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
}

.stat-item p {
    color: var(--gray);
}

/* 文章区域样式 */
.articles-section {
    padding: 5rem 0;
    background-color: var(--dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--light);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.article-image {
    height: 180px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    position: relative;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: block;
    transition: color 0.3s;
}

.article-content h3 a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.article-meta i {
    margin-right: 0.3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #cbd5e0;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 特色区域样式 */
.features {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--dark), var(--darker));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(to bottom, rgba(0, 204, 255, 0.05), rgba(112, 36, 248, 0.05));
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
}

/* 页脚样式 */
.footer {
    background-color: var(--darker);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: all 0.3s;
}

.social-links a:hover {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .mining-animation {
        width: 250px;
        height: 250px;
    }
    
    .stat-item {
        min-width: 50%;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* 页面标题区域样式 */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(to right, var(--dark), var(--darker));
    text-align: center;
    margin-top: 70px;
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Orbitron', sans-serif;
}

.page-header p {
    color: var(--gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 文章列表区域样式 */
.articles-list {
    padding: 5rem 0;
    background-color: var(--dark);
}

.list-header {
    text-align: center;
    margin-bottom: 3rem;
}

.list-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.list-header p {
    color: var(--primary);
    font-weight: 500;
}

.articles-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.list-article {
    display: flex;
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.list-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.article-list-image {
    width: 30%;
    min-width: 250px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    position: relative;
}

.article-list-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-list-content {
    padding: 2rem;
    flex: 1;
}

.article-list-content h3 a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: color 0.3s;
}

.article-list-content h3 a:hover {
    color: var(--primary);
}

.article-list-meta {
    display: flex;
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.article-list-meta span {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.article-list-meta i {
    margin-right: 0.3rem;
}

.article-list-content p {
    margin-bottom: 1.5rem;
    color: #cbd5e0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.page-link.next {
    width: auto;
    padding: 0 1rem;
}

/* 订阅区域样式 */
.subscribe {
    padding: 5rem 0;
    background: linear-gradient(to right, var(--dark), var(--darker));
    text-align: center;
}

.subscribe-content {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.subscribe-content p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.subscribe-form {
    display: flex;
    margin: 0 auto;
    max-width: 500px;
}

.subscribe-form input {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px 0 0 30px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.subscribe-form button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0 30px 30px 0;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.subscribe-form button:hover {
    opacity: 0.9;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
    .list-article {
        flex-direction: column;
    }
    
    .article-list-image {
        width: 100%;
        min-width: auto;
        height: 200px;
    }
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .subscribe-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        border-radius: 30px;
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .list-header h2 {
        font-size: 1.8rem;
    }
    
    .article-list-content {
        padding: 1.5rem;
    }
    
    .article-list-content h3 a {
        font-size: 1.3rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}