/* 素雅风格的主容器 */
#vocabulary-learning-interface {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* 单词显示区域 */
.word-display {
    text-align: center;
    padding: 20px 0;
}

.word-display h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: #343a40;
    font-weight: 300;
}

.pronunciation-control {
    margin: 20px 0;
}

.pronunciation-control audio {
    width: 200px;
    height: 40px;
}

.word-display p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    color: #495057;
}

/* 素雅风格按钮 */
.button {
    display: inline-block;
    padding: 14px 28px;
    margin: 12px;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.button:hover {
    background-color: #0d6efd;
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#word-details {
    margin-top: 25px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.word-details-content {
    line-height: 1.6;
    color: #343a40;
}

.word-details-content h2 {
    color: #343a40;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 2.2rem;
}

.word-details-content h3 {
    color: #343a40;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1.5rem;
}

.word-details-content h4 {
    color: #495057;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.25rem;
}

.word-details-content p {
    margin-bottom: 15px;
    color: #495057;
}

.word-details-content ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.word-details-content li {
    margin-bottom: 8px;
    color: #495057;
}

.word-details-content pre {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.follow-up-question {
    margin: 25px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.follow-up-question p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #343a40;
    font-weight: 400;
}

/* 前端单词列表样式 */
.vocabulary-list-interface {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.vocabulary-list-interface h2 {
    color: #343a40;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-weight: 300;
    font-size: 2rem;
}

.words-list {
    margin-top: 20px;
}

.word-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.word-item:first-child {
    padding-top: 0;
}

.word-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.word-item a {
    text-decoration: none;
    color: #0d6efd;
    font-size: 1.1rem;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
}

.word-item a:hover {
    color: #0d6efd;
    opacity: 0.8;
    text-decoration: none;
}

/* 前端单词详情样式 */
.vocabulary-details-interface {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

.vocabulary-details-interface a {
    text-decoration: none;
    color: #0d6efd;
    transition: all 0.2s ease-in-out;
}

.vocabulary-details-interface a:hover {
    color: #0d6efd;
    opacity: 0.8;
    text-decoration: none;
}

/* 单词认识选择样式 */
.word-recognition-choice {
    margin: 30px 0;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.word-recognition-choice h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #343a40;
    font-weight: 400;
    font-size: 1.3rem;
}

.word-recognition-choice .button {
    margin: 0 15px;
    padding: 12px 25px;
    font-size: 1.05rem;
    min-width: 120px;
}

/* 管理端界面样式 */
.wrap {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 20px 0 0;
    padding: 25px 30px;
}

.wrap h1 {
    color: #343a40;
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.wrap p {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.wrap table.wp-list-table {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

.wrap table.wp-list-table thead th {
    background-color: #f8f9fa;
    color: #343a40;
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px;
    text-align: left;
}

.wrap table.wp-list-table tbody td {
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px;
}

.wrap table.wp-list-table tbody tr:hover {
    background-color: #f8f9fa;
}

.wrap table.wp-list-table tbody td a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.wrap table.wp-list-table tbody td a:hover {
    color: #0d6efd;
    opacity: 0.8;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #vocabulary-learning-interface,
    .vocabulary-list-interface,
    .vocabulary-details-interface,
    .wrap {
        padding: 20px;
        margin: 10px;
    }

    .word-display h2 {
        font-size: 2.2rem;
    }

    .word-display p {
        font-size: 1.1rem;
    }

    .button {
        display: block;
        width: 100%;
        margin: 10px 0;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .word-recognition-choice .button {
        display: inline-block;
        width: auto;
        margin: 0 8px;
        padding: 10px 20px;
        min-width: 100px;
    }

    .wrap {
        margin: 10px 10px 0 0;
        padding: 20px;
    }

    .wrap h1 {
        font-size: 1.8rem;
    }

    .wrap table.wp-list-table thead th,
    .wrap table.wp-list-table tbody td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .word-details-content h2 {
        font-size: 1.8rem;
    }

    .word-details-content h3 {
        font-size: 1.4rem;
    }

    .word-details-content h4 {
        font-size: 1.15rem;
    }

    .word-details-content ul {
        margin-left: 20px;
    }

    .follow-up-question,
    .word-recognition-choice {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    #vocabulary-learning-interface,
    .vocabulary-list-interface,
    .vocabulary-details-interface,
    .wrap {
        padding: 15px;
        margin: 8px;
    }

    .word-display h2 {
        font-size: 1.8rem;
    }

    .word-display p {
        font-size: 1rem;
    }

    .button {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .word-recognition-choice .button {
        display: block;
        width: 100%;
        margin: 8px 0;
        padding: 10px 15px;
        min-width: auto;
    }

    .wrap {
        margin: 8px 8px 0 0;
        padding: 15px;
    }

    .wrap h1 {
        font-size: 1.6rem;
    }

    .wrap table.wp-list-table thead th,
    .wrap table.wp-list-table tbody td {
        padding: 8px 5px;
        font-size: 0.85rem;
    }

    .word-details-content h2 {
        font-size: 1.6rem;
    }

    .word-details-content h3 {
        font-size: 1.3rem;
    }

    .word-details-content h4 {
        font-size: 1.1rem;
    }

    .word-details-content ul {
        margin-left: 15px;
    }

    .follow-up-question,
    .word-recognition-choice {
        padding: 15px;
    }

    .follow-up-question p,
    .word-recognition-choice h3 {
        font-size: 1.05rem;
    }
}