* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-width: 1200px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-width: 1200px;
}

.starry-header {
    color: white;
    position: relative;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 1;
    background-color: #2c3e50;
    background-image: url('banner.jpg');
    background-size: 100% 250%;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
    width: 100%;
    min-width: 1200px;
    overflow: hidden;
}

.nav-links {
    position: absolute;
    top: 4rem;
    left: 4rem;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: green;
}

.nav-links a.active {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.name {
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 1;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f0f9e8;
}

.hero {
    background-color: #f0f9e8;
    color: #333;
    padding: 2rem 0;
    min-width: 1200px;
}

.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    background-color: #f0f9e8;
    padding: 0.5rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 1200px;
    z-index: 100;
    margin: 0;
}

.hero {
    position: relative;
    padding-top: 2rem;
}

.marquee {
    display: inline-block;
    animation: marquee 15s linear infinite;
    font-size: 0.9rem;
    color: #666;
    white-space: nowrap;
    position: relative;
}

@keyframes marquee {
    0% {
        transform: translateX(100vw);
    }
    100% {
        transform: translateX(-100%);
    }
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.hero h2 {
    color: #27ae60;
    font-size: 1.5rem;
    text-align: left;
    margin: 0;
}

.quote-right {
    text-align: right;
    font-style: italic;
    color: #666;
    margin: 0;
}
.main-content {
    max-width: 100%;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
}

.main-content-inner {
    flex: 7;
    max-width: 100%;
}

.main-image-scroll {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 420px;
    background-color: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 0;
    padding: 10px;
}

.sidebar {
    flex: 3;
    min-width: 250px;
    max-width: 30%;
}

.image-container {
    display: inline-block;
    padding: 0;
    animation: imageScroll 5s ease-in-out infinite;
}

.image-container img {
    width: 500px;
    height: 400px;
    object-fit: cover;
    border: 3px solid orange;
    border-radius: 0;
}

@keyframes imageScroll {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        transform: translateX(0);
    }
}

.category h3,
.tags h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    color: #27ae60;
    display: flex;
    align-items: center;
}

.icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.category ul {
    list-style: none;
    padding: 0;
}

.category li {
    margin-bottom: 0.5rem;
}

.category a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.category a:hover {
    color: green;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-list a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.tag-list a:hover {
    color: green;
}

.newest, .contact, .friend-links {
    margin-top: 2rem;
}

.newest h3, .contact h3, .friend-links h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
    color: #27ae60;
    display: flex;
    align-items: center;
}

.newest ul, .friend-links ul {
    list-style: none;
    padding: 0;
}

.newest li, .friend-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.newest li:nth-child(-n+3) {
    color: #3498db;
    transition: color 0.3s ease;
    cursor: pointer;
}

.newest li:nth-child(n+4) {
    color: #3498db;
    transition: color 0.3s ease;
    cursor: pointer;
}

.new-tag {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    margin-left: 0.5rem;
    font-weight: bold;
}

.friend-links a {
    color: #3498db;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    cursor: pointer;
}

.newest li:hover, .friend-links a:hover {
    color: green;
    text-decoration: underline;
}

.newest li:hover .new-tag {
    background-color: #c0392b;
}

.article-content {
    flex: 1;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.article-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #999;
    display: flex;
    gap: 1rem;
}

.contact-info img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    width: 240px;
}

.social-links img {
    width: 35px;
    height: 35px;
    object-fit: cover;
}

.article-list {
    margin-top: 2rem;
}

.article-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.article-item h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.article-item h3:hover {
    color: green;
}

.article-meta {
    margin: 0;
}

