/**
 * 尾牙/春酒報名頁面樣式
 * 參考邀請函的深色未來風格 - 電路板發光效果
 */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a1a;
    min-height: 100vh;
    padding: 20px;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    word-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 電路板風格背景 - 發光線條動畫 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(100, 200, 255, 0.1) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(150, 100, 255, 0.1) 50%, transparent 100%);
    background-size: 200px 200px, 200px 200px;
    background-position: 0 0, 0 0;
    animation: circuitMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes circuitMove {
    0% {
        background-position: 0 0, 0 0;
    }

    100% {
        background-position: 200px 200px, -200px -200px;
    }
}

/* 發光點效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(100, 200, 255, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(150, 100, 255, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(100, 150, 255, 0.2) 0%, transparent 40%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background: rgba(10, 15, 30, 0.85);
    border-radius: 20px;
    box-shadow:
        0 0 60px rgba(100, 200, 255, 0.3),
        0 0 100px rgba(150, 100, 255, 0.2),
        inset 0 0 60px rgba(100, 200, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(100, 200, 255, 0.3);
    backdrop-filter: blur(10px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 發光框架效果 */
.container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(100, 200, 255, 0.5),
            rgba(150, 100, 255, 0.5),
            rgba(100, 200, 255, 0.5));
    border-radius: 20px;
    z-index: -1;
    opacity: 0.6;
    animation: frameGlow 3s ease-in-out infinite;
    filter: blur(8px);
}

@keyframes frameGlow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Header 區塊 */
.header {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.9) 0%, rgba(20, 25, 40, 0.9) 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    width: 100%;
    border-bottom: 2px solid rgba(100, 200, 255, 0.3);
    overflow: hidden;
}

/* Header 右上角分享按鈕 */
.share-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(100, 200, 255, 0.35);
    box-shadow: 0 0 18px rgba(100, 200, 255, 0.18);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    transform: translateY(-2px) rotate(5deg) scale(1.1);
    border-color: rgba(100, 200, 255, 0.65);
    box-shadow: 0 0 26px rgba(100, 200, 255, 0.35);
    animation: rotatePulse 1s ease-in-out infinite;
}

@keyframes rotatePulse {

    0%,
    100% {
        transform: translateY(-2px) rotate(5deg) scale(1.1);
    }

    50% {
        transform: translateY(-2px) rotate(-5deg) scale(1.15);
    }
}

.share-btn:active {
    transform: translateY(0) rotate(0deg) scale(1);
    animation: none;
}

.share-btn.copied {
    border-color: rgba(16, 185, 129, 0.9);
    box-shadow: 0 0 26px rgba(16, 185, 129, 0.35);
    animation: successPulse 0.5s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.share-btn svg {
    display: block;
}

/* 邀請函頁面（無表單） */
.invite-container {
    max-width: 980px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderRun {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.invite-header {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invite-header .subtitle {
    color: rgba(180, 240, 255, 0.95);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(100, 200, 255, 0.6);
    }

    50% {
        text-shadow: 0 0 25px rgba(100, 200, 255, 0.9), 0 0 35px rgba(150, 100, 255, 0.6);
    }
}

.invite-body {
    padding: 48px 44px 52px;
    position: relative;
    background: rgba(10, 15, 30, 0.45);
    animation: fadeIn 1s ease-out 0.2s both;
    overflow: hidden;
}

.invite-body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.invite-body::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(150, 100, 255, 0.1) 0%, transparent 50%);
    animation: float 8s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-30px, 30px) rotate(240deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.invite-to {
    display: flex;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 18px;
    color: rgba(226, 232, 240, 0.95);
    font-size: 1.05em;
    animation: slideInLeft 0.8s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.invite-label {
    color: rgba(100, 200, 255, 0.95);
    text-shadow: 0 0 12px rgba(100, 200, 255, 0.45);
    font-weight: 700;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        text-shadow: 0 0 12px rgba(100, 200, 255, 0.45);
    }

    50% {
        text-shadow: 0 0 20px rgba(100, 200, 255, 0.7), 0 0 30px rgba(150, 100, 255, 0.4);
    }
}

.invite-target {
    font-weight: 600;
    transition: transform 0.3s ease, color 0.3s ease;
}

.invite-target:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 1);
}

