/* 容器样式 */
.ttc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 头部样式 */
.ttc-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 30px 0 20px;
    position: relative;
}

.ttc-logo {
    margin-bottom: 20px;
}

.ttc-logo i {
    font-size: 48px;
    color: #2271b1;
    background: linear-gradient(135deg, #2271b1, #135e96);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ttc-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ttc-subtitle {
    font-size: 0.95em;
    color: #666666;
    margin: 0 auto;
    line-height: 1.4;
    max-width: 600px;
}

/* 用户状态提示样式 */
.ttc-user-welcome {
    font-size: 0.9em;
    color: #007cba;
    margin: 10px auto 0;
    padding: 8px 16px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
}

.ttc-guest-notice {
    font-size: 0.9em;
    color: #46b450;
    margin: 10px auto 0;
    padding: 8px 16px;
    background: #ecf7ed;
    border: 1px solid #c6e8ca;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
}

/* 添加装饰分隔元素 */
.ttc-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 0, 0, 0.1) 20%, 
        rgba(0, 0, 0, 0.1) 80%, 
        transparent
    );
}

/* 主要内容区域 */
.ttc-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* 使用步骤 */
.ttc-usage-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 40px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

/* 添加使用步骤上方的装饰元素 */
.ttc-usage-steps::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ttc-usage-steps::after {
    content: "↓";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: #666666;
    font-size: 14px;
    z-index: 2;
}

.ttc-step {
    text-align: center;
    position: relative;
}

.ttc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: #2271b1;
}

.ttc-step-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    background: #2271b1;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1em;
}

.ttc-step-content h4 {
    font-size: 1em;
    color: #1d2327;
    margin: 0 0 4px;
    font-weight: 600;
}

.ttc-step-content p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* 检测区域 */
.ttc-checker-section {
    margin-bottom: 40px;
    width: 100%;
    padding: 0 25px;
}

/* 输入区域 */
.ttc-input-wrapper {
    margin-bottom: 30px;
    width: 100%;
}

.ttc-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    width: 100%;
}

#ttc-title-input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

#ttc-title-input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    background: #ffffff;
}

.ttc-input-tips {
    font-size: 0.9em;
    color: #666;
    margin-left: 4px;
}

