﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑",sans-serif;
}

body {
    background-color: #f0f2f5;
    background-image: radial-gradient(#dce3ec 1px, transparent 1px);
    background-size: 20px 20px;
    color: #333;
    line-height: 1.6;
}

.header {
    height: 60px;
    line-height: 60px;
    background: #2c3e50;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    padding: 0 80px;
}

.logo {
    font-size: 22px;
    font-weight: normal;
    color: #4fc3f7;
    float: left;
    text-decoration: none;
}

    .logo i {
        margin-right: 8px;
    }

.nav {
    float: right;
}

    .nav a {
        margin: 0 15px;
        text-decoration: none;
        color: #e8e8e8;
        transition: color 0.3s;
    }

        .nav a:hover {
            color: #4fc3f7;
        }

.main {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.search-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
    margin-bottom: 30px;
}

    .search-card::after {
        content: '';
        position: absolute;
        top: 15px;
        right: 15px;
        width: 80px;
        height: 80px;
        border: 2px solid #e8edf2;
        border-radius: 8px;
        opacity: 0.4;
    }

/* ----------------- 新加的两行标题 ----------------- */
.search-title {
    margin-bottom: 28px;
}

    .search-title .line1 {
        font-size: 24px;
        font-weight: bold;
        color: #2c3e50;
        margin-bottom: 6px;
    }

    .search-title .line2 {
        font-size: 20px;
        color: #4fc3f7;
        font-weight: 500;
    }

.tab-group {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.tab-radio {
    display: none;
}

.tab-label {
    padding: 6px 22px;
    border: 1px solid #ccd6e0;
    background: #f5f8fb;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s;
    color: #455a64;
    user-select: none;
}

.tab-radio:checked + .tab-label {
    background: #2c3e50;
    color: #fff;
    border-color: #2c3e50;
}

.tab-label:hover {
    border-color: #4fc3f7;
}

.search-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

    .search-box input {
        width: 600px;
        height: 48px;
        padding: 0 22px;
        border: 1px solid #ccd6e0;
        border-radius: 8px;
        font-size: 15px;
        outline: none;
        transition: box-shadow 0.3s;
    }

        .search-box input:focus {
            box-shadow: 0 0 0 3px rgba(79,195,247,0.2);
            border-color: #4fc3f7;
        }

    .search-box button {
        height: 48px;
        padding: 0 28px;
        background: #2c3e50;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        letter-spacing: 1px;
        transition: background 0.25s;
    }

        .search-box button:hover {
            background: #34495e;
        }

.tip-text {
    color: #607d8b;
    font-size: 14px;
}

.func-wrap {
    display: flex;
    gap: 30px;
}

.func-card {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

    .func-card::after {
        content: '';
        position: absolute;
        top: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
        border: 2px solid #e8edf2;
        border-radius: 8px;
        opacity: 0.4;
    }

    .func-card h3 {
        font-size: 18px;
        color: #2c3e50;
        border-left: 4px solid #4fc3f7;
        padding-left: 12px;
        margin-bottom: 18px;
        display: flex;
        align-items: center;
        gap: 8px;
    }



.word-item p {
    font-size: 16px;
    margin: 6px 0;
    color: #455a64;
}
    .word-item p strong a {
        color: #607d8b;
    }

        .word-item p strong a:hover {
            color: #2c3e50;
        }

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .hot-tags a {
        padding: 7px 14px;
        background: #f5f8fb;
        border-radius: 4px;
        text-decoration: none;
        color: #455a64;
        font-size: 14px;
        border: 1px solid transparent;
        transition: all 0.25s;
    }

        .hot-tags a:hover {
            border-color: #4fc3f7;
            background: #fff;
        }


.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

    .search-bar input {
        flex: 1;
        height: 48px;
        padding: 0 22px;
        border: 1px solid #ccd6e0;
        border-radius: 8px;
        font-size: 15px;
        outline: none;
        transition: box-shadow 0.3s;
    }

        .search-bar input:focus {
            box-shadow: 0 0 0 3px rgba(79,195,247,0.2);
            border-color: #4fc3f7;
        }

    .search-bar button {
        height: 48px;
        padding: 0 28px;
        background: #2c3e50;
        color: #fff;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.25s;
    }

        .search-bar button:hover {
            background: #34495e;
        }

.result-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-left: 5px;
}

    .result-title span {
        color: #4fc3f7;
        font-weight: bold;
    }

.result-item {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    transition: transform 0.2s;
    cursor: pointer;
}

    .result-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    }

    .result-item h3 {
        font-size: 20px;
        color: #2c3e50;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .result-item p {
        color: #607d8b;
        font-size: 15px;
        margin-bottom: 5px;
    }

    .result-item .info {
        display: flex;
        gap: 15px;
        margin-top: 10px;
        font-size: 14px;
    }

        .result-item .info span {
            color: #78909c;
        }


/* 主卡片 立体浮雕效果 */
.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}
    /* 角落装饰花纹 */
    .card::after {
        content: '';
        position: absolute;
        top: 15px;
        right: 15px;
        width: 80px;
        height: 80px;
        border: 2px solid #e8edf2;
        border-radius: 8px;
        opacity: 0.4;
    }

/* 词条标题 */
.word-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
}

.phonetic {
    color: #607d8b;
    font-size: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e0e6ed;
    margin-bottom: 28px;
}

/* 属性标签 圆角浅色调 */
.meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

    .meta span {
        padding: 4px 16px;
        background: #f5f8fb;
        border-radius: 6px;
        font-size: 14px;
        color: #455a64;
        border: 1px solid #e8edf2;
    }

/* 内容模块 */
.section {
    margin-bottom: 32px;
}

    .section h3 {
        font-size: 16px;
        color: #2c3e50;
        border-left: 4px solid #4fc3f7;
        padding-left: 12px;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section p {
        font-size: 15px;
        color: #505965;
        text-indent: 2em;
    }

/* 例句区块 */
.example {
    background: #f8fafd;
    padding: 15px;
    border-radius: 8px;
    margin: 14px 0;
    border: 1px solid #e8edf2;
}

.en {
    color: #78909c;
    margin-top: 8px;
    display: block;
}

/* 相关词条 */
.relate {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

    .relate a {
        padding: 7px 14px;
        background: #f5f8fb;
        border-radius: 4px;
        text-decoration: none;
        color: #455a64;
        font-size: 14px;
        border: 1px solid transparent;
        transition: all 0.25s;
    }

        .relate a:hover {
            border-color: #4fc3f7;
            background: #fff;
        }

/* 按钮组 */
.btns {
    margin-top: 40px;
    display: flex;
    gap: 16px;
}

    .btns button {
        padding: 8px 30px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        font-size: 15px;
        transition: all 0.25s;
    }

.btn-primary {
    background: #2c3e50;
    color: #fff;
}

    .btn-primary:hover {
        background: #34495e;
    }

.btn-default {
    background: #f5f8fb;
    color: #455a64;
    border: 1px solid #ccd6e0;
}

    .btn-default:hover {
        background: #eef3f8;
    }


.footer {
    text-align: center;
    margin: 20px 0 10px;
    color: #78909c;
    font-size: 14px;
}
    .footer a {
        color: #607d8b;
    }

        .footer a:hover {
            color: #2c3e50;
        }