


        .counter-container {
            display: flex;
            flex-direction: column;
            gap: 2.5rem;
            align-items: center;
        }

        @media (min-width: 768px) {
            .counter-container {
                min-width: 560px;
            }
        }

        /* 文本输入区域 */
        .input-group {
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .text-area {
            width: 100%;
            min-height: 220px;
            padding: 1.2rem;
            border: 2px solid #e0e6ed;
            border-radius: 10px;
            font-size: 1rem;
            outline: none;
            resize: vertical;
            transition: all 0.2s ease;
            line-height: 1.6;
            background-color: #f8fafc;
        }

        .text-area:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
            background-color: #fff;
        }

        /* 统计结果展示区 */
        .stats-container {
            width: 100%;
            max-width: 800px;
            display: flex;
            flex-wrap: wrap;
            gap: 1.2rem;
            justify-content: space-between;
            padding: 1.5rem;
            background: #f8fafc;
            border-radius: 10px;
            border: 1px solid #e0e6ed;
        }

        .stat-item {
            flex: 1;
            min-width: 120px;
            text-align: center;
            padding: 0.8rem 0.5rem;
        }

        .stat-label {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 0.3rem;
            display: block;
        }

        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #3498db;
        }

        /* 按钮组样式 */
        .btn-group {
            display: flex;
            gap: 1.2rem;
            width: 100%;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }

        .action-btn {
            padding: 0.9rem 2.2rem;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.25s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        #clearBtn {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            flex: 1;
        }

        #clearBtn:hover {
            background: linear-gradient(135deg, #c0392b 0%, #a52e20 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.12);
        }

        #clearBtn:active {
            transform: translateY(0);
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        }

        #copyBtn {
            background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
            color: white;
            flex: 1;
        }

        #copyBtn:hover {
            background: linear-gradient(135deg, #219653 0%, #1e874b 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.12);
        }

        #copyBtn:active {
            transform: translateY(0);
            box-shadow: 0 4px 8px rgba(0,0,0,0.08);
        }

        /* 占位符样式优化 */
        ::placeholder {
            color: #94a3b8;
            font-size: 0.95rem;
        }

        /* 字数统计工具专属移动端适配 */
        @media (max-width: 768px) {


            .btn-group {
                flex-direction: column;
                gap: 1rem;
            }

            .action-btn {
                width: 100%;
                padding: 0.8rem 1rem;
            }

            .text-area {
                min-height: 180px;
                font-size: 0.95rem;
                padding: 1rem;
            }

            .stats-container {
                flex-direction: column;
                gap: 1rem;
                padding: 1rem;
            }

            .stat-item {
                min-width: auto;
                padding: 0.5rem 0;
            }

            .stat-value {
                font-size: 1.3rem;
            }
        }
