* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.big-eyes {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.eye {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.pupil {
    width: 25px;
    height: 35px;
    background: black;
    border-radius: 50%;
    position: relative;
}

.left-eye .pupil {
    margin-left: -15px;
}

.right-eye .pupil {
    margin-right: -15px;
}

.highlight {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 8px;
}

.left-eye .highlight {
    left: 8px;
}

.right-eye .highlight {
    right: 8px;
}

/* 大眼睛动画效果 */
.eye {
    animation: blink 4s infinite;
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

.pupil {
    transition: all 0.3s ease;
}

.eye:hover .pupil {
    transform: scale(1.2);
}

/* 鼠标移动时眼睛跟随效果 */
.big-eyes:hover .left-eye .pupil {
    margin-left: -10px;
}

.big-eyes:hover .right-eye .pupil {
    margin-right: -10px;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.upload-area {
    text-align: center;
    padding: 60px 20px;
    background: #222222;
    border: 2px dashed #8f8f8f;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #667eea;
    background: #333333;
}

.upload-section {
    text-align: center;
    margin-bottom: 40px;
}

.upload-btn {
    background: #000000;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.upload-hint {
    margin-top: 15px;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* 装饰性眼睛 */
.decorative-eyes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.mini-eye {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.mini-eye:nth-child(2) {
    animation-delay: 0.5s;
}

.mini-eye:nth-child(3) {
    animation-delay: 1s;
}

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

.editor-container {
    background: #131313;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    border: 1px solid #292929;
}

.canvas-wrapper {
    flex: 1;
    min-width: 400px;
    position: relative;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #222222;
    border-radius: 8px;
    border: 1px solid #292929;
}

.canvas-title {
    font-weight: 600;
    color: #e2e8f0;
}

.canvas-eyes {
    display: flex;
    gap: 8px;
}

.canvas-eye {
    width: 12px;
    height: 12px;
    background: #a0aec0;
    border-radius: 50%;
    animation: canvasBlink 2s infinite;
}

.canvas-hint {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #a0aec0;
    text-align: center;
    font-style: italic;
}

.move-hint {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #48bb78;
    text-align: center;
    font-weight: 500;
}

.drag-hint {
    margin-top: 5px;
    font-size: 0.75rem;
    color: #667eea;
    text-align: center;
    font-weight: 500;
}

@keyframes canvasBlink {
    0%, 80%, 100% {
        opacity: 1;
    }
    90% {
        opacity: 0.3;
    }
}

#canvas {
    width: 100%;
    height: auto;
    border: 2px dashed #474747;
    border-radius: 10px;
    background: #222222;
    cursor: crosshair;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}



.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.controls-panel {
    flex: 0 0 350px;
    background: #222222;
    padding: 25px;
    border-radius: 15px;
    height: fit-content;
    border: 1px solid #292929;
}

/* 素材库样式 */
.materials-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.materials-section h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.material-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.material-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.material-item:hover {
    background: #333333;
    border-color: #667eea;
}

.material-item.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.material-preview {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #333333;
    border: 1px solid #8f8f8f;
}

.big-eyes-preview {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.material-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.material-item span {
    font-size: 0.8rem;
    text-align: center;
}

.material-hint {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #a0aec0;
    text-align: center;
    font-style: italic;
}

.control-hint {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #48bb78;
    text-align: center;
    font-weight: 500;
}

.size-hint {
    margin-top: 8px;
    font-size: 0.75rem;
    color: #a0aec0;
    text-align: center;
    font-style: italic;
}

.control-group {
    margin-bottom: 25px;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #e2e8f0;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #292929;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.action-buttons {
    margin-top: 30px;
}

.btn {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #000000;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #000000;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-success {
    background: #000000;
    color: white;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .editor-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .canvas-wrapper {
        min-width: auto;
    }
    
    .controls-panel {
        flex: none;
    }
}

/* 裂变文案样式 */
.viral-content {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* 邀请码样式 */
.invite-code-section {
    margin: 20px 0;
    padding: 0;
}

.invite-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 500;
}

.invite-code-link {
    display: inline-block;
    text-decoration: none;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 15px 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.invite-code-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.invite-code-link:hover::before {
    left: 100%;
}

.invite-code-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.invite-code {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 5px;
}

.invite-url {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.viral-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.viral-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.viral-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 社交媒体链接样式 */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.social-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

/* 为纸飞机图标添加特殊样式 */
.telegram-link .social-icon {
    font-size: 1.1rem;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.telegram-link:hover .social-icon {
    transform: rotate(-45deg) scale(1.1);
}

.social-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.twitter-link:hover {
    background: rgba(29, 161, 242, 0.3);
    border-color: rgba(29, 161, 242, 0.6);
}

.telegram-link:hover {
    background: rgba(0, 136, 204, 0.3);
    border-color: rgba(0, 136, 204, 0.6);
}

.business-link:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.6);
}

/* 合作社区列表样式 */
.partner-communities {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.communities-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.communities-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-style: italic;
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.community-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 12px;
}

.community-grid-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.community-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.community-grid-item:hover .community-avatar {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.community-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.community-emoji {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.community-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .communities-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 15px;
        max-width: 100%;
    }
    
    .community-avatar {
        width: 50px;
        height: 50px;
    }
    
    .community-emoji {
        font-size: 1.5rem;
    }
    
    .community-label {
        font-size: 0.75rem;
    }
}

/* 移动端全面适配 */
@media (max-width: 768px) {
    /* 整体容器 */
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    /* 头部 */
    header {
        margin-bottom: 20px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .logo p {
        font-size: 0.9rem;
    }
    
    .big-eyes {
        gap: 20px;
    }
    
    .eye {
        width: 60px;
        height: 60px;
    }
    
    /* 编辑器容器 */
    .editor-container {
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    
    /* 画布区域 */
    .canvas-wrapper {
        min-width: auto;
        width: 100%;
    }
    
    .canvas-header {
        padding: 15px;
    }
    
    .canvas-title {
        font-size: 1rem;
    }
    
    #canvas {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .upload-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .upload-hint {
        font-size: 0.8rem;
    }
    
    /* 控制面板 */
    .controls-panel {
        flex: none;
        width: 100%;
        padding: 20px;
    }
    
    .materials-section h3 {
        font-size: 1.2rem;
    }
    
    .material-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .material-item {
        padding: 15px;
    }
    
    .material-preview {
        width: 80px;
        height: 80px;
    }
    
    /* 控制滑块 */
    .control-group {
        margin-bottom: 20px;
    }
    
    .control-group label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .slider {
        height: 8px;
    }
    
    .slider::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    /* 按钮 */
    .action-buttons {
        margin-top: 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    /* 裂变文案 */
    .viral-content {
        margin-top: 20px;
        padding: 15px;
    }
    
    .viral-text {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .invite-code-link {
        padding: 12px 20px;
    }
    
    .invite-code {
        font-size: 1.2rem;
    }
    
    /* 社交媒体链接 */
    .social-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .social-icon {
        font-size: 1rem;
    }
    
    /* 合作社区 */
    .partner-communities {
        margin-top: 20px;
        padding: 20px;
    }
    
    .communities-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .communities-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .communities-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 12px;
    }
    
    .community-avatar {
        width: 45px;
        height: 45px;
    }
    
    .community-label {
        font-size: 0.7rem;
    }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .eye {
        width: 50px;
        height: 50px;
    }
    
    .editor-container {
        padding: 10px;
    }
    
    .controls-panel {
        padding: 15px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .communities-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .community-avatar {
        width: 40px;
        height: 40px;
    }
    
    .community-label {
        font-size: 0.65rem;
    }
}

/* 横屏模式适配 */
@media (max-height: 600px) and (orientation: landscape) {
    .container {
        padding: 8px;
    }
    
    header {
        margin-bottom: 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .eye {
        width: 50px;
        height: 50px;
    }
    
    .editor-container {
        padding: 10px;
        gap: 15px;
    }
    
    .controls-panel {
        padding: 15px;
    }
    
    .action-buttons {
        margin-top: 15px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
} 