 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ma Shan Zheng', cursive;
}

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: #6f5e04;
    --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: 13px "Microsoft YaHei", Arial, Helvetica, sans-serif;
    background: url(/static/index/image/bg.jpg) no-repeat top center;
    background-size: cover;
    background-attachment: fixed;
    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 {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    position: relative;
    width: 70%;
    max-width: 600px;
}

.search-box {
    width: 100%;
    padding: 18px 60px 18px 25px;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    box-shadow: var(--shadow);
    outline: none;
    transition: var(--transition);
    background: var(--card-bg);
}

.search-box:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
    border-color: var(--secondary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.05);
}

.section-title {
    font-size: 1.2rem;
    margin: 20px 0 20px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.idiom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.idiom-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: 1px solid hsla(0,0%,100%,.5);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-top: 4px solid var(--secondary);
    height: 100%;
    display: flex;
    flex-direction: column;
}


.idiom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}


.idiom-card h3 {
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark);
}

.idiom-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.positive {
    border-top-color: var(--success);
}

.negative {
    border-top-color: var(--danger);
}

.type-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.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 var(--primary);
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.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 {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 0.8rem;
    color: #000;
}

.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;
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 25px;
    color: #666;
    border-top: 1px solid #eaeaea;
    font-size: 0.95rem;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

.badge-hot {
    background: var(--warning);
    color: white;
}

.badge-positive {
    background: var(--success);
    color: white;
}

.badge-negative {
    background: var(--danger);
    color: white;
}

.badge-meh {
    background: var(--accent);
    color: white;
}

@media (max-width: 768px) {
    .search-container {
        width: 85%;
    }

    h1{
        text-align: center;
        width: 100%;
    }

    .idiom-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.floating-btn.show {
    opacity: 1;
    visibility: visible;
}

.floating-btn:hover {
    transform: scale(1.1);
}
 .page-num{
    width:40px;
    height: 40px;
    float: left;
    margin-left: 9px;
    background: rgba(140, 183, 169, 0.5);
    border-radius: 5px;
    line-height: 40px;
    text-align: center;
    color: #fff;
}
.page-num-dis{
    width:40px;
    height: 40px;
    float: left;
    margin-left: 9px;
    background: #e4e1e1;
    border-radius: 5px;
    line-height: 40px;
    text-align: center;
    color: #fff;
}
.page-num-dis:hover{
    color: #fff;
}
.page-num-active{
    color:black;
}
.tab-css{
    color: #999;
    font-size: 14px;
}
.detail h3{
    margin: 10px auto;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecf3;
}
.means{
    margin-right: 10px;
      display: block;
      float: left;
      width: 6px;
      height: 6px;
      background: #b7b9c1;
      border-radius: 50%;
      margin-top: 13px;
}
.idiom-css{
    display: inline-block;
    color: red;
    font-size: 13px;
    margin-bottom: 5px;
    margin-right: 5px;
}

.source{
    text-align: right;
    color: #999;
    font-size: 13px;
}

 .highlight {
  color: #fc231e;
}

 .line {
  display:inline-block;
  width:30px;
  height:1px;
  background:#999;
  margin-bottom:5px
}

.baobian span{
    color: #2ecc71;
    padding: 2px;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 10px;
    margin-right: 20px;
}
/*weizhi*/
.weizhi { margin-bottom: 10px;margin-top:25px;border-radius: 10px;background: url(../image/icon_wz.png) no-repeat left 10px center rgba(39,39,42,.05); background-size: 20px; line-height: 36px; padding-left: 36px; color: #808595; }
.weizhi a { color: #808595; }
.weizhi a:hover { color: #74a08b }
.detail-content{
  box-sizing: border-box;
  padding: 5px 30px;
    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;
}