.invite-letter {
    position: relative;
    padding: 26px 26px;
    border-radius: 14px;
    background: rgba(20, 25, 40, 0.55);
    border: 1px solid rgba(100, 200, 255, 0.22);
    box-shadow: inset 0 0 30px rgba(100, 200, 255, 0.08);
    animation: slideInUp 0.8s ease-out 0.4s both;
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invite-letter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.invite-letter:hover::before {
    opacity: 1;
}

.invite-letter:hover {
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow:
        inset 0 0 40px rgba(100, 200, 255, 0.15),
        0 0 30px rgba(100, 200, 255, 0.2);
    transform: translateY(-2px);
}

.invite-letter p {
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.9;
    letter-spacing: 0.3px;
    font-size: 1.03em;
    position: relative;
    z-index: 1;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.invite-sign {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    animation: slideInRight 0.8s ease-out 0.5s both;
    position: relative;
    z-index: 1;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.invite-signature {
    color: rgba(100, 200, 255, 0.9);
    text-shadow: 0 0 14px rgba(100, 200, 255, 0.45);
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: default;
}

.invite-signature:hover {
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.7), 0 0 30px rgba(150, 100, 255, 0.5);
    transform: scale(1.05);
}

.invite-sections {
    margin-top: 28px;
    display: grid;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.invite-section {
    padding: 18px 18px;
    border-radius: 14px;
    background: rgba(20, 25, 40, 0.55);
    border: 1px solid rgba(150, 100, 255, 0.22);
    box-shadow: inset 0 0 24px rgba(150, 100, 255, 0.07);
    animation: fadeInUp 0.8s ease-out both;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.invite-section::after {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 2px;
    border-radius: 16px;
    background: linear-gradient(90deg,
            rgba(100, 200, 255, 0) 0%,
            rgba(100, 200, 255, 0.9) 45%,
            rgba(150, 100, 255, 0.85) 55%,
            rgba(100, 200, 255, 0) 100%);
    background-size: 220% 220%;
    background-position: 0% 0%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRun 5.5s linear infinite;
    opacity: 0.65;
    pointer-events: none;
}

.invite-section:hover::after {
    opacity: 0.95;
    animation-duration: 3.5s;
}

.invite-section:nth-child(1) {
    animation-delay: 0.6s;
}

.invite-section:nth-child(2) {
    animation-delay: 0.7s;
}

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

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

.invite-section:hover {
    border-color: rgba(150, 100, 255, 0.5);
    box-shadow:
        inset 0 0 30px rgba(150, 100, 255, 0.12),
        0 0 25px rgba(150, 100, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.invite-section-title {
    color: rgba(180, 240, 255, 0.95);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 0 12px rgba(100, 200, 255, 0.35);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.invite-section:hover .invite-section-title {
    text-shadow: 0 0 18px rgba(100, 200, 255, 0.6), 0 0 25px rgba(150, 100, 255, 0.4);
    transform: translateX(3px);
}

.invite-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.invite-list li {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: start;
    color: rgba(226, 232, 240, 0.92);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 4px 0;
}

.invite-list li:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 1);
}

.invite-list .k {
    color: rgba(100, 200, 255, 0.9);
    font-weight: 700;
    transition: all 0.3s ease;
}

.invite-list li:hover .k {
    color: rgba(100, 200, 255, 1);
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.6);
}

.invite-note {
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.8;
}

.invite-actions {
    margin-top: 26px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    position: relative;
    z-index: 1;
}

.primary-btn,
.secondary-btn {
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border: 1px solid rgba(100, 200, 255, 0.35);
    background: rgba(20, 25, 40, 0.65);
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn::before,
.secondary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.primary-btn:hover::before,
.secondary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.95) 0%, rgba(150, 100, 255, 0.95) 100%);
    border-color: rgba(180, 240, 255, 0.25);
    box-shadow: 0 0 26px rgba(100, 200, 255, 0.25);
    position: relative;
}

.primary-btn span,
.secondary-btn span {
    position: relative;
    z-index: 1;
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(100, 200, 255, 0.8);
    box-shadow:
        0 0 35px rgba(100, 200, 255, 0.5),
        0 5px 15px rgba(100, 200, 255, 0.3);
}

.primary-btn:active,
.secondary-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.secondary-btn {
    background: rgba(20, 25, 40, 0.65);
    backdrop-filter: blur(10px);
}

.invite-footer-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cta-btn {
    max-width: 320px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6dd5ff 0%, #7f8cff 100%);
    border: none;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 1.05em;
    border-radius: 14px;
    box-shadow:
        0 8px 28px rgba(109, 213, 255, 0.28),
        0 10px 35px rgba(127, 140, 255, 0.25);
}

.cta-btn:hover {
    background: linear-gradient(135deg, #86e0ff 0%, #9aa3ff 100%);
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* 桌機版排版微調 */
@media (min-width: 1024px) {
    .invite-body {
        padding: 54px 64px 60px;
    }

    .invite-letter {
        margin-bottom: 28px;
    }

    .invite-footer-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .invite-sections {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
        flex: unset;
        margin: 0;
    }

    .invite-section {
        padding: 22px 22px;
    }

    .invite-actions {
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 0;
        flex: 0 0 auto;
        padding-top: 6px;
    }

    .cta-btn {
        min-width: unset;
        max-width: none;
        width: 100%;
    }
}

.secondary-btn.copied {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 35px rgba(16, 185, 129, 0.5);
    animation: successPulse 0.5s ease-out;
}

/* Header 頂部發光線 */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(100, 200, 255, 0.8),
            rgba(150, 100, 255, 0.8),
            rgba(100, 200, 255, 0.8),
            transparent);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(100, 200, 255, 0.6),
            transparent);
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

.header .title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #64c8ff 50%, #9664ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite, titleGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.8)) drop-shadow(0 0 40px rgba(100, 200, 255, 0.4));
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.8)) drop-shadow(0 0 40px rgba(100, 200, 255, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(100, 200, 255, 1)) drop-shadow(0 0 50px rgba(150, 100, 255, 0.6)) drop-shadow(0 0 70px rgba(150, 100, 255, 0.3));
    }
}