.category-tag {
    display: inline-block;
    font-size: 0.8rem;
    color: #3498db;
    margin-right: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.category-tag:hover {
    color: green;
}

.article-content-wrapper {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-image {
    flex: 0 0 240px;
    height: 180px;
}

.article-image img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.article-image img:hover {
    transform: scale(1.02);
}

.article-content {
    flex: 1;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.3rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.article-content:hover {
    color: green;
}

.article-footer {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
}

.article-footer span {
    margin-right: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 4rem 0;
    box-sizing: border-box;
}

.tech-section, .daily-section, .about-section {
    padding: 4rem 0;
}

.tech-section {
    background-color: #f0f9e8;
}

.daily-section {
    background-color: #f0f9e8;
}

.about-section {
    background-color: #f0f9e8;
}

h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #27ae60;
    font-weight: 700;
}

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

.article-card {
    background-color: #f0f9e8;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.article-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.read-more {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
    text-decoration: underline;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.changyan-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
    background-color: transparent;
}

footer {
    background-color: #f5f5f6;
    color: #000;
    text-align: center;
    padding: 2rem 0;
    min-width: 1200px;
}

.footer_container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.footer_content {
    text-align: center;
}

.footer_content b {
    font-size: 0.9rem;
    color: #000;
    display: block;
    margin-bottom: 1rem;
}

.footer_content p {
    font-size: 0.85rem;
    color: #000;
    margin: 0.5rem 0;
}

.footer_content a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer_content a:hover {
    color: #333;
    text-decoration: underline;
}

.footer-third-row {
    color: #999 !important;
}

.footer-third-row a {
    color: #999 !important;
}

.footer-third-row a:hover {
    color: #bbb !important;
}

.title {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

@media (max-width: 992px) {
    .nav-links {
        top: 1rem;
        left: 1rem;
    }

    .nav-links li {
        margin: 0 1rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .name {
        font-size: 1.3rem;
    }

    nav {
        height: 35vh;
    }

    .about_container, .contact_container, .message_container, .more_container {
        width: 100%;
        padding: 0 1rem;
    }

    .content, .content_left, .content_right {
        width: 100%;
        float: none;
    }

    .content_right {
        padding-right: 0;
    }

    .link_div ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
        height: auto;
        min-height: 30vh;
    }

    .nav-links {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin: 0 0.8rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .name {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .main-content {
        flex-direction: column;
    }

    .container {
        padding: 2rem 1rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .link_div ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu_div {
        flex-wrap: wrap;
    }

    .menu_div span {
        margin-right: 15px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .nav-links li {
        margin: 0 0.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .name {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .article-card {
        padding: 1.5rem;
    }

    nav {
        height: 30vh;
    }

    .link_div ul {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header .quote-right {
        padding-right: 0;
        margin-top: 10px;
    }

    .content_left ul li {
        padding-left: 20px;
    }

    .content_left ul li i {
        padding-left: 20px;
    }
}

.actGotop {
    position: fixed;
    _position: absolute;
    bottom: 100px;
    right: 50px;
    width: 150px;
    height: 195px;
    display: none;
    z-index: 1000;
}

.actGotop a,
.actGotop a:link {
    width: 150px;
    height: 195px;
    display: inline-block;
    background: url(img/all/gotop.png) no-repeat;
    _background: url(img/all/gotop.gif) no-repeat;
    outline: none;
}

.actGotop a:hover {
    width: 150px;
    height: 195px;
    background: url(img/all/gotopd.gif) no-repeat;
    outline: none;
}

/* 关于页面样式 */
.about_container {
    max-width: 1200px;
    overflow: hidden;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.06);
}

.about_container .content {
    width: 50%;
    float: left;
    padding-top: 30px;
    padding-bottom: 40px;
}

.about_container .content p {
    line-height: 36px;
    text-indent: 40px;
    padding-left: 30px;
    padding-right: 50px;
    margin-bottom: 8px;
}

.about_container .content b {
    color: rgb(0, 0, 0);
    font-size: 20px;
}

.about_container .content img {
    width: 500px;
    height: 300px;
    margin-left: 50px;
}

.about_container .content .we {
    width: 300px;
    height: 300px;
    margin-right: 50px;
    margin-left: 110px;
}

.about_container .content_right {
    width: 50%;
    float: right;
    padding-right: 60px;
    box-sizing: border-box;
}

.about_container .content_right img {
    width: 100%;
    height: 350px;
    padding: 50px 0px 0px 0px;
    display: block;
}

.about_container .content_right .imgs {
    padding-left: 0px;
    padding-top: 60px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.about_container .content_right .imgs img {
    width: calc(25% - 11.25px);
    height: 100px;
    padding-left: 0px;
    padding-top: 0px;
    flex: 1;
}

.about_container .content_right .imgs img:hover {
	 cursor: pointer;
}

/* 联系页面样式 */
.contact_container {
    max-width: 1200px;
    overflow: hidden;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.06);
}

.contact_container .content_left {
    width: 50%;
    float: left;
}

.contact_container .content_left ul li {
    list-style: none;
    line-height: 50px;
    padding-top: 25px;
    padding-left: 50px;
    padding-bottom: 10px;
    cursor: pointer;
}

.contact_container .content_left ul li i {
    font-size: 30px;
    padding-left: 40px;
    color: rgb(169, 169, 169);
}

.contact_container .content_left ul li i:hover {
    color: rgba(44, 204, 35, 0.88);
    cursor: pointer;
}

.contact_container .content_right {
    width: 50%;
    float: right;
    padding-right: 60px;
    box-sizing: border-box;
}

.contact_container .content_right img {
    width: 100%;
    height: 350px;
    padding: 50px 0px 0px 0px;
    display: block;
}

.contact_container .content_right .imgs {
    padding-left: 0px;
    padding-top: 60px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.contact_container .content_right .imgs img {
    width: calc(25% - 11.25px);
    height: 80px;
    padding-left: 0px;
    padding-top: 0px;
    flex: 1;
}

.contact_container .content_right .imgs img:hover {
    cursor: pointer;
}

/* 留言页面样式 */
.headerMarquee {
    max-width: 1200px;
    margin: 0 auto 20px;
    font-size: 0.9rem;
    color: #666;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    animation: scrollText 8s ease-in-out infinite alternate;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(1000px);
    }
}

.message_container {
    max-width: 1200px;
    overflow: hidden;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.06);
}

.message_container .content_left {
    width: 46%;
    float: left;
    padding-top: 40px;
    padding-bottom: 20px;
}

.message_container .content_left i {
    font-style: normal;
    display: block;
}

.message_container .content_left i b {
    font-size: 18px;
    padding-left: 60px;
    display: block;
    margin-bottom: 20px;
}

.message_container .content_left i p {
    line-height: 40px;
    text-indent: 40px;
    font-size: 16px;
    padding-left: 60px;
    padding-right: 30px;
    margin-bottom: 15px;
}

.message_container .content_left iframe {
    padding-left: 50px;
    width: 510px;
    height: 130px;
}

.message_container .content_right {
    width: 50%;
    float: right;
    padding-right: 60px;
    box-sizing: border-box;
}

.message_container .content_right img {
    width: 100%;
    height: 350px;
    padding: 40px 0px 0px 0px;
    display: block;
}

.message_container .content_right .imgs {
    padding-left: 0px;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.message_container .content_right .imgs img {
    width: calc(25% - 11.25px);
    height: 80px;
    padding-left: 0px;
    padding-top: 0px;
    flex: 1;
}

.message_container .content_right .imgs img:hover {
    cursor: pointer;
}

/* 工作中的我 - 标题样式 */
.work-header h2 {
    color: #27ae60;
}

.work-header {
    margin-top: 3rem;
}

/* 工作中的我 - 容器间距 */
.work_container {
    margin-top: 2rem;
}

/* 模块标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header:first-child {
    margin-top: 0;
}

.section-header h2 {
    color: #27ae60;
    font-size: 1.5rem;
    text-align: left;
    margin: 0;
}

.section-header .quote-right {
    text-align: right;
    font-style: italic;
    color: #666;
    margin: 0;
    flex-shrink: 0;
    padding-right: 60px;
}

.work-section-header {
    margin-top: 4rem;
}

/* ==================== 菜单页面样式 ==================== */

/* 菜单页面容器 */
.menu_container {
    max-width: 1200px;
    overflow: hidden;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.06);
}

/* 菜单标题样式 */
.menu_container h3 {
    text-align: center;
    font-size: 20px;
    padding-top: 50px;
}

/* 菜单标题span样式 */
.menu_container h3 span {
    background-color: bisque;
    padding: 10px;
    cursor: pointer;
}

/* 菜单图片容器 */
.menu_container .imgDiv {
    margin-bottom: 50px;
    padding: 20px 50px;
    overflow: hidden;
}

/* 菜单图片样式 */
.menu_container .imgDiv img {
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
    float: left;
    margin: 15px 50px;
}

/* 菜单图片悬停效果 */
.menu_container .imgDiv img:hover {
    transform: scale(1.1);
}

/* ==================== 更多页面样式 ==================== */

/* 更多页面容器 */
.more_container {
    max-width: 1200px;
    overflow: hidden;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.06);
}

/* 更多页面菜单导航 */
.more_container .menu_div {
    background-color: rgba(169, 169, 169, 0.16);
    padding: 20px;
    font-size: 1.1rem;
    color: black;
}

/* 更多页面菜单选项 */
.more_container .menu_div span {
    cursor: pointer;
    margin-left: 60px;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* 更多页面菜单选项悬停效果 */
.more_container .menu_div span:hover {
    color: green;
}

/* 更多页面菜单选项激活状态 */
.more_container .menu_div span.active {
    color: black;
    font-weight: 700;
    text-decoration: underline;
}

/* 更多页面链接列表 */
.more_container .link_div ul {
    margin: 0;
    padding: 0;
}

/* 更多页面链接项 */
.more_container .link_div ul li {
    list-style-type: none;
    float: left;
    padding: 40px;
    padding-bottom: 50px;
}

/* 更多页面链接样式 */
.more_container .link_div ul li a {
    border: 1px solid #00ebff;
    padding: 10px;
    background-color: blanchedalmond;
    text-decoration: none;
    color: black;
}

/* 更多页面分类链接显示控制 */
.more_container .link_div .all_link {
    display: block;
}

.more_container .link_div .home_link {
    display: none;
}

.more_container .link_div .common_link {
    display: none;
}

.more_container .link_div .development_link {
    display: none;
}

.more_container .link_div .query_link {
    display: none;
}

.more_container .link_div .boring_link {
    display: none;
}

.more_container .link_div .others_link {
    display: none;
}