.ttc-button {
    padding: 15px 28px;
    min-width: 140px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ttc-button:hover {
    background: #135e96;
}

.ttc-button i {
    font-size: 18px;
}

/* 使用提示 */
.ttc-tips {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ttc-tips-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.ttc-tips-header i {
    font-size: 20px;
    color: #2271b1;
}

.ttc-tips-header h3 {
    font-size: 1.1em;
    color: #1d2327;
    margin: 0;
    font-weight: 600;
}

.ttc-tips ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.ttc-tips li {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 结果显示区域 */
.ttc-results {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

/* 结果头部样式优化 */
.ttc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.ttc-result-title {
    display: flex;
    align-items: center;
}

.ttc-result-title h3 {
    font-size: 1.1em;
    color: #1d2327;
    margin: 0;
    font-weight: 600;
}

/* 风险等级样式优化 */
.ttc-risk-level {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ttc-risk-level::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

/* 匹配关键词样式优化 */
.ttc-matched-keywords {
    margin-bottom: 20px;
}

.ttc-keyword-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ttc-keyword-item i {
    font-size: 20px;
    color: #666;
    padding: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ttc-keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ttc-keyword-type {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 8px;
}

.ttc-keyword-text {
    font-size: 1em;
    color: #333;
    margin-bottom: 8px;
}

.highlight-keyword {
    color: #dc3545;
    font-weight: bold;
}

.ttc-risk-label {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    font-weight: 500;
}

/* 建议区域样式优化 */
.ttc-suggestions {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
}

.ttc-suggestion-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ttc-suggestion-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ttc-suggestion-type {
    font-size: 1em;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.ttc-suggestion-keyword {
    color: #dc3545;
    font-size: 0.95em;
    margin-bottom: 8px;
}

.ttc-suggestion-content {
    color: #666;
    line-height: 1.5;
    font-size: 0.95em;
}

/* 风险等级颜色样式 */
.ttc-risk-high {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #fff;
}

.ttc-risk-medium {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #000;
}

.ttc-risk-low {
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
}

/* 无违规提示优化 */
.ttc-no-violations {
    text-align: center;
    padding: 25px;
    color: #28a745;
    font-weight: 500;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ttc-no-violations i {
    font-size: 24px;
    color: #28a745;
    padding: 8px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
}

/* 移动端适配优化 */
@media (max-width: 768px) {
    .ttc-result-title h3 {
        font-size: 1em;
    }

    .ttc-keyword-item {
        padding: 15px;
    }

    .ttc-suggestion-item {
        padding: 12px 0;
    }

    .ttc-suggestion-keyword {
        font-size: 0.9em;
    }

    .ttc-suggestion-type {
        font-size: 0.85em;
    }

    .ttc-suggestion-content {
        font-size: 0.9em;
    }

    .ttc-no-violations {
        padding: 20px;
    }

    .ttc-no-violations i {
        font-size: 20px;
        padding: 6px;
    }

    .ttc-keyword-type,
    .ttc-suggestion-type {
        font-size: 0.95em;
    }

    .ttc-keyword-text,
    .ttc-suggestion-keyword {
        font-size: 0.9em;
    }

    .ttc-suggestion-content {
        font-size: 0.9em;
    }

    .ttc-risk-label {
        font-size: 0.85em;
        padding: 3px 10px;
    }
}

/* 图标悬停效果 */
.ttc-result-title i:hover,
.ttc-keyword-item i:hover,
.ttc-suggestion-item i:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* 底部声明 */
.ttc-footer {
    text-align: center;
    margin-top: 30px;
}

.ttc-disclaimer {
    color: #666;
    font-size: 0.9em;
}

.ttc-disclaimer p {
    margin: 0;
    line-height: 1.6;
}

.ttc-copyright {
    margin-top: 10px;
    color: #999;
    font-size: 0.85em;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .ttc-container {
        margin: 0 15px;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .ttc-container {
        margin: 10px;
        padding: 15px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }

    .ttc-header {
        margin-bottom: 20px;
        padding: 15px 0;
    }

    .ttc-title {
        font-size: 1.4em;
        margin-bottom: 6px;
    }

    .ttc-subtitle {
        font-size: 0.85em;
        padding: 0 20px;
        line-height: 1.5;
    }

    .ttc-header::after {
        width: 120px;
    }

    /* 主要内容区域调整 */
    .ttc-main {
        padding: 15px;
        margin: 0 -5px;
    }

    /* 使用步骤优化 */
    .ttc-usage-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .ttc-step {
        padding: 12px 8px;
    }

    .ttc-step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .ttc-step-content h4 {
        font-size: 0.95em;
        margin-bottom: 2px;
    }

    .ttc-step-content p {
        font-size: 0.8em;
        line-height: 1.4;
    }

    /* 输入区域优化 */
    .ttc-input-wrapper {
        margin-bottom: 20px;
    }

    .ttc-input-group {
        flex-direction: column;
        gap: 12px;
    }

    #ttc-title-input {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
    }

    .ttc-button {
        width: 100%;
        padding: 12px 15px;
        font-size: 14px;
        min-width: unset;
        height: 45px;
    }

    .ttc-input-tips {
        font-size: 0.8em;
        text-align: center;
        margin-top: 8px;
    }

    /* 结果区域优化 */
    .ttc-results {
        padding: 15px;
        margin-bottom: 20px;
    }

    .ttc-result-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .ttc-result-title {
        width: 100%;
    }

    .ttc-risk-level {
        width: 100%;
        text-align: center;
        padding: 8px 12px;
        font-size: 0.85em;
    }

    /* 使用提示区域优化 */
    .ttc-tips {
        padding: 15px;
    }

    .ttc-tips-header {
        margin-bottom: 12px;
    }

    .ttc-tips-header h3 {
        font-size: 1em;
    }

    .ttc-tips ul {
        padding-left: 15px;
    }

    .ttc-tips li {
        font-size: 0.85em;
        margin-bottom: 6px;
        line-height: 1.5;
    }

    /* 底部区域优化 */
    .ttc-footer {
        margin-top: 20px;
    }

    .ttc-disclaimer {
        font-size: 0.8em;
    }

    .ttc-copyright {
        font-size: 0.75em;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .ttc-container {
        margin: 5px;
        padding: 12px;
    }

    .ttc-usage-steps {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .ttc-step:not(:last-child) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 12px;
    }

    .ttc-step:not(:last-child)::after {
        display: none;
    }

    .ttc-main {
        padding: 12px;
    }

    #ttc-title-input {
        padding: 10px 12px;
    }

    .ttc-button {
        height: 40px;
        padding: 10px;
    }

    .ttc-subtitle {
        padding: 0 12px;
    }
}

/* 横屏模式优化 */
@media (max-width: 896px) and (orientation: landscape) {
    .ttc-container {
        max-width: 100%;
        margin: 5px 10px;
    }

    .ttc-usage-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .ttc-main {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .ttc-input-group {
        flex-direction: row;
    }

    .ttc-button {
        width: auto;
        min-width: 120px;
    }
}

/* 加载动画 */
.ttc-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
} 