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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: #ffffff;
    color: #333333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 15px;
    padding-bottom: 200px;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

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

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.15;
}

/* 网格背景 */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(220, 20, 60, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 20, 60, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: 0.8;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* 扫描线效果 */
.bg-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.8), transparent);
    animation: scanlineMove 3s linear infinite;
}

@keyframes scanlineMove {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0.3;
    }
}

/* 数据流效果 */
.bg-dataflow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(220, 20, 60, 0.08) 2px,
            rgba(220, 20, 60, 0.08) 4px
        );
    animation: dataflowMove 8s linear infinite;
    opacity: 0.6;
}

@keyframes dataflowMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

/* 全息效果 */
.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98%,
            rgba(220, 20, 60, 0.05) 98%,
            rgba(220, 20, 60, 0.05) 100%
        );
    animation: hologramFlicker 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hologramFlicker {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* 粒子效果 */
.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(220, 20, 60, 0.8);
    border-radius: 50%;
    animation: floatParticle 15s infinite ease-in-out;
}

.particle:nth-child(7) {
    left: 60%;
    top: 30%;
    animation-delay: 1.5s;
    animation-duration: 14s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(8) {
    left: 40%;
    top: 80%;
    animation-delay: 3.5s;
    animation-duration: 16s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 80%;
    top: 40%;
    animation-delay: 2s;
    animation-duration: 18s;
    width: 3px;
    height: 3px;
}

.particle:nth-child(3) {
    left: 30%;
    top: 70%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 10%;
    animation-delay: 1s;
    animation-duration: 20s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(5) {
    left: 50%;
    top: 60%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.particle:nth-child(6) {
    left: 20%;
    top: 50%;
    animation-delay: 5s;
    animation-duration: 16s;
    width: 3px;
    height: 3px;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, -50px) scale(0.8);
        opacity: 0.8;
    }
    75% {
        transform: translate(-30px, 20px) scale(1.1);
        opacity: 0.9;
    }
}

/* 光效 - 已禁用 */
.bg-glow {
    display: none;
}

.container {
    padding-top: 70px;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: fadeIn 0.8s ease-in;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
}

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

/* 机器人图标区域 */
/* ロボットアイコン削除 */
.robot-container {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.robot-icon {
    width: 100%;
    height: 100%;
}

/* 主标题区域 */
.header-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    padding: 0;
    margin-top: 0;
}

.header-section::before {
    display: none;
}

.header-section::after {
    display: none;
}

.welcome-text {
    font-size: 20px;
    font-weight: 300;
    color: #333333;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 30%, #DC143C 50%, #8B0000 70%, #DC143C 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    margin: 2px 0;
    position: relative;
    animation: titleGradient 3s ease infinite;
}

@keyframes titleGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.win-rate {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
}

.win-rate-label {
    font-size: 16px;
    color: #666666;
}

.win-rate-value {
    font-size: 24px;
    font-weight: 700;
    color: #DC143C;
    position: relative;
    display: inline-block;
    animation: numberPulse 2s ease-in-out infinite;
}

.win-rate-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.3), transparent);
    animation: numberShine 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes numberShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 日文说明 */
.japanese-text {
    font-size: 14px;
    color: #333333;
    text-align: center;
    line-height: 1.4;
    margin-top: 0;
    padding: 6px 15px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 8px;
    border-left: 2px solid rgba(220, 20, 60, 0.6);
    border-right: 2px solid rgba(220, 20, 60, 0.6);
    position: relative;
    overflow: hidden;
}

.japanese-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.2), transparent);
    animation: textScan 4s ease-in-out infinite;
}

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

