:root {
    --primary-color: #4a90e2;
    --primary-dark: #357abd;
    --secondary-color: #E63F00;
    --secondary-dark: #cc3900;
    --accent-color: #007799;
    --accent-dark: #006688;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --bg-color: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-bg-hover: rgba(255, 255, 255, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    --container-padding: clamp(1rem, 5vw, 3rem);
    --card-padding: clamp(1.5rem, 4vw, 3.5rem);
    --button-padding: clamp(0.75rem, 2vw, 1.75rem);
    --font-size-base: clamp(0.875rem, 1.5vw, 1.125rem);
    --font-size-title: clamp(1.75rem, 3vw, 4rem);
    --font-size-subtitle: clamp(1rem, 1.5vw, 1.75rem);
    --grid-gap: clamp(1rem, 3vw, 3rem);
    --header-bg: rgba(0, 0, 0, 0.7);
    --card-bg-dark: rgba(0, 0, 0, 0.7);
    --text-white: #ffffff;
    --text-white-95: rgba(255, 255, 255, 0.95);
    --border-light: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6) contrast(1.1) saturate(1.2);
    transform: scale(1.1);
    transition: transform 0.5s ease;
    will-change: transform;
}

.main-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.7) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

.main-container {
    width: min(100%, 2800px);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 3rem);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    isolation: isolate;
}

.header-section {
    text-align: center;
    margin: clamp(1.5rem, 3vw, 2rem) auto;
    padding: clamp(1.5rem, 3vw, 3.5rem);
    background: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg);
    width: min(100%, 2000px);
    position: relative;
    overflow: visible;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: clamp(200px, 30vh, 400px);
    border-radius: 0;
    z-index: 2;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.12) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: clamp(1.75rem, 3vw, 4rem);
    font-weight: 800;
    margin: 0 0 1.25rem 0;
    padding: 0;
    position: relative;
    z-index: 1;
    color: var(--text-white);
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
    background: linear-gradient(to right, var(--text-white), #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: transform;
    text-align: center;
    width: 100%;
}

.header-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.75rem);
    line-height: 1.5;
    color: var(--text-white-95);
    font-weight: 600;
    max-width: 800px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    width: 100%;
}

.chat-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: clamp(1rem, 2vw, 3rem);
    width: min(100%, 2400px);
    margin: clamp(2rem, 4vw, 4rem) auto;
    padding: clamp(1rem, 2vw, 2rem);
}

.chat-room-card {
    background: var(--card-bg-dark);
    border-radius: 0;
    padding: clamp(1.5rem, 3vw, 3.5rem);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    width: min(100%, 1000px);
    margin: 0 auto;
    position: relative;
    overflow: visible;
    z-index: 2;
    will-change: transform;
}

