 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
    color: initial;
}

ul{
    list-style: none;
}
.search-type-box{
    overflow: hidden;
    width: 100%;
}
.search-type-box ul li{
    float: left;
    padding: 10px 20px;
    background: #cfd7cd;
    margin-right: 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 10px;
}
.search-type-box ul li:hover{
    color: #fff;
}

:root {
    --primary: #0bb384;
    --secondary: #6f5e04;
    --accent: #d4af37;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #d4af37;
    --card-bg: #ffffff;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

body {
    font: 14px "Microsoft YaHei", Arial, Helvetica, sans-serif;
    background: linear-gradient(#ece4dd, #74a08b);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;

}

.container {
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
}

header {
    padding: 10px 5px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    font-family: 'Ma Shan Zheng', cursive;
}

.home{
    font-size: 1.6rem;
}

h1 {
    width: 1200px;
    font-size: 1.4rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin: 0 auto;
    line-height: 55px;
    height: 55px;
    padding: 0 20px;
}
.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    float: right;
}

.search-container{
    line-height: 40px;
    text-align: center;
}
.home-modules {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 10px 0 30px 0;
}

.home-modules .module-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    width: 320px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.home-modules .module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.home-modules .card-header {
    padding: 20px 20px 15px;
    color: white;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

.home-modules .card-header i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
    float: right;
}

.home-modules .card-header h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.home-modules .card-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.home-modules .card-content {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.home-modules .feature-list {
    list-style: none;
    margin-bottom: 20px;
    flex: 1 1 auto;
}

.home-modules .feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.home-modules .feature-list li:last-child {
    border-bottom: none;
}

.home-modules .feature-list i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.home-modules .btn {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

/* 英语词汇模块样式 */
.home-modules .vocabulary .card-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.home-modules .vocabulary .feature-list i {
    color: #3498db;
}

.home-modules .vocabulary .btn {
    background: #2c3e50;
    color: white;
}

.home-modules .vocabulary .btn:hover {
    background: #2980b9;
}

/* 成语大全模块样式 */
.home-modules .idioms .card-header {
    background: linear-gradient(135deg, #2ecc71, #6f5e04);
}

.home-modules .idioms .feature-list i {
    color: #2ecc71;
}

.home-modules .idioms .btn {
    background: #6f5e04;
    color: white;
}

.home-modules .idioms .btn:hover {
    background: #27ae60;
}

/* 诗词鉴赏模块样式 */
.home-modules .poetry .card-header {
    background: linear-gradient(135deg, #e74c3c, #01515e);
}

.home-modules .poetry .feature-list i {
    color: #e74c3c;
}

.home-modules .poetry .btn {
    background: #01515e;
    color: white;
}

.home-modules .poetry .btn:hover {
    background: #c0392b;
}

/* 博客模块样式 */
.home-modules .blog .card-header {
    background: linear-gradient(135deg,#0bb384, #01515e);
}

.home-modules .blog .feature-list i {
    color: #e74c3c;
}

.home-modules .blog .btn {
    background: #01515e;
    color: white;
}

.home-modules .blog .btn:hover {
    background: #c0392b;
}

.home-modules .badge {
    position: absolute;
    top: 0px;
    right: -25px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 4px 25px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 600;
}
.detail-content{
  box-sizing: border-box;
  padding: 5px 15px;
    box-shadow: 0 0 #fff,0 0 0 1px hsla(240,5%,96%,.1),0 10px 15px -3px rgba(39,39,42,.05),0 4px 6px -4px rgba(39,39,42,.05);
    backdrop-filter: blur(12px);
  background-color: hsla(0,0%,100%,.5);
  border: 1px solid hsla(0,0%,100%,.5);
  border-radius: 5px;
    margin-top: 15px;
}
.introduction{
    line-height: 40px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .home-modules {
        gap: 15px;
    }

    .home-modules .module-card {
        width: calc(50% - 15px);
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .home-modules {
        flex-direction: column;
        align-items: center;
    }

    .home-modules .module-card {
        width: 100%;
        max-width: 350px;
    }
    h1{
        text-align: center;
        width: 100%;
    }
}