* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background: #000 url('../img/wallhaven-ly3goq.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Okbang标识样式 */
.okbang-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.okbang-text {
    font-size: 24px;
    font-weight: 300;
    color: white;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2px;
}

.okbang-text:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* 版本信息样式 */
.version-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
}

/* 当鼠标悬停在Okbang标识上时显示版本信息 */
.okbang-logo:hover .version-info {
    opacity: 1;
    transform: translateY(0);
}

.okbang-text:hover + .version-info {
    opacity: 1;
    transform: translateY(0);
}

/* 右上角导航链接容器 */
.top-right-links {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 15px;
}

/* 导航链接统一样式 */
.top-right-links a,
.tooltip-container a {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: block;
    border-radius: 4px;
}

.top-right-links a:hover,
.tooltip-container a:hover {
    color: #cccccc;
    background: rgba(255, 255, 255, 0.1);
}

/* 提示框容器 */
.tooltip-container {
    position: relative;
    display: inline-block;
}

/* 提示框样式 */
.tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 8px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    margin-top: 10px;
    z-index: 1000;
}

/* 提示框箭头 */
.tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.85);
    transform: rotate(45deg);
}

/* 提示框内容 */
.tooltip-content h4 {
    margin: 0 0 10px 0;
    color: #ff6b6b;
    font-size: 16px;
}

.tooltip-content p {
    margin: 5px 0;
    color: #e0e0e0;
}

/* 链接在提示框内的样式 */
.tooltip-content a {
    color: #ff6b6b;
    text-decoration: none;
}

.tooltip-content a:hover {
    text-decoration: underline;
}

/* 显示提示框 */
.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 句子容器样式 */
.sentence-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    margin-top: 60px;
}

.bracket {
    font-size: 36px;
    line-height: 1;
    opacity: 0.9;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bracket.left {
    position: absolute;
    left: -30px;
    top: 0;
}

.bracket.right {
    position: absolute;
    right: -30px;
    bottom: 60px;
}

.sentence-content {
    font-size: 28px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    word-break: break-all;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: translateY(0);
}

.sentence-author {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    margin-top: 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: translateY(0);
}

/* 刷新动画效果 */
.sentence-refresh {
    animation: refresh-pulse 0.6s ease-in-out;
}

@keyframes refresh-pulse {
    0% {
        transform: scale(1) translateY(0);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1);
    }
    100% {
        transform: scale(1) translateY(0);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
}

/* 内容变化动画 */
.content-changing {
    animation: content-fade 0.3s ease-in-out;
}

@keyframes content-fade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translateY(10px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 错误状态样式 */
.error {
    color: #ffe16b;
    font-size: 20px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 备案信息容器 */
.beian-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

/* 备案链接统一样式 */
.beian-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.beian-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

/* 公安部备案图标样式 */
.beian-link img {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.circle-link {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
}

/* 半透明圆形样式 */
.circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

/* 鼠标悬停效果 */
.circle:hover {
    background: rgba(255, 107, 107, 0.5);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sentence-content {
        font-size: 22px;
    }

    .bracket.left {
        left: -20px;
    }

    .bracket.right {
        right: -20px;
    }

    .okbang-logo {
        top: 15px;
        left: 15px;
    }

    .okbang-text {
        font-size: 20px;
    }

    .version-info {
        font-size: 10px;
        padding: 1px 4px;
    }

    .top-right-links {
        top: 15px;
        right: 15px;
        gap: 10px;
    }

    .top-right-links a,
    .tooltip-container a {
        font-size: 14px;
        padding: 6px 10px;
    }

    .beian-wrapper {
        right: 10px;
        bottom: 10px;
        gap: 6px;
    }

    .beian-link {
        font-size: 10px;
        padding: 3px 6px;
    }

    .beian-link img {
        width: 12px;
        height: 12px;
        margin-right: 3px;
    }

    /* 移动端提示框调整 */
    .tooltip {
        width: 250px;
        right: -20px;
        font-size: 12px;
    }

    .tooltip-content h4 {
        font-size: 14px;
    }

    /* 移动端圆形调整 */
    .circle {
        width: 30px;
        height: 30px;
    }
}

/* 一言跳转按钮样式 */
.circle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.circle-btn {
    width: 20px;
    height: 20px;
    background: rgba(255, 107, 107, 0.6);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.circle-button:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.circle-button:hover .circle-btn {
    background: rgba(255, 107, 107, 0.8);
    transform: scale(1.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .circle-button {
        width: 32px;
        height: 32px;
    }

    .circle-btn {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .circle-button {
        width: 28px;
        height: 28px;
    }

    .circle-btn {
        width: 14px;
        height: 14px;
    }
}

/* 小屏幕设备适配 */
@media (max-width: 480px) {
    .sentence-content {
        font-size: 18px;
    }

    .sentence-author {
        font-size: 16px;
    }

    .bracket {
        font-size: 28px;
    }

    .bracket.left {
        left: -15px;
    }

    .bracket.right {
        right: -15px;
    }

    .okbang-text {
        font-size: 18px;
    }

    .top-right-links {
        gap: 8px;
    }

    .top-right-links a,
    .tooltip-container a {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tooltip {
        width: 250px;
        right: -20px;
        font-size: 12px;
    }

    .tooltip-content h4 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tooltip {
        width: 200px;
        right: -40px;
        font-size: 11px;
        padding: 10px;
    }
}
