* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: #1f1f1f;
    background: #eef3fa;
    line-height: 1.8;
}
a { text-decoration: none; color: inherit; }

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 28, 63, 0.7);
    color: #fff;
    z-index: 100;
    backdrop-filter: blur(6px);
}
header .logo { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
header nav { display: flex; align-items: center; }
header nav a { margin-left: 30px; font-weight: 600; transition: color 0.3s; }
header nav a:hover { color: #ffe077; }
header .header-breadcrumb { margin-left: 20px; }
header .header-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
header .header-breadcrumb .breadcrumb li { display: inline-flex; align-items: center; }
header .header-breadcrumb .breadcrumb li a { color: rgba(255,255,255,0.7); font-size: 13px; margin-left: 0; font-weight: normal; }
header .header-breadcrumb .breadcrumb li a:hover { color: #ffe077; }
header .header-breadcrumb .breadcrumb li.active { color: #ffe077; font-size: 13px; }
header .header-breadcrumb .breadcrumb > li + li::before { 
    content: "/"; 
    padding: 0 8px; 
    color: rgba(255,255,255,0.5); 
}

@keyframes heroBgMove {
    0%   { transform: scale(1)    translateX(0); }
    50%  { transform: scale(1.08) translateX(-2%); }
    100% { transform: scale(1)    translateX(0); }
}

.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 10%;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -5%;
    background: url("/assets/addons/cms/img/33.jpg") center/cover no-repeat;
    animation: heroBgMove 12s ease-in-out infinite;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11,27,53,0.85), rgba(55,125,255,0.65));
    z-index: 1;
}
.hero > * {
    position: relative;
    z-index: 2;
}
.hero h1 { font-size: 56px; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 18px; max-width: 600px; margin-bottom: 30px; }
.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    border: 2px solid #ffd762;
    color: #1f1f1f;
    background: #fff;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.35s;
    cursor: pointer;
}
.btn-primary:hover { background: #ffd762; color: #0d0d39; }

section { padding: 100px 10%; }
section.content-section { background: #fff; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 20px; position: relative; }
.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg,#4776E6,#8E54E9);
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}
.section-desc { text-align: center; max-width: 800px; margin: 0 auto 50px; color: #555; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 40px;
}
.about-card {
    border-radius: 18px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: linear-gradient(145deg,#1f2b59,#2e67c7);
    min-height: 260px;
}
.about-card h3 { font-size: 26px; margin-bottom: 15px; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
    margin-top: 50px;
}
.stat-item {
    padding: 20px;
    background: #f3f6ff;
    border-radius: 14px;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(70,130,255,0.08);
}
.stat-item h4 { font-size: 32px; color: #3259d4; margin-bottom: 5px; }

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}
.business-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e3e9ff;
    box-shadow: 0 20px 40px rgba(22, 54, 91, 0.08);
    position: relative;
}
.business-card::before {
    content: attr(data-number);
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 48px;
    font-weight: 700;
    color: rgba(71,118,230,0.15);
}
.business-card h3 {
    margin-bottom: 10px;
    color: #214192;
}
.business-card p { color: #555; }

.clients {
    background: #101f3d;
    color: #fff;
}
.clients h2 { color: #f7f9ff; }
.client-list {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}
.client-item {
    padding: 30px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}
.client-item span { font-size: 18px; letter-spacing: 1px; }

footer {
    padding: 50px 10%;
    background: #0b142a;
    color: rgba(255,255,255,0.65);
    text-align: center;
}
footer p { margin: 6px 0; font-size: 14px; }
footer a { color: rgba(255,255,255,0.5); transition: color 0.3s; }
footer a:hover { color: #ffe077; }

.page-container {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* 首页 hero 紧贴 header，不需要额外 padding */
.page-container > .hero:first-child {
    margin-top: -80px;
}

.page-header {
    color: #214192;
    padding: 20px 10%;
    padding-left: calc(10% + 20px);
    background: #fff;
    /* margin-top: 80px; */
}
.page-header h1 { font-size: 22px; margin-bottom: 10px; font-weight: 600; }
.page-header .breadcrumb { 
    background: transparent; 
    padding: 0; 
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.page-header .breadcrumb li { display: inline-flex; align-items: center; }
.page-header .breadcrumb li a { color: #666; font-size: 13px; }
.page-header .breadcrumb li.active { color: #214192; font-size: 13px; }
.page-header .breadcrumb > li + li::before { 
    content: "/"; 
    padding: 0 8px; 
    color: #999; 
}

.content-section {
    padding: 0 10% 60px 10%;
    background: #fff;
}

.panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(22, 54, 91, 0.08);
    border: 1px solid #e3e9ff;
    margin-bottom: 30px;
}
.panel-heading {
    padding: 20px 25px;
    border-bottom: 1px solid #e3e9ff;
    background: linear-gradient(135deg, #f8faff 0%, #fff 100%);
    border-radius: 16px 16px 0 0;
}
.panel-title {
    font-size: 20px;
    color: #214192;
    font-weight: 600;
}
.panel-body {
    padding: 10px 30px;
}

.article-list { }
.article-item {
    padding: 25px 0;
    border-bottom: 1px solid #e3e9ff;
    display: flex;
    gap: 20px;
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.cert-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e3e9ff;
    box-shadow: 0 10px 30px rgba(22, 54, 91, 0.08);
    transition: all 0.3s;
}
.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(22, 54, 91, 0.12);
}
.cert-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}
.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.cert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cert-info h3 {
    font-size: 16px;
    color: #214192;
    font-weight: 600;
    margin: 0;
    text-align: center;
}
.cert-info h3 a {
    color: #214192;
    text-decoration: none;
}
.cert-info h3 a:hover {
    color: #3259d4;
}
.article-item:last-child { border-bottom: none; }
.article-item .thumb {
    width: 200px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.article-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-item .info { flex: 1; }
.article-item .info h3 {
    font-size: 18px;
    color: #1f1f1f;
    margin-bottom: 10px;
}
.article-item .info h3 a:hover { color: #3259d4; }
.article-item .info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.article-item .meta {
    font-size: 13px;
    color: #999;
}
.article-item .meta span { margin-right: 15px; }
.article-item .meta i { margin-right: 5px; }

.article-content { }
.article-metas { margin-bottom: 30px; }
.article-metas .metas-title {
    font-size: 28px;
    color: #1f1f1f;
    margin-bottom: 15px;
    line-height: 1.4;
}
.article-metas .metas-body {
    font-size: 14px;
    color: #666;
}
.article-metas .metas-body span { margin-right: 20px; }
.article-metas .metas-body i { margin-right: 5px; color: #3259d4; }

.article-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.article-text p { margin-bottom: 20px; }
.article-text img { max-width: 100%; border-radius: 8px; }
.article-text ul,
.article-text ol {
    padding-left: 2em;
    margin-bottom: 20px;
}
.article-text ul { list-style: disc; }
.article-text ol { list-style: decimal; }
.article-text li { margin-bottom: 8px; }
.article-text h1,
.article-text h2,
.article-text h3,
.article-text h4 {
    margin: 25px 0 12px;
    color: #1f1f1f;
    font-weight: 600;
    line-height: 1.4;
}
.article-text h2 { font-size: 22px; }
.article-text h3 { font-size: 18px; }
.article-text blockquote {
    border-left: 4px solid #3259d4;
    padding: 10px 20px;
    margin: 20px 0;
    background: #f8faff;
    color: #555;
    border-radius: 0 8px 8px 0;
}
.article-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}
.article-text table th,
.article-text table td {
    border: 1px solid #e3e9ff;
    padding: 10px 14px;
    text-align: left;
}
.article-text table th {
    background: #f0f4ff;
    color: #214192;
    font-weight: 600;
}
.article-text table tr:nth-child(even) { background: #fafbff; }
.article-text a { color: #3259d4; text-decoration: underline; }
.article-text a:hover { color: #214192; }
.article-text pre,
.article-text code {
    background: #f4f6fb;
    border-radius: 6px;
    font-size: 14px;
    padding: 2px 6px;
}
.article-text pre {
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.category-title {
    font-size: 24px;
    color: #1f1f1f;
    padding: 20px 0;
    border-bottom: 2px solid #e3e9ff;
    margin-bottom: 30px;
}
.category-title .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: normal;
}

.filter-panel {
    background: #f8faff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}
.filter-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}
.filter-group:last-child { margin-bottom: 0; }
.filter-group .title {
    width: 80px;
    font-weight: 600;
    color: #333;
    padding-top: 8px;
}
.filter-group .options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.filter-group .options a {
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e3e9ff;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}
.filter-group .options a:hover,
.filter-group .options a.active {
    background: #3259d4;
    border-color: #3259d4;
    color: #fff;
}

.pagination-wrapper {
    text-align: center;
    padding: 30px 0;
}
.pagination {
    display: inline-flex;
    gap: 5px;
}
.pagination li a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e3e9ff;
    color: #666;
    transition: all 0.3s;
}
.pagination li a:hover,
.pagination li.active a {
    background: #3259d4;
    border-color: #3259d4;
    color: #fff;
}

.comment-section { margin-top: 40px; }
.comment-form {
    background: #f8faff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}
.comment-form textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #e3e9ff;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    resize: vertical;
}
.comment-form textarea:focus {
    outline: none;
    border-color: #3259d4;
}
.comment-list { }
.comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #e3e9ff;
}
.comment-item .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e3e9ff;
    float: left;
    margin-right: 15px;
}
.comment-item .content { margin-left: 65px; }
.comment-item .author { font-weight: 600; color: #333; }
.comment-item .time { font-size: 12px; color: #999; margin-left: 10px; }
.comment-item .text { margin-top: 10px; color: #666; }

.search-form {
    display: flex;
    gap: 10px;
}
.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #e3e9ff;
    border-radius: 25px;
    font-size: 14px;
}
.search-form input:focus {
    outline: none;
    border-color: #3259d4;
}
.search-form button {
    padding: 12px 30px;
    background: #3259d4;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.search-form button:hover { background: #214192; }

.sidebar {
    padding-left: 30px;
}
.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(22, 54, 91, 0.08);
    border: 1px solid #e3e9ff;
}
.sidebar-widget h4 {
    font-size: 18px;
    color: #214192;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e3e9ff;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a { color: #666; transition: color 0.3s; }
.sidebar-widget ul li a:hover { color: #3259d4; }

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn-default {
    background: #f8faff;
    color: #333;
    border: 1px solid #e3e9ff;
}
.btn-default:hover {
    background: #e3e9ff;
}
.btn-success {
    background: linear-gradient(135deg, #4776E6, #8E54E9);
    color: #fff;
}
.btn-success:hover {
    opacity: 0.9;
}
.btn-danger {
    background: #e74c3c;
    color: #fff;
}
.btn-danger:hover {
    background: #c0392b;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e3e9ff;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: #3259d4;
}

/* 表单组间距 */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.form-group .help-block {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
.form-group select.form-control { appearance: auto; }

/* 提交按钮区域 */
.text-center { text-align: center; }
.btn-lg {
    padding: 13px 50px;
    font-size: 16px;
    border-radius: 30px;
}
#post-form {
    max-width: 680px;
    margin: 0 auto;
    padding: 10px 0 20px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags a {
    padding: 6px 14px;
    background: #f8faff;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}
.tags a:hover {
    background: #3259d4;
    color: #fff;
}

.simple-page-title {
    padding: 20px 10%;
    background: #fff;
    border-bottom: 1px solid #e3e9ff;
}
.simple-page-title h1 {
    font-size: 20px;
    color: #333;
    font-weight: 500;
}

.page-title-bar {
    padding-bottom: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e3e9ff;
    position: relative;
}
.page-title-bar::after {
    /* content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4776E6, #8E54E9); */
}
.page-title-bar h1 {
    font-size: 22px;
    color: #214192;
    font-weight: 600;
    margin: 0;
}

#floatbtn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#floatbtn a,
#floatbtn .floatbtn-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: #3259d4;
    font-size: 20px;
    transition: all 0.3s;
    position: relative;
}
#floatbtn a:hover,
#floatbtn .floatbtn-item:hover {
    background: #3259d4;
    color: #fff;
    transform: translateY(-3px);
}
#floatbtn a.hover {
    flex-direction: column;
    height: auto;
    min-height: 50px;
    padding: 8px;
    border-radius: 25px;
}
#floatbtn a.hover em {
    font-size: 12px;
    font-style: normal;
    line-height: 1.3;
    text-align: center;
}
#floatbtn .floatbtn-wrapper {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
    white-space: nowrap;
}
#floatbtn a:hover .floatbtn-wrapper,
#floatbtn .floatbtn-item:hover .floatbtn-wrapper {
    display: block;
}
#floatbtn .floatbtn-wrapper .qrcode {
    width: 120px;
    height: 120px;
}
#floatbtn .floatbtn-wrapper .qrcode img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
#floatbtn .floatbtn-wrapper p {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 5px 0 0;
}
#floatbtn .social-share {
    display: flex;
    gap: 10px;
}
#floatbtn .social-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
}
#floatbtn .social-share .icon-weibo { background: #e6162d; }
#floatbtn .social-share .icon-qq { background: #12b7f5; }
#floatbtn .social-share .icon-qzone { background: #fece00; color: #333; }
#floatbtn .social-share .icon-wechat { background: #09bb07; }

/* 相关文章 */
.related-article {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e3e9ff;
}
.related-article::before {
    content: '相关文章';
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #214192;
    margin-bottom: 15px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.related-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e3e9ff;
    transition: box-shadow 0.3s;
}
.related-item:hover { box-shadow: 0 6px 20px rgba(50,89,212,0.12); }
.related-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f0f4ff;
}
.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.related-item:hover .related-thumb img { transform: scale(1.05); }
.related-title {
    padding: 8px 10px;
    font-size: 13px;
    color: #333;
    line-height: 1.5em;
    margin: 0;
    height: 4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 文章元信息 */
.entry-meta {
    margin-top: 30px;
    padding: 20px;
    background: #f8faff;
    border-radius: 10px;
    border: 1px solid #e3e9ff;
}
.entry-meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}
.entry-meta ul:last-child { margin-bottom: 0; }
.entry-meta ul li {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eef0f8;
}
.entry-meta ul li:last-child { border-bottom: none; }
.entry-meta ul li a { color: #3259d4; }
.entry-meta ul li a:hover { text-decoration: underline; }
.entry-meta .tag {
    display: inline-block;
    padding: 2px 10px;
    background: #e8eeff;
    border-radius: 12px;
    font-size: 12px;
    color: #3259d4;
    margin: 2px 3px;
}
.article-prevnext li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #eef0f8;
}
.article-prevnext li:last-child { border-bottom: none; }
.article-prevnext li span { color: #214192; font-weight: 600; white-space: nowrap; }
.article-prevnext li a { color: #333; transition: color 0.3s; }
.article-prevnext li a:hover { color: #3259d4; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-animate {
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
}

/* 滚动入场动画 */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* 汉堡按钮 - 默认隐藏 */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 移动端下拉菜单 */
#mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(12, 28, 63, 0.97);
    z-index: 99;
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
    padding: 14px 25px;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
}
#mobile-nav a:last-child { border-bottom: none; }
#mobile-nav a:hover,
#mobile-nav a.active {
    background: rgba(255,255,255,0.1);
    color: #ffe077;
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header { padding: 15px 25px; }
    header #main-nav { display: none; }
    .nav-toggle { display: flex; }
    .hero { padding: 120px 8% 40px; height: auto; min-height: 80vh; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 14px; }
    section { padding: 80px 8%; }
    .page-header { padding: 15px 5%; padding-left: calc(5% + 20px); }
    .page-header h1 { font-size: 28px; }
    .content-section { padding: 20px 5% 40px; }
    .article-item { flex-direction: column; }
    .article-item .thumb { width: 100%; height: 180px; }
    .sidebar { padding-left: 0; margin-top: 30px; }
    .simple-page-title { padding: 20px 5%; }
    .simple-page-title h1 { font-size: 24px; }
    #floatbtn { right: 10px; bottom: 80px; }
    #floatbtn a, #floatbtn .floatbtn-item { width: 44px; height: 44px; font-size: 18px; }
    footer { padding: 30px 5%; }
    footer p { font-size: 13px; }
}
