/* 海绵宝宝世界 - 公用样式表 style.css */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: "Microsoft YaHei", Arial, sans-serif;

    color: #333;

    background-color: #f5f5f5;

    line-height: 1.6;

}



a {

    text-decoration: none;

    color: inherit;

}



ul {

    list-style: none;

}



/* ========== 顶部导航栏 ========== */

.header {

    background-color: #FFD700;

    padding: 15px max(20px, calc((100% - 1100px) / 2));

    display: flex;

    justify-content: space-between;

    align-items: center;

    position: relative;

    z-index: 1000;

}



.logo {

    display: flex;

    align-items: center;

    font-size: 22px;

    font-weight: bold;

    color: #333;

}



.logo img {

    width: 40px;

    height: 40px;

    margin-right: 10px;

    border-radius: 5px;

}



.nav > ul {

    display: flex;

    align-items: center;

}



.nav > ul > li {

    margin-left: 25px;

    position: relative;

}



.nav > ul > li > a {

    color: #333;

    font-size: 16px;

    line-height: 40px;

    white-space: nowrap;

}



.nav > ul > li > a:hover {

    color: #e74c3c;

}



.nav > ul > li.nav-dropdown > a::after {

    content: "▾";

    display: inline-block;

    margin-left: 4px;

    font-size: 11px;

    vertical-align: middle;

    opacity: 0.75;

}



.nav > ul > li.nav-dropdown > .dropdown-menu {

    display: none;

    position: absolute;

    top: 100%;

    left: 50%;

    transform: translateX(-50%);

    min-width: 140px;

    margin: 0;

    padding: 6px 0;

    background: #FFE566;

    border-radius: 8px;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);

    z-index: 1001;

}



.nav > ul > li.nav-dropdown > .dropdown-menu::before {

    content: "";

    position: absolute;

    top: -10px;

    left: 0;

    width: 100%;

    height: 10px;

}



.nav > ul > li.nav-dropdown:hover > .dropdown-menu,

.nav > ul > li.nav-dropdown:focus-within > .dropdown-menu {

    display: block;

}



.nav > ul > li.nav-dropdown > .dropdown-menu > li {

    margin: 0;

}



.nav > ul > li.nav-dropdown > .dropdown-menu > li > a {

    display: block;

    padding: 9px 20px;

    font-size: 14px;

    line-height: 1.4;

    color: #333;

    white-space: nowrap;

}



.nav > ul > li.nav-dropdown > .dropdown-menu > li > a:hover {

    background: #FFD700;

    color: #e74c3c;

}



/* ========== 通用内容区 ========== */

.container {

    max-width: 1100px;

    margin: 0 auto;

    padding: 50px 20px;

}



.section-title {

    text-align: center;

    font-size: 28px;

    margin-bottom: 40px;

    color: #333;

}



.btn {

    display: inline-block;

    background-color: #e74c3c;

    color: white;

    padding: 12px 35px;

    border-radius: 25px;

    font-size: 16px;

    border: none;

    cursor: pointer;

}



.btn:hover {

    background-color: #c0392b;

}



/* ========== 页脚 ========== */

.footer {

    background-color: #333;

    color: #ccc;

    padding: 40px 20px 20px;

}



.footer-content {

    max-width: 1100px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    gap: 30px;

}



.footer-col h4 {

    color: white;

    margin-bottom: 15px;

    font-size: 16px;

}



.footer-col ul li {

    margin-bottom: 8px;

}



.footer-col ul li a {

    color: #ccc;

    font-size: 14px;

}



.footer-col ul li a:hover {

    color: #FFD700;

}



.footer-col p {

    font-size: 14px;

    line-height: 1.8;

}



.footer-bottom {

    text-align: center;

    margin-top: 30px;

    padding-top: 15px;

    border-top: 1px solid #555;

    font-size: 14px;

}



/* ========== 内页通用样式 ========== */

.page-banner {

    background-color: #FFD700;

    padding: 40px 20px;

    text-align: center;

}



.page-banner h1 {

    font-size: 32px;

    color: #333;

}



.page-banner p {

    color: #555;

    margin-top: 10px;

}



.breadcrumb {

    max-width: 1100px;

    margin: 15px auto 0;

    padding: 0 20px;

    font-size: 14px;

    color: #888;

}



.breadcrumb a {

    color: #e74c3c;

}



.breadcrumb a:hover {

    text-decoration: underline;

}



.back-links {

    max-width: 1100px;

    margin: 0 auto;

    padding: 15px 20px;

}



.back-links a {

    color: #e74c3c;

    margin-right: 20px;

    font-size: 14px;

}



.back-links a:hover {

    text-decoration: underline;

}



.text-content {

    background: white;

    padding: 25px;

    border-radius: 10px;

    margin-bottom: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

}



.text-content h2 {

    margin-bottom: 15px;

    color: #333;

}



.text-content p {

    margin-bottom: 10px;

    color: #555;

    text-indent: 2em;

}



.sub-links {

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

    margin-bottom: 30px;

}



.sub-links a {

    background: #FFD700;

    padding: 12px 25px;

    border-radius: 8px;

    color: #333;

    font-weight: bold;

}



.sub-links a:hover {

    background: #e74c3c;

    color: white;

}



.img-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

}



.img-grid img {

    width: 100%;

    height: 200px;

    object-fit: cover;

    border-radius: 8px;

    cursor: pointer;

    transition: transform 0.3s;

}



.img-grid img:hover {

    transform: scale(1.05);

}


