/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #f7f7f7;
    color: #000000;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 页面容器 */
.page-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 20px 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 个人信息区域 */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* 头部社交图标 */
.profile-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.profile-social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 50%;
    background: #f5f5f5;
}

.profile-social-icon:hover {
    color: #000000;
    background: #e8e8e8;
    transform: translateY(-2px);
}

.profile-social-icon svg {
    width: 18px;
    height: 18px;
}

.profile-tagline {
    font-size: 16px;
    color: #666666;
    margin-bottom: 12px;
    font-weight: 500;
}

.profile-bio {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* 链接容器 */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

/* 链接按钮 */
.link-button {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}

.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.link-button:active {
    transform: translateY(0);
}

/* 图片左右交替布局 */
/* 偶数项：图片在右边 */
.link-button:nth-child(even) {
    flex-direction: row-reverse;
}

/* 链接图片 */
.link-image {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f0f0;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 链接内容 */
.link-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 19px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.4;
}

.link-subtitle {
    font-size: 16px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* 价格按钮 */
.link-price-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #000000;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.link-button:hover .link-price-button {
    background: #333333;
    transform: translateY(-1px);
}

/* 免费标签特殊样式 */
.link-price-button.free {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.link-button:hover .link-price-button.free {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}

/* 带箭头的按钮 */
.link-price-button.arrow-only {
    background: #f0f0f0;
    color: #000000;
}

.link-button:hover .link-price-button.arrow-only {
    background: #e0e0e0;
}

.link-price-button svg {
    transition: transform 0.2s ease;
}

.link-button:hover .link-price-button svg {
    transform: translateX(2px);
}

/* 表单区域 */
.contact-form-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-title {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.form-description {
    font-size: 15px;
    color: #666666;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    color: #000000;
    background: #f7f7f7;
    border: 2px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: #999999;
}

.form-input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-input:hover {
    background: #f0f0f0;
}

.form-submit-btn {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn svg {
    transition: transform 0.2s ease;
}

.form-submit-btn:hover svg {
    transform: translateX(4px);
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.social-icon:hover {
    color: #000000;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* 页脚 */
.footer {
    margin-top: auto;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.stan-branding {
    text-align: center;
    font-size: 14px;
    color: #999999;
}

.stan-branding span {
    margin-right: 4px;
}

.stan-branding a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.stan-branding a:hover {
    color: #667eea;
}

.stan-branding strong {
    font-weight: 700;
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
    .page-container {
        padding: 40px 16px;
    }

    .profile-section {
        margin-bottom: 36px;
    }

    .profile-image {
        width: 88px;
        height: 88px;
    }

    .profile-name {
        font-size: 22px;
        margin-bottom: 14px;
    }

    .profile-social-icons {
        gap: 10px;
        margin-bottom: 14px;
    }

    .profile-social-icon {
        width: 30px;
        height: 30px;
    }

    .profile-social-icon svg {
        width: 17px;
        height: 17px;
    }

    .profile-tagline {
        font-size: 15px;
    }

    .profile-bio {
        font-size: 14px;
    }

    .links-container {
        gap: 14px;
        margin-bottom: 36px;
    }

    .link-button {
        padding: 20px;
        border-radius: 20px;
        min-height: 150px;
        gap: 20px;
    }

    .link-image {
        width: 120px;
        height: 120px;
        border-radius: 18px;
    }

    .link-title {
        font-size: 18px;
    }

    .link-subtitle {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .link-price-button {
        font-size: 14px;
        padding: 9px 18px;
    }

    .contact-form-section {
        padding: 28px;
        border-radius: 18px;
        margin-bottom: 36px;
    }

    .form-title {
        font-size: 20px;
    }

    .form-description {
        font-size: 14px;
    }

    .form-input {
        padding: 15px 18px;
        font-size: 14px;
    }

    .form-submit-btn {
        padding: 16px 22px;
        font-size: 15px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
    .page-container {
        padding: 32px 16px;
    }

    .profile-section {
        margin-bottom: 32px;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        margin-bottom: 16px;
    }

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

    .profile-social-icons {
        gap: 8px;
        margin-bottom: 12px;
    }

    .profile-social-icon {
        width: 28px;
        height: 28px;
    }

    .profile-social-icon svg {
        width: 16px;
        height: 16px;
    }

    .profile-tagline {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .profile-bio {
        font-size: 14px;
    }

    .links-container {
        gap: 12px;
        margin-bottom: 32px;
    }

    .link-button {
        padding: 16px;
        border-radius: 16px;
        gap: 16px;
        min-height: 130px;
        /* 手机端不做左右交替，统一图片在左 */
        flex-direction: row !important;
    }

    .link-image {
        width: 100px;
        height: 100px;
        border-radius: 14px;
    }

    .link-title {
        font-size: 16px;
    }

    .link-subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .link-price-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .link-price-button svg {
        width: 16px;
        height: 16px;
    }

    .contact-form-section {
        padding: 24px 20px;
        border-radius: 16px;
        margin-bottom: 32px;
    }

    .form-title {
        font-size: 19px;
    }

    .form-description {
        font-size: 14px;
    }

    .form-input {
        padding: 14px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-submit-btn {
        padding: 15px 20px;
        font-size: 15px;
        border-radius: 10px;
    }

    .social-links {
        gap: 16px;
        margin-bottom: 32px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }

    .social-icon svg {
        width: 22px;
        height: 22px;
    }

    .footer {
        padding-top: 24px;
    }

    .stan-branding {
        font-size: 13px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .page-container {
        padding: 24px 12px;
    }

    .link-button {
        padding: 14px;
        gap: 14px;
        min-height: 120px;
    }

    .link-image {
        width: 90px;
        height: 90px;
        border-radius: 12px;
    }

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

    .link-subtitle {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .link-price-button {
        font-size: 13px;
        padding: 7px 14px;
    }
}

/* 固定漂浮横幅 */
.floating-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 20px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s ease-out;
}

.floating-banner-content {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #ffffff;
}

.floating-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

.floating-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.floating-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.floating-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.floating-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.floating-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-arrow svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.floating-banner-content:hover .floating-arrow {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.floating-banner-content:active {
    opacity: 0.9;
}

/* 漂浮动画 */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 80, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 0, 80, 0);
    }
}

/* 为页面容器添加底部内边距，避免内容被横幅遮挡 */
.page-container {
    padding-bottom: 100px;
}

/* 响应式 - 平板 */
@media (max-width: 768px) {
    .floating-banner {
        padding: 14px 16px;
    }

    .floating-icon {
        width: 44px;
        height: 44px;
    }

    .floating-icon svg {
        width: 26px;
        height: 26px;
    }

    .floating-title {
        font-size: 15px;
    }

    .floating-subtitle {
        font-size: 12px;
    }

    .page-container {
        padding-bottom: 90px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 480px) {
    .floating-banner {
        padding: 12px 16px;
    }

    .floating-banner-content {
        gap: 12px;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .floating-icon svg {
        width: 24px;
        height: 24px;
    }

    .floating-title {
        font-size: 14px;
    }

    .floating-subtitle {
        font-size: 12px;
    }

    .floating-arrow {
        width: 28px;
        height: 28px;
    }

    .floating-arrow svg {
        width: 18px;
        height: 18px;
    }

    .page-container {
        padding-bottom: 80px;
    }
}

/* 减少动画（可访问性） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-icon {
        animation: none;
    }
}