.chat-room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.06) 50%,
        rgba(255, 255, 255, 0.12) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.chat-room-name {
    font-size: clamp(1.25rem, 2vw, 2.25rem);
    font-weight: 800;
    text-align: center;
    color: var(--text-white);
    padding: 0 1rem;
    position: relative;
    display: inline-block;
    margin: 0 auto;
    background: linear-gradient(to right, var(--text-white), #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    will-change: transform;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.chat-room-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 0;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vw, 2rem);
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 1.5vw, 1.75rem);
    border-radius: 0;
    text-decoration: none;
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    transition: all 0.3s ease;
    min-height: clamp(50px, 8vw, 100px);
    width: min(100%, 400px);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    margin: 0 auto;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.action-button:hover::before {
    opacity: 1;
}

.action-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.enter-button {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.register-button {
    background: linear-gradient(135deg, #E63F00, #cc3900);
    box-shadow: 0 4px 12px rgba(230, 63, 0, 0.3);
}

.download-button {
    background: linear-gradient(135deg, #007799, #006688);
    box-shadow: 0 4px 12px rgba(0, 119, 153, 0.3);
}

.device-notice {
    text-align: center;
    margin: clamp(1.5rem, 4vw, 2rem) auto;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 4vw, 2rem);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    color: #ffffff;
    font-size: var(--font-size-base);
    max-width: min(800px, 90vw);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.device-notice:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.device-notice p {
    margin: 0;
    padding: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer {
    text-align: center;
    padding: clamp(0.5rem, 1.5vw, 1.25rem);
    margin: clamp(0.5rem, 2vw, 1rem) auto 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: visible;
    width: min(100%, 1200px);
    border-radius: 0;
    z-index: 2;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0.125rem;
    width: 100%;
    margin: 0 auto;
    max-width: 600px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(0.8125rem, 1vw, 1.125rem);
    font-weight: 600;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: clamp(0.375rem, 0.75vw, 0.625rem) clamp(0.5rem, 1vw, 1rem);
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: visible;
    white-space: nowrap;
    min-width: 100px;
    max-width: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    will-change: transform, box-shadow, background-color, border-color, color;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.footer-link:active {
    transform: translateY(0) translateZ(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.description-text {
    text-align: center;
    margin: clamp(1.5rem, 3vw, 2rem) auto;
    padding: clamp(1.25rem, 2.5vw, 2rem);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    width: min(100%, 1000px);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.description-text p {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    margin: 0;
    padding: 0;
}

.description-text .highlight,
.description-text .emphasis,
.description-text .note {
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 600;
    padding: clamp(1rem, 1.5vw, 1.25rem);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
    width: 100%;
    max-width: 800px;
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.6;
    will-change: transform, box-shadow, background-color, border-color;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.description-text .highlight {
    color: #63b3ed;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description-text .emphasis {
    color: #fc8181;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description-text .note {
    color: #4fd1c5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.description-text .highlight:hover,
.description-text .emphasis:hover,
.description-text .note:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 1920px) {
    .chat-room-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        padding: 2rem;
        max-width: 2400px;
    }

    .chat-room-card {
        padding: 3rem;
        gap: 2rem;
    }

    .chat-room-name {
        font-size: 2rem;
        max-width: 500px;
    }

    .action-button {
        font-size: 1.5rem;
        letter-spacing: 0.75px;
        min-height: 100px;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .chat-room-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        padding: 1.75rem;
        max-width: 1800px;
    }

    .chat-room-card {
        padding: 2.5rem;
        gap: 1.75rem;
    }

    .chat-room-name {
        font-size: 1.875rem;
        max-width: 450px;
    }

    .action-button {
        font-size: 1.375rem;
        letter-spacing: 0.625px;
        min-height: 90px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .chat-room-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 1.5rem;
        max-width: 1400px;
    }

    .chat-room-card {
        padding: 2rem;
        gap: 1.5rem;
    }

    .chat-room-name {
        font-size: 1.75rem;
        max-width: 400px;
    }

    .action-button {
        font-size: 1.25rem;
        letter-spacing: 0.5px;
        min-height: 80px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .chat-room-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.25rem;
        max-width: 1200px;
    }

    .chat-room-card {
        padding: 1.75rem;
        gap: 1.25rem;
    }

    .chat-room-name {
        font-size: 1.625rem;
        max-width: 350px;
    }

    .action-button {
        font-size: 1.125rem;
        letter-spacing: 0.375px;
        min-height: 70px;
    }
}

@media (max-width: 767px) {
    .chat-room-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem;
        max-width: 600px;
    }

    .chat-room-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .chat-room-name {
        font-size: 1.5rem;
        max-width: 300px;
    }

    .action-button {
        font-size: 1rem;
        letter-spacing: 0.25px;
        min-height: 60px;
    }

    .footer {
        padding: 0.75rem;
        margin: 0.75rem auto 0;
        position: relative;
        bottom: 0;
        width: 100%;
    }

    .footer-links {
        gap: 0.5rem;
        padding: 0.25rem;
    }

    .footer-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .description-text {
        margin: 1.5rem auto;
        padding: 1.5rem;
    }

    .description-text p {
        gap: 2rem;
    }

    .description-text .highlight,
    .description-text .emphasis,
    .description-text .note {
        font-size: 1.125rem;
        padding: 1.25rem;
        margin: 0.5rem auto;
    }
}

@media (max-width: 480px) {
    .chat-room-grid {
        gap: 1rem;
        padding: 0.75rem;
        max-width: 100%;
    }

    .chat-room-card {
        padding: 1.25rem;
        gap: 0.875rem;
    }

    .chat-room-name {
        font-size: 1.25rem;
        max-width: 250px;
    }

    .action-button {
        font-size: 0.875rem;
        letter-spacing: 0.125px;
        min-height: 50px;
    }

    .footer {
        padding: 0.5rem;
        margin: 0.5rem auto 0;
        position: relative;
        bottom: 0;
        width: 100%;
    }

    .footer-links {
        gap: 0.375rem;
        padding: 0.125rem;
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .footer-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
        min-width: 100px;
    }

    .description-text {
        margin: 1rem auto;
        padding: 1.25rem;
    }

    .description-text p {
        gap: 1.5rem;
    }

    .description-text .highlight,
    .description-text .emphasis,
    .description-text .note {
        font-size: 1rem;
        padding: 1rem;
        margin: 0.75rem auto;
    }
}

@media (prefers-color-scheme: dark) {
    .header-section,
    .description-text,
    .footer {
        background: rgba(0, 0, 0, 0.7);
    }

    .header-title {
        background: linear-gradient(to right, #ffffff, #cccccc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .header-subtitle {
        color: rgba(255, 255, 255, 0.9);
    }

    .description-text .highlight,
    .description-text .emphasis,
    .description-text .note {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .footer {
        background: rgba(0, 0, 0, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .footer::before {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.03) 50%,
            rgba(255, 255, 255, 0.06) 100%
        );
    }

    .footer-link {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.9);
    }

    .footer-link:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .share-button,
    .description-text .highlight,
    .description-text .emphasis,
    .description-text .note,
    .share-icon,
    .share-text {
        transition: none;
        transform: none !important;
    }
    
    .footer-link:hover,
    .share-button:hover,
    .description-text .highlight:hover,
    .description-text .emphasis:hover,
    .description-text .note:hover,
    .share-button:hover .share-icon,
    .share-button:hover .share-text {
        transform: none !important;
    }
}

@media (min-width: 768px) {
    .footer {
        padding: 1rem;
        margin: 1rem auto 0;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0.25rem;
        max-width: 700px;
    }

    .footer-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
        min-width: 120px;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 1.25rem;
        margin: 1.5rem auto 0;
    }

    .footer-links {
        gap: 0.75rem;
        padding: 0.375rem;
    }

    .footer-link {
        font-size: 1.125rem;
        padding: 0.625rem 1rem;
        min-width: 150px;
    }
}

.header-decoration {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.description-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.device-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ios-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M17.05 20.28c-.98.95-2.05.88-3.08.41-1.09-.47-2.09-.48-3.24 0-1.44.62-2.2.44-3.06-.41C2.79 15.25 3.51 7.59 9.05 7.31c1.35.07 2.29.74 3.08.78 1.18-.19 2.31-.89 3.51-.84 1.54.07 2.7.61 3.44 1.57-3.14 1.88-2.29 5.13.22 6.41-.65 1.29-1.52 2.58-2.25 4.05zM12.03 7.25c-.15-2.23 1.66-4.07 3.74-4.25.29 2.58-2.34 4.5-3.74 4.25z"/></svg>');
}

.android-icon {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85a.637.637 0 0 0-.83.22l-1.88 3.24a11.463 11.463 0 0 0-8.94 0L5.65 5.67a.643.643 0 0 0-.87-.2c-.28.18-.37.54-.22.83L6.4 9.48A10.81 10.81 0 0 0 1 20h22a10.81 10.81 0 0 0-5.4-10.52zM7 15.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5zm10 0a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5z"/></svg>');
}

.chat-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    gap: 1rem;
    flex-wrap: nowrap;
}

.chat-room-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.button-icon {
    margin-right: 0.5rem;
    font-size: 1.25em;
    vertical-align: middle;
}

.button-text {
    vertical-align: middle;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.footer-icon {
    margin-right: 0.5rem;
    font-size: 1.25em;
    vertical-align: middle;
}

.footer-text {
    vertical-align: middle;
}

.footer-copyright {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 767px) {
    .chat-room-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .chat-room-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .button-icon {
        font-size: 1.125em;
    }

    .footer-icon {
        font-size: 1.125em;
    }
}

@media (max-width: 480px) {
    .header-decoration {
        width: 80px;
        height: 3px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        max-width: 100%;
    }
    
    .footer-link {
        min-width: auto;
        width: 100%;
        text-align: center;
    }

    .device-icon {
        width: 32px;
        height: 32px;
    }

    .chat-room-badge {
        font-size: 0.6875rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 針對特定聊天室名稱的樣式 */
.chat-room-card:nth-child(6) .chat-room-name {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

@media (min-width: 1920px) {
    .chat-room-card:nth-child(6) .chat-room-name {
        font-size: 1.75rem;
        max-width: 600px;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .chat-room-card:nth-child(6) .chat-room-name {
        font-size: 1.625rem;
        max-width: 550px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .chat-room-card:nth-child(6) .chat-room-name {
        font-size: 1.5rem;
        max-width: 500px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .chat-room-card:nth-child(6) .chat-room-name {
        font-size: 1.375rem;
        max-width: 450px;
    }
}

@media (max-width: 767px) {
    .chat-room-card:nth-child(6) .chat-room-name {
        font-size: 1.25rem;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .chat-room-card:nth-child(6) .chat-room-name {
        font-size: 1.125rem;
        max-width: 350px;
    }
}

/* 社群分享按鈕樣式 */
.social-share {
    width: min(100%, 800px);
    margin: clamp(1.25rem, 2.5vw, 1.5rem) auto;
    padding: clamp(1rem, 2vw, 1.5rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
    gap: clamp(0.5rem, 1vw, 1rem);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    width: 48px;
    height: 48px;
    will-change: transform, box-shadow, filter;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.share-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    pointer-events: none;
}

.share-button.facebook {
    background: linear-gradient(135deg, #1877f2, #0d6efd);
}

.share-button.twitter {
    background: linear-gradient(135deg, #1da1f2, #0c85d0);
}

.share-button.line {
    background: linear-gradient(135deg, #06c755, #05a548);
}

.share-button.telegram {
    background: linear-gradient(135deg, #0088cc, #006699);
}

.share-button:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.share-button:hover::before {
    opacity: 1;
}

.share-button:active {
    transform: translateY(-1px) translateZ(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.share-button:hover .share-icon {
    transform: scale(1.1);
}

.share-text {
    display: none;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 600;
}

@media (min-width: 1920px) {
    .social-share {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 25px;
    }
    
    .share-button {
        width: 56px;
        height: 56px;
        padding: 14px;
    }
    
    .share-icon {
        font-size: 28px;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .social-share {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 22px;
    }
    
    .share-button {
        width: 52px;
        height: 52px;
        padding: 13px;
    }
    
    .share-icon {
        font-size: 26px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .social-share {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 20px;
    }
    
    .share-button {
        width: 48px;
        height: 48px;
        padding: 12px;
    }
    
    .share-icon {
        font-size: 24px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .social-share {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .share-button {
        width: 44px;
        height: 44px;
        padding: 11px;
    }
    
    .share-icon {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .social-share {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        margin: 20px 0;
    }
    
    .share-button {
        width: auto;
        height: auto;
        aspect-ratio: auto;
        padding: 10px 15px;
        min-width: 120px;
    }
    
    .share-icon {
        font-size: 18px;
    }

    .share-text {
        display: inline-block;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .social-share {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px;
        margin: 15px 0;
    }
    
    .share-button {
        padding: 12px 18px;
        min-width: 140px;
    }
    
    .share-icon {
        font-size: 20px;
    }

    .share-text {
        font-size: 14px;
    }
} 