:root {
    --bg-color: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 19px;
    margin-bottom: 48px;
    font-weight: 400;
}

.grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
    flex-wrap: wrap;
}

.btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 980px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn:hover {
    transform: scale(1.02);
    background: #0077ed;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.4);
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #1d1d1f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: #2d2d2f;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--text-primary);
}

@media (max-width: 600px) {
    h1 { font-size: 32px; }
    p { font-size: 17px; margin-bottom: 32px; }
    .grid { flex-direction: column; align-items: center; }
    .btn { width: 100%; }
}

.footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.footer p {
    font-size: 12px;
    margin-bottom: 8px;
    color: #98989d;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.contact-box {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 24px;
    border-radius: 12px;
    display: inline-flex;
    border: 1px solid rgba(0,0,0,0.05);
}

.qq-number {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.copy-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #0077ed;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}