.header .subtitle {
    font-size: 1.3em;
    color: #64c8ff;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(100, 200, 255, 0.6);
    position: relative;
    z-index: 1;
}

/* 活動資訊區塊 */
.event-info {
    padding: 50px 40px;
    background: rgba(10, 15, 30, 0.5);
    position: relative;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.info-card {
    background: rgba(20, 25, 40, 0.8);
    border: 1px solid rgba(100, 200, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(100, 200, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-card:hover::before {
    opacity: 1;
}

.info-card:hover {
    border-color: rgba(100, 200, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(100, 200, 255, 0.3),
        0 0 20px rgba(100, 200, 255, 0.2);
    transform: translateY(-4px);
}

.info-card-title {
    font-size: 0.85em;
    color: #94a3b8;
    margin-bottom: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.info-card-value {
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.status-dot.green {
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.status-dot.green::after {
    background: rgba(16, 185, 129, 0.4);
}

.status-dot.blue {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

.status-dot.blue::after {
    background: rgba(59, 130, 246, 0.4);
}

@keyframes dotPulse {

    0%,
    100% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }

    50% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.info-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    padding: 20px;
    background: rgba(20, 25, 40, 0.6);
    border-radius: 10px;
    border-left: 3px solid #64c8ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-left-color: #96d5ff;
    box-shadow: 0 6px 20px rgba(100, 200, 255, 0.2);
}

.info-item.full-width {
    flex-direction: column;
}

.info-label {
    font-weight: 600;
    color: #64c8ff;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 0.95em;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
}

.info-value {
    color: #e2e8f0;
    flex: 1;
}

.info-content {
    color: #cbd5e1;
    margin-top: 10px;
    line-height: 1.8;
}

/* 表單區塊 */
.form-section {
    padding: 50px 40px;
    background: rgba(10, 15, 30, 0.5);
    position: relative;
}

.form-section h2 {
    font-size: 2em;
    color: #64c8ff;
    margin-bottom: 35px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.6);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.95em;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.required {
    color: #ef4444;
    margin-left: 4px;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(100, 200, 255, 0.3);
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(20, 25, 40, 0.8);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-appearance: none;
    appearance: none;
    max-width: 100%;
    box-sizing: border-box;
    cursor: text;
    outline: none;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group input[type="tel"]::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #64c8ff;
    box-shadow:
        0 0 0 4px rgba(100, 200, 255, 0.2),
        0 0 30px rgba(100, 200, 255, 0.3),
        inset 0 0 20px rgba(100, 200, 255, 0.1);
    background: rgba(20, 25, 40, 1);
}

/* 手機（觸控）環境：避免 iOS/Android 首次聚焦時出現「外框」感，改成內嵌光暈 */
@media (hover: none) and (pointer: coarse) {

    .form-group input[type="text"]:focus,
    .form-group input[type="email"]:focus,
    .form-group input[type="tel"]:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        /* 移除外擴 box-shadow，只保留內框效果 */
        box-shadow:
            inset 0 0 0 2px rgba(100, 200, 255, 0.55),
            inset 0 0 18px rgba(100, 200, 255, 0.14);
    }
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%2364c8ff' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

.form-group select option {
    background: #141928;
    color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

/* 參加者名單區塊（依人數動態顯示） */
.attendee-fields-wrap {
    margin-bottom: 28px;
    padding: 24px;
    background: rgba(20, 25, 40, 0.6);
    border: 1px solid rgba(100, 200, 255, 0.25);
    border-radius: 12px;
}

.attendee-fields-title {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #64c8ff;
}

.attendee-fields-desc {
    font-size: 0.9em;
    color: #94a3b8;
    margin-bottom: 20px;
}

.attendee-row {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(15, 20, 35, 0.8);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 10px;
    border-left: 4px solid #64c8ff;
}

.attendee-row:last-child {
    margin-bottom: 0;
}

.attendee-row-header {
    font-size: 1em;
    font-weight: 600;
    color: #64c8ff;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(100, 200, 255, 0.2);
    letter-spacing: 0.5px;
}

.attendee-row-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 600px) {
    .attendee-row-fields {
        grid-template-columns: 1fr;
    }
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #64c8ff 0%, #9664ff 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow:
        0 4px 20px rgba(100, 200, 255, 0.4),
        0 0 30px rgba(150, 100, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(100, 200, 255, 0.6),
        0 0 40px rgba(150, 100, 255, 0.4);
    background: linear-gradient(135deg, #7dd3fc 0%, #a78bfa 100%);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.footer {
    padding: 30px 40px;
    text-align: center;
    background: rgba(10, 15, 30, 0.8);
    color: #94a3b8;
    font-size: 0.9em;
    border-top: 1px solid rgba(100, 200, 255, 0.2);
}

/* 響應式設計 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        overflow-x: hidden;
    }

    .container {
        border-radius: 15px;
        max-width: 100%;
        width: 100%;
    }

    .header {
        padding: 40px 20px 35px;
    }

    .share-btn {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .share-btn svg {
        width: 18px;
        height: 18px;
    }

    .header .title {
        font-size: 1.8em;
        letter-spacing: 1px;
        margin-bottom: 12px;
        word-break: break-word;
        line-height: 1.2;
    }

    .header .subtitle {
        font-size: 1.1em;
        letter-spacing: 1px;
    }

    .event-info,
    .form-section {
        padding: 30px 20px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 25px;
    }

    .info-card {
        padding: 20px;
    }

    .info-card-title {
        font-size: 0.8em;
        margin-bottom: 12px;
    }

    .info-card-value {
        font-size: 1.1em;
    }

    .info-item {
        flex-direction: column;
        padding: 15px;
        margin-bottom: 18px;
    }

    .info-label {
        margin-bottom: 8px;
        min-width: auto;
        width: 100%;
    }

    .info-value {
        width: 100%;
        word-break: break-word;
    }

    .form-section h2 {
        font-size: 1.6em;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 22px;
    }

    .form-group label {
        font-size: 0.9em;
        margin-bottom: 10px;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"],
    .form-group textarea,
    .form-group select {
        padding: 14px 16px;
        font-size: 16px;
        /* 防止 iOS 自動縮放 */
    }

    .form-group select {
        padding-right: 45px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 1.1em;
    }

    .footer {
        padding: 25px 20px;
        font-size: 0.85em;
    }

    /* 邀請函頁面手機版 */
    .invite-container {
        max-width: 100%;
    }

    .invite-header {
        padding: 40px 20px 35px;
    }

    .invite-header .title {
        font-size: 1.8em;
        letter-spacing: 1px;
        word-break: break-word;
        line-height: 1.2;
    }

    .invite-header .subtitle {
        font-size: 1.1em;
    }

    .invite-body {
        padding: 30px 20px 35px;
    }

    .invite-to {
        font-size: 0.95em;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    .invite-letter {
        padding: 20px;
    }

    .invite-letter p {
        font-size: 0.95em;
        line-height: 1.7;
    }

    .invite-sign {
        margin-top: 15px;
    }

    .invite-signature {
        font-size: 0.9em;
    }

    .invite-sections {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 22px;
    }

    .invite-section {
        padding: 16px;
    }

    .invite-section-title {
        font-size: 0.9em;
        margin-bottom: 10px;
    }

    .invite-list {
        gap: 8px;
    }

    .invite-list li {
        grid-template-columns: 50px 1fr;
        gap: 10px;
        font-size: 0.9em;
    }

    .invite-note {
        font-size: 0.9em;
        line-height: 1.7;
    }

    .invite-actions {
        margin-top: 22px;
        flex-direction: column;
        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 1em;
        min-width: auto;
    }

    .primary-btn span,
    .secondary-btn span {
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .header {
        padding: 35px 15px 30px;
    }

    .header .title {
        font-size: 1.5em;
        letter-spacing: 0.5px;
    }

    .header .subtitle {
        font-size: 1em;
    }

    .event-info,
    .form-section {
        padding: 25px 15px;
    }

    .form-section h2 {
        font-size: 1.4em;
    }

    .invite-header {
        padding: 35px 15px 30px;
    }

    .invite-header .title {
        font-size: 1.5em;
    }

    .invite-body {
        padding: 25px 15px 30px;
    }

    .invite-letter {
        padding: 18px;
    }

    .invite-section {
        padding: 14px;
    }
}

@media (max-width: 900px) {
    .invite-body {
        padding: 34px 22px 40px;
    }

    .invite-sections {
        grid-template-columns: 1fr;
    }
}

/* 成功/錯誤訊息樣式 */
.message {
    padding: 18px 24px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-weight: 500;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}