﻿* {
    padding: 0;
    margin: 0;
}

/*默认*/
body {
    background-color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

html {
    overflow-y: scroll;
}

main {
    flex: 1;
}

.navbar {
    display: flex;
    height: 67px;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1a1a;
    padding: 0 60px 0 60px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    align-items: center;
    height: auto;
    text-decoration: none;
    font-size: 24px;
    color: #ffffff;
}

.logo-area img{
    height: 40px;
    width: auto;
}

.links {
    display: flex;
    list-style: none;
    gap: 30px;
    font-size: 18px;
}

.links a {
    display: inline-block;
    text-decoration: none;
    color: #aaa;
    font-size: 16px;
    padding: 8px 20px;
    background-color: #252525;
    border-radius: 4px;
    transition: all 0.2s;
}
.links a:hover {
    color: #c92b30;
    background-color: #3a3a3a;
    border-color: #666;
}
/*默认*/



/*当前页*/
.links .active {
    color: #fff;
    background-color: #c92b30;
}
.links .active:hover {
    background-color: #a52024;
    color: #fff;
}


/* 卡片 */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 40px 0;
}

.card-link {
    text-decoration: none;
    width:400px;
    display: block;
}

.card {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 24px;
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #111;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;/*图片等比缩放*/
    display: block;
    border-radius: 4px 4px 0 0;
}

.card-link:hover .card {
    border-color: rgb(255, 255, 255);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.card-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.card-subtitle {
    font-size: 13px;
    color: #999;
    text-align: center;
}














/*内容*/
.content-edge {
    max-width: 1000px;
    margin: 40px auto;
    padding: 32px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
}

.article-title {
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.article-Subtitle {
    margin: 24px 0 24px 0;
    font-size: 13px;
    color: #888;
}

.article-body {
    font-size: 16px;
    font-family:'Courier New', monospace;
    line-height: 1.7;
    color: #dcdcdc;
}

.article-body p {
    margin: 0 0 16px 0;
}

.article-image {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
}

/*联系方式*/
.contact-profile {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
    padding: 40px 24px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
}

.touxiang {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #444;
}

.touxiang img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-list {
    list-style: none;
    margin: 30px 0 0 0;
    text-align: left;
    background: #252525;
    border-radius: 8px;
    padding: 16px 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 1rem;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list i {
    width: 28px;
    font-size: 1.4rem;
    color: #c92b30;
    text-align: center;
    margin-right: 12px;
}

.contact-label {
    color: #aaa;
    margin-right: 6px;
}
.contact-value {
    color: #fff;
    font-weight: 500;
    word-break: break-all;
}





/*淡出*/
.contact-profile {
    animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
/*淡出*/



/*联系方式*/








/*代码块*/
.code {
    background-color: #3a3a3a;
    border-radius: 5px;
    padding: 8px 0px;
}
/*代码块*/




/*版权*/
.site-footer {
  width: 100%;
  margin-top: 60px;
  padding: 24px 0;
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  text-align: center;
  color: #ffffff;
}
/*版权*/




/*首页*/
.hero {
    position: relative;
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-content .hero-desc {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.botton {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    background-color: #252525;
    color: #ccc;
    border: 1px solid #444;
}


.botton:hover {
    background-color: #3a3a3a;
    border-color: #666;
    color: #fff;
}















/*标题*/
.home-section {
    padding: 60px 24px 20px;
    text-align: center;
}

.home-section .section-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
}











/*登录*/
.login-container {
    max-width: 420px;
    margin: 60px auto;
    padding: 40px 36px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    border-radius: 50%;
    border: 3px solid #444;
}

.login-title {
    color: #fff;
    font-size: 22px;
    margin-bottom: 32px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    color: #aaa;
    font-size: 14px;
}

.form-group input {
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    transition: border-color 0.3s;
}

.login-btn {
    margin-top: 8px;
    padding: 14px 0;
    background-color: #c92b30;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #a52024;
}













/*返回按钮*/
.back-fixed {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #c92b30;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.back-fixed:hover {
    background-color: #a52024;
}