/* 统计数据区域 */
.stats-section {
    text-align: center;
    margin-top: 0;
    position: relative;
    padding: 8px 15px;
    background: rgba(220, 20, 60, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(220, 20, 60, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    animation: statsScan 3s ease-in-out infinite;
}

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

.stats-text {
    font-size: 14px;
    color: #333333;
}

.stats-number {
    font-size: 18px;
    font-weight: 700;
    color: #DC143C;
    margin-left: 5px;
    position: relative;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.stats-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.2), transparent);
    animation: numberGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes numberGlow {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* 服务选择区域 */
.services-section {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 0;
    padding: 0 5px;
    position: relative;
    z-index: 2000;
}

.services-prompt {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    padding: 8px 0;
}

.services-prompt::before,
.services-prompt::after {
    content: '◆';
    color: rgba(220, 20, 60, 0.6);
    margin: 0 8px;
    font-size: 12px;
    animation: sparkle 2s ease-in-out infinite;
}

.services-prompt::before {
    animation-delay: 0s;
}

.services-prompt::after {
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.service-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(220, 20, 60, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
    z-index: 2001;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item:hover::after {
    opacity: 1;
    animation: topLineScan 1.5s ease-in-out infinite;
}

@keyframes topLineScan {
    0%, 100% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-item:hover::before {
    left: 100%;
}

.service-item:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 20, 147, 0.3);
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.2);
}

.service-name {
    font-size: 16px;
    color: #333333;
    font-weight: 500;
    text-align: left;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.service-btn {
    background: linear-gradient(135deg, #DC143C, #8B0000);
    border: 2px solid #DC143C;
    border-radius: 6px;
    padding: 7px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
                inset 0 0 15px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: auto;
    min-width: 80px;
    flex-shrink: 0;
    z-index: 2002;
    animation: sciFiGlow 2s ease-in-out infinite;
}

.service-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.3), transparent 30%);
    animation: btnRotate 3s linear infinite;
    pointer-events: none;
}

@keyframes btnRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sciFiGlow {
    0%, 100% {
        border-color: #DC143C;
    }
    50% {
        border-color: #FF6B6B;
    }
}

.service-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.service-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(220, 20, 60, 0.6);
    border-radius: 6px;
    animation: borderPulse 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes borderPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.service-btn:active::before {
    animation: none;
}

.service-btn:active {
    transform: scale(0.95);
    box-shadow: none;
}

.service-btn span {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 1.5px;
}

/* 弹幕区域 */
.danmaku-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    border-top: 2px solid rgba(220, 20, 60, 0.6);
    border-left: 2px solid rgba(220, 20, 60, 0.6);
    border-right: 2px solid rgba(220, 20, 60, 0.6);
    background: #ffffff;
}

/* 弹幕显示容器 */
.danmaku-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    pointer-events: none;
    min-height: 0; /* 确保flex子元素可以正确计算高度 */
}

/* 单个弹幕 */
.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 13px;
    color: #333333;
    padding: 3px 10px;
    background: #ffffff;
    border: 1px solid rgba(220, 20, 60, 0.6);
    border-radius: 12px;
    pointer-events: auto;
    animation: danmakuMove linear forwards;
    z-index: 3001;
    will-change: transform;
}

/* 用户发送的弹幕样式 */
.danmaku-item.user-danmaku {
    background: #ffffff;
    border: 1px solid rgba(220, 20, 60, 0.8);
    color: #DC143C;
}

@keyframes danmakuMove {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}

/* 弹幕输入区域 */
.danmaku-input-area {
    height: 50px;
    display: flex;
    gap: 10px;
    padding: 8px 15px;
    background: #ffffff;
    border-top: 1px solid rgba(220, 20, 60, 0.4);
    pointer-events: auto;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(220, 20, 60, 0.2);
}

.danmaku-input {
    flex: 1;
    height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.4);
    border-radius: 17px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    /* 防止iOS自动缩放 */
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.danmaku-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.danmaku-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #DC143C;
}

