:root {
    --font_default: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei UI", "Microsoft Yahei", "Source Han Sans CN", sans-serif;
    --color_text_default: #273b68;
    --color_primary_default: #1c2c51;
    --color_bTHQo_default: #af72d5;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font_default);
    background-color: rgba(241, 241, 241, 0.2);
}

/* 复用AIDetector.css的样式 */
.paragraphs-display {
    max-height: calc(1.6em * 30);
    min-height: calc(1.6em * 8);
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.6;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 1px solid #ededed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlighted-paragraph {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 4px;
    position: relative;
    cursor: default;
    transition: background-color 0.3s ease;
}

.highlighted-paragraph::after {
    content: attr(data-tooltip);
    position: fixed;
    transform: translateY(-100%);
    left: auto;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 9999;
}

.highlighted-paragraph:hover::after {
    opacity: 1;
    top: var(--mouse-y);
    left: var(--mouse-x);
}

.main-container {
    width: 1024px;
    padding: 0 52px 100px;
    margin: 0 auto;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.input-control-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.main-textbox {
    height: 375px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ededed;
    box-shadow: 0 0 20px 0 rgba(170, 170, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.main-textbox textarea {
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px;
    border: none;
    resize: none;
    outline: none;
    font-size: 16px;
    line-height: 1.5;
    font-family: var(--font_default);
}

.paste-sample-buttons {
    position: absolute;
    top: 14px;
    left: 72px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.paste-sample-buttons span {
    color: rgba(39, 59, 104, 0.45);
    font-size: 16px;
}

.function-bar {
    width: 100%;
}

.control-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.enhanced-toggle {
    width: 280px;
    padding: 16px 28px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ededed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label span {
    color: #af72d5;
    font-weight: bold;
    font-size: 16px;
}

.toggle-switch {
    width: 51px;
    height: 31px;
    border-radius: 15.5px;
    background-color: #e5e5e5;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-switch span {
    position: absolute;
    width: 27px;
    height: 27px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.operation-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ededed;
    padding: 11.5px 10px;
    width: 610px;
}

button {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    font-family: var(--font_default);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-button {
    background: #fff;
    border: 2px solid #ededed;
    color: #1c2c51;
    padding: 7px 14px;
    height: 35px;
}

.primary-button {
    background: #af72d5;
    color: white;
    border: none;
    padding: 14px 28px;
    height: 45px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 7px 30px -10px rgba(175, 114, 213, 0.3);
}

.primary-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

#word-count {
    font-size: 16px;
    color: #414a61;
}

.result-title {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
}

.result-container {
    width: 100%;
    display: flex;
    gap: 2rem;
}

.result-text {
    flex: 3;
}

.result-chart {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #ededed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

/* 图标样式 */
.icon {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon-paste {
    background-image: url(../images/paste.png);
}

.icon-sample {
    background-image: url(../images/sample.png);
}

.icon-trash {
    background-image: url(../images/trash.png);
}

.icon-info {
    background-image: url(../images/info.png);
    width: 23px;
    height: 23px;
}