/* ===== 基础样式 ===== */
:root {
    --primary-color: #1cc088;
    --primary-hover: #14a77e;
    --card-bg: #fff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #e0e6ed;
    --light-bg: #f5f7fa;
    --success-bg: #e8f5e9;
    --error-bg: #ffebee;
    --loading-bg: #e3f9f2;
    --nav-height: 70px;
}

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

body {
    font-family: 'LXGW WenKai', 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    background-color: var(--light-bg);
    color: var(--text-dark);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e8f9f2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1.0rem;;
}

code {
    font-family: 'LXGW WenKai', sans-serif;
    border-radius: 6px;
}

/* ===== 布局样式 ===== */
.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    width: 100% !important;
}

/* ===== 导航栏样式 ===== */
.navbar {
    background-color: var(--card-bg);
    height: var(--nav-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

.logo span {
    font-family: 'Noto Sans SC', sans-serif;
    transform: translateX(-5px);
}

.logo img {
    width: 30px;
    height: 30px;
    transform:translateY(-3%);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 1.01rem;
}

.nav-links .nav-link.active {
    font-weight: bold;
    color: #1CBE86;
}

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

/* ===== 移动端菜单按钮 ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-dark);
    cursor: pointer;
    margin-right: -3px;
}

/* ===== 移动端导航菜单 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav.active {
    max-height: 100%;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 1.1rem;
}

.mobile-nav-link.active {
    border-left-color: var(--primary-color);
    background-color: rgba(28, 192, 136, 0.05);
    color: var(--primary-color);
}

.mobile-nav-link:hover {
    background-color: rgba(28, 192, 136, 0.05);
    color: var(--primary-color);
}

/* ===== 卡片组件样式 ===== */
.card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 25px;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.card-icon {
    background-color: rgba(28, 192, 136, 0.15);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 18px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== 卡片背景样式 ===== */
.card-background {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.card-background:hover {
    border-color: rgba(28, 192, 136, 0.3);
}

.card-background p {
    line-height: 1.6;
}

.card-background a {
    text-decoration: none;
    color: #1cc088;
}

.card-background a:hover {
    color: #18A978;
    text-decoration: none;
}

.card-background li {
    margin-left: 18px;
}

/* ===== 功能介绍样式 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.09);
    border-color: rgba(28, 192, 136, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===== 复制按钮样式 ===== */
.keepright {
    margin-left: auto;
}

.button{
    all: unset;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    border:solid 1px #333;
    padding:6px 15px;
    white-space: nowrap;
    transition: all .2s;
    cursor: pointer;
    box-shadow: 0 1px 1px hsl(0deg 0% 0% / 10%);
}

.button:hover{
    background-color: #f3f4f6;
    color: rgba(28, 192, 136, 0.9);
}

.button i {
    width: 1em;
    height: 1em;
    margin-right: 5px;
}

/* ===== 站点统计样式 ===== */
.examples {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

.example-item {
    background: rgba(28, 192, 136, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.example-item:hover {
    background: rgba(28, 192, 136, 0.15);
}

.example-img {
    color: var(--primary-color);
    transform: translateY(5%);
}
.example-count {
    margin-left: auto;
    background: rgba(28, 192, 136, 0.15);
    padding: 0px 6px;
    border-radius: 5px;
    word-break: break-all;
    font-size: 0.9rem;
}
/* ===== 友情链接样式 ===== */
.links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.link-item {
    background: rgba(28, 192, 136, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.link-item:hover {
    background: rgba(28, 192, 136, 0.15);
}

.link-img {
    width: 18px;
    height: 18px;
    transform: translateY(2%);
}

/* ===== 页脚样式 ===== */
.footer {
    background-color: var(--card-bg);
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 1.0rem;
    margin-top: auto;
}

.footer p {
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.footer a {
    text-decoration: none;
    color: var(--text-dark);
}

.footer a:hover {
    color: #1cc088;
    text-decoration: none;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .card {
        padding: 20px;
    }

    /* 移动端导航样式 */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: block;
    }
}