/* 全局样式 */
:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.5;
    font-weight: 400;
    font-size: 14px;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* 深色主题背景色 */
    --bg-primary: #111827;
    --text-primary: #f9fafb;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

#app {
    min-height: 100vh;
}

/* 自定义动画效果 */
@keyframes breath {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 全新的放大缩小弹跳动画 */
@keyframes scale-bounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}



/* 光效扫描动画 - 为背景添加扫描效果 */
@keyframes light-scan {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* 抖音风格加载动画 */
@keyframes douyin-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes douyin-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* 页面容器样式 */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: 5rem;
    background-color: #111827;
    color: white;
}

/* 卡片样式 */
.card {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    max-width: 28rem;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* 图标容器样式 */
.icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    position: relative;
    transition: transform 0.5s ease-out;
}

.icon-wrapper:hover {
    transform: scale(1.1);
}

/* 移除脉冲效果，保留静态渐变背景 */
.gradient-glow {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 9999px;
    opacity: 0.4;
    filter: blur(0.5rem);
}

.icon-circle {
    position: relative;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 移除backdrop-filter以提高兼容性 */
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease-out;
}

.icon-wrapper:hover .icon-circle {
    transform: scale(1.1);
}

.icon {
    font-size: 5rem;
    transition: transform 0.7s ease-out;
}

.icon-wrapper:hover .icon {
    transform: scale(1.25);
}

/* 标题和描述样式 */
.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.description {
    margin-bottom: 2rem;
    color: #d1d5db;
}

/* 按钮样式 */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    border: none;
    color: white;
    text-align: center;
    min-width: 180px;
    height: 48px;
}

/* 按钮内图标样式 - 确保在所有浏览器中一致 */
.btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    font-size: 1rem;
    vertical-align: middle;
}

.btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* 加载状态样式 */
.loading-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: 5rem;
    background-color: #111827;
    color: white;
}

.douyin-loading {
    position: relative;
    width: 3rem;
    height: 3rem;
}

.douyin-loading-spin {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    animation: douyin-spin 2s linear infinite;
}

.douyin-dot {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    margin-left: -0.25rem;
}

.douyin-dot-red {
    top: 0;
    left: 50%;
    background-color: #ef4444;
    animation: douyin-pulse 2s ease-in-out infinite 0s;
}

.douyin-dot-yellow {
    top: 75%;
    left: 25%;
    background-color: #f59e0b;
    animation: douyin-pulse 2s ease-in-out infinite 0.67s;
}

.douyin-dot-blue {
    top: 75%;
    left: 75%;
    background-color: #3b82f6;
    animation: douyin-pulse 2s ease-in-out infinite 1.33s;
}

.douyin-center-dot {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.douyin-center-dot-inner {
    width: 1rem;
    height: 1rem;
    background-color: white;
    border-radius: 9999px;
    animation: douyin-pulse 2s ease-in-out infinite;
}

/* 错误状态样式 */
.error-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    padding-bottom: 5rem;
    background-color: #111827;
    color: white;
}

.error-icon {
    font-size: 5rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-message {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.error-button {
    background-color: #4b5563;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.error-button:hover {
    background-color: #6b7280;
}

/* 图标类型特定样式 */
/* 微信 */
.wechat-gradient {
    background-image: linear-gradient(to right, rgba(34, 197, 94, 0.7), rgba(20, 184, 166, 0.7));
}

.wechat-bg {
    background-image: linear-gradient(to bottom right, rgba(34, 197, 94, 0.1), rgba(20, 184, 166, 0.1));
}

.wechat-color {
    color: #22c55e;
}

.wechat-border {
    border-color: rgba(34, 197, 94, 0);
}

.wechat-button {
    background-color: #22c55e;
}

.wechat-button:hover {
    background-color: #16a34a;
}

/* QQ */
.qq-gradient {
    background-image: linear-gradient(to right, rgba(96, 165, 250, 0.7), rgba(59, 130, 246, 0.7));
}

.qq-bg {
    background-image: linear-gradient(to bottom right, rgba(96, 165, 250, 0.1), rgba(59, 130, 246, 0.1));
}

.qq-color {
    color: #60a5fa;
}

.qq-border {
    border-color: rgba(96, 165, 250, 0);
}

.qq-button {
    background-color: #3b82f6;
}

.qq-button:hover {
    background-color: #2563eb;
}

/* 浏览器 */
.browser-gradient {
    background-image: linear-gradient(to right, rgba(34, 197, 94, 0.7), rgba(20, 184, 166, 0.7));
}

.browser-bg {
    background-image: linear-gradient(to bottom right, rgba(34, 197, 94, 0.1), rgba(20, 184, 166, 0.1));
}

.browser-color {
    color: #22c55e;
}

.browser-border {
    border-color: rgba(34, 197, 94, 0);
}

.browser-button {
    background-color: #22c55e;
}

.browser-button:hover {
    background-color: #16a34a;
}