.danmaku-send-btn {
    height: 34px;
    padding: 0 20px;
    background: linear-gradient(135deg, #DC143C, #8B0000);
    border: 1px solid #DC143C;
    border-radius: 17px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.danmaku-send-btn:active::before {
    width: 200px;
    height: 200px;
}

.danmaku-send-btn:active {
    transform: scale(0.95);
}

.danmaku-send-btn span {
    position: relative;
    z-index: 1;
}

/* 手机适配 */
@media (max-width: 480px) {
    body {
        padding-bottom: 170px;
    }

    .danmaku-area {
        height: 160px;
    }

    .danmaku-input-area {
        height: 45px;
        padding: 6px 10px;
        gap: 8px;
    }

    .danmaku-input {
        height: 32px;
        font-size: 16px;
        padding: 0 10px;
    }

    .danmaku-send-btn {
        height: 32px;
        padding: 0 16px;
        font-size: 13px;
    }

    .danmaku-item {
        font-size: 12px;
        padding: 3px 10px;
    }

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

    .welcome-text {
        font-size: 18px;
    }

    .service-item {
        padding: 10px 12px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .service-name {
        font-size: 13px;
        white-space: normal;
        line-height: 1.5;
        flex: none;
        width: 100%;
        overflow: visible;
        text-overflow: clip;
        word-break: keep-all;
    }

    .service-btn {
        padding: 8px 12px;
        min-width: auto;
        width: 100%;
        flex-shrink: 0;
        align-self: stretch;
    }

    .service-btn span {
        font-size: 16px;
    }

    .robot-container {
        position: fixed;
        top: 10px;
        right: 10px;
        width: 60px;
        height: 60px;
        z-index: 1000;
    }
}


/* LINE添加弹窗样式 - 全新方案：使用绝对定位居中 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 20000;
    overflow: hidden;
}

/* 显示状态 */
.modal-overlay.modal-show {
    display: block;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 10, 26, 0.95) 100%);
    border: 2px solid rgba(220, 20, 60, 0.5);
    border-radius: 20px;
    padding: 30px 25px;
    width: 320px;
    max-width: calc(100vw - 40px);
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 20001;
    pointer-events: auto;
    margin: 0;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    z-index: 10002;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.modal-close:hover {
    color: #DC143C;
    background: rgba(220, 20, 60, 0.1);
    transform: rotate(90deg);
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(220, 20, 60, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(220, 20, 60, 0.3);
    animation: iconPulse 2s ease-in-out infinite;
}

.modal-icon svg {
    width: 50px;
    height: 50px;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #DC143C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-text:last-of-type {
    margin-bottom: 25px;
}

.line-add-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00C300, #00A300);
    border: 2px solid #00C300;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.line-add-btn:hover::before {
    width: 300px;
    height: 300px;
}

.line-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #00D400, #00B300);
}

.line-add-btn:active {
    transform: translateY(0);
}

.line-add-btn span {
    position: relative;
    z-index: 1;
}

/* 手机弹窗优化 */
@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        min-width: auto !important;
        max-height: 90vh !important;
        border-radius: 15px;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .modal-icon svg {
        width: 40px;
        height: 40px;
    }

    .modal-text {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .line-add-btn {
        padding: 12px;
        font-size: 15px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }

    .modal-icon svg {
        width: 40px;
        height: 40px;
    }

    .modal-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .modal-text {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.5;
    }

    .line-add-btn {
        padding: 12px;
        font-size: 15px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .modal-content {
        padding: 20px 15px !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        min-width: auto !important;
        border-radius: 15px;
        max-height: 90vh !important;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 12px;
    }
    
    .modal-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .modal-text {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .line-add-btn {
        padding: 10px;
        font-size: 14px;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (max-height: 500px) {
    .modal-content {
        max-height: 95vh !important;
        padding: 20px 15px !important;
    }
    
    .modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .modal-text {
        margin-bottom: 10px;
        font-size: 13px;
    }
}

/* ヘッダー情報（ページトップ） */
.header-info {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 8px 20px;
    background: rgba(26, 5, 5, 0.95);
    border-bottom: 1px solid rgba(220, 20, 60, 0.4);
    z-index: 1000;
    backdrop-filter: blur(10px);
    line-height: 1.2;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.header-info .company-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

.header-info .license-info {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.3px;
    line-height: 1.3;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
    .container {
        padding-top: 75px;
    }
    
    .header-info {
        padding: 8px 10px;
    }
    
    .header-content {
        gap: 3px;
        flex-direction: column;
        line-height: 1.3;
    }
    
    .header-info .company-name {
        font-size: 16px;
        line-height: 1.3;
        white-space: normal;
        word-break: keep-all;
        max-width: 100%;
    }
    
    .header-info .license-info {
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        word-break: keep-all;
        max-width: 100%;
    }
}
