 * {
    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{
    text-align: center;
    position: relative;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 16px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 0 100px;
}

.search-container::before {
    content: "“";
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 130px;
    color: #4a6fa5;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.search-container::after {
    content: "”";
    position: absolute;
    top: 0px;
    right: 30px;
    font-size: 130px;
    color: #4a6fa5;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}
.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 h3{
    color: black;
}

.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;
}

.type-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    margin-top: 30px;
}

.type-card {
    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-radius: 16px;
    padding: 20px;
    transition: var(--transition);
    border-left: 5px solid #76a18c;
}

.type-card:hover {
    transform: translateY(-5px);
}

.type-card h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.type-card h3 i {
    color: var(--primary);
}

.type-card ul {
    list-style-type: none;
}

.type-card li {
    margin: 10px 0;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 0.8rem;
    color: #000;
    display: -webkit-box; /* 弹性伸缩盒子模型 */
  -webkit-box-orient: vertical; /* 设置子元素排列方式 */
  -webkit-line-clamp: 1; /* 显示的行数 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.type-card li:hover {
    background-color: rgba(46, 204, 113, 0.05);
    padding-left: 10px;
    border-radius: 8px;
}

.type-card li:last-child {
    border-bottom: none;
}

.type-card li i {
    color: var(--accent);
    font-size: 0.8rem;
    margin-right: 8px;
}


.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: #0bb384;
}

.home-modules .blog .btn {
    background: #01515e;
    color: white;
}

.home-modules .blog .btn:hover {
    background: #0bb384;
}

.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;
    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%,.1);
    border-radius: 16px;
    padding: 20px 100px;
    transition: var(--transition);
    position: relative;
    margin-bottom: 50px;
}
.introduction b{
    color: #2c3e50;
}
.introduction p{
    color: #28352f;
}

.introduction::before {
    content: "“";
    position: absolute;
    top: 0px;
    left: 30px;
    font-size: 130px;
    color: #4a6fa5;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.introduction::after {
    content: "”";
    position: absolute;
    bottom: -70px;
    right: 30px;
    font-size: 130px;
    color: #4a6fa5;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;

}

/* 响应式设计 */
@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%;
    }
    .search-container{
        padding: 0 10px;
    }
    .search-container::before {
        content: "“";
        position: absolute;
        top: -40px;
        left: 0px;
        font-size: 110px;
        color: #4a6fa5;
        opacity: 0.2;
        font-family: Georgia, serif;
        line-height: 1;
        z-index: 0;
    }

    .search-container::after {
        content: "”";
        position: absolute;
        top: 80px;
        right: 0px;
        font-size: 110px;
        color: #4a6fa5;
        opacity: 0.2;
        font-family: Georgia, serif;
        line-height: 1;
        z-index: 0;
    }

    .introduction{
    line-height: 40px;
    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%,.1);
        border-radius: 16px;
        padding: 20px;
        transition: var(--transition);
        position: relative;
    }

    .introduction::before {
        content: "“";
        position: absolute;
        top: -10px;
        left: 10px;
        font-size: 110px;
        color: #4a6fa5;
        opacity: 0.2;
        font-family: Georgia, serif;
        line-height: 1;
        z-index: 0;
    }

    .introduction::after {
        content: "”";
        position: absolute;
        bottom: -50px;
        right: 20px;
        font-size: 110px;
        color: #4a6fa5;
        opacity: 0.2;
        font-family: Georgia, serif;
        line-height: 1;
        z-index: 0;
    }
}