/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #D8B4FE;
    color: #333;
    overflow-x: hidden;
}

/* 背景波浪分割效果 */
.wave-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 70%;
    background: #8B5CF6;
    clip-path: polygon(0 20%, 100% 0%, 100% 100%, 0% 100%);
}

.wave1 {
    background: #8B5CF6;
    clip-path: polygon(0 25%, 25% 20%, 50% 15%, 75% 18%, 100% 12%, 100% 100%, 0% 100%);
    animation: wave-move 8s ease-in-out infinite;
}

.wave2 {
    background: #7C3AED;
    clip-path: polygon(0 30%, 20% 25%, 40% 20%, 60% 22%, 80% 18%, 100% 15%, 100% 100%, 0% 100%);
    animation: wave-move 10s ease-in-out infinite reverse;
    opacity: 0.9;
}

.wave3 {
    background: #6D28D9;
    clip-path: polygon(0 35%, 30% 30%, 60% 25%, 90% 28%, 100% 20%, 100% 100%, 0% 100%);
    animation: wave-move 12s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes wave-move {
    0%, 100% {
        clip-path: polygon(0 25%, 25% 20%, 50% 15%, 75% 18%, 100% 12%, 100% 100%, 0% 100%);
    }
    25% {
        clip-path: polygon(0 20%, 25% 25%, 50% 18%, 75% 12%, 100% 15%, 100% 100%, 0% 100%);
    }
    50% {
        clip-path: polygon(0 30%, 25% 15%, 50% 22%, 75% 20%, 100% 10%, 100% 100%, 0% 100%);
    }
    75% {
        clip-path: polygon(0 22%, 25% 28%, 50% 12%, 75% 25%, 100% 18%, 100% 100%, 0% 100%);
    }
}

/* 主要内容 */
.main-content {
    min-height: 100vh;
    padding: 0;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 顶部工具栏 */
.top-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0;
    position: relative;
}

.search-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.favorite-share {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.qr-code {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    width: 80px;
}

.qr-placeholder {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.qr-code p {
    font-size: 10px;
    color: #666;
    margin: 0;
}

/* 个人资料区域 */
.profile-section {
    text-align: center;
    padding: 30px 20px;
    color: white;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
    border: 3px solid #FFD700;
}

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

.profile-name {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.profile-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 0 10px;
}

.profile-notice {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 10px;
}

.profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.wechat-icon {
    width: 40px;
    height: 40px;
    background: #1AAD19;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 联系图标 */
.contact-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.contact-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 链接区域 */
.links-section {
    padding: 0 20px 30px;
}

.link-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.link-item:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.link-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

/* 软件仓库图标 */
.software-icon {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.software-icon::before {
    content: "📦";
    font-size: 20px;
}

/* 复习资料图标 */
.study-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    color: white;
}

.study-icon::before {
    content: "📚";
    font-size: 20px;
}

/* 安卓APP图标 */
.android-icon {
    background: linear-gradient(135deg, #A4C639 0%, #76A900 100%);
    color: white;
}

.android-icon::before {
    content: "🤖";
    font-size: 20px;
}

/* 旧人浏览店图标 */
.shop-icon {
    background: linear-gradient(135deg, #FF9500 0%, #FF5722 100%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.shop-icon::before {
    content: "🛒";
    font-size: 18px;
}

/* 流量卡图标 */
.sim-icon {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
    color: white;
}

.sim-icon::before {
    content: "📱";
    font-size: 20px;
}

/* 淘品优选图标 */
.taobao-icon {
    background: linear-gradient(135deg, #FF6A00 0%, #EE0A24 100%);
    color: white;
}

.taobao-icon::before {
    content: "🛍️";
    font-size: 18px;
}

/* 支付宝图标 */
.alipay-icon {
    background: linear-gradient(135deg, #1677FF 0%, #00A0E9 100%);
    color: white;
}

.alipay-icon::before {
    content: "💰";
    font-size: 18px;
}

.link-icon img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.link-text {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.arrow-icon {
    margin-left: auto;
    flex-shrink: 0;
}

.special-link {
    background: #ffffff;
    color: #333;
}

.special-link .link-text {
    color: #FF6B6B;
    font-weight: 600;
}

.special-link .arrow-icon {
    fill: #FF6B6B;
}

.special-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.alipay-icon {
    background: white;
}

/* 特色卡片 */
.featured-card {
    margin: 20px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo {
    margin-bottom: 8px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.footer-text {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.create-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.create-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 底部小文字 */
.footer-small {
    text-align: center;
    padding: 20px 20px 30px;
}

.footer-small-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.footer-small-text:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        max-width: 100%;
        margin: 0;
    }

    .top-toolbar {
        padding: 15px 15px 0;
    }

    .profile-section {
        padding: 25px 15px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-description,
    .profile-notice {
        font-size: 13px;
    }

    .links-section {
        padding: 0 15px 25px;
    }

    .link-item {
        padding: 12px 16px;
    }

    .link-text {
        font-size: 15px;
    }

    .card-background {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 28px;
    }

    .footer {
        padding: 25px 15px;
    }
}

/* 弹出框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1001;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.modal-body {
    padding: 20px;
    text-align: center;
}

.modal-body p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.contact-number {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
    user-select: all;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px 20px;
}

.modal-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy {
    background: #007AFF;
    color: white;
}

.btn-copy:hover {
    background: #0056CC;
    transform: translateY(-1px);
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.btn-cancel:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}